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
Google Site Search init
public function googleSearch() { $search = new \Hoor\Search\Google(get_search_query(), $this->getIndex()); $this->data['search'] = $search; $this->data['results'] = $search->results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search(){\n //includes google maps script for place autocomplete and to get experiences\n \t$this->set('jsIncludes',array('http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&language=fr&libraries=places','places_autocomplete','get_experiences','logo_fly','jquery.dropdown','cookies'));\n \n //sets motives, schools and departments by alphbetical order\n $this->__set_motives_schools_and_departments();\n }", "protected function setUpWebsites()\n {\n\t Piwik_SitesManager_API::getInstance()->setGlobalSearchParameters($searchKeywordParameters='gkwd', $searchCategoryParameters='gcat');\n\t self::createWebsite(Piwik_Date::factory($this->dateTime)->subHour(200)->getDatetime(), 0, \"Site 1 - Site search\", $siteurl=false, $search=1, $searchKwd='q,mykwd,p', $searchCat='cats' );\n\t self::createWebsite(Piwik_Date::factory($this->dateTime)->subHour(400)->getDatetime(), 0, \"Site 2 - Site search use default\", $siteurl = false, $search=1, $searchKwd='', $searchCat='' );\n\t self::createWebsite(Piwik_Date::factory($this->dateTime)->subHour(600)->getDatetime(), 0, \"Site 3 - No site search\", $siteurl = false, $search=0);\n }", "public function searchGoogle(Request $request){\n\t\t$key = $request->input('key');\n\t\t$this->removeOldResults($key);\n\t\t$url = 'http://www.google.com/search?hl=en&tbo=d&site=&source=hp&q='.urlencode($key).'&oq='.urlencode($key);\n\t\t$html = file_get_contents($url);\n\t\tpreg_match_all('/<h3 class=\\\"r\\\">(.*?)<\\/h3>/', $html, $result);\n\t\t$this->loopResult($result, $key);\n\t\tpreg_match_all('/<a class=\\\"fl\\\" href=(.*?)\\><span class=\\\"csb\\\"/',$html,$links);\n\t\tfor($i=0,$il=9;$i<$il;$i++){\n\t\t\tpreg_match('/\\\"(.*)\\\"/',$links[1][$i],$result);\n\t\t\t$url = 'http://www.google.com/'.$result[1];\n\t\t\t$html = file_get_contents($url);\n\t\t\tpreg_match_all('/<h3 class=\\\"r\\\">(.*?)<\\/h3>/', $html, $result);\n\t\t\t$this->loopResult($result, $key);\n\t\t}\n\t\treturn redirect('/')->with('status', 'Search has been processed');\n\t}", "public function init()\n {\n $this->config = Yii::app()->params['CaseSearch'];\n $dependencies = array(\n 'OECaseSearch.models.*',\n 'OECaseSearch.components.*',\n );\n foreach ($this->config['parameters'] as $module => $paramList)\n {\n if ($module !== 'core')\n {\n $dependencies = array_merge($dependencies, array(\n \"$module.models.*\",\n ));\n }\n }\n $this->setImport($dependencies);\n\n // Initialise the search provider/s.\n foreach ($this->config['providers'] as $providerID => $searchProvider)\n {\n $this->searchProviders[$providerID] = new $searchProvider($providerID);\n }\n }", "private function instantiate_search_page() {\n // Build the search_types_fields and search_types_label arrays out of post_types_defs\n $search_types_fields = array();\n $search_types_label = array();\n foreach ( $this->post_type_defs as $post_type ) {\n $search_types_fields[ $post_type[ 'slug' ] ] = $post_type[ 'fields' ];\n $search_types_label[ $post_type[ 'slug' ] ] = $post_type[ 'plural_name' ];\n }\n $this->search_page = new HRHS_Search( array(\n // Using the default slug and title for now\n 'search_types_fields' => $search_types_fields,\n 'search_types_label' => $search_types_label\n ) );\n }", "public function __construct() {\n $this->setAdvSearch(true);\n }", "function Search()\n{\n\tglobal $txt, $settings, $context;\n\n\t// Search may be disabled if they're softly banned.\n\tsoft_ban('search');\n\n\t// Is the load average too high to allow searching just now?\n\tif (!empty($context['load_average']) && !empty($settings['loadavg_search']) && $context['load_average'] >= $settings['loadavg_search'])\n\t\tfatal_lang_error('loadavg_search_disabled', false);\n\n\tloadLanguage('Search');\n\tloadTemplate('Search');\n\n\t// Popup mode?\n\tif (AJAX)\n\t{\n\t\twetem::load('search_ajax');\n\t\treturn;\n\t}\n\n\t// Check the user's permissions.\n\tisAllowedTo('search_posts');\n\n\t// Link tree....\n\t// !!! If we've come back here because of an error, we're going to have: Site > Search > Search Results > Search in the linktree. Is this what we want?\n\tadd_linktree($txt['search'], '<URL>?action=search');\n\n\t// This is hard coded maximum string length.\n\t$context['search_string_limit'] = 100;\n\n\t$context['require_verification'] = we::$is_guest && !empty($settings['search_enable_captcha']) && empty($_SESSION['ss_vv_passed']);\n\tif ($context['require_verification'])\n\t{\n\t\tloadSource('Subs-Editor');\n\t\t$verificationOptions = array(\n\t\t\t'id' => 'search',\n\t\t);\n\t\t$context['require_verification'] = create_control_verification($verificationOptions);\n\t\t$context['visual_verification_id'] = $verificationOptions['id'];\n\t}\n\n\t// If you got back from search2 by using the linktree, you get your original search parameters back.\n\tif (isset($_REQUEST['params']))\n\t{\n\t\t// Due to IE's 2083 character limit, we have to compress long search strings\n\t\t$temp_params = base64_decode(str_replace(array('-', '_', '.'), array('+', '/', '='), $_REQUEST['params']));\n\t\t// Test for gzuncompress failing\n\t\t$temp_params2 = @gzuncompress($temp_params);\n\t\t$temp_params = explode('|\"|', !empty($temp_params2) ? $temp_params2 : $temp_params);\n\n\t\t$context['search_params'] = array();\n\t\tforeach ($temp_params as $i => $data)\n\t\t{\n\t\t\t@list ($k, $v) = explode('|\\'|', $data);\n\t\t\t$context['search_params'][$k] = $v;\n\t\t}\n\t\tif (!empty($context['search_params']['brd']))\n\t\t\tloadSource('Search2');\n\t\t$context['search_params']['brd'] = empty($context['search_params']['brd']) ? array() : wedge_ranged_explode(',', $context['search_params']['brd']);\n\t}\n\n\tif (isset($_REQUEST['search']))\n\t\t$context['search_params']['search'] = un_htmlspecialchars($_REQUEST['search']);\n\n\tif (isset($context['search_params']['search']))\n\t\t$context['search_params']['search'] = westr::htmlspecialchars($context['search_params']['search']);\n\tif (isset($context['search_params']['userspec']))\n\t\t$context['search_params']['userspec'] = htmlspecialchars($context['search_params']['userspec']);\n\tif (!empty($context['search_params']['searchtype']))\n\t\t$context['search_params']['searchtype'] = 2;\n\tif (!empty($context['search_params']['minage']))\n\t\t$context['search_params']['minage'] = (int) $context['search_params']['minage'];\n\tif (!empty($context['search_params']['maxage']))\n\t\t$context['search_params']['maxage'] = (int) $context['search_params']['maxage'];\n\n\t$context['search_params']['show_complete'] = !empty($context['search_params']['show_complete']);\n\t$context['search_params']['subject_only'] = !empty($context['search_params']['subject_only']);\n\n\t// Load the error text strings if there were errors in the search.\n\tif (!empty($context['search_errors']))\n\t{\n\t\tloadLanguage('Errors');\n\t\t$context['search_errors']['messages'] = array();\n\t\tforeach ($context['search_errors'] as $search_error => $dummy)\n\t\t{\n\t\t\tif ($search_error === 'messages')\n\t\t\t\tcontinue;\n\n\t\t\t$context['search_errors']['messages'][] = $txt['error_' . $search_error];\n\t\t}\n\t}\n\n\t// Find all the boards this user is allowed to see.\n\t$request = wesql::query('\n\t\tSELECT b.id_cat, c.name AS cat_name, b.id_board, b.name, b.child_level\n\t\tFROM {db_prefix}boards AS b\n\t\t\tLEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)\n\t\tWHERE {query_see_board}\n\t\t\tAND redirect = {string:empty_string}\n\t\tORDER BY b.board_order',\n\t\tarray(\n\t\t\t'empty_string' => '',\n\t\t)\n\t);\n\t$context['num_boards'] = wesql::num_rows($request);\n\t$context['boards_check_all'] = true;\n\t$context['categories'] = array();\n\twhile ($row = wesql::fetch_assoc($request))\n\t{\n\t\t// This category hasn't been set up yet...\n\t\tif (!isset($context['categories'][$row['id_cat']]))\n\t\t\t$context['categories'][$row['id_cat']] = array(\n\t\t\t\t'id' => $row['id_cat'],\n\t\t\t\t'name' => $row['cat_name'],\n\t\t\t\t'boards' => array()\n\t\t\t);\n\n\t\t// Set this board up, and let the template know when it's a child, so it can indent them.\n\t\t$context['categories'][$row['id_cat']]['boards'][$row['id_board']] = array(\n\t\t\t'id' => $row['id_board'],\n\t\t\t'name' => $row['name'],\n\t\t\t'child_level' => $row['child_level'],\n\t\t\t'selected' => (empty($context['search_params']['brd']) && (empty($settings['recycle_enable']) || $row['id_board'] != $settings['recycle_board']) && !in_array($row['id_board'], we::$user['ignoreboards'])) || (!empty($context['search_params']['brd']) && in_array($row['id_board'], $context['search_params']['brd']))\n\t\t);\n\n\t\t// If a board wasn't checked that probably should have been, ensure the board selection is selected!\n\t\tif (!$context['categories'][$row['id_cat']]['boards'][$row['id_board']]['selected'] && (empty($settings['recycle_enable']) || $row['id_board'] != $settings['recycle_board']))\n\t\t\t$context['boards_check_all'] = false;\n\t}\n\twesql::free_result($request);\n\n\t// Now, let's sort the list of categories into the boards for templates that like that.\n\t$temp_boards = array();\n\tforeach ($context['categories'] as $category)\n\t{\n\t\t$temp_boards[] = array(\n\t\t\t'name' => $category['name'],\n\t\t\t'child_ids' => array_keys($category['boards'])\n\t\t);\n\t\t$temp_boards = array_merge($temp_boards, array_values($category['boards']));\n\n\t\t// Include a list of boards per category for easy toggling.\n\t\t$context['categories'][$category['id']]['child_ids'] = array_keys($category['boards']);\n\t}\n\n\t$max_boards = ceil(count($temp_boards) / 2);\n\tif ($max_boards == 1)\n\t\t$max_boards = 2;\n\n\t// Now, alternate them so they can be shown left and right ;).\n\t$context['board_columns'] = array();\n\tfor ($i = 0; $i < $max_boards; $i++)\n\t{\n\t\t$context['board_columns'][] = $temp_boards[$i];\n\t\tif (isset($temp_boards[$i + $max_boards]))\n\t\t\t$context['board_columns'][] = $temp_boards[$i + $max_boards];\n\t\telse\n\t\t\t$context['board_columns'][] = array();\n\t}\n\n\tif (!empty($_REQUEST['topic']))\n\t{\n\t\t$context['search_params']['topic'] = (int) $_REQUEST['topic'];\n\t\t$context['search_params']['show_complete'] = true;\n\t}\n\tif (!empty($context['search_params']['topic']))\n\t{\n\t\t$context['search_params']['topic'] = (int) $context['search_params']['topic'];\n\n\t\t$context['search_topic'] = array(\n\t\t\t'id' => $context['search_params']['topic'],\n\t\t\t'href' => '<URL>?topic=' . $context['search_params']['topic'] . '.0',\n\t\t);\n\n\t\t$request = wesql::query('\n\t\t\tSELECT ms.subject\n\t\t\tFROM {db_prefix}topics AS t\n\t\t\t\tINNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)\n\t\t\t\tINNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)\n\t\t\tWHERE t.id_topic = {int:search_topic_id}\n\t\t\t\tAND {query_see_board}\n\t\t\t\tAND {query_see_topic}\n\t\t\tLIMIT 1',\n\t\t\tarray(\n\t\t\t\t'search_topic_id' => $context['search_params']['topic'],\n\t\t\t)\n\t\t);\n\n\t\tif (wesql::num_rows($request) == 0)\n\t\t\tfatal_lang_error('topic_gone', false);\n\n\t\tlist ($context['search_topic']['subject']) = wesql::fetch_row($request);\n\t\twesql::free_result($request);\n\n\t\t$context['search_topic']['link'] = '<a href=\"' . $context['search_topic']['href'] . '\">' . $context['search_topic']['subject'] . '</a>';\n\t}\n\n\t$context['page_title'] = $txt['search'];\n}", "function googleSearch($ar){\n $p = new XParam($ar, array('tplentry'=>'br'));\n $fs = $p->get('fs');\n $tpl = $p->get('tplentry');\n $ftable = $p->get('ftable');\n $fname = $p->get('fname');\n $fid = $p->get('fid');\n $flatlng = $p->get('flatlng');\n $flatlng = trim($flatlng);\n $foptions = $p->get('foptions');\n $readonly = $p->get('readonly');\n $oid = $p->get('oid');\n // recherche des infos table/champ dans l'EF\n // $fs = $this->getFieldSetupEdit($ar);\n // position initiale reçue sinon defaut\n if (!empty($flatlng) && $flatlng!=';'){\n list($plat, $plng) = explode(';', $flatlng);\n $mlat = $fs['elat'];\n $mlng = $fs['elng'];\n $newpoint = false;\n } elseif (!empty($oid)) {\n /* to do editer l'occurence ? */\n } else {\n $plat = $mlat = $fs['elat'];\n $plng = $mlng = $fs['elng'];\n $newpoint = true;\n }\n // lire le champ ? ... la cle etc\n $res = array('google'=>array('key'=>$this->key),\n\t\t 'map'=>array('zoom'=>$fs['ezoom'], \n\t\t\t 'readonly'=>$readonly,\n\t\t\t 'lng'=>$mlat, \n\t\t\t 'lat'=>$mlng),\n\t\t 'point'=>array('newpoint'=>$newpoint,\n\t\t\t\t'lat'=>$plat,\n\t\t\t\t'lng'=>$plng,\n\t\t\t\t'ftable'=>$ftable,\n\t\t\t\t'fid'=>$fid,\n\t\t\t\t'fname'=>$fname,\n\t\t\t\t'foptions'=>$foptions\n\t\t\t\t),\n\t\t 'maplabels'=>array('normalview'=>XLabels::getSysLabel('xmodmap','normalview', 'text'),\n\t\t\t\t 'physicalview'=>XLabels::getSysLabel('xmodmap','physicalview', 'text'),\n\t\t\t\t 'satelliteview'=>XLabels::getSysLabel('xmodmap','sattelitview', 'text'),\n\t\t\t\t 'hybridview'=>XLabels::getSysLabel('xmodmap','hybridview', 'text'),\n\t\t\t\t 'search'=>XLabels::getSysLabel('general', 'query', 'text'),\n\t\t\t\t 'validate'=>XLabels::getSysLabel('general', 'save', 'text'),\n\t\t\t\t 'quit'=>XLabels::getSysLabel('general', 'close', 'text'),\n\t\t\t\t 'notfound'=>XLabels::getSysLabel('xmodmap', 'unknownaddress', 'text'),\n\t\t\t\t 'centerview'=>XLabels::getSysLabel('xmodmap', 'centerview', 'text')\n\t\t\t\t )\n\t\t );\n return $res;\n }", "public function set_search_engine_url($url)\n {\n $this->search_engine = $url;\n }", "function init_search() {\n $this->search = new cbsearch;\n $this->search->db_tbl = \"groups\";\n $this->search->columns = array(\n array('field' => 'group_name', 'type' => 'LIKE', 'var' => '%{KEY}%'),\n );\n $this->search->cat_tbl = $this->cat_tbl;\n\n $this->search->display_template = LAYOUT . '/blocks/group.html';\n $this->search->template_var = 'group';\n $this->search->multi_cat = true;\n $this->search->results_per_page = config('grps_items_search_page');\n $this->search->has_user_id = true;\n\n /**\n * Setting up the sorting thing\n */\n $sorting = array(\n 'date_added' => lang(\"date_added\"),\n 'total_views' => lang(\"views\"),\n 'total_comments' => lang(\"comments\"),\n 'total_videos' => lang(\"videos\"),\n 'total_members' => lang(\"total members\"),\n );\n\n $this->search->sorting = array(\n 'date_added' => \" date_added DESC\",\n 'total_views' => \" total_views DESC\",\n 'total_comments' => \" total_comments DESC \",\n 'total_videos' => \" total_videos DESC\",\n 'total_members' => \" total_members DESC\",\n );\n /**\n * Setting Up The Search Fields\n */\n $default = $_GET;\n if (is_array($default['category']))\n $cat_array = array($default['category']);\n $uploaded = $default['datemargin'];\n $sort = $default['sort'];\n\n $this->search->search_type['groups'] = array('title' => 'Groups');\n\n $fields = array(\n 'query' => array(\n 'title' => lang('keywords'),\n 'type' => 'textfield',\n 'name' => 'query',\n 'id' => 'query',\n 'value' => cleanForm($default['query'])\n ),\n 'category' => array(\n 'title' => lang('category'),\n 'type' => 'checkbox',\n 'name' => 'category[]',\n 'id' => 'category',\n 'value' => array('category', $cat_array),\n 'category_type' => 'group',\n ),\n 'date_margin' => array(\n 'title' => lang('created'),\n 'type' => 'dropdown',\n 'name' => 'datemargin',\n 'id' => 'datemargin',\n 'value' => $this->search->date_margins(),\n 'checked' => $uploaded,\n ),\n 'sort' => array(\n 'title' => lang('sort_by'),\n 'type' => 'dropdown',\n 'name' => 'sort',\n 'value' => $sorting,\n 'checked' => $sort\n )\n );\n\n $this->search->search_type['groups']['fields'] = $fields;\n }", "public function __construct( ){\n parent::__construct();\n // Get and set search options.\n $this->searchOptions = new stdClass();\n $this->searchOptions->searchDescription = \"false\"; // Should we search in the description? [true,false]\n $this->searchOptions->entriesPerPage = 10; // [Min: 1. Max: 100. Default: 100.]\n $this->searchOptions->pageToGet = 1; // [Min: 1. Max: 100. Default: 1.]\n $this->searchOptions->filters = array(); // Filter our search - Array(array('name' => 'filtername','value' => 'filtervalue','paramName' => 'name','paramValue' => 'value'));\n $this->searchOptions->aspects = array(); // Aspect filter - Array(\"aspectName1\" => array(\"value1\", \"value2\", \"value3\"...),\"aspectName2\" => array(\"value1\", \"value2\", \"value3\"...)...)\n $this->searchOptions->categories = array(); // Categories for the search - Array(\"categoryID1\", \"categoryID2\", \"categoryID3\"...)\n $this->searchOptions->sortOrder = \"BestMatch\"; // Search results sorting order. [BestMatch, PricePlusShippingHighest, PricePlusShippingLowest]\n $this->searchOptions->searchQuery = \"\"; // Our search query.\n\n // Default comms header.\n $this->headers = array();\n $this->_setDefaultHeaders();\n }", "public function setSearch()\n\t{\n\t\t$this->search_term = $this->credentials['facebook_page_id'];\n\t}", "public function GoogleBL($domain,$api_key,$searchengine_id){\r\n\t$ctx = stream_context_create(array('http'=>array('timeout' => 5,)));//1200 Seconds is 20 Minutes\r\n\t$url=\"http://www.\".$domain;\r\n\tfile_get_contents($url, false, $ctx);\r\n\tif(isset($http_response_header))\r\n\t{\r\n\t\t$string=$http_response_header['0'];\r\n\t\t$status=explode(' ', $string);\r\n\t\t$status=$status['1'];\r\n\t\tif ($status==\"200\")\r\n\t\t{\r\n\r\n $search_query = \"link:$domain\";\r\n $array=array(); $url=\"https://www.googleapis.com/customsearch/v1?key=$api_key&cx=$searchengine_id&num=10&q=$search_query&fields=items/link,searchInformation/totalResults\";\r\n $google_search = file_get_contents($url);\r\n $seo_data=json_decode($google_search,true);\r\n\r\n if($seo_data['searchInformation']['totalResults']!=NULL)\r\n {\r\n return $seo_data;\r\n }\r\n\t\t}\r\n else\r\n {\r\n \techo '<div class=\"alert alert-danger alert-dismissable\" >\r\n\t\t\t <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>\r\n\t\t\t\t<i class=\"ion-sad\"></i>'.$status.'</div>';\r\n\t\t\t }\r\n\t}\r\n }", "public function search($request) {\n // Prepare Google search request parameters\n $query = urlencode(\"{$_SERVER['HTTP_HOST']} {$_GET['q']}\");\n $offset = isset($_GET['start']) ? (int)$_GET['start'] : '0';\n $response = file_get_contents(sprintf(self::GOOGLE_SEARCH_URL, $query, $offset));\n \n // Decode JSON response and prepare view content\n $response = json_decode($response);\n $searchResults = $pages = array();\n\n // Build list of search results\n foreach($response->responseData->results as $result)\n $searchResults[] = sprintf(self::SEARCH_RESULT, $result->unescapedUrl, $result->titleNoFormatting, $result->titleNoFormatting, $result->content);\n\n // Prepare pagination options\n $resultsCount = isset($response->responseData->cursor->estimatedResultCount) ? $response->responseData->cursor->estimatedResultCount : 0;\n $currentPageIndex = $response->responseData->cursor->currentPageIndex;\n\n if($resultsCount) {\n // Previous pagination option\n if($currentPageIndex > 0) {\n $page = $response->responseData->cursor->pages[$currentPageIndex - 1];\n $url = sprintf(self::SITE_SEARCH_URL, urlencode($_GET['q']), $page->start);\n $pages[] = sprintf(self::PAGINATION_LINK, $url, '&lt;&lt; Previous', '&lt;&lt; Previous');\n\n } else {\n $pages[] = sprintf(self::PAGINATION_ACTIVE, '&lt;&lt; Previous');\n }\n\n // Page pagination option\n foreach($response->responseData->cursor->pages as $index => $page) {\n if($currentPageIndex == $index) {\n $pages[] = sprintf(self::PAGINATION_ACTIVE, $page->label);\n\n } else {\n $url = sprintf(self::SITE_SEARCH_URL, urlencode($_GET['q']), $page->start);\n $pages[] = sprintf(self::PAGINATION_LINK, $url, $page->label, $page->label);\n }\n }\n\n // Next pagination option\n if($currentPageIndex < 7 && count($response->responseData->cursor->pages) > 1) {\n $page = $response->responseData->cursor->pages[$currentPageIndex + 1];\n $url = sprintf(self::SITE_SEARCH_URL, urlencode($_GET['q']), $page->start);\n $pages[] = sprintf(self::PAGINATION_LINK, $url, 'Next &gt;&gt;', 'Next &gt;&gt;');\n\n } else {\n $pages[] = sprintf(self::PAGINATION_ACTIVE, 'Next &gt;&gt;');\n }\n }\n\n return $this->customise(array(\n 'Title' => 'Search Results',\n 'SearchQuery' => Convert::raw2xml($_GET['q']),\n 'ResultsCount' => $resultsCount,\n 'MoreResultsUrl' => $response->responseData->cursor->moreResultsUrl,\n 'SearchResults' => implode(\"\\r\\n\", $searchResults),\n 'Pagination' => implode(\"\\r\\n\", $pages),\n ))->renderWith(array('SearchPage', 'Page'));\n }", "public function init()\n {\n $searchables = ShopSearch::get_searchable_classes();\n\n // Add each class to the index\n foreach ($searchables as $class) {\n $this->addClass($class);\n }\n\n // add the fields they've specifically asked for\n $fields = $this->getFulltextSpec();\n foreach ($fields as $def) {\n $this->addFulltextField($def['field'], $def['type'], $def['params']);\n }\n\n // add the filters they've asked for\n $filters = $this->getFilterSpec();\n foreach ($filters as $filterName => $def) {\n // NOTE: I'm pulling the guts out of this function so we can access Solr's full name\n // for the field (SiteTree_Title for Title) and build the fieldMap in one step instead\n // of two.\n //$this->addFilterField($def['field'], $def['type'], $def['params']);\n $singleFilter = $this->fieldData($def['field'], $def['type'], $def['params']);\n $this->filterFields = array_merge($this->filterFields, $singleFilter);\n foreach ($singleFilter as $solrName => $solrDef) {\n if ($def['field'] == $solrDef['field']) {\n $this->fieldMap[$filterName] = $solrName;\n }\n }\n }\n\n//\t\tDebug::dump($this->filterFields);\n\n // Add spellcheck fields\n//\t\t$spellFields = $cfg->get('ShopSearch', 'spellcheck_dictionary_source');\n//\t\tif (empty($spellFields) || !is_array($spellFields)) {\n//\t\t\t$spellFields = array();\n//\t\t\t$ftFields = $this->getFulltextFields();\n//\t\t\tforeach\t($ftFields as $name => $fieldDef) {\n//\t\t\t\t$spellFields[] = $name;\n//\t\t\t}\n//\t\t}\n//\n//\t\tforeach ($spellFields as $f) {\n//\t\t\t$this->addCopyField($f, '_spellcheckContent');\n//\t\t}\n\n // Technically, filter and sort fields are the same in Solr/Lucene\n//\t\t$this->addSortField('ViewCount');\n//\t\t$this->addSortField('LastEdited', 'SSDatetime');\n\n // Aggregate fields for spelling checks\n//\t\t$this->addCopyField('Title', 'spellcheckData');\n//\t\t$this->addCopyField('Content', 'spellcheckData');\n\n//\t\t$this->addFullTextField('Category', 'Int', array(\n//\t\t\t'multi_valued' => true,\n//\t\t\t'stored' => true,\n//\t\t\t'lookup_chain' => array(\n//\t\t\t\t'call' => 'method',\n//\t\t\t\t'method' => 'getAllProductCategoryIDs',\n//\t\t\t)\n//\t\t));\n\n // I can't get this to work. Need a way to create the Category field that get used\n//\t\t$this->addFilterField('Category', 'Int');\n//\t\t$this->addFilterField('Parent.ID');\n//\t\t$this->addFilterField('ProductCategories.ID');\n//\t\t$this->addCopyField('SiteTree_Parent_ID', 'Category');\n//\t\t$this->addCopyField('Product_ProductCategories_ID', 'Category');\n\n // These will be added in a pull request to shop module. If they're not present they'll be ignored\n//\t\t$this->addFilterField('AllCategoryIDs', 'Int', array('multiValued' => 'true'));\n//\t\t$this->addFilterField('AllRecursiveCategoryIDs', 'Int', array('multiValued' => 'true'));\n\n // This will cause only live pages to be indexed. There are two ways to do\n // this. See fulltextsearch/docs/en/index.md for more information.\n // Not sure if this is really the way to go or not, but for now this is it.\n $this->excludeVariantState(array('SearchVariantVersioned' => 'Stage'));\n }", "function init_search($type, &$search, &$error)\n\t{\n\t\tglobal $phpbb_root_path, $phpEx, $user, $auth, $config, $db, $table_prefix;\n\n\t\tif (!class_exists($type) || !method_exists($type, 'keyword_search'))\n\t\t{\n\t\t\t$error = $user->lang['NO_SUCH_SEARCH_MODULE'];\n\t\t\treturn $error;\n\t\t}\n\n\t\t$error = false;\n\t\t$search = new $type($auth, $config, $db, $user, $table_prefix, $phpbb_root_path, $phpEx);\n\n\t\treturn $error;\n\t}", "public function __construct()\n {\n $this->_client = Mage::helper('tooso')->getClient();\n\n $this->_logger = Mage::helper('tooso/log');\n\n $this->_maxResults = (int)Mage::getStoreConfig('tooso/suggest/max_results');\n }", "public function init()\n {\n // Default user search for all users\n if ($this->userSearchUrl == \"\") {\n // provide the space id if the widget is calling from a space\n if (Yii::$app->controller->id == 'space') {\n $spaceId = Yii::$app->controller->getSpace()->id;\n $this->userSearchUrl = Url::toRoute(['/teams/search/json', 'keyword' => '-keywordPlaceholder-', 'space_id' => $spaceId]);\n } else {\n $this->userSearchUrl = Url::toRoute(['/teams/search/json', 'keyword' => '-keywordPlaceholder-']);\n }\n }\n }", "function fluid_edge_get_search() {\n fluid_edge_load_search_template();\n }", "public function init() {\n\t\tparent::init();\n\n\t\t// use the search layout\n\t\t$this->setLayout('search');\n\n\t\t// load models\n\t\t$this->Search = new Search();\n\t\t$this->Location = new Location();\n\t\t$this->Category = new Category();\n\t\t$this->Ats_Job = new Ats_Job();\n\n // ajax context switching\n $this->_helper->ajaxContext()\n ->addActionContext('job', 'json')\n ->addActionContext('category', 'json')\n ->addActionContext('location', 'json')\n ->initContext();\n\t}", "function run_btpl_search_relevance() {\n\t$plugin = new Bittemple_Search_Relevance();\n\t$plugin->init();\n}", "function display_search_box(){\r\n\t\r\n\t$random_number = rand(0, 99);\r\n\t$search_div_id = \"cse-search-form\".$random_number;\r\n\t\r\n\t$useGoogleCSE = of_get_option('opt_google_cse');\r\n\t$googleCSEID = of_get_option('opt_google_cse_id');\r\n\t\r\n\t$formHtml = '<div id=\"' . $search_div_id . '\" style=\"width: 100%;\">Loading</div>\r\n\t\t\t\t<script type=\"text/javascript\">\r\n\t\t\t\t\tgoogle.load(\\'search\\', \\'1\\');\r\n\t\t\t\t\tgoogle.setOnLoadCallback(function() {\r\n\t\t\t\t\tvar customSearchOptions = {};';\r\n\t\r\n\tif (function_exists('domain_mapping_siteurl')) \r\n\t\t$domain = domain_mapping_siteurl(null);\r\n\telse\r\n\t\t$domain = get_bloginfo('url');\r\n\t\r\n\tif ($useGoogleCSE) { \r\n\t\t$formHtml .= 'var customSearchControl = new google.search.CustomSearchControl(\\'' . $googleCSEID . '\\', customSearchOptions);';\r\n\t} else {\r\n\t\t$formHtml .= 'var customSearchControl = new google.search.CustomSearchControl({crefUrl:\\'' . $domain . '/wp-content/themes/UFandShands/cref_xml.php\\'});';\r\n\t}\r\n\t\r\n\t$formHtml .= 'customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);\r\n\t\t\t\t var options = new google.search.DrawOptions();\r\n\t\t\t\t options.setAutoComplete(true);';\r\n\t\r\n\tif ($useGoogleCSE) { \r\n\t\t$formHtml .= 'customSearchControl.setAutoCompletionId(\\'' . $googleCSEID . '+qptype:1\\');';\r\n\t} \r\n\t\r\n\t$formHtml .= 'options.enableSearchboxOnly(\"' . $domain . '/\", \"s\");\r\n\t\t\t\t\tcustomSearchControl.draw(\\''. $search_div_id . '\\', options);\r\n\t\t\t\t\t}, true);\r\n\t\t\t\t\t</script>';\r\n\t\r\n\treturn $formHtml;\r\n}", "public function search()\n {\n $query = Purifier::clean(Input::get('q'));\n return Redirect::away('https://www.google.com/search?q=site:www.apcow.com' . $query, 301);\n }", "function init_url_settings() {\n\t\tglobal $phpbb_seo;\n\t\t// vars will fell like rain in the code ;)\n\t\t$this->url_settings['google_txt_delim'] = !empty($phpbb_seo->seo_delim['google_txt']) ? $phpbb_seo->seo_delim['google_txt'] : '-';\n\t\t$this->url_settings['google_txt_static'] = !empty($phpbb_seo->seo_static['google_txt']) ? $phpbb_seo->seo_static['google_txt'] : 'txt';\n\t\t$this->url_settings['modrewrite'] = $this->module_config['google_modrewrite'];\n\n\t\tif ($this->url_settings['modrewrite']) { // Module links\n\t\t\t$this->url_settings['google_txt_tpl'] = $this->module_config['google_url'] . 'txt' . $this->url_settings['google_txt_delim'] . '%1$s.xml' . $this->url_settings['gzip_ext_out'];\n\t\t} else {\n\t\t\t$this->url_settings['google_txt_tpl'] = $this->module_config['google_url'] . $this->url_settings['google_default'] . '?txt=%1$s';\n\t\t}\n\t\treturn;\n\t}", "function init_legacy() {\n\t\tif ( ! function_exists( 'searchwp_get_option' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// SearchWP hooks\n\t\tadd_filter( 'searchwp_engine_settings_default', array( $this, 'limit_engine_to_products' ) );\n\t\tadd_filter( 'searchwp_query_main_join', array( $this, 'query_main_join' ), 10, 2 );\n\t\tadd_filter( 'searchwp_query_orderby', array( $this, 'query_orderby' ) );\n\t\tadd_filter( 'searchwp_query_select_inject', array( $this, 'searchwp_query_inject' ) );\n\t\tadd_filter( 'searchwp_where', array( $this, 'searchwp_query_where' ) );\n\n\t\t// Support highlighting.\n\t\t$existing_settings = searchwp_get_option( 'advanced' );\n\t\tif (\n\t\t\tis_array( $existing_settings )\n\t\t\t&& array_key_exists( 'highlight_terms', $existing_settings )\n\t\t\t&& ! empty( $existing_settings['highlight_terms']\n\t\t\t&& class_exists( 'SearchWPHighlighter' ) )\n\t\t) {\n\t\t\tadd_filter( 'the_title', array( $this, 'maybe_highlight' ) );\n\t\t\tadd_filter( 'get_the_excerpt', array( $this, 'maybe_highlight' ) );\n\t\t}\n\t}", "function the_search_query()\n {\n }", "function getsearch($site,$n,$from,$auth) {\n $this->auth=$auth;\n $this->sitenumber=$site;\n $this->n=$n;\n $this->home=getenv(\"DOCUMENT_ROOT\");\n $this->from=$from;\n $this->path=substr($this->from,1,4);\n if ($this->sitenumber==1) {$this->path='';}\n if ($this->sitenumber==2) {$this->path='eng/';}\n if ($this->sitenumber==3) {$this->path='cons/';}\n if ($this->sitenumber==4) {$this->path='cons/eng/';}\n }", "public function __construct()\n\t{\n\t\t// Need to call the parent constructor if we are overwritting the\n\t\t// constructor in a subclass...\n\t\tparent::__construct();\n\n\t\t$this->jsGoogleUseKey = true;\n\t\t$this->jsGoogleLoad = array();\n\t\t$this->jsGoogleCallBack = array();\n\t}", "public function woo_slg_initialize_google() {\n\t\t\n\t\t\tglobal $woo_slg_options;\t\t\t\n\t\t\t//Google integration begins here\n\t\t\t// not isset state condition required, else google code executed when google called\n\t\t\t//and check wooslg is equal to google\n\t\t\tif( isset( $_GET['code'] ) && !isset( $_GET['state'] ) \n\t\t\t\t&& isset( $_GET['wooslg'] ) && $_GET['wooslg'] == 'google' ) {\n\t\t\t\t\n\t\t\t\t//load google class\n\t\t\t\t$google = $this->woo_slg_load_google();\n\t\t\t\t\n\t\t\t\t//check google class is loaded\n\t\t\t\tif( !$google ) return false;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$url = 'https://accounts.google.com/o/oauth2/token';\n\t\t\t\t$params = array(\n\t\t\t\t\t'code' => $_GET['code'],\n\t\t\t\t\t'client_id' => WOO_SLG_GP_CLIENT_ID,\n\t\t\t\t\t'client_secret' => WOO_SLG_GP_CLIENT_SECRET,\n\t\t\t\t\t'redirect_uri' => WOO_SLG_GP_REDIRECT_URL,\n\t\t\t\t\t'grant_type' => 'authorization_code'\n\t\t\t\t);\n\t\t\t\n\t\t\t\t$query\t\t= http_build_query($params, '', '&');\n\t\t\t\t\n\t\t\t\t$wp_http_args\t= array(\n\t\t\t\t\t\t\t\t\t\t'method' => 'POST',\n\t\t\t\t\t\t\t\t\t\t'body' => $query,\n\t\t\t\t\t\t\t\t\t\t'headers' => 'Content-type: application/x-www-form-urlencoded',\n\t\t\t\t\t\t\t\t\t\t'cookies' => array(),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$response\t\t= wp_remote_request($url, $wp_http_args);\n\t\t\t\t$responseData\t= wp_remote_retrieve_body( $response );\n\t\t\t\t\n\t\t\t\tif( is_wp_error( $response ) ) {\n\t\t\t\t\t$content = $response->get_error_message();\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t$responseData\t= json_decode( $responseData );\n\t\t\t\t\t\n\t\t\t\t\tif( isset( $responseData->access_token ) && !empty( $responseData->access_token ) ) {\n\t\t\t\t\t\t$token\t= $responseData->access_token;\n\t\t\t\t\t\t$userdata = $this->woo_slg_get_google_profile_data( $token );\n\t\t\t\t\t\tif( !empty( $userdata) ) {\n\t\t\t\t\t\t\t$_SESSION['woo_slg_google_user_cache']\t= $userdata;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}", "protected function init() {\n parent::init('search_template_filter');\n }", "public function initialize() {\n parent::initialize();\n if ($this->blogger) {\n return $this->response->redirect(['for' => 'explore']);\n }\n }", "function ozh_yourls_gsb_add_page() {\n\tyourls_register_plugin_page( 'ozh_yourls_gsb', 'Recherche sûre par Google', 'ozh_yourls_gsb_admin_page' );\n \n if( ! yourls_get_option( 'ozh_yourls_gsb' ) ) {\n ozh_yourls_gsb_please_configure();\n }\n}", "public function getSearch();", "protected function ping_search_engines() {\n\n\t\t\\WPSEO_Sitemaps::ping_search_engines();\n\n\t}", "function voyage_mikado_get_search() {\n\n\t\tif(voyage_mikado_active_widget(false, false, 'mkd_search_opener')) {\n\n\t\t\t$search_type = voyage_mikado_options()->getOptionValue('search_type');\n\n\t\t\tvoyage_mikado_load_search_template();\n\n\t\t}\n\t}", "function redex(){\r\n\t$searchWP = SearchWP::instance();\r\n\t$searchWP->triggerIndex();\r\n}", "public function __construct()\n {\n $this->config = config('fullsearch');\n\n $this->results = collect([]);\n\n $this->models = collect($this->config['models']);\n }", "function __construct($name, $website, $classSearchStr, $database) {\n\t\tparent::__construct($database);\n\t\t$this->url = $website;\n\t\t$this->siteName = $name;\n\t\t$this->mainPageSearchStr = $classSearchStr;\n\t\t$this->baseURL = $this->getBaseURL($website);\n\t}", "function wpb_change_search_url() {\n if ( is_search() && ! empty( $_GET['s'] ) ) {\n wp_redirect( home_url( \"/search/\" ) . urlencode( get_query_var( 's' ) ) . \"/\");\n exit();\n }\n}", "public function __construct(string $siteId, string $initialValue = null) {\n parent::__construct(null, 'get');\n $this->getSearchField()->setName('ss360Query')->setSubmitValue($initialValue);\n $this->getSearchField()->addCssClass('sphp-search-searchBox', 'sphp-ss360-searchBox');\n $this->attributes()->protect('data-sphp-ss360-siteid', $siteId);\n }", "public function searchQueryDataProvider() {}", "function globalSearch()\n{\n global $app, $globalSettings;\n\n // TODO check search paramater?\n\n $filter = getFilter();\n $search = $app->request()->get('search');\n $tlb = $app->calibre->titlesSlice($globalSettings['lang'], 0, $globalSettings[PAGE_SIZE], $filter, trim($search));\n $tlb_books = array_map('checkThumbnail', $tlb['entries']);\n $tla = $app->calibre->authorsSlice(0, $globalSettings[PAGE_SIZE], trim($search));\n $tla_books = array_map('checkThumbnail', $tla['entries']);\n $tlt = $app->calibre->tagsSlice(0, $globalSettings[PAGE_SIZE], trim($search));\n $tlt_books = array_map('checkThumbnail', $tlt['entries']);\n $tls = $app->calibre->seriesSlice(0, $globalSettings[PAGE_SIZE], trim($search));\n $tls_books = array_map('checkThumbnail', $tls['entries']);\n $app->render('global_search.html', [\n 'page' => mkPage(getMessageString('pagination_search'), 0),\n 'books' => $tlb_books,\n 'books_total' => $tlb['total'] == -1 ? 0 : $tlb['total'],\n 'more_books' => ($tlb['total'] > $globalSettings[PAGE_SIZE]),\n 'authors' => $tla_books,\n 'authors_total' => $tla['total'] == -1 ? 0 : $tla['total'],\n 'more_authors' => ($tla['total'] > $globalSettings[PAGE_SIZE]),\n 'tags' => $tlt_books,\n 'tags_total' => $tlt['total'] == -1 ? 0 : $tlt['total'],\n 'more_tags' => ($tlt['total'] > $globalSettings[PAGE_SIZE]),\n 'series' => $tls_books,\n 'series_total' => $tls['total'] == -1 ? 0 : $tls['total'],\n 'more_series' => ($tls['total'] > $globalSettings[PAGE_SIZE]),\n 'search' => $search]);\n}", "public function init() {\n\t\tparent::init();\n\t\t//Yii::app()->request->setHostInfo('http://love.allwomenstalk.com');\n\t\t/*echo 'BaseUrl'; var_dump(Yii::app()->request->getBaseUrl());\n\t\techo 'HostInfo'; var_dump(Yii::app()->request->getHostInfo());\n\t\techo 'PathInfo'; var_dump(Yii::app()->request->getPathInfo());\n\t\techo 'QueryString'; var_dump(Yii::app()->request->getQueryString());\n\t\techo 'RequestUri'; var_dump(Yii::app()->request->getRequestUri());\n\t\techo 'ScriptFile'; var_dump(Yii::app()->request->getScriptFile());\n\t\techo 'ScriptUrl'; var_dump(Yii::app()->request->getScriptUrl());\n\t\techo 'ServerName'; var_dump(Yii::app()->request->getServerName());*/\n\t\t\n\t\tYii::app()->params['site'] = $this->_currentSite = $this->detectSite();\n\t}", "function _admin_search_query()\n {\n }", "private static function getSearchUrl()\n {\n return @self::CLIENT_URL_SEARCH . 'amazon/search';\n }", "public function index()\n {\n if ($this->request->getData('Submit') !== null) {\n // Get search parameters from request\n $params['siteUrl'] = $this->request->getData('siteUrl');\n $params['startDate'] = $this->request->getData('startDate');\n $params['endDate'] = $this->request->getData('endDate');\n $params['dimensions'] = $this->request->getData('dimensions');\n $params['dimensionFilterGroups'] = $this->request->getData('dimensionFilterGroups');\n $params['searchType'] = $this->request->getData('searchType');\n $params['aggregationType'] = $this->request->getData('aggregationType');\n $params['rowLimit'] = $this->request->getData('rowLimit');\n $params['startRow'] = $this->request->getData('startRow');\n } else {\n // Or get search parameters from most recent search\n $params = $this->GoogleApi->getSearchParams();\n }\n\n $isAuthorized = $this->GoogleApi->isAuthorized;\n $authUrl = $this->GoogleApi->createAuthUrl();\n $userInfo = $this->GoogleApi->getUserInfo();\n $searchTypeOptions = $this->GoogleApi->getSearchTypeOptions();\n $aggregationTypeOptions = $this->GoogleApi->getAggregationTypeOptions();\n $dimensionsOptions = $this->GoogleApi->getDimensionsOptions();\n $operatorOptions = $this->GoogleApi->getOperatorOptions();\n $error = null;\n\n // Get data from SearchAnalytics API\n $results = $this->GoogleApi->getSearchAnalytics($params, $error);\n\n $this->set(\n compact(\n 'authUrl',\n 'isAuthorized',\n 'results',\n 'userInfo',\n 'error',\n 'params',\n 'searchTypeOptions',\n 'aggregationTypeOptions',\n 'dimensionsOptions',\n 'operatorOptions'\n )\n );\n }", "public function __construct($site)\n {\n }", "public function init()\n {\n Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . \"/js/search-triple.js\", CClientScript::POS_END);\n\n }", "public function _before_search_init($send = NULL) {\n $this->before_search_init($send);\n App::Module('Hook')->getHandler('Callback', 'before_search_init', $send);\n }", "private static function init_google() {\n $record = (object) [\n 'name' => 'Google',\n 'image' => 'https://accounts.google.com/favicon.ico',\n 'baseurl' => 'https://accounts.google.com/',\n 'loginparamsoffline' => 'access_type=offline&prompt=consent',\n 'showonloginpage' => true\n ];\n\n $issuer = new issuer(0, $record);\n return $issuer;\n }", "public function search(){}", "public function search()\n\t{\n\t\t\n\t}", "protected function _initSearch()\n {\n $this->where['is_del'] = array('eq', 1);\n $this->order = 'create_time desc';\n }", "public function search();", "public function search();", "public function fetching($strSearch,$nb,$country = ['CM'],$video = false,$strict = false)\n {\n\n $client = new Client();\n // $client->setClient(new GuzzleClient($config));\n $client->setClient(new GuzzleClient(['cookies' => true]));\n $client->setHeader('User-Agent','Mozilla/5.0 (Windows NT 10.0; Win64; x64)');\n //AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063');\n $client->setHeader('Accept', '*/*');\n $client->setHeader('Accept-Encoding', 'gzip, deflate, br');\n $client->setHeader('Connection:', 'Keep-Alive');\n\n // echo $strSearch .\"<br/>\";\n foreach ($country as $pays) {\n\n if($strict)\n {\n $url = $this->queryToUrl('\"'.$strSearch.'\"', 0, $nb, $pays,$video);\n }\n else\n {\n $url = $this->queryToUrl($strSearch, 0, $nb, $pays,$video);\n }\n // $url = $this->queryToUrl($strSearch, 0, $nb, $country[0],$video);\n\n //echo $strSearch;\n //$url = \"http://www.google.com/search?q=\".$strSearch.\"&hl=en&start=0&sa=N\";\n\n //check if the connection to remote site have succeed\n\n $crawler = null;\n // Go to the symfony.com website\n try {\n\n $crawler = $client->request('GET', $url);\n $this->continue = true;\n } catch (ConnectException $e) {\n //Catch the guzzle connection errors over here.These errors are something\n // like the connection failed or some other network error\n $number = -1;\n if($this->eager)\n {\n $number = count($this->searchResultsDB);\n }\n else\n {\n $number = count($this->searchResults);\n }\n\n if(!($number > 0))\n {\n //throwException($e);\n $client->request('GET', $url);\n }\n\n }\n\n if($this->continue)\n {\n //echo $crawler->html();\n $this->resultHeader[$this->count] = [];\n $this->resultLink[$this->count] = [];\n $this->resultLink_text[$this->count] = [];\n $this->resultBody[$this->count] = [];\n if($video)\n {\n $this->resultHeaderV[$this->countV] = [];\n $this->resultLinkV[$this->countV] = [];\n $this->resultLink_textV[$this->countV] = [];\n $this->resultVideo[$this->countV] = [];\n $this->resultBodyV[$this->countV] = [];\n }\n //on récupère les entêtes des résultats\n $crawler->filter('td div#center_col div.g')->each(function (Crawler $node, $i) {\n\n $header = $node->filter('h3 a');\n \n if ($header->count() > 0) {\n $header = $header->html();\n // echo $header.'<br/>';\n //print(\"<br/>\".$header);\n if (strpos($header, 'mages for') == false) {\n //echo'<br/> '.$this->count.'<br/>';\n //print_r($this->resultHeader);\n array_push($this->resultHeader[$this->count], $header);\n \n $link = $node->filter('div cite')->html();\n // echo 'link '.$link.'<br/>';\n array_push($this->resultLink[$this->count], $link);\n $link = $node->filter('div cite')->text();\n array_push($this->resultLink_text[$this->count], $link);\n\n if (strpos($link, 'books.google') == false) {\n\n array_push($this->resultBody[$this->count], $node->filter('div span.st')->html());\n } else {\n // echo 'link '. $node->filter('div.s')->html().'<br/>';\n array_push($this->resultBody[$this->count], $node->filter('div.s')->html());\n }\n }\n }\n\n });\n if($video)\n {\n $crawler->filter('td div#center_col div.g.videobox')->each(function (Crawler $node, $i) {\n $video = $node->filter('td img')->attr('src');\n array_push($this->resultVideo[$this->countV], $video);\n $header = $node->filter('td h3 a');\n if ($header->count() > 0) {\n $link = $header->attr('href');\n $link = substr($link,strpos($link,'='));\n $link = substr($link,1,strpos($link,'&')-1);\n array_push($this->resultLink_textV[$this->countV], $link);\n\n $header = $header->html();\n //print(\"<br/>\".$header);\n if (strpos($header, 'mages for') == false) {\n array_push($this->resultHeaderV[$this->countV], $header);\n $link = $node->filter('div cite')->html();\n\n array_push($this->resultLinkV[$this->countV], $link);\n\n\n if (strpos($link, 'books.google') == false) {\n array_push($this->resultBodyV[$this->countV], $node->filter('div span.st')->html());\n } else {\n array_push($this->resultBodyV[$this->countV], $node->filter('div.s')->html());\n }\n }\n }\n\n });\n\n }\n $this->count++;\n if($video)\n {\n $this->countV++;\n }\n $min =[5,8,9,10,12,7];\n sleep(rand(0,1)*count($min));\n }\n //print count($searchResults);\n }\n //$url = 'http://freeproxylists.net/fr/?c=&pt=&pr=HTTPS&a%5B%5D=0&a%5B%5D=1&a%5B%5D=2&u=90';\n //$crawler = $client->request('GET', $url);\n // echo $crawler->html();\n\n }", "public static function setInitSessionSearch()\n {\n $mainframe = JFactory::getApplication();\n\n $main_person = $mainframe->getUserStateFromRequest(\"module.main_person\", 'null');\n $main_person2 = $mainframe->getUserStateFromRequest(\"module.main_person2\", 'null');\n $main_person3 = $mainframe->getUserStateFromRequest(\"module.main_person3\", 'null');\n $main_person4 = $mainframe->getUserStateFromRequest(\"module.main_person4\", 'null');\n\n $join = $mainframe->getUserStateFromRequest(\"module.join\", 'null');\n $country = $mainframe->getUserStateFromRequest(\"module.country\", 'null');\n $region = $mainframe->getUserStateFromRequest(\"module.region\", 'null');\n\n if ( ! ($main_person)) {\n $mainframe->setUserState(\"module.main_person\", $main_person);\n }\n\n if ( ! ($main_person2)) {\n $mainframe->setUserState(\"module.main_person2\", $main_person2);\n }\n\n if ( ! ($main_person3)) {\n $mainframe->setUserState(\"module.main_person3\", $main_person3);\n }\n\n if ( ! ($main_person4)) {\n $mainframe->setUserState(\"module.main_person3\", $main_person4);\n }\n\n if ( ! ($join)) {\n $mainframe->setUserState(\"module.join\", $join);\n }\n\n if ( ! ($country)) {\n $mainframe->setUserState(\"module.country\", $country);\n }\n\n if ( ! ($region)) {\n $mainframe->setUserState(\"module.region\", $region);\n }\n }", "public function addSearch(string $domain): void {}", "protected function _initSearch()\n {\n $this->where['is_del'] = array('eq', 0);\n $this->order = 'create_time desc';\n }", "public function init()\n\t{\n\t\t$this->setAction('/catalog/item/search')\n\t\t\t->setMethod('get');\n\t\t\t\n\t\t// sukuriamas \"text\" laukas paieskos zodziu ivedimui\n\t\t$query = new Zend_Form_Element_Text('query');\n\t\t$query->setLabel('Raktiniai žodžiai:')\n\t\t\t->setOptions(array('size' => '20'))\n\t\t\t->addFilter('HtmlEntities')\n\t\t\t->addFilter('StringTrim');\n\t\t\t\n\t\t$query->setDecorators(array(\n\t\t\tarray('ViewHelper'),\n\t\t\tarray('Errors'),\n\t\t\tarray('Label', array('tag' => '<span>'))\n\t\t));\n\t\t\n\t\t// sukuriamas \"submit\" mygtukas\n\t\t$submit= new Zend_Form_Element_Submit('submit');\n\t\t$submit->setLabel('Ieškoti')\n\t\t\t->setOptions(array('class' => 'submit'));\n\t\t\n\t\t$submit->setDecorators(array(\n\t\t\tarray('ViewHelper'),\n\t\t));\n\t\t\n\t\t// elementai idedami i forma\n\t\t$this->addElement($query)\n\t\t\t->addElement($submit);\n\t}", "function culturefeed_search_ui_redirect_cnapi_urls() {\n\n $new_query = array();\n\n // Check if we are on a searchable page.\n $current_search_page = culturefeed_get_searchable_type_by_path();\n if (!$current_search_page) {\n return;\n }\n\n // Regio is now location.\n if (isset($_GET['regio'])) {\n $region = db_query('SELECT name FROM {culturefeed_search_terms} WHERE tid = :tid', array(':tid' => 'reg.' . $_GET['regio']))->fetchField();\n if ($region) {\n $new_query['location'] = $region;\n }\n }\n\n // City id is now location.\n if (isset($_GET['cityid'])) {\n $result = db_query('SELECT name, zip FROM {culturefeed_search_cities} WHERE cid = :cityid', array(':cityid' => $_GET['cityid']))->fetchObject();\n if ($result) {\n $new_query['location'] = $result->zip . ' ' . $result->name;\n }\n }\n\n // City can be mapped to location.\n if (isset($_GET['city'])) {\n $query = $_GET['city'];\n $new_query['location'] = $query;\n }\n\n // Query is now search.\n if (isset($_GET['query'])) {\n $query = $_GET['query'];\n $new_query['search'] = $query;\n }\n\n // K is now keyword.\n if (isset($_GET['k'])) {\n $k = $_GET['k'];\n $new_query['keyword'] = $k;\n }\n\n // Datetype is now facet[datetype][0].\n if (isset($_GET['datetype'])) {\n $datetype = $_GET['datetype'];\n $new_query['facet']['datetype'][0] = $datetype;\n }\n\n // Date is now date_range.\n if (isset($_GET['date'])) {\n $date = $_GET['date'];\n $new_date = date(\"d/m/Y\", strtotime($date));\n $new_query['date_range'] = $new_date;\n }\n\n // Headings are now a combination of facets.\n if (isset($_GET['heading'])) {\n\n if (strpos($_GET['heading'], ';') !== false) {\n $heading = explode(';', $_GET['heading']);\n if ($heading[0] !== '') {\n $heading = $heading[0];\n }\n else {\n $heading = $heading[1];\n }\n }\n else {\n $heading = $_GET['heading'];\n }\n\n $mapping = culturefeed_search_ui_get_headings_mapping($heading);\n\n // Voor kinderen is not a facet\n if (isset($mapping['voor_kinderen'])) {\n $new_query['voor-kinderen'] = '1';\n unset($mapping['voor_kinderen']);\n }\n foreach ($mapping as $category => $id) {\n $new_query['facet'][$category][0] = $id;\n }\n }\n\n if (!empty($new_query)) {\n drupal_goto(current_path(), array('query' => $new_query), 301);\n }\n\n}", "function getRecentSearches()\n {\n }", "public function initSpider(){\n echo \"<p>Searching: <b>\".$this->keyword.\"</b> and Looking for: <b>\".$this->website.\"</b></p>\";\n echo str_repeat(\" \", 256);\n $contador=0;\n $encontre=false;\n $_GET['weboriginal']=\"\";\n $_GET['webcontador']=\"\";\n $i=10;\n $c=1;\n while($c<=10) { \n echo \"<ul><li><b>Searching in Page: $c</b></li>\"; \n flush();ob_flush();\n $records= $this->getRecordsAsArray($this->url); \n $count=count($records);\n echo \"<ul>\";\n for($k=0;$k<$count;$k++){\n $j=$k+1;\n $link=$records[$k][2];\n $linkOriginal = $link;\n $link=strip_tags($link);\n $link=str_replace(\"http://www.\",\"\",$link);\n $link=str_replace(\"http://\",\"\",$link);\n $link=str_replace(\"www.\",\"\",$link);\n $pos=strpos($link, \"/\");\n $link=trim(substr($link,0,$pos));\n $contador++;\n if($this->website==$link){\n $domain=$this->website;\n $_GET['weboriginal']=$linkOriginal;\n $_GET['webcontador']=$contador;\n echo \"<li><h1>Result was found in Page: $c and Record: $j</h1></li>\";\n echo \"Web original \".$linkOriginal;\n echo \"<div>Congrats, We searched google's top 10 pages for <b>\\\"\".$this->keyword.\"</b>\\\", we found your domain <b>\\\"$domain\\\"</b> listed on page: $c at $j place </div>\";echo \"</ul></ul>\";\n $encontre=true;\n break;\n }\n else{\n echo \"<li>Result not found on Page: $c and Record: $j</li>\";\n } \n }\n if($encontre==true){\n break;\n }\n echo \"</ul></ul>\";\n $c++;\n $this->url = $this->updateUrl($this->keyword, $i,$this->motor);\n }\n echo \"Crawled through all 10 pages.\"; \n \n if($this->page==false){\n $domain=$this->website;\n $keyword=$this->keyword;\n echo \"<div>Sorry, We searched google's top 10 pages for <b>\\\"$keyword\\\"</b>, but was unable to find your domain <b>\\\"$domain\\\"</b> listed anywhere. </div>\";\n }\n else {\n $page=$this->page;\n $records=$this->records;\n $domain=$this->website;\n $keyword=$this->keyword;\n echo \"<div>Congrats, We searched google's top 10 pages for <b>\\\"$keyword\\\"</b>, we found your domain <b>\\\"$domain\\\"</b> listed on page: $page at $record place </div>\";\n }\n }", "public function __construct() {\n $referer = $_SERVER['HTTP_REFERER'];\n \n // array with common analyticbots\n $urlsArray = array( \"buttons-for-website.com\",\n \"buttons-for-your-website.com\",\n \"videos-for-your-business.com\",\n \"success-seo.com\",\n \"semaltmedia.com\",\n \"dailyrank.net\",\n \"sitevaluation.org\",\n \"100dollars-seo.com\",\n \"forum69.info\",\n \"best-seo-solution.com\",\n \"best-seo-offer.com\",\n \"semalt.semalt.com\",\n \"semalt.com\",\n \"7makemoneyonline.com\",\n \"anticrawler.org\",\n \"baixar-musicas-gratis.com\",\n \"descargar-musica-gratis.net\" );\n \n foreach($urlsArray as $url) {\n if(strpos($referer, $url) !== false) { // is a bot\n // return \"404 - not found\"\n http_response_code(404);\n // stop the whole page\n exit();\n return true;\n } else { // is not a bot\n return false;\n }\n }\n }", "function __construct() {\n add_action( 'plugins_loaded', array( $this, 'ssSearchPluginsLoadedHandlers' ) );\n }", "function analytics_init() {\n\t// load Google Analytics JS\n\telgg_extend_view(\"page/elements/head\", \"analytics/head/google\", 999);\n\telgg_extend_view(\"page/elements/head\", \"analytics/head/piwik\", 999);\n\t\n\t// extend the page footer\n\telgg_extend_view(\"page/elements/foot\", \"analytics/footer\", 999);\n\t\n\t// register page handler\n\telgg_register_page_handler(\"analytics\", \"analytics_page_handler\");\n\t\n\t// register tracking events\n\telgg_register_event_handler(\"all\", \"object\", \"analytics_event_tracker\");\n\telgg_register_event_handler(\"all\", \"group\", \"analytics_event_tracker\");\n\telgg_register_event_handler(\"all\", \"user\", \"analytics_event_tracker\");\n\t\n\t// register plugin hooks\n\telgg_register_plugin_hook_handler(\"action\", \"all\", \"analytics_action_plugin_hook\");\n\t\n}", "function init() {\n\t\t$this->addClass('SiteTree');\n\n\t\t// Add fields to index\n\t\t$this->addAllFulltextFields();\n\n\t\t// Allow opt-out from search results\n\t\t$this->addFilterField('ShowInSearch');\n\n\t\t// Don't index draft content\n\t\t$this->excludeVariantState(array('SearchVariantVersioned' => 'Stage'));\n\n\t\t// Boost field relevancy\n\t\t$this->addBoostedField('Title', null, array(), 1.5);\n\t}", "function location_autocomplete_init() {\n\telgg_extend_view('css/elgg', 'location_autocomplete/css');\n \n elgg_register_js('elgg.jquery_min', \"http://code.jquery.com/jquery-1.4.2.min.js\");\n \n elgg_register_js('elgg.google_map', \"http://maps.google.com/maps/api/js?sensor=false\");\n \n $custom_js = elgg_get_simplecache_url('js', 'location_autocomplete/jquery_custom');\n\telgg_register_js('elgg.jquery_custom', $custom_js); \n \n $suggests_js = elgg_get_simplecache_url('js', 'location_autocomplete/geo_suggests');\n\telgg_register_js('elgg.geo_suggests', $suggests_js); \n \n elgg_extend_view(\"forms/profile/edit\", \"location_autocomplete/load_js\");\n \n elgg_extend_view(\"forms/register\", \"location_autocomplete/load_js\"); \n\n\n}", "public function __construct($keyword=\"\", $website=\"\",$motor='http://www.google.es'){\n if(trim($keyword)==\"\"){\n trigger_error(\"Keyword cannot the left blank.\",E_USER_ERROR); die();\n }\n if(trim($website)==\"\"){\n trigger_error(\"Website cannot the left blank.\",E_USER_ERROR); die();\n }\n $website=strtolower(trim($website));\n $website=str_replace(\"http://www.\",\"\",$website);\n $website=str_replace(\"http://\",\"\",$website);\n $website=str_replace(\"www.\",\"\",$website);\n $website=str_replace(\"/\",\"\",$website);\n \n $this->website=$website;\n $this->keyword=trim($keyword);\n $this->motor=$motor;\n $this->enableVerbose= '';//$enableVerbose; \n $this->url=$this->updateUrl($keyword, $this->start,$motor);\n }", "protected function addSearchConfigs()\n {\n\n $this['textQueryBuilder'] = function () {\n return new TextQueryBuilder();\n };\n\n $this['searchManager'] = function ($c) {\n return new SearchManager($c['databaseAdapter'], $c['queue'], $c['request'], array(\n $c['textQueryBuilder']\n ));\n };\n\n }", "public function updatingSearch()\n {\n $this->gotoPage(1);\n }", "static function init(){\n\t\tadd_action('widgets_init', array(get_class(), 'register_search_widget_area'));\n\t\tadd_action('wp_enqueue_scripts', array(get_class(), 'enqueue_scripts'));\n\t\t\n\t\t//register the custom taxonomies\n\t\tadd_action('init', array(get_class(), 'register_search_taxonomies'));\n\t\t\n\t\t//add custom templates\n\t\tadd_filter('template_include', array(get_class(), 'include_new_template'));\n\t\t\n\t\tadd_filter('wp_title', array(get_class(), 'filter_the_title'), 10, 3);\n\t}", "function __construct()\n {\n parent::__construct();\n $this->CLIENT_ID = GOOGLE_CLIENT_ID;\n $this->CLIENT_SECRET = GOOGLE_CLIENT_SECRET;\n $this->REDIRECT_URI = base_url().\"social/google/authorize/\";\n }", "function dl_custom_search_url() {\n\n\tif ( is_search() && ! empty( $_GET['s'] ) ) {\n\t\twp_redirect( home_url( \"/search/\" ) . urlencode( get_query_var( 's' ) ) );\n\t\texit();\n\t}\n\n}", "function make_urls() {\n $url = '/search/' . $this->id . '/';\n $this->append_urls('self', $url);\n }", "public function GoogleSiteSearchForm()\n {\n if ($page = GoogleSiteSearchPage::get()->first()) {\n $label = $this->owner->config()->get('submit_button_label');\n $formLabel = $this->owner->config()->get('input_label');\n\n $form = new Form(\n Controller::curr(),\n 'GoogleSiteSearchForm',\n new FieldList(new TextField('Search', $formLabel)),\n new FieldList(new FormAction('doSearch', $label))\n );\n\n $form->setFormMethod('GET');\n $form->setFormAction($page->Link());\n $form->disableSecurityToken();\n $form->loadDataFrom($_GET);\n\n return $form;\n }\n }", "public function get_description()\n {\n return 'Embed Google site search onto your site.\n\nThis addon consists of two blocks: a side block with the google search form and a main block, where google results are displayed. When you install this addon it will create a standard results page called [tt]_google_search[/tt]; this page can be edited or customised in the same way as any other page.\n\nIn addition you can create your own page or put a [tt]main_google_results[/tt] block on an existing page. When you add the [tt]side_google_search[/tt] block you can choose a page_name parameter, but it is only needed if you are sending the results to a non-default page you have added the google results block on.\n\nExample:\n[code=\\'Comcode\\'][block id=\"xxx\"]side_google_search[/block][/code]\nThe [tt]xxx[/tt] is from [tt]var cx = \\'xxx\\';[/tt] in the code [url=\"Google provides\"]https://cse.google.com/cse/[/url]. We use our own customised JavaScript rather than Google\\'s, but we need the ID they embed in it.\n\nNote that it is a requirement that your [tt]_google_search[/tt] page is in a zone where the side search block displays, as these two interface together once a search is initiated.';\n }", "public static function googleArray($query)\r\n\t{\r\n\t\t$result = array ();\r\n\t\t$pages = 1;\r\n\t\t$delay = 0;\r\n\t\tfor($start=0;$start<$pages;$start++)\r\n\t\t{\r\n\t\t\t$url = 'http://www.google.'. GOOGLE_TLD .'/custom?q='.$query.'&filter=0'.\r\n\t\t\t\t '&num=100'.(($start == 0) ? '' : '&start='.$start.'00');\r\n\t\t\t$str = SEOstats::cURL($url);\t\t\t\r\n\t\t\tif (preg_match(\"#answer=86640#i\", $str))\r\n\t\t\t{\r\n\t\t\t\t$e = 'Please read: http://www.google.com/support/websearch/' .\r\n\t\t\t\t\t 'bin/answer.py?&answer=86640&hl=en';\r\n\t\t\t\tthrow new SEOstatsException($e);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$html = new DOMDocument();\r\n\t\t\t\t@$html->loadHtml( $str );\r\n\r\n\t\t\t\t$xpath = new DOMXPath( $html );\r\n\t\t\t\t$links = $xpath->query( \"//div[@class='g']//a\" );\r\n\t\t\t\t$descs = $xpath->query( \"//td[@class='j']//div[@class='std']\" );\r\n\t\t\t\t$i = 0;\r\n\t\t\t\tforeach ( $links as $link )\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!preg_match('#cache#si',$link->textContent) && \r\n\t\t\t\t\t !preg_match('#similar#si',$link->textContent))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$result []= array(\r\n\t\t\t\t\t\t\t'url' => $link->getAttribute('href'), \r\n\t\t\t\t\t\t\t'title' => utf8_decode($link->textContent), \r\n\t\t\t\t\t\t\t'descr' => utf8_decode($descs->item($i)->textContent)\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t$i++; \r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\tif ( preg_match('#<div id=\"nn\"><\\/div>#i', $str) ||\r\n\t\t\t\t\t preg_match('#<div id=nn><\\/div>#i', $str))\r\n\t\t\t\t{\r\n\t\t\t\t\t$pages += 1;\r\n\t\t\t\t\t$delay += 200000;\r\n\t\t\t\t\tusleep($delay);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$pages -= 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "function GoogleGeoCoder() \r\n {\r\n parent::GeoCoder();\r\n }", "function getGeoSearchUrl($ar){\n $p = new XParam($ar, array());\n $table = $p->get('table');\n $fieldname = $p->get('fieldname');\n $moid = $this->_moid;\n $templates = 'googlesearch.html';\n return $GLOBALS['TZR_SESSION_MANAGER']::complete_self(true, true).\"skip=1&&moid={$moid}&class=XModMap&table={$table}&field={$fieldname}&provider=google&function=geoSearch&template=xmodmap/geosearch.html&tplentry=br\";\n }", "public function InitializeSearch($cn) {\r\n //SetDisplayValues($attributes) \r\n\r\n /* Campos de busqueda */\r\n $this->m_obj->GetField(\"cap_code\")->SetDisplayValues(Array(\"Name\"=>\"cap_code\", \"Label\"=>\"Capacitación Nro\", \"Type\"=>\"int\", \"IsPK\"=>true, \"IsForDB\"=>true, \"Order\"=>101, \"Presentation\"=>\"INT\", \"IsNullable\"=>false));\r\n $this->m_obj->GetField(\"mon_code\")->SetDisplayValues(Array(\"Name\"=>\"mon_code\", \"Label\"=>\"Monitoreo Nro\", \"Type\"=>\"int\", \"IsForDB\"=>true, \"Order\"=>102, \"Presentation\"=>\"INT\"));\r\n $this->m_obj->GetField(\"cir_code\")->SetDisplayValues(Array(\"Name\"=>\"cir_code\", \"Label\"=>\"Circuito\", \"Type\"=>\"int\", \"IsForDB\"=>true, \"Order\"=>103, \"Presentation\"=>\"CIRCUITO_ACTIVO\", \"IsNullable\"=>false, \"IsVisible\"=>true));\r\n $this->m_obj->GetField(\"use_code_operador\")->SetDisplayValues(Array(\"Name\"=>\"use_code_operador\", \"Label\"=>\"Operador\", \"Type\"=>\"int\", \"IsForDB\"=>true, \"Order\"=>104, \"Presentation\"=>\"OPERADOR\", \"IsNullable\"=>false, \"IsVisible\"=>true));\r\n $this->m_obj->GetField(\"use_code_supervisor\")->SetDisplayValues(Array(\"Name\"=>\"use_code_supervisor\", \"Label\"=>\"Supervisor Asignado\", \"Type\"=>\"int\", \"IsForDB\"=>true, \"Order\"=>105, \"Presentation\"=>\"SUPERVISOR\", \"IsNullable\"=>false, \"IsVisible\"=>true));\r\n $this->m_obj->GetField(\"cap_status\")->SetDisplayValues(Array(\"Name\"=>\"cap_status\", \"Label\"=>\"Estado\", \"Size\"=>20, \"IsForDB\"=>true, \"Order\"=>107, \"Presentation\"=>\"CAP_STATUS\", \"InitialValue\"=>\"PENDIENTE\"));\r\n }", "public function init() {\r\n static $initiated;\r\n if ($initiated) return;\r\n $initiated = true;\r\n\r\n // Load all vBNexus options\r\n foreach($GLOBALS['vbulletin']->options as $option => $value) {\r\n preg_match('/^vbnexusconfig_(.+)/', $option, $matches);\r\n if ($matches) $this->options[$matches[1]] = $value;\r\n }\r\n\r\n // Some redundancy for coherence (these keys are config not options)\r\n $this->config['gfc_key'] = $this->options['google_apikey'];\r\n $this->config['fb_appId'] = $this->options['facebook_appid'];\r\n $this->config['fb_secret'] = $this->options['facebook_applicationsecret'];\r\n $this->config['buttons_position'] = $this->options['buttons_position'];\r\n\r\n // Set the right scope for our Facebook App\r\n $this->config['fb_perms'] = 'email';\r\n if ($this->options['enable_feeds']) {\r\n $this->config['fb_perms'] .= ',publish_stream';\r\n }\r\n\r\n // Quick checks to set flags in order to avoid unnecessary checks later\r\n $this->enabled['fb'] = !empty($this->config['fb_appId']) && !empty($this->config['fb_secret']);\r\n $this->enabled['gfc'] = !empty($this->config['gfc_key']);\r\n\r\n $this->importCookie();\r\n }", "function _set_search_keywords ($referer = \"\") {\n\t\n\t\tif (empty($referer)) {\n\t\t\t$referer = $_SERVER[\"HTTP_REFERER\"];\n\t\t\t$batch_mode = true;\n\t\t}\n\t\t// Return error message if no referer\n\t\tif (!strlen($referer)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// process parsing referer field\n\t\t$parsed_url\t= @parse_url($referer);\n\t\t$host\t\t= $parsed_url[\"host\"];\n\t\t$query\t\t= $parsed_url[\"query\"].\"\\r\\n\";\n\t\t\n\t\t// Check if search engine is known by system\n\t\tif (!isset($this->_search_engines[$host])) {\n\t\t\treturn false;\n\t\t}\n\t\t$cur_se\t\t\t= $this->_search_engines[$host];\n\t\t// Process keywords\n\t\t$parsed_url[\"query\"] = str_replace([\"./?\",\"./\"], \"\", $parsed_url[\"query\"]);\n\t\tparse_str($parsed_url[\"query\"], $parsed_query);\n\t\t$q_s_charset\t= $parsed_query[$cur_se[\"q_s_charset\"]];\n\t\t$q_s_word\t\t= $parsed_query[$cur_se[\"q_s_word\"]];\n\t\t$charset\t\t= isset($q_s_charset) ? $q_s_charset : $cur_se[\"def_charset\"];\n\t\t$search_query\t= isset($q_s_word) ? $q_s_word : $parsed_query[$cur_se[\"q_s_word2\"]];\n\t\t$search_query\t= trim(stripslashes(strlen($charset) ? iconv($charset, conf('charset'), $search_query) : $search_query));\n\t\t// Check for search query\n\t\tif (empty($search_query)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Set referral cookie\n\t\t$COOKIE_VAR_NAME = \"ref_code\";\n\t\tif (!$batch_mode && empty($_COOKIE[$COOKIE_VAR_NAME])) {\n\t\t\t$code = $cur_se[\"name\"];\n\t\t\tsetcookie($COOKIE_VAR_NAME, $code, time() + 86400 * 30, \"/\");\n\t\t}\n\t\t// Limit number of keywords\n\t\tif (!empty($this->MAX_TOTAL_KEYWORDS)) {\n\t\t\tlist($current_keywords_num) = db()->query_fetch(\"SELECT COUNT(*) AS `0` FROM \".db('search_keywords').\"\");\n\t\t}\n\t\tif (!empty($this->MAX_TOTAL_KEYWORDS) && $current_keywords_num >= $this->MAX_TOTAL_KEYWORDS) {\n\t\t\tdb()->_add_shutdown_query(\n\t\t\t\t\"UPDATE \".db('search_keywords').\" \n\t\t\t\tSET hits = hits + 1, \n\t\t\t\t\tlast_update = \".time().\"\n\t\t\t\tWHERE text='\"._es($search_query).\"'\"\n\t\t\t);\n\t\t} else {\n\t\t\t// Check if such record already exists\n\t\t\t$sql = \"INSERT INTO \".db('search_keywords').\" (\n\t\t\t\t\tengine,\n\t\t\t\t\ttext,\n\t\t\t\t\tref_url,\n\t\t\t\t\tsite_url,\n\t\t\t\t\tlast_update,\n\t\t\t\t\thits\n\t\t\t\t) VALUES (\n\t\t\t\t\t\".intval($this->_search_engines[$host][\"id\"]).\",\n\t\t\t\t\t'\"._es($search_query).\"',\n\t\t\t\t\t'\"._es($referer).\"',\n\t\t\t\t\t'\"._es(\"http://\".$_SERVER[\"HTTP_HOST\"].$_SERVER[\"REQUEST_URI\"]).\"',\n\t\t\t\t\t\".time().\",\n\t\t\t\t\thits + 1 \n\t\t\t\t) ON DUPLICATE KEY UPDATE hits = hits + 1\\r\\n\";\n\t\t\tdb()->_add_shutdown_query($sql);\n\t\t}\n\t\t// Check if we need to update most popular right now\n\t\tif ($this->UPDATE_POPULAR_RAND > 1) {\n\t\t\tif (rand(1, $this->UPDATE_POPULAR_RAND) != 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// Update system cache\n\t\tif (!$batch_mode && main()->USE_SYSTEM_CACHE) {\n\t\t\tmain()->_add_shutdown_code('cache()->refresh(\"search_keywords_most_popular\");');\n\t\t}\n\t}", "protected function search()\n\t{\n\t\treturn Phpfox::getLib('search');\t\n\t}", "function get_initial_results()\n{\n\tinclude('global_vars_insert.php');\n\n\t////////////////////////////////////////////\n\t/////\tBING INITIAL SEARCH DATA \n\t////////////////////////////////////////////\n\t\n\tinclude('bing_search_initial.php');\n\n ////////////////////////////////////////////\n\t/////\tENTIREWEB INITIAL SEARCH DATA \n\t////////////////////////////////////////////\n \n\tinclude('entireweb_search_initial.php');\n\n\t////////////////////////////////////////////\n\t/////\tBLEKKO INITIAL SEARCH REQUEST \n\t//////////////////////////////////////////// \n\t\n\tinclude('blekko_search_initial.php');\n\t\n\t////////////////////////////////////////////\n\t/////\tCURL MULTI-SESSION DATA \n\t////////////////////////////////////////////\n\n\tinclude('curl.php');\n}", "function sopac_search_form_basic() {\n\n $locum = sopac_get_locum('locum');\n $locum_cfg = $locum->locum_config;\n $getvars = sopac_parse_get_vars();\n\n $actions = sopac_parse_uri();\n if ($actions[0] == \"search\") {\n if ($actions[3]) {\n $actions[2] = $actions[2] . \"/\" . $actions[3];\n urlencode($actions[2]);\n }\n $search_query = $actions[2];\n $stype_selected = $actions[1] ? 'cat_' . $actions[1] : 'cat_keyword';\n }\n $sformats = array('' => 'Everything');\n foreach ($locum_cfg[format_groups] as $sfmt => $sfmt_codes) {\n $sformats[preg_replace('/,[ ]*/', '|', trim($sfmt_codes))] = ucfirst($sfmt);\n }\n\n $stypes = array(\n 'cat_keyword' => t('Keyword'),\n 'cat_title' => t('Title'),\n 'cat_author' => t('Author'),\n 'cat_series' => t('Series'),\n 'cat_tags' => t('Tags'),\n 'cat_reviews' => t('Reviews'),\n 'cat_subject' => t('Subject'),\n 'cat_callnum' => t('Call Number'),\n );\n\n $sortopts = array(\n 'relevance' => t('Relevance'),\n 'newest' => t('Newest First'),\n 'oldest' => t('Oldest First'),\n );\n\n $sformats = array('' => 'Everything');\n foreach ($locum_cfg['format_groups'] as $sfmt => $sfmt_codes) {\n $sformats[preg_replace('/,[ ]*/', '|', trim($sfmt_codes))] = ucfirst($sfmt);\n }\n if (is_null($prompt)) {\n $prompt = t('Enter your keywords');\n }\n\n // Initialize the form\n $form = array(\n '#attributes' => array('class' => 'search-form'),\n '#validate' => array('sopac_search_catalog_validate'),\n '#submit' => array('sopac_search_catalog_submit'),\n );\n // Start creating the basic search form\n $form['inline'] = array(\n '#prefix' => '<div class=\"basic-search-inline\">',\n '#suffix' => '</div>'\n );\n $form['inline']['search_query'] = array(\n '#type' => 'textfield',\n '#default_value' => $search_query,\n '#size' => 25,\n '#maxlength' => 255,\n '#attributes' => array('x-webkit-speech' => 'true'),\n );\n $form['inline']['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Search'),\n );\n\n $form['filters'] = array(\n '#prefix' => '<div id=\"filters\">',\n '#suffix' => '</div>'\n );\n $form['filters']['search_type'] = array(\n '#type' => 'select',\n '#title' => t('Search By'),\n '#default_value' => $stype_selected,\n '#options' => $stypes,\n );\n $form['filters']['search_format'] = array(\n '#type' => 'select',\n '#title' => t('Material'),\n '#default_value' => $_GET['search_format'],\n '#selected' => $_GET['search_format'],\n '#options' => $sformats,\n );\n $form['filters']['limit_avail'] = array(\n '#type' => 'select',\n '#title' => 'On Shelf At',\n '#options' => array_merge(array('' => '--', 'any' => \"Any Location\"), $locum_cfg['branches']),\n '#default_value' => $getvars['limit_avail'],\n );\n $form['advanced'] = array(\n '#value' => '<div class=\"basic-search-links\">' .\n l(\"Advanced Search\", variable_get('sopac_url_prefix', 'cat/seek') . '/advanced') .\n '&nbsp;|&nbsp;' .\n l(\"Search Tips\", variable_get('sopac_url_prefix', 'cat/seek') . '/tips') .\n '</div>',\n );\n\n return $form;\n}", "public function init() {\r\n\t\t// Add Google Analytics auth scopes.\r\n\t\tadd_filter( 'beehive_google_auth_scopes', array( $this, 'auth_scopes' ) );\r\n\r\n\t\t// Setup profiles after authentication.\r\n\t\tadd_action( 'beehive_google_auth_completed', array( $this, 'setup_profiles' ), 10, 3 );\r\n\r\n\t\t// Stats menu is required only when logged in.\r\n\t\tif ( Helper::instance()->can_get_stats( $this->is_network() ) ) {\r\n\t\t\t// Setup widgets.\r\n\t\t\tadd_action( 'widgets_init', array( $this, 'widgets' ) );\r\n\t\t}\r\n\r\n\t\t// Initialize sub classes.\r\n\t\tAdmin::instance()->init();\r\n\t\tStats::instance()->init();\r\n\t\tTracking::instance()->init();\r\n\r\n\t\t// Rest API.\r\n\t\tEndpoints\\Stats::instance();\r\n\t\tEndpoints\\Data::instance();\r\n\t}", "private function search_bar()\n\t{\n\n\t\t# code...\n\t}", "function SetupSearchOptions() {\n\t\tglobal $Language;\n\t\t$this->SearchOptions = new cListOptions();\n\t\t$this->SearchOptions->Tag = \"div\";\n\t\t$this->SearchOptions->TagClassName = \"ewSearchOption\";\n\n\t\t// Search button\n\t\t$item = &$this->SearchOptions->Add(\"searchtoggle\");\n\t\t$SearchToggleClass = ($this->SearchWhere <> \"\") ? \" active\" : \" active\";\n\t\t$item->Body = \"<button type=\\\"button\\\" class=\\\"btn btn-default ewSearchToggle\" . $SearchToggleClass . \"\\\" title=\\\"\" . $Language->Phrase(\"SearchPanel\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"SearchPanel\") . \"\\\" data-toggle=\\\"button\\\" data-form=\\\"fsolicitudlistsrch\\\">\" . $Language->Phrase(\"SearchLink\") . \"</button>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Show all button\n\t\t$item = &$this->SearchOptions->Add(\"showall\");\n\t\t$item->Body = \"<a class=\\\"btn btn-default ewShowAll\\\" title=\\\"\" . $Language->Phrase(\"ShowAll\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"ShowAll\") . \"\\\" href=\\\"\" . $this->PageUrl() . \"cmd=reset\\\">\" . $Language->Phrase(\"ShowAllBtn\") . \"</a>\";\n\t\t$item->Visible = ($this->SearchWhere <> $this->DefaultSearchWhere && $this->SearchWhere <> \"0=101\");\n\n\t\t// Button group for search\n\t\t$this->SearchOptions->UseDropDownButton = FALSE;\n\t\t$this->SearchOptions->UseImageAndText = TRUE;\n\t\t$this->SearchOptions->UseButtonGroup = TRUE;\n\t\t$this->SearchOptions->DropDownButtonPhrase = $Language->Phrase(\"ButtonSearch\");\n\n\t\t// Add group option item\n\t\t$item = &$this->SearchOptions->Add($this->SearchOptions->GroupOptionName);\n\t\t$item->Body = \"\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Hide search options\n\t\tif ($this->Export <> \"\" || $this->CurrentAction <> \"\")\n\t\t\t$this->SearchOptions->HideAllOptions();\n\t\tglobal $Security;\n\t\tif (!$Security->CanSearch()) {\n\t\t\t$this->SearchOptions->HideAllOptions();\n\t\t\t$this->FilterOptions->HideAllOptions();\n\t\t}\n\t}", "function get_search_link($query = '')\n {\n }", "function SetupSearchOptions() {\n\t\tglobal $Language;\n\t\t$this->SearchOptions = new cListOptions();\n\t\t$this->SearchOptions->Tag = \"div\";\n\t\t$this->SearchOptions->TagClassName = \"ewSearchOption\";\n\n\t\t// Search button\n\t\t$item = &$this->SearchOptions->Add(\"searchtoggle\");\n\t\t$SearchToggleClass = ($this->SearchWhere <> \"\") ? \" active\" : \" active\";\n\t\t$item->Body = \"<button type=\\\"button\\\" class=\\\"btn btn-default ewSearchToggle\" . $SearchToggleClass . \"\\\" title=\\\"\" . $Language->Phrase(\"SearchPanel\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"SearchPanel\") . \"\\\" data-toggle=\\\"button\\\" data-form=\\\"fneonatallistsrch\\\">\" . $Language->Phrase(\"SearchLink\") . \"</button>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Show all button\n\t\t$item = &$this->SearchOptions->Add(\"showall\");\n\t\t$item->Body = \"<a class=\\\"btn btn-default ewShowAll\\\" title=\\\"\" . $Language->Phrase(\"ShowAll\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"ShowAll\") . \"\\\" href=\\\"\" . $this->PageUrl() . \"cmd=reset\\\">\" . $Language->Phrase(\"ShowAllBtn\") . \"</a>\";\n\t\t$item->Visible = ($this->SearchWhere <> $this->DefaultSearchWhere && $this->SearchWhere <> \"0=101\");\n\n\t\t// Button group for search\n\t\t$this->SearchOptions->UseDropDownButton = FALSE;\n\t\t$this->SearchOptions->UseImageAndText = TRUE;\n\t\t$this->SearchOptions->UseButtonGroup = TRUE;\n\t\t$this->SearchOptions->DropDownButtonPhrase = $Language->Phrase(\"ButtonSearch\");\n\n\t\t// Add group option item\n\t\t$item = &$this->SearchOptions->Add($this->SearchOptions->GroupOptionName);\n\t\t$item->Body = \"\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Hide search options\n\t\tif ($this->Export <> \"\" || $this->CurrentAction <> \"\")\n\t\t\t$this->SearchOptions->HideAllOptions();\n\t\tglobal $Security;\n\t\tif (!$Security->CanSearch()) {\n\t\t\t$this->SearchOptions->HideAllOptions();\n\t\t\t$this->FilterOptions->HideAllOptions();\n\t\t}\n\t}", "function gc_get_from_api() {\n $keyword = $_POST['keyword'];\n $hub = $_POST['hub'];\n $type = $_POST['type'];\n $url = 'https://graphcommons.com/api/v1/' . $type . 's/search?query='. urlencode($keyword) . '&limit=' . $this->api_limit;\n\n if ( $hub !== '' ) {\n $url = $url . '&hub=' . $hub;\n }\n\n $this->gc_get_url_and_print_json( $url );\n }", "function ml_wpsearch_search($querytext)\n{\n $querytext = trim($querytext);\n if (!$querytext) {\n return [null, null, null];\n }\n\n $results = ml_wpsearch_search_query($querytext, array(\n 'start' => isset($_REQUEST['start']) ? $_REQUEST['start'] : 1,\n 'pageLength' => isset($_REQUEST['pageLength']) ? $_REQUEST['pageLength'] : 10,\n ));\n if (null === $results)\n {\n return [null, null, null];\n }\n\n if ($results->getTotal() < 1) {\n return [$results, null, null];\n }\n\n // Paging, we'll provide the URLs here, but it's up to the view\n // to display them.\n $searchPageUrl = ml_wpsearch_url();\n $nextLink = null;\n if ($results->getCurrentPage() < $results->getTotalPages()) {\n $nextLink = add_query_arg(array(\n 's' => urlencode($querytext),\n 'start' => $results->getNextStart(),\n 'pageLength' => $results->getPageLength(),\n ), $searchPageUrl);\n }\n\n $prevLink = null;\n if ($results->getCurrentPage() > 1) {\n $prevLink = add_query_arg(array(\n 's' => urlencode($querytext),\n 'start' => $results->getPreviousStart(),\n 'pageLength' => $results->getPageLength(),\n ), $searchPageUrl);\n }\n\n return [$results, $nextLink, $prevLink];\n}", "function SetupSearchOptions() {\n\t\tglobal $Language;\n\t\t$this->SearchOptions = new cListOptions();\n\t\t$this->SearchOptions->Tag = \"div\";\n\t\t$this->SearchOptions->TagClassName = \"ewSearchOption\";\n\n\t\t// Search button\n\t\t$item = &$this->SearchOptions->Add(\"searchtoggle\");\n\t\t$SearchToggleClass = ($this->SearchWhere <> \"\") ? \" active\" : \" active\";\n\t\t$item->Body = \"<button type=\\\"button\\\" class=\\\"btn btn-default ewSearchToggle\" . $SearchToggleClass . \"\\\" title=\\\"\" . $Language->Phrase(\"SearchPanel\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"SearchPanel\") . \"\\\" data-toggle=\\\"button\\\" data-form=\\\"fvw_spmlistsrch\\\">\" . $Language->Phrase(\"SearchBtn\") . \"</button>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Show all button\n\t\t$item = &$this->SearchOptions->Add(\"showall\");\n\t\t$item->Body = \"<a class=\\\"btn btn-default ewShowAll\\\" title=\\\"\" . $Language->Phrase(\"ShowAll\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"ShowAll\") . \"\\\" href=\\\"\" . $this->PageUrl() . \"cmd=reset\\\">\" . $Language->Phrase(\"ShowAllBtn\") . \"</a>\";\n\t\t$item->Visible = ($this->SearchWhere <> $this->DefaultSearchWhere && $this->SearchWhere <> \"0=101\");\n\n\t\t// Button group for search\n\t\t$this->SearchOptions->UseDropDownButton = FALSE;\n\t\t$this->SearchOptions->UseImageAndText = TRUE;\n\t\t$this->SearchOptions->UseButtonGroup = TRUE;\n\t\t$this->SearchOptions->DropDownButtonPhrase = $Language->Phrase(\"ButtonSearch\");\n\n\t\t// Add group option item\n\t\t$item = &$this->SearchOptions->Add($this->SearchOptions->GroupOptionName);\n\t\t$item->Body = \"\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Hide search options\n\t\tif ($this->Export <> \"\" || $this->CurrentAction <> \"\")\n\t\t\t$this->SearchOptions->HideAllOptions();\n\t\tglobal $Security;\n\t\tif (!$Security->CanSearch()) {\n\t\t\t$this->SearchOptions->HideAllOptions();\n\t\t\t$this->FilterOptions->HideAllOptions();\n\t\t}\n\t}", "function __construct($search_term = '', $page = '', $role = '')\n {\n }", "function dentalimplants_search_widget() {\n\tgenesis_widget_area ( 'search', array( \n\t'before' => '<div id=\"search-form-container\">',\n\t'after' => '</div>',));\n}", "public function GoogleSpeedTest($domain,$api_key,$searchengine_id){\r\n\r\n\t$search_query = \"http://\".$domain;\r\n\t//$url=\"https://www.googleapis.com/customsearch/v1?key=$api_key&cx=$searchengine_id&num=10&q=$search_query\";\r\n\t$url=\"https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=$search_query&key=$api_key&cx=$searchengine_id\";\r\n\t$google_search = file_get_contents($url);\r\n\t$speed_data=json_decode($google_search,true);\r\n\r\n\tif($speed_data['responseCode']==\"200\")\r\n\t{\r\n\r\n\r\n\t\t// return $seo_data['queries']['request']['0']['totalResults'];\r\n\t\treturn $speed_data;\r\n\t}\r\n}", "public static function init()\n {\n if (!Pronamic_Google_Maps_Settings::has_settings()) {\n Pronamic_Google_Maps_Settings::set_default_options();\n }\n\n // Plugins URL\n $url = THEMEROOT . '/plugins/pronamic-google-maps/';\n self::$pluginsUrl = trailingslashit(apply_filters('google_maps_plugins_url', $url));\n\n self::$pluginsPath = trailingslashit(apply_filters('google_maps_plugins_path', GOOGLE_MAPS_PATH));\n\n // Load plugin text domain\n $rel_path = dirname(plugin_basename(self::$file)) . '/languages/';\n\n load_plugin_textdomain('pronamic_google_maps', false, $rel_path);\n\n // Scripts\n self::registerScripts();\n\n // Other\n if (is_admin()) {\n Pronamic_Google_Maps_Admin::bootstrap();\n } else {\n Pronamic_Google_Maps_Site::bootstrap();\n }\n }", "public function callInitializeSearchWordDataInTsfe() {}", "public function __construct($url, $title){\r\r\n\t\tparent::__construct(self::GOOGLE_BASE_SHARE_URL, $url, $title);\r\r\n\t}" ]
[ "0.67922825", "0.6317542", "0.6139503", "0.6047347", "0.60379326", "0.59833616", "0.59686875", "0.59436697", "0.59371597", "0.59303373", "0.5923029", "0.5915186", "0.5873753", "0.58575493", "0.58443975", "0.58431584", "0.5796078", "0.5768023", "0.5766472", "0.57621163", "0.5728685", "0.57043386", "0.5700472", "0.567971", "0.56568724", "0.56488997", "0.56362945", "0.5633387", "0.5629546", "0.5628836", "0.5615273", "0.56084025", "0.5597033", "0.55944335", "0.55661345", "0.5538464", "0.55338836", "0.5529219", "0.5513034", "0.55048007", "0.55024576", "0.54905695", "0.54892576", "0.5482977", "0.5482105", "0.54792213", "0.54702914", "0.54658985", "0.54578984", "0.54514027", "0.5435939", "0.54336673", "0.542781", "0.54261535", "0.54261535", "0.5420613", "0.5417505", "0.54166967", "0.5415433", "0.5412423", "0.5411582", "0.54017985", "0.54011106", "0.5394065", "0.53936213", "0.53860897", "0.53744036", "0.5373631", "0.53736264", "0.5372933", "0.5368876", "0.53688675", "0.53687346", "0.536128", "0.5360629", "0.53587264", "0.5356763", "0.5354317", "0.53508526", "0.53401434", "0.53400457", "0.5336727", "0.5330172", "0.5330061", "0.53274375", "0.53274083", "0.5318003", "0.5312094", "0.5309557", "0.5291903", "0.52888846", "0.52859676", "0.52826315", "0.52788854", "0.5277909", "0.52665734", "0.52591604", "0.5258762", "0.52586824", "0.5253457" ]
0.74246925
0
Retorna os dados dos banners
public function getIdiomas() { return TableFactory::getInstance('WebsiteIdiomas')->getIdiomas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function GetBanners()\n\t{\n\t\t$output = '';\n\t\t\n\t\t$sql = 'SELECT\n\t\t\t\t\tb.id, b.image_file, b.link_url, b.priority_order,\n\t\t\t\t\tbd.image_text\n\t\t\t\tFROM '.TABLE_BANNERS.' b\n\t\t\t\t\tLEFT OUTER JOIN '.TABLE_BANNERS_DESCRIPTION.' bd ON b.id = bd.banner_id\n\t\t\t\tWHERE b.is_active = 1 AND b.image_file != \\'\\' AND bd.language_id = \\''.encode_text(Application::Get('lang')).'\\' \n\t\t\t\tORDER BY RAND() ASC';\n\t\t$result = database_query($sql, DATA_AND_ROWS, FIRST_ROW_ONLY);\n\t\tif($result[1] > 0){\n\t\t\t$image = '<img src=\"'.APPHP_BASE.'images/banners/'.$result[0]['image_file'].'\" width=\"723px\" height=\"140px\" alt=\"banner\" />';\t\n\t\t\tif($result[0]['link_url'] != '' && $result[0]['link_url'] != 'http://'){\n\t\t\t\t$output .= '<a href=\"'.$result[0]['link_url'].'\" title=\"'.$result[0]['image_text'].'\">'.$image.'</a>';\n\t\t\t}else{\n\t\t\t\t$output .= $image;\n\t\t\t}\t\t\t\n\t\t}\n\t return $output;\n\t}", "public function banners()\n {\n $banners = DB::table('banners')->latest('created_at')->limit(5)->get();\n\n return response()->json($banners);\n }", "public function getBanners() {\n\n try {\n\n $result = Banner::getAllBanners();\n return $result;\n } catch (Exception $e) {\n throw new RestException($e->getCode(), $e->getMessage());\n }\n }", "public function getBanners()\n {\n $rows = $this->iaDb->all(iaDb::ALL_COLUMNS_SELECTION, \"`status` = 'active'\", null, null, self::getTable());\n\n if (is_array($rows) && $rows) {\n $banners = [];\n foreach ($rows as $entry) {\n $banners[$entry['position']][] = $entry;\n }\n\n return $banners;\n }\n\n return false;\n }", "function getbanners()\n\t\t{\n\t\t\t$banners = $this->manage_content->getValue('banner_info','*');\n\t\t\techo '<div id=\"add_space\">';\n\t\t\tforeach($banners as $banner)\n\t\t\t{\n\t\t\t\tif($banner['banner_status'] == 1)\n\t\t\t\t{\n\t\t\t\t\techo '<a href=\"'.$banner['banner_link'].'\">';\n\t\t\t\t\techo '<div class=\"add_section\"><img src=\"images/'.$banner['banner_image'].'\" style=\"height:'.$banner['banner_height'].'px;width:'.$banner['banner_width'].'px;float:left;\"/></div></a>';\n\t\t\t\t}\n\t\t\t}\n\t\t\techo '</div>';\n\t\t}", "public function listaBanners() {\n $data['title'] = \"Administrar Banners\";\n $data['main'] = 'Banner/frm_ListaBanner';\n $data['lista'] = $this->Banner_model->getBanners($this->session->userdata['esta_logeado']['idUsuario']);\n $this->load->vars($data);\n $this->load->view('include/header');\n }", "public function get_banners($offset = 0, $limit = LIST_LIMIT) {\n $this->db->limit($limit, $offset);\n $query = $this->db->get('banners');\n return $query->result_array();\n }", "function getPageBanners($id) {\n $this->db->select(\"*\");\n $this->db->where(\"pageID\", $id);\n $this->db->order_by(\"slideOrder ASC\");\n \t$query = $this->db->get('banner');\n if ($query->num_rows() > 0) {\n return $query->result_array();\n }\n return array();\n }", "public function getBanners(Request $request)\n {\n\t\t$user = null;\n\t\t$nope = false;\n\t\t$v = \"\";\n\t\t\n\t\t$signals = $this->helpers->signals;\n\t\t$plugins = $this->helpers->getPlugins();\n\t\t\n\t\t#$this->helpers->populateTips();\n $cpt = ['user','signals','plugins'];\n\t\t\t\t\n\t\tif(Auth::check())\n\t\t{\n\t\t\t\n\t\t\t$user = Auth::user();\n\t\t\t\n\t\t\tif($this->helpers->isAdmin($user))\n\t\t\t{\n\t\t\t\t$hasPermission = $this->helpers->hasPermission($user->id,['view_banners']);\n\t\t\t\t#dd($hasPermission);\n\t\t\t\t$req = $request->all();\n\t\t\t\t\n\t\t\t\tif($hasPermission)\n\t\t\t\t{\n\t\t\t\t $v = \"banners\";\n\t\t\t\t $banners = $this->helpers->getBanners();\n\t\t\t\t #dd($banners);\n\t\t\t\t array_push($cpt,'banners');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsession()->flash(\"permissions-status-error\",\"ok\");\n\t\t\t\t\treturn redirect()->intended('/');\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tAuth::logout();\n\t\t\t\t$u = url('/');\n\t\t\t\treturn redirect()->intended($u);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$v = \"login\";\n\t\t}\n\t\treturn view($v,compact($cpt));\n }", "public function getBanners($perPage = 20, array $filter = array(), array $sort = array(), $paginate = true);", "public function get_allBanners($where_banner)\t\n\t{\n\t\t$query = $this->db->get_where('announcement',$where_banner);\n\n\t\t$result = $query->result_array();\n\n\t\tif(!empty($result))\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t}", "function getBanners($page,$position,$image_banner,$BannerDisplayed){\r\n\r\n\t\t\t$sql = \"select * from banner where Status='1' \";\r\n\r\n\t\t\t$sql.= (!empty($page))?(\" and ShowOn like '%\".$page.\"%'\"):(\"\");\r\n\r\n\t\t\t$sql.= (!empty($position))?(\" and position = '\".$position.\"'\"):(\"\");\r\n\r\n\t\t\t$sql.= ($image_banner==1)?(\" and ( Image like '%jpg%' or Image like '%gif%')\"):(\"\");\r\n\r\n\t\t\t$sql.= (!empty($BannerDisplayed))?(\" and BannerID != '\".$BannerDisplayed.\"'\"):(\"\");\r\n\r\n\t\t\t$sql.= \" order by rand() \";\r\n\r\n\t\t\t $sql.= \" limit 0,1 \"; \r\n\t\t\t//$sql.= (!empty($BannerLimit))?(\" limit 0,\".$BannerLimit.\"\"):(\"\");\r\n\r\n\t\t\t//echo $sql;\r\n\t\t\treturn $this->query($sql, 1);\r\n\t\t}", "public function getBannersByDimensions() {\n\n try {\n $result = Banner::getBannersByDimensions($_GET);\n return $result;\n } catch (Exception $e) {\n throw new RestException($e->getCode(), $e->getMessage());\n }\n }", "public function get_Banco(){\r\n $conectar=parent::conexion();\r\n parent::set_names();\r\n $sql=\"select * from banco;\";\r\n $sql=$conectar->prepare($sql);\r\n $sql->execute();\r\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\r\n }", "function _nbabanner_get_banners($randomise = false)\n{\n $banners = nbacontent_get_vocabulary('nbabanner', true);\n \n $filteredBanners = array_filter($banners, function($ele) {\n return $ele->nbabanner_link_live['und'][0]['value'] == 1;\n });\n \n if ($randomise === true) {\n shuffle($filteredBanners);\n }\n \n return $filteredBanners;\n}", "function listBillets(){ \n\t\t$billets = array();\n\n\t\t$bdd = new PDO('mysql:host=localhost;dbname=test;charset=utf8','root','',array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));\n\t\t$req = $bdd->query('SELECT * FROM billets ORDER BY date_creation DESC LIMIT 5');\n\t\t\n\t\twhile($billet = $req->fetch(PDO::FETCH_ASSOC)){\n\t\t\t$billets[] = $billet;\n\t\t}\n\t\t\n\t\treturn $billets ;\n\t}", "public function buscarDados()\n\t{\n\t\t$res = array();\n\t\t$cmd = $this->pdo->query(\"SELECT * FROM tbadm ORDER BY id_adm Desc\");\n\t\t$res = $cmd->fetchAll(PDO::FETCH_ASSOC);\n\t\treturn $res;\n\t}", "public function loadbanner(){\n\t\t$query=$this->db->get('tbl_banner');\n\t\treturn $query->result();\n\t}", "public function index()\n\t{\n\t\t$data = [];\n\t\t$input = Input::except('page');\n\t\t$input = CommonAdmin::processDataFilter($input);\n\t\t$listData = Banners::where($input)->orderBy('id', 'desc')->paginate(PAGINATE);\n\t\tforeach ($listData as $key => $value) {\n\t\t\t// $data[$value['model_name']][$value['model_id']][$key] = new stdClass();\n\t\t\t// $data[$value['model_name']][$value['model_id']][$key] = $value;\n\t\t\t$data[$value->model_name][$value->model_id][$key] = new stdClass();\n\t\t\t$data[$value->model_name][$value->model_id][$key] = $value;\n\t\t}\n\t\t// dd($data);\n\t\t// $data = Banners::groupBy('model_name')->orderBy('id', 'desc')->paginate(PAGINATE);\n\t\treturn View::make('admin.banner.index')->with(compact('data'));\n\t}", "public function getPromotionalbanners(Request $request)\n\t{\n\t\t$params = $request->all();\n\n\t\t$user = Auth::user('user');\n\t\t$status = $user?2:1;\n\t\t$promotionalbanners = PromotionalBanners::where('status', '!=', $status)->orderBy('displayorder', 'asc')->get();\n\t\t\n\t\treturn response($promotionalbanners);\n\t}", "function getDynamicAds()\n\t\t{\n\t\t\t$dynamicBanner_1 = $this->manage_content->getValue_where('banner_info','banner_image','id',5);\n\t\t\t$dynamicBanner_2 = $this->manage_content->getValue_where('banner_info','banner_image','id',6);\n\t\t\t//print_r($dynamicBanner[0]['banner_image']);\n\t\t\t//get dynamic banner 1\n\t\t\tif($dynamicBanner_1[0]['banner_image'] == 'NULL')\n\t\t\t{\n\t\t\t\techo '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo '<div class=\"dynamic_banner\">'.$dynamicBanner_1[0]['banner_image'].'</div>';\n\t\t\t}\n\t\t\t//get the dynamic banner 2\n\t\t\tif($dynamicBanner_2[0]['banner_image'] == 'NULL')\n\t\t\t{\n\t\t\t\techo '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo '<div class=\"dynamic_banner\">'.$dynamicBanner_2[0]['banner_image'].'</div>';\n\t\t\t}\n\t\t}", "function listar_boletines() {\n\t\t$query = \"SELECT newsletters.*\n\t\tFROM newsletters\n\t\tORDER BY fecha_publicacion desc\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "public function consultaUnicaPorId($id) {\r\n $sql = \"SELECT * FROM \" . $this->prefixoTabela . \"banners WHERE id = \" . $id;\r\n $resultado = $this->conexao->consultaDB($sql);\r\n \r\n $linha = mysql_fetch_array($resultado);\r\n \r\n $banner = new BannerModelo();\r\n \r\n $banner->setId($linha[\"id\"]);\r\n $banner->setLinkSite($linha[\"link_site\"]);\r\n $banner->setLinkBanner($linha[\"link_banner\"]);\r\n \r\n $this->conexao->desconectar();\r\n return $banner;\r\n }", "public function index()\n {\n $banners = Banner::all();\n return view('admin.banners.list_banner')->withBanners($banners);\n }", "public function get_banner($id) {\n $this->db->where('banner_id', $id);\n $query = $this->db->get('banners');\n return $query->row_array();\n }", "public function ObtenerAvionesBD(){\n $aviones=DB::table('avion')\n ->get();\n return $aviones;\n }", "public static function getPrints() {\n \n $con = new _Conexao();\n \n if( !empty(\\Auth::user()->USUARIO) ) {\n \n $codigo = Auth::user()->CODIGO; \n\n $sql = \"SELECT I.ID, I.DESCRICAO, I.CODIGO,iif( coalesce(u.impessora_id,0) = I.id, 1,0 ) as FLAG FROM TBIMPRESSORAS I, tbusuario u where u.codigo = \" . $codigo;\n\n return $con->query($sql);\n \n }else{\n \n return [];\n \n }\n \n \n\t\t\n\t}", "public function index()\n {\n $imageNameDB = DB::table('banners')->where('banner_id', 17)->select('link')->get()[0]->link;\n return response()->json($imageNameDB);\n }", "function dadosCadastros(){//função geral que será chamada na index\n pegaCadastrosJson();//pega os valores dos cadastros do arquivo JSON e salva em um array\n contaNumeroCadastros();//conta Quantos cadastros existem\n }", "public function get_datos_basededatos($idbd){\n $listar = $this->pdo->prepare(\"SELECT * FROM pa_base_datos WHERE id = \".$idbd);\n $listar->execute();\n return $listar;\n \t}", "public function getIdiomas()\n\t{\n\t\t//Retorna os dados dos banners\n\t\treturn TableFactory::getInstance('WebsiteIdiomas')->getIdiomas();\n\t}", "public function getBannersArhived($searchText = NULL) {\n return $this->where('archive', 1)\n ->orderBy('id', 'DESC')\n ->paginate(10);\n }", "public function consultaPaginas(){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT * FROM tbpaginas order by idpaginas\";\n $sql = $this->conexao->query($sql);\n $dados = array();\n\n while ($row = $sql->fetch_assoc()) {\n\n $dado = array();\n $dado['idpaginas'] = $row['idpaginas'];\n $dado['paginas'] = $row['nome_paginas'];\n $dado['url'] = $row['paginas'];\n $dados[] = $dado;\n }\n\n return $dados;\n\n }", "public function banners($crud = 'list'){\n if($crud==='list'){\n $data['title']='Banner List';\n $this->load->server('settings/banners',$data);\n }\n }", "public function GetData() {\n try {\n $conn = new BancoDados();\n $conectar =$conn->Conectar();\n \n if ( $conectar==null) {\n \n throw new Exception(\"Não foi possivel conectar ao banco de dados\");\n \n }else {\n \n $list=$conectar->query(\"Select * from movies\");\n return $list; \n \n }\n } catch (PDOException $exc) {\n echo $exc->getMessage();\n }\n\n \n }", "public function get() {\n\n\t\t$sql = \"SELECT * FROM tbbdetc\";\n\t\t$rset = \\PSU::db('banner')->Execute($sql);\n\n\t\treturn $rset ? $rset : array();\n\t}", "public function list(){\n\n $urls = Urls::all();\n \n $capturas = array();\n foreach($urls as $key=>$val){\n $status = $this->status_url($val['url']);\n $conteudo = $this->content_url($val['url']);\n /* bem simples. salva os dados no banco */\n $capturas[] = array('conteudo' => $conteudo, 'status' => $status, 'url_id' => $val['id']);\n }\n\n $this->salvar($capturas);\n }", "function getInfosBanque($id_bqe=NULL,$id_ag=NULL) {\n\n global $dbHandler;\n\n $db = $dbHandler->openConnection();\n $sql = \"SELECT * FROM adsys_banque\";\n if ($id_bqe != NULL) {\n if ($id_ag == NULL)\n $sql .=\" WHERE id_banque = $id_bqe\";\n else\n $sql .=\" WHERE id_banque = $id_bqe and id_ag = $id_ag \";\n }\n elseif ($id_ag != NULL) $sql .=\" WHERE id_ag = $id_ag\";\n $sql.= \";\";\n\n $result=$db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__,__LINE__,__FUNCTION__);\n }\n\n $dbHandler->closeConnection(true);\n\n if ($result->numRows() == 0) return NULL;\n\n while ( $row = $result->fetchRow(DB_FETCHMODE_ASSOC) )\n $DATAS[$row[\"id_banque\"]] = $row;\n\n return $DATAS;\n\n}", "public function fetchDataBencana(){\n\n try {\n return Pemohon::find();\n } catch (\\Exception $e) {\n return [];\n }\n \n }", "public function getBanner($id = false){\n if($id === false){\n return $this->findAll();\n }else{\n return $this->getWhere(['banner_id' => $id])->getRowArray();\n }\n }", "public function index() {\n $data['title'] = \"Formulario Cargar Banner\";\n $data['main'] = 'Banner/frm_CargarBanner';\n $data['lista'] = $this->Banner_model->getBanners($this->session->userdata['esta_logeado']['idUsuario']);\n $this->load->vars($data);\n $this->load->view('include/header');\n }", "public function index()\n {\n \n try {\n $banners = Banner::orderBy('created_at', 'desc');\n $banners = $banners->Paginate(Config::get('app.banner_per_page'));\n return Response::json(array('status' => 'success', 'data' => $banners->toArray(),'page' => $banners->paginateObject()), 200);\n } Catch (Exception $ex) {\n return Response::json(array('status' => 'error', 'error' => $ex->getMessage(), 'line' => $ex->getLine()), 500);\n }\n }", "public function getListBanner()\n {\n\n $BannerModel = new Banner();\n $Banners = $BannerModel->getListBanner();\n $this->data['newss'] = $Banners;\n\n return view('admin.banner_list', $this->data);\n }", "function recuperer_bsm_entier(){\n global $db;\n $sql = \"SELECT * FROM bsm \";\n $req = $db->prepare($sql);\n $req-> execute();\n $results = array();\n while($rows = $req->fetchObject()){\n $results[] = $rows;\n }\n return $results;\n}", "private function getData()\n\t{\n\t\t// get the record\n\t\t$this->record = (array) BackendBannersModel::get($this->id);\n\n\t\t// no item found, throw an exceptions, because somebody is fucking with our URL\n\t\tif(empty($this->record)) $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing');\n\t}", "function fossee_site_banner_banners(){\n\n //$dir = \"public://site_banners\"; // The directory in which banner files are kept\n $output = NULL;\n\n setFrontend(); // this function renders the fromtend like rendering javascript and css style\n $recent_time = 1*24*60*60; // D * H * MIN * SEC\n\n $result_recent = db_select('fossee_banner_details','n')\n ->fields('n',array('id','file_name','status'))\n //->range(0,20)\n //->condition(db_or()->condition('n.created_timestamp',time()-$recent_time,'>')->condition('n.last_updated',time()-$recent_time))\n ->condition('n.last_updated',time()-$recent_time,\">\")\n ->execute(); // returns the banners from the fossee_banner_details table\n\n $result_active = db_select('fossee_banner_details','n')\n ->fields('n',array('id','file_name','status'))\n //->range(0,20)\n ->condition('n.status_bool',1,'=')\n //->condition('n.created_timestamp',time()-$recent_time,'<=')\n ->execute(); // returns the banners from the fossee_banner_details table\n\n $result_inactive = db_select('fossee_banner_details','n')\n ->fields('n',array('id','file_name','status'))\n //->range(0,20)\n ->condition('n.status_bool',1,'!=')\n //->condition('n.created_timestamp',time()-$recent_time,'<=')\n ->execute(); // returns the banners from the fossee_banner_details table\n\n $output .= \"<a href='new-banner'>Create New Banner</a><br><br>\";\n $output .= generateTable($result_recent,\"Recent\");\n $output .= generateTable($result_active,\"Active\");\n $output .= generateTable($result_inactive,\"Inactive\");\n\n return $output;\n\n}", "public function show($id)\n {\n $banners = Banner::find($id);\n return $banners;\n }", "public function index()\n {\n $items = Banners::paginate('50');\n\n return view('banners.index', compact('items'));\n }", "public function iN_ShowAds() {\n\t\t$query = mysqli_query($this->db, \"SELECT * FROM i_advertisements WHERE ads_status = '1' ORDER BY RAND() LIMIT 2\") or die(mysqli_error($this->db));\n\t\twhile ($row = mysqli_fetch_array($query)) {\n\t\t\t$data[] = $row;\n\t\t}\n\t\tif (!empty($data)) {\n\t\t\treturn $data;\n\t\t}\n\t}", "public function listarc()\n {\n $sql = \"SELECT * FROM miembros \n \";\n\n return ejecutarConsulta($sql);\n }", "public function index()\n {\n return view('backend.tables.banner', ['banners' => Banner::paginate('5')]);\n }", "public function businessBanners()\n {\n $pageTitle = \"Business Banners | WeAfrican\";\n $businessBanners = BusinessBanner::where('user_id', Auth::id())->get();\n return view('my-account.business', compact('pageTitle','businessBanners'));\n }", "public function getBillets(){\n $db = $this -> init();\n if(isset($_GET['page'])){\n $display = $db->query('Select * from posts order by id asc limit '.(($_GET['page']-1)*5).',5') or die(print_r($db->errorInfo()));\n }\n else{\n $display = $db->query('Select * from posts order by id asc limit 0,5');\n }\n return $display;\n }", "public function gp_qry_all_banner($website_id)\n {\n $sql = \"Select \n B.PK_BANNER\n ,B.C_DEFAULT\n ,B.C_FILE_NAME\n ,BC.FK_CATEGORY\n From t_ps_banner B\n Right Join t_ps_banner_category BC \n On BC.FK_BANNER=B.PK_BANNER\n Where B.FK_WEBSITE=$website_id\n And B.C_STATUS=1\n Order By C_DEFAULT Desc, BC.FK_CATEGORY Asc\";\n \n return $this->db->GetAll($sql);\n }", "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('rcobro');\n\n\t\t$response = $grid->getData('rcobro', array(array()), array(), false, $mWHERE, 'id','desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "function listarCuentaBancaria(){\n\t\t$this->procedimiento='sigep.ft_cuenta_bancaria_sel';\n\t\t$this->transaccion='SIGEP_CUEN_BAN_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cuenta_bancaria','int4');\n\t\t$this->captura('id_cuenta_bancaria_boa','int4');\n\t\t$this->captura('banco','int4');\n\t\t$this->captura('cuenta','varchar');\n\t\t$this->captura('desc_cuenta','varchar');\n\t\t$this->captura('moneda','int4');\n\t\t$this->captura('tipo_cuenta','bpchar');\n\t\t$this->captura('estado_cuenta','bpchar');\n\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('desc_cuenta_banco','varchar');\n\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function get_records()\n {\n $db = new DB();\n $conn = $db->connect();\n if (empty($conn)) {\n $statusCode = 404;\n $rawData = array(\n 'error' => 'No databases found!'\n );\n } else {\n $statusCode = 200;\n }\n $sql = \"SELECT id, key_name AS user_agent FROM user_agents;\";\n $result = $conn->query($sql);\n $rows = array();\n while ($r = mysqli_fetch_assoc($result)) {\n $rows[] = $r;\n }\n $requestContentType = $_SERVER['HTTP_ACCEPT'];\n $this->setHttpHeaders($requestContentType, $statusCode);\n if (strpos($requestContentType, 'text/html') !== false) {\n $response = $this->encodeHtml($rows);\n echo $response;\n } else if ((strpos($requestContentType, 'application/xml') !== false) || (strpos($requestContentType, 'text/xml') !== false)) {\n $this->setHttpHeaders('application/xml', $statusCode);\n $response = $this->encodeXml($rows);\n echo $response;\n } else {\n #This case is either request type is json or empty\n $this->setHttpHeaders(\"application/json\", $statusCode);\n $response = json_encode($rows);\n echo $response;\n }\n $conn->close();\n }", "public function read(){\n $sql = 'SELECT * FROM produtos';\n\n // Preparar a query \n $stmt = Conexao::getConn()->prepare($sql);\n // Executando query\n $stmt->execute();\n\n // Verificando se retornou algo do banco\n if($stmt->rowCount()>0){\n // Criando um array com todos os registros\n $result = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n return $result;\n }else{// Se nao encontrar nenhum dado no banco\n return [];\n }\n }", "protected function getBannerItems()\n {\n $self = $this;\n\n return Cache::remember(\n 'home_banner_items',\n config('kosher.cache_expiration_time'),\n function () use ($self) {\n $recipes = Recipe::banner()->with('categories')->get();\n $articles = Article::banner()->published()->with('category')->get();\n $shows = Show::banner()->get();\n\n $banner = $recipes->merge($articles)\n ->merge($shows)\n ->shuffle()\n ->take(config('kosher.pagination.home_banner_items'));\n\n if (0 == $banner->count()) {\n $recipes = Recipe::featured()->with('categories')->get();\n $articles = Article::featured()->published()->with('category')->get();\n $shows = Show::featured()->get();\n\n $banner = $recipes->merge($articles)\n ->merge($shows)\n ->shuffle()\n ->take(config('kosher.pagination.home_banner_items'));\n }\n\n if (0 == $banner->count()) {\n $banner = Recipe::published()\n ->with('categories')\n ->take(config('kosher.pagination.home_banner_items'))\n ->get();\n $self->mergeReceivedRecipes($banner);\n } else {\n $recipes = collect();\n foreach ($banner as $item) {\n if ($item->isRecipe()) {\n $recipes->push($item);\n }\n }\n $self->mergeReceivedRecipes($recipes);\n }\n\n return $banner;\n }\n );\n }", "function obtiene_bebidas_menu($valor=1){\n /**\n * guardamos la consulta en $sql obtiene todos las tuplas de la tabla\n * ejecutamos la consulta en php obtenemos una tabla con los resultados\n * en el for convertimos a cada tupla en un objeto y añadimos al array $objetos uno a uno\n * retornamos un array con todas las tuplas como objetos\n */\n try {\n $sql=\"SELECT * FROM \".Bebidas::TABLA[0].\" WHERE tipo = 'zumo' and estado = $valor or tipo = 'refresco_con_gas' and estado = $valor or tipo = 'refresco_sin_gas' and estado = $valor\";\n $resultado=$this->conexion->query($sql);\n $objetos=array();\n\n while ($fila=$resultado->fetch_object()){\n $objetos[]=$fila;\n //echo 'fila = '. var_dump($fila);\n }\n\n /*\n for($x=0;$x<$resultado->field_count;$x++){\n $objetos[$x]=$resultado[$x]->fetch_object();\n }*/\n return $objetos;\n } catch (Exception $ex) {\n echo 'error '.$ex;\n }\n \n \n }", "public function index()\n {\n $banners = Banner::all();\n if( request()->expectsJson() ){\n return BannerResource::collection( $banners );\n }\n return view('admin.banners.index', ['banners'=>$banners]);\n }", "public function test_get_banner_list_success() {\n $user = $this->createUser();\n $banner = $this->createBanner($user->uuid);\n\n $token = JWTAuth::fromUser($user);\n $response = $this->withHeaders(['Authorization' => 'Bearer ' . $token])->getJson('/api/user/banners/');\n\n $user->deleteAllBanners();\n $user->delete();\n\n $response->assertStatus(200)\n ->assertJsonStructure([ 'banners' => [\n ['uuid', 'name', 'link_url', 'main_text', 'sub_text', 'call_to_action', 'image', 'banner_types', 'color_scheme']\n ] ]);\n }", "function getCitas(){\n\t\n\t\treturn conectar()->query( \"SELECT hora, fecha, usuario, motivo FROM citas\");\n\t}", "public function index()\n {\n // Varibales\n $title = '';\n $created_at = '';\n $last_update = '';\n $orderby = '';\n $sort = '';\n\n $list_banners = Banners::leftJoin('banners_trans as trans', 'banners.id', '=', 'trans.tid')\n ->select('banners.*', 'trans.lang', 'trans.title', 'trans.link', 'trans.created_at', 'trans.updated_at')->where('trans.lang', '=', Lang::getlocale());\n\n if(!empty($_GET['title'])){\n $title = $_GET['title'];\n $list_banners->where('trans.title', 'like', '%'.$title.'%'); \n }\n if(!empty($_GET['created_at'])){\n $created_at = $_GET['created_at'];\n $list_banners->where('trans.created_at', '>=', ''.$created_at.' 00:00:00')->where('trans.created_at', '<=', ''.$created_at.' 23:59:59'); \n }\n if(!empty($_GET['last_update'])){\n $last_update = $_GET['last_update'];\n $list_banners->where('trans.updated_at', '>=', ''.$last_update.' 00:00:00')->where('trans.updated_at', '<=', ''.$last_update.' 23:59:59'); \n }\n if(!empty($_GET['orderby']) && !empty($_GET['sort'])){\n $orderby = $_GET['orderby'];\n $sort = $_GET['sort'];\n $list_banners->orderBy($orderby, $sort); \n }\n \n $banners = $list_banners->paginate(10);\n // add to pagination other fields\n $banners->appends(['title' => $title, 'created_at' => $created_at,\n 'last_update' => $last_update, 'orderby' => $orderby, 'sort' => $sort]);\n\n return view('backend.banners.index', compact('banners'));\n }", "public function index(){\n\n $banners = Banner::orderBy('id','desc')->get();\n return view('backend.pages.banner.index',compact('banners'));\n }", "public function BuscarComprasFechas() \n\t{\n\t\tself::SetNames();\n\t\t$sql = \" SELECT compras.codcompra, compras.subtotalivasic, compras.subtotalivanoc, compras.ivac, compras.totalivac, compras.descuentoc, compras.totaldescuentoc, compras.totalc, compras.statuscompra, compras.fechavencecredito, compras.fechacompra, proveedores.ritproveedor, proveedores.nomproveedor, SUM(detallecompras.cantcompra) AS articulos FROM (compras INNER JOIN proveedores ON compras.codproveedor = proveedores.codproveedor) INNER JOIN usuarios ON compras.codigo = usuarios.codigo LEFT JOIN detallecompras ON detallecompras.codcompra = compras.codcompra WHERE DATE_FORMAT(compras.fechacompra,'%Y-%m-%d') >= ? AND DATE_FORMAT(compras.fechacompra,'%Y-%m-%d') <= ? GROUP BY compras.codcompra\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindValue(1, trim(date(\"Y-m-d\",strtotime($_GET['desde']))));\n\t\t$stmt->bindValue(2, trim(date(\"Y-m-d\",strtotime($_GET['hasta']))));\n\t\t$stmt->execute();\n\t\t$num = $stmt->rowCount();\n\t\tif($num==0)\n\t\t{\n\t\t\techo \"<div class='alert alert-danger'>\";\n\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\techo \"<center><span class='fa fa-info-circle'></span> NO EXISTEN COMPRAS DE PRODUCTOS PARA EL RANGO DE FECHA INGRESADO</center>\";\n\t\t\techo \"</div>\";\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t\t{\n\t\t\t\t\t$this->p[]=$row;\n\t\t\t\t}\n\t\t\t\treturn $this->p;\n\t\t\t\t$this->dbh=null;\n\t\t\t}\n\t\t}", "public function index(Request $request)\n {\n $banners = Banner::latest()->filter($request->all())->paginate($request->get('per_page', 20));\n\n return BannerResource::collection($banners);\n }", "public function getDDBinks()\n {\n \tif (null === $this->ddBinks)\n \t{\n\t $path = __DIR__ . '/vcards/DDBinks.vcf';\n $parser = new VCardParser();\n $vcards = $parser->importFromFile($path);\n \n $this->assertCount(1, $vcards);\n $this->ddBinks = $vcards[0];\n \t}\n\treturn $this->ddBinks;\n }", "public function getDDBinks()\n {\n \tif (null === $this->ddBinks)\n \t{\n\t $path = __DIR__ . '/vcards/DDBinks.vcf';\n $parser = new VCardParser();\n $vcards = $parser->importFromFile($path);\n \n $this->assertCount(1, $vcards);\n $this->ddBinks = $vcards[0];\n \t}\n\treturn $this->ddBinks;\n }", "public function getAll() {\r\n $statement = \"\r\n SELECT * FROM bookillustrator;\r\n \";\r\n\r\n try {\r\n $statement = $this->db->query($statement);\r\n $result = $statement->fetchAll(\\PDO::FETCH_ASSOC);\r\n return $result;\r\n }\r\n catch(\\PDOException $e) {\r\n exit($e->getMessage());\r\n }\r\n }", "public function index()\n {\n $banners = Banners::get();\n //echo \"<pre>\";print_r($banners);die(); \n return view('admin.banners.index',compact('banners'));\n }", "public function readAllVoto(){\n\n return self::read('voto','voto'); \n }", "private function getTraffic() {//Irá verificar na tabela se os dados do dia existem\n $readSiteViews = new Read; //Aqui ocorrendo uma composição\n $readSiteViews->ExeRead('siteviews', \"WHERE siteviews_date = :date\", \"date={$this->Date}\");\n if ($readSiteViews->getRowCount())://Verifica se a leitura retornou resultado\n $this->Traffic = $readSiteViews->getResult()[0]; //Pega apenas o resultado atual, logo o Traffic vai armazenar os dados do dia recorrente\n endif;\n }", "function generateTable($results,$table_title){\n\n $dir = variable_get('fossee_site_banner_banner_directory', \"not found\");\n //$path = site_banners_path(); // path to the folder containing the banner files\n $realpath = file_create_url($dir); //\n $settings_form_link = $path = \"http://\".$_SERVER['SERVER_NAME'] . base_path() . 'fossee-site-banner/banner-settings/';\n $col_length = 3; // The number of columns in the table in which banners are displayed\n $i=0;\n $banners = array();\n $banner = new stdClass();\n\n foreach ($results as $result) { // this foreach statement loops throught the result containing fossee_banner_details returned from the fossee_banner_details table in database\n # code...\n\n $banner->file_name = $result->file_name;\n $banner->status = $result->status;\n $banner->id = $result->id;\n\n $banners[($i/$col_length)][($i%$col_length)] = $banner;\n unset($banner);\n $i++;\n }\n\n for($j=0;$j<sizeof($banners);$j++){ // loops through rows of banner images for checking necessary conditons and rendered accordingly\n\n unset($col); // col array contains the html code for displaing the banner images\n\n for($k=0;$k<sizeof($banners[$j]);$k++){ // loops through columns of $j row of the banners array\n unset($banner);\n $banner = $banners[$j][$k];\n\n if($banners[$j]!=NULL){ // necessary for rows which contains less than 3 banners\n if($banner->status == 'active'){\n $status_pointer = \"border: 10px solid orange\"; // this style adds the orange border for displaying the active banners\n } else {\n $status_pointer = \"\";\n }\n\n\n $col[$k] = '\n\t\t\t<div style = \"height : 170px; width : 200px;\">\n\t\t\t<img class=\"imgStyle\" onclick=\"imageClicked(this); return false;\" id=\"'.$banner->id.'\" src=\"'.$realpath.\"/\".$banner->file_name.'\" style=\"height:60%;width: 100%;'.$status_pointer.'\">\n\t\t\t<button type=\"button\" style = \"width : 100%\" class=\"btn\" onclick=\"window.open(\\''.$settings_form_link.$banner->id.'\\',\\'_self\\')\">Banner Settings</button>\n\t\t\t</div>\n\t\t\t';\n\n } else {\n # code...\n $col[$k] = \"\"; // if there is no image this element of col is left empty\n }\n }\n\n\n /* the html code for displaying banners is put into rows array which will be later used for rendering the table*/\n $rows[] = array(\n\n $col[0],\n $col[1],\n $col[2],\n\n );\n }\n\n /* checks that the $rows is not empty and renders the table */\n if (!empty($rows)) {\n\n try {\n $header = array($table_title,\"\",\"\");\n $output = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'sort-table')));\n $output .= theme('pager');\n } catch (Exception $e) {\n }\n\n\n } else {\n\n //$output .= t(\"No results found.\");\n\n }\n\n return $output;\n\n}", "public function consultardb()\n\t{\n\t\t$consulta=\"SELECT Id,transactionID FROM PSETransactionResponse\";\n\t\t$query = $this->db->query($consulta);\n\t\twhile ($rows = $query->fetch_assoc()){\n\t\t\t$this->gti[] = $rows;\n\t\t}\n\t\treturn $this->gti;\n\t}", "function listadeMembroativosDao(){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetoMembro.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n \r\n $resultado = mysql_query(\"Select Matricula,Nome,Naturalidade,Fone from membros where Status = 'ATIVO' order by Nome\") or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n $listaMembro = array();\r\n \r\n $i=0;\r\n \r\n while ($registro = mysql_fetch_array($resultado, MYSQL_ASSOC)){\r\n \r\n\t $membro = new objetoMembro();\r\n \r\n $membro->setMatricula($registro['Matricula']);\r\n $membro->setNome($registro['Nome']);\r\n $membro->setNatural($registro['Naturalidade']); \r\n\t $membro->setFone($registro['Fone']); \r\n \r\n\t $listaMembro[$i] = $membro;\r\n \r\n\t $i++;\r\n\t}\r\n\r\n\t\treturn $listaMembro;\r\n\t\tmysql_free_result($resultado);\r\n $objDao->freebanco();\r\n \r\n }", "public function buscarBancos() {\r\n return $this->find(\"b_estatus = 'activa'\");\r\n }", "final public function blacklistInfo():array{\n $bl = $this->db->select('bl_id,bl_user_black,u_nombres,u_apellidos,YEAR(CURDATE())-YEAR(u_fecnac) as edad,iu_img','jc_blacklist LEFT JOIN jc_usuarios ON bl_user_black=u_id LEFT JOIN jc_images_users ON iu_id_user=bl_user_black AND iu_tipo=2','bl_user_main='.$this->user.'');\n try {\n \n if (!$bl) {\n throw new Exception('You do not have people on your blacklist yet');\n } \n\n } catch (Exception $e) {\n return ['success'=>0,'message'=>$e->getMessage()];\n }\n\n return ['success'=>1,'message'=>'You have people on your blacklist','data'=>$bl];\n }", "public function selectAll($usrId, $order, $pdo) {\r\n if ( !isset($order)) {\r\n $order = \"name\";\r\n }\r\n\r\n $dbOrder = mysql_real_escape_string($order);\r\n $sql = \"SELECT banners.banner_id, banners.name, banners.width, banners.height, banners.display, banners.banner_body, urls.page_address \r\n FROM banners\r\n JOIN banner_author ON banner_author.id_ban = banners.banner_id\r\n JOIN users ON users.user_id = banner_author.id_author\r\n JOIN banner_url ON banner_url.id_banner = banners.banner_id\r\n JOIN urls ON urls.url_id = banner_url.id_url\r\n WHERE users.user_id = ?\r\n ORDER BY ? ASC\";\r\n\r\n $q = $pdo->prepare($sql);\r\n try {\r\n $q->execute(array($usrId, $dbOrder));\r\n } catch (PDOException $e) {\r\n echo 'select all failed. '. $e->getMessage();\r\n }\r\n \r\n $banners = array();\r\n\r\n while ( ($obj = $q->fetch(PDO::FETCH_OBJ)) != NULL) {\r\n $banners[] = $obj;\r\n }\r\n\r\n return $banners;\r\n }", "function ReadAll(){\n\n\t\t//Instanciamos y nos conectamos a la bd\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta = \"SELECT tipo_denuncia.*,denuncia.* FROM denuncia INNER JOIN tipo_denuncia ON denuncia.td_cod_tipo_denuncia=tipo_denuncia.td_cod_tipo_denuncia WHERE denuncia.de_estado='Pendiente'\";\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute();\n\t\t//Devolvemos el resultado en un arreglo\n\t\t//Fetch: es el resultado que arroja la consulta en forma de un vector o matriz segun sea el caso\n\t\t//Para consultar donde arroja mas de un dato el fatch debe ir acompañado con la palabra ALL\n\t\t$resultado = $query->fetchALL(PDO::FETCH_BOTH);\n\t\treturn $resultado;\n\t\tfloopets_BD::Disconnect();\n\t}", "function listarCuentaBancaria(){\n\t\t$this->procedimiento='tes.f_cuenta_bancaria_sel';\n\t\t$this->transaccion='TES_CTABAN_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cuenta_bancaria','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('fecha_baja','date');\n\t\t$this->captura('nro_cuenta','varchar');\n\t\t$this->captura('fecha_alta','date');\n\t\t$this->captura('id_institucion','int4');\n\t\t$this->captura('nombre_institucion','varchar');\n\t\t$this->captura('doc_id','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('id_moneda','integer');\n\t\t$this->captura('codigo_moneda','varchar');\n\t\t$this->captura('denominacion','varchar');\n\t\t$this->captura('centro','varchar');\n\t\t\n\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function info()\n {\n if (!addon_installed('banners')) {\n return array();\n }\n\n if (get_option('is_on_banner_buy') == '1') {\n $banner_url = build_url(array('page' => '_SELF', 'type' => 'bannerinfo', 'id' => 'banners'), get_module_zone('banners'));\n\n return array(do_template('POINTSTORE_BANNERS_2', array('_GUID' => '0b34fc7675b4a71fd6e530ad43213e70', 'BANNER_URL' => $banner_url)));\n }\n return array();\n }", "public function readAll(){\r\n\r\n // QUERY SQL PARA FAZER CONSULTA NO BANCO\r\n\t\t$sql = 'SELECT * FROM usuarios';\r\n\r\n\t\t// PREPARANDO CONEXÃO COM O BANCO\r\n\t\t$stmt = Conexao::getConn()->prepare($sql);\r\n\r\n\t\t// EXECUTANDO QUERY\r\n\t\t$stmt->execute();\r\n \r\n // VERIFICA SE TEM REGISTRO NA TABELA\r\n\t\tif ($stmt->rowCount() > 0){\r\n\r\n // ARMAZENA OS RESULTADOS \r\n\t\t\t$resultado = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\r\n \r\n // RETORNA OS RESULTADOS EM JSON\r\n\t\t\treturn json_encode($resultado);\r\n\r\n }else{\r\n\r\n // CASO NÃO TENHA REGISTRO RETORNARA ARRAY VAZIO\r\n\t\t\treturn [];\r\n\r\n }\r\n\r\n }", "public function index()\n {\n return $this->bannerService->index();\n }", "public function index()\n {\n $banners = Banner::where('isDeleted','No')\n ->orderBy('id','DESC')\n ->get();\n return view('backend.banner.banner',compact('banners'));\n }", "public function getAllNamesOfBanners($usrId, $pdo) {\r\n $sql = \"SELECT name FROM banners\r\n JOIN banner_author ON banner_author.id_ban = banners.banner_id\r\n WHERE banner_author.id_author = ?\";\r\n $q = $pdo->prepare($sql);\r\n try {\r\n $q->execute(array($usrId));\r\n $row = $q->fetchAll(PDO::FETCH_COLUMN, 0);\r\n } catch (PDOException $e) {\r\n echo 'get banner body failed. '.$e->getMessage();\r\n }\r\n\r\n return $row;\r\n }", "public function readAll(){\r\n $query = \"SELECT * FROM docente;\";\r\n $statement = $this->cdb->prepare($query);\r\n $statement->execute();\r\n $rows = $statement->fetchAll(\\PDO::FETCH_OBJ);\r\n return $rows; \r\n }", "public static function getAll2(){\n\t\t$sql = \"select * from prueba\";\n\t\t$query = Executor::doit($sql);\n\t\treturn Model::many($query[0],new TemparioData());\n\t}", "public function get_list_berita(){\n\t\t$requestParam \t\t\t= $_REQUEST;\n\n\t\t$getData \t\t\t\t= $this->M_berita->get_list_news ( $requestParam, 'nofilter' );\n\t\t$totalAllData \t\t\t= $this->M_berita->get_list_news ( $requestParam, 'nofilter', 'all' )->num_rows ();\n\t\t$totalDataFiltered \t\t= $this->M_berita->get_list_news ( $requestParam, 'nofilter', 'all' )->num_rows ();\n\t\t\n\t\tif (empty ( $requestParam ['search'] ['value'] ) > 1) {\n\t\t\t$getData \t\t\t= $this->M_berita->get_list_news ( $requestParam );\n\t\t\t$totalDataFiltered \t= $getData->num_rows ();\n\t\t}\n\t\t\n\t\t$listData = array ();\n\t\t$no = ($requestParam['start']+1);\n\t\t\n\t\tforeach( $getData->result () AS $value){\n\t\t\t$rowData = array();\n\n\t\t\t/*========================================= BEGIN BUTTON STUFF =========================================*/\n\t\t\t$button = \"\";\n\t\t\t$button .= \t'\n\t\t\t\t\t\t\t<button class=\"btn btn-danger btn-sm\" onClick=\"is_delete(\\''.base_url('cms/berita/doDelete/'.$value->id).'\\')\" title=\"Delete\"><i class=\"fa fa-trash\"></i></button>\n\t\t\t\t\t\t\t<a href=\"'.base_url('cms/berita/edit/'.$value->id).'\" class=\"btn btn-primary btn-sm\" title=\"Edit / Detail\"><i class=\"fa fa-edit\"></i></a>\n\t\t\t\t\t\t';\n\n\t\t\t// $button .= '\n\t\t\t// \t\t\t<div class=\"btn-group\">\n\t\t\t// \t\t\t <button type=\"button\" class=\"btn btn-dark dropdown-toggle\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n\t\t\t// \t\t\t Action\n\t\t\t// \t\t\t </button>\n\t\t\t// \t\t\t <div class=\"dropdown-menu\">\n\t\t\t// \t\t\t <a class=\"dropdown-item\" href=\"'.base_url('cms/dokter/edit/'.$value->id).'\"><i class=\"fa fa-edit\"></i> Edit</a>\n\t\t\t// \t\t\t <a class=\"dropdown-item\" onClick=\"is_delete(\\''.base_url('cms/dokter/doDelete/'.$value->id).'\\')\"><i class=\"fa fa-trash\"></i> Hapus</a>\n\t\t\t// \t\t\t <div class=\"dropdown-divider\"></div>\n\t\t\t// \t\t\t <a class=\"dropdown-item\" href=\"'.base_url('cms/dokter/status/'.$value->id).'\"><i class=\"fa fa-check\"></i> Active/Non-active</a>\n\t\t\t// \t\t\t </div>\n\t\t\t// \t\t\t</div>\n\t\t\t// \t\t';\n\n\t\t\t// $status = \"\";\n\t\t\t// if ($value->is_active != 0) {\n\t\t\t// \t$status .= '<span class=\"badge badge-pill badge-success\">Yes</span>';\n\t\t\t// }else{\n\t\t\t// \t$status .= '<span class=\"badge badge-pill badge-danger\">No</span>';\n\t\t\t// }\n\t\t\t/*========================================= END BUTTON STUFF =========================================*/\n\n\t\t\t$rowData[] = $no++;\n\t\t\t$rowData[] = $value->title;\n\t\t\t$rowData[] = $value->category_name;\n\t\t\t$rowData[] = $button;\n\t\t\t\n\t\t\t$listData[] = $rowData;\n\t\t\t\n\t\t\t$json_data = array (\n\t\t\t\t\"draw\" => intval ( $requestParam ['draw'] ), // for every request/draw by clientside , they send a number as a parameter, when they recieve a response/data they first check the draw number, so we are sending same number in draw.\n\t\t\t\t\"recordsTotal\" => intval ( $totalAllData ), // total number of records\n\t\t\t\t\"recordsFiltered\" => intval ( $totalDataFiltered ), // total number of records after searching, if there is no searching then totalFiltered = totalData\n\t\t\t\t\"data\" => $listData \n\t\t\t); // total data array\n\t\t}\n\t\tif(empty($json_data)){\n\t\t\t$json_data = array (\n\t\t\t\t\"draw\" => 0, // for every request/draw by clientside , they send a number as a parameter, when they recieve a response/data they first check the draw number, so we are sending same number in draw.\n\t\t\t\t\"recordsTotal\" => 0, // total number of records\n\t\t\t\t\"recordsFiltered\" => 0, // total number of records after searching, if there is no searching then totalFiltered = totalData\n\t\t\t\t\"data\" => \"\"\n\t\t\t); // total data array\n\t\t}\n\t\theader ( 'Content-Type: application/json;charset=utf-8' );\n\t\techo json_encode ($json_data);\n\t\t\n\t\tdie();\n\t}", "public function index()\n {\n \n if(isset( $_GET['search']) && $_GET['search']!='' ){\n $searched= $_GET['search'];\n $banners=Banner::where('content', 'like',\"%{$searched}%\")\n ->latest()->paginate(2);\n \n }else{\n $banners=Banner::latest()->paginate(2);\n\n }\n return BannerResource::collection($banners);\n }", "public function index()\n {\n $banners = Banner::all();\n return view('banners.index', compact('banners'));\n }", "public function index()\n {\n $formatos = DB::SELECT(\"SELECT fb.`id`,fb.`Formato`\n FROM formatoBanner AS fb\");\n return view(\"Banners/alntaBanner\",compact('formatos'));\n }", "public static function getInfo(){ //функция для получения массива общей информации из бд\n \n $db = Db::getConnection(); //инициализируем подключение к бд\n \n $info = array(); //инициализируем переменную \n \n $result = $db->query('SELECT * FROM info'); // получаем из базы список\n \n $result->setFetchMode(PDO::FETCH_ASSOC);\n \n $row = $result->fetch();\n foreach ($row as $key => $value) { //перебираем массив полученный из бд и формируем массив для вывода на страницу сайта\n $info[$key] = $value;\n }\n \n return $info; //возвращаем массив\n }", "function recuperer_produit_bsm($id){\n global $db;\n $i = array(\n 'id' => $id\n );\n $sql = \"SELECT * FROM bsm WHERE id=:id\";\n $req = $db->prepare($sql);\n $req-> execute($i);\n $results = array();\n while($rows = $req->fetchObject()){\n $results[] = $rows;\n }\n return $results;\n}", "public function listar(){\n\n\t\t$data = $this->db->from($this->table)\n\t\t\t\t\t\t ->orderBy('id DESC')\n\t\t\t\t\t\t ->fetchAll();\n\t\tif(empty($data)){\n\t\t $respuesta = array('respuesta' => 0 );\n\t\t return $respuesta;\n\t\t}else{\n\t\t return $data;\n\t\t}\t\t\t\t \n\t// return $data = $this->db_pdo->query('select * from '.$this->table)\n\t//\t\t\t\t\t \t\t\t->fetchAll();\t\t\t\t \t\t\t\t\t\t \n\t}", "public function findBatiments($language) {\r\n $select = $this->_createSelectQuery();\r\n // batiment\r\n $select->field('id', $this->_tableName);\r\n $select->field('nom_' . $language, $this->_tableName, 'nom');\r\n $select->field('description_' . $language, $this->_tableName, 'description');\r\n $select->field('image', $this->_tableName);\r\n $select->field('niveau', $this->_tableName);\r\n $select->field('cout', $this->_tableName);\r\n $select->field('entretien', $this->_tableName);\r\n $select->field('duree_construction', $this->_tableName);\r\n $select->field('duree_recolte', $this->_tableName);\r\n $select->field('duree_hospitalisation', $this->_tableName);\r\n $select->field('cout_hospitalisation', $this->_tableName);\r\n $select->field('gain', $this->_tableName);\r\n $select->field('capacite', $this->_tableName);\r\n $select->field('visibilite', $this->_tableName);\r\n $select->field('id_prev', $this->_tableName);\r\n // Batiment Suivant\r\n $select->field('id', 'batiment_suivant', 'id_next');\r\n // type_batiment 1\r\n $select->field('id', 'type1_batiment', 'id_type1');\r\n $select->field('id_parent', 'type1_batiment', 'id_parent_type1');\r\n $select->field('nom_' . $language, 'type1_batiment', 'nom_type1');\r\n $select->field('is_unique', 'type1_batiment', 'is_unique_type1');\r\n // type_batiment 2\r\n $select->field('id', 'type2_batiment', 'id_type2');\r\n $select->field('id_parent', 'type2_batiment', 'id_parent_type2');\r\n $select->field('nom_' . $language, 'type2_batiment', 'nom_type2');\r\n $select->field('is_unique', 'type2_batiment', 'is_unique_type2');\r\n // From et jointures\r\n $select->from($this->_tableName);\r\n $select->innerJoin('type_batiment', array('batiment.id_type = type1_batiment.id'), 'type1_batiment');\r\n $select->leftJoin('type_batiment', array('type1_batiment.id_parent = type2_batiment.id'), 'type2_batiment');\r\n $select->leftJoin('batiment', array('batiment_suivant.id_prev = batiment.id'), 'batiment_suivant');\r\n // Ordre\r\n $select->order('batiment.niveau');\r\n\r\n return $this->_mapper->buildObjectsFromRows($this->_selectAll($select));\r\n }", "public static function readDemandesOrga(){\n if(ModelBenevole::isOrga($_SESSION['login'], $_GET['IDFestival'])){\n $tab_b = ModelBenevole::readAllDemandesOrga($_GET['IDFestival']); //appel au modèle pour gerer la BD\n $controller = 'benevole';\n $view = 'demandesorga';\n $pagetitle = 'Liste des demandes organisateur';\n require_once (File::build_path(array('view','view.php'))); //\"redirige\" vers la vue\n }else{\n $controller = 'benevole';\n $view = 'error';\n $pagetitle = 'Vous n\\'avez pas les droits ';\n }\n }", "public function listar()\n\t{\n\t\t$sql = \"SELECT * FROM responsable\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function index(Request $request)\n {\n $aResult = Util::getDefaultArrayResult();\n \n if ($this->user->hasAccess($this->resource . '.view')) {\n \n $modelName = $this->modelName;\n \n $pageSize = $request->input('iDisplayLength', 10);\n $offset = $request->input('iDisplayStart');\n $currentPage = ($offset / $pageSize) + 1;\n\n if (!$sortCol = $request->input('mDataProp_'.$request->input('iSortCol_0'))) {\n $sortCol = 'id';\n $sortDir = 'desc';\n } else {\n \n $sortDir = $request->input('sSortDir_0');\n }\n\n //Search filter\n $search = \\trim($request->input('sSearch'));\n \n\n Paginator::currentPageResolver(function() use ($currentPage) {\n return $currentPage;\n });\n\n $items = \n $modelName::select(\n 'banners_banners.id',\n 'banners_tipos.nombre as tipo',\n \\DB::raw('CONCAT(banners_clientes.apellido, \", \", banners_clientes.nombre) as cliente'),\n 'banners_posiciones.nombre as posicion',\n 'banners_banners.nombre',\n 'banners_banners.inicio',\n 'banners_banners.fin',\n 'banners_banners.impresiones',\n 'banners_banners.clicks',\n 'banners_banners.habilitado'\n )\n ->join('banners_tipos','banners_tipos.id','=','banners_banners.id_tipo')\n ->join('banners_clientes','banners_clientes.id','=','banners_banners.id_cliente')\n ->join('banners_posiciones','banners_posiciones.id','=','banners_banners.id_posicion')\n ->orderBy($sortCol, $sortDir)\n ;\n\n if ($search) {\n $items->where(function($query) use ($search){\n $query\n ->where('banners_banners.nombre','like',\"%{$search}%\")\n ->orWhere('banners_tipos.nombre','like',\"%{$search}%\")\n ->orWhere('banners_clientes.nombre','like',\"%{$search}%\")\n ->orWhere('banners_clientes.apellido','like',\"%{$search}%\")\n ->orWhere('banners_posiciones.nombre','like',\"%{$search}%\")\n ;\n });\n }\n \n $items = $items\n ->paginate($pageSize)\n ;\n\n $aItems = $items->toArray(); \n \n $total = $aItems['total'];\n $aItems = $aItems['data']; \n \n $aResult['data'] = $aItems;\n $aResult['recordsTotal'] = $total;\n $aResult['recordsFiltered'] = $total;\n \n } else {\n $aResult['status'] = 1;\n $aResult['msg'] = \\config('appCustom.messages.unauthorized');\n }\n\n return response()->json($aResult);\n }", "function ambil_data_on_going()\n\t{\n\t\t\n\t\t$sql=\"SELECT * FROM irena_view_sbsn_on_going\";\n\t\treturn $this->db->query($sql);\n\t}", "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('spre');\n\n\t\t$response = $grid->getData('spre', array(array()), array(), false, $mWHERE, 'id', 'desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}" ]
[ "0.6930514", "0.6792028", "0.65889424", "0.64382297", "0.62852466", "0.6247919", "0.61943245", "0.6186688", "0.61748034", "0.6115885", "0.605247", "0.60296375", "0.6023822", "0.60203034", "0.59393907", "0.5868659", "0.5807737", "0.578242", "0.57308906", "0.57293254", "0.5718705", "0.5696697", "0.5673177", "0.56683457", "0.56544673", "0.5651242", "0.5646162", "0.5640773", "0.56400585", "0.56393033", "0.5634834", "0.5633712", "0.5631564", "0.5630519", "0.56248975", "0.56196743", "0.5613506", "0.5607868", "0.5606387", "0.5605827", "0.5589683", "0.55821395", "0.5568867", "0.5558502", "0.5547293", "0.5503981", "0.5468647", "0.5465939", "0.5452967", "0.54359704", "0.5434324", "0.5427305", "0.54228276", "0.54139864", "0.5409792", "0.5407445", "0.54062617", "0.54003215", "0.5400214", "0.53906924", "0.5372006", "0.5364654", "0.53363675", "0.5328451", "0.5322573", "0.53198767", "0.5310483", "0.53087443", "0.53087443", "0.53064513", "0.5299528", "0.5290572", "0.52905226", "0.528979", "0.52817184", "0.52802694", "0.5273995", "0.52679944", "0.52644396", "0.5258711", "0.5257901", "0.525754", "0.52505815", "0.5250541", "0.5250188", "0.5247878", "0.524647", "0.5239833", "0.52313304", "0.5228982", "0.52255666", "0.5221652", "0.52181655", "0.52149", "0.52131927", "0.5212845", "0.52096856", "0.52083087", "0.52053", "0.5202527", "0.52004147" ]
0.0
-1
Retorna o resultado da consulta
public function getTextos($parametros) { return TableFactory::getInstance('Textos')->ExecutegetTexto($parametros['cod_texto']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resultado(){\n\t\t\treturn $this->result=mysql_fetch_object($this->query);\n\t\t\t}", "public function result(){\n\t\t$this->execute() ;\n\t\treturn $this->statement->fetch(PDO::FETCH_ASSOC) ;\n\t}", "public function consultarListado()\n {\n $sql = \"SELECT * FROM examen\";\n $execute = $this->con->query($sql);\n $request = $execute->fetchall(PDO::FETCH_ASSOC);\n return $request; \n }", "public function GetResultados(){\n $resultado = null;\n\n while ($objeto = $this->resultados->fetch_object()) {\n $resultado[] = $objeto;\n }\n\n return $resultado;\n }", "function consultarPedido (){\n\t\t$x = $this->pdo->prepare('SELECT * FROM pedido');\n\t\t$x->execute();\n\t\treturn $x->fetchALL(PDO::FETCH_OBJ);\n\t}", "public function consult(){\n\t\t\t$para = array(\"1\"=>1);\n\t\t\tif($this->tipodocum_id_tipodocum != null){\n\t\t\t\t$para[\"tipodocum_id_tipodocum\"] = $this->tipodocum_id_tipodocum;\n\t\t\t}\n\t\t\tif($this->documento != null){\n\t\t\t\t$para[\"documento\"] = $this->documento;\n\t\t\t}\n\t\t\t\n\t\t\t$query = $this->db->get_where(\"paciente\",$para);\n\t\t\treturn $query->result();\n\t\t}", "function consultarCliente (){\n\t\t$x = $this->pdo->prepare('SELECT * FROM cliente');\n\t\t$x->execute();\n\t\treturn $x->fetchALL(PDO::FETCH_OBJ);\n\t}", "public function getConsulta(){\n\t\t\treturn $this -> resultado;\n\t\t}", "function consultarProducto (){\n\t\t$x = $this->pdo->prepare('SELECT * FROM producto');\n\t\t$x->execute();\n\t\treturn $x->fetchALL(PDO::FETCH_OBJ);\n\t}", "public function fetchResult();", "public function getResult() {\n $this->execute();\n return $this->statement->fetchAll(PDO::FETCH_OBJ);\n }", "protected function get_result_from_query(){\n\t\t$this ->open_connection();\n\t\t$result = $this -> conn -> query($this -> query);\n\t\twhile($this -> rows[] = $result ->fetch_assoc());\n\t\t$result -> close();\n\t\t$this -> close_connection();\n\t\tarray_pop($this -> rows); // Extraé y devuelve el último valor\n\t}", "public function getResultado()\r\n\t\t{\r\n\t\t\t$query =\"SELECT * FROM resultados\";\r\n\t\t\t$result =mysqli_query($this->link,$query);\r\n\t\t\t$data =array();\r\n\t\t\twhile ($data[]=mysqli_fetch_assoc($result));\r\n\t\t\tarray_pop($data);\r\n\t\t\treturn $data;\r\n\t\t}", "public function resultSet(){\n $this->execute();\n return $this->statement->fetchAll(PDO::FETCH_OBJ);\n }", "public function get(){\n\n if(is_null($this->columns)) $this->columns = ['*'];\n $select_statement = $this->grammer->compileSelect($this);\n \n \n $result = $this->connection->get($select_statement); \n \n if(!empty($this->model)){\n \n return $this->return_results_objects($result);\n\n }else{\n \n return $this->return_result_as_array($result);\n }\n \n }", "public function listar(){\n //se consulta \n $consulta = $this->db->query(\"SELECT * FROM empleados\");\n //y se retorna el resultado\n return $consulta->result();\n }", "public function select(){\n\t\t$sql = \"SELECT * FROM cargo\n\t\t\t\twhere car_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function resultset(){\n\t\t$this->execute() ;\n\t\treturn $this->statement->fetchAll(PDO::FETCH_ASSOC) ;\n\t}", "public function results()\r\n\t{\r\n\t\treturn $this->model->get($this->select);\r\n\t}", "function results()\r\n {\r\n $result = array();\r\n if(!$this->res_id)\r\n {\r\n $this->error_msg = \"Could not execute query to $this->db_name database, wrong result id\";\r\n return 0;\r\n }\r\n while($row = mysql_fetch_object($this->res_id))\r\n {\r\n array_push($result, $row);\r\n }\r\n return $result;\r\n }", "private function query_consultores(){\n\n \t$respuesta = false;\n\n\t\ttry {\n\n\t\t\t$this->db->select('cao_usuario.co_usuario');\n\t\t\t$this->db->select('cao_usuario.no_usuario');\n\t\t\t$this->db->select('cao_usuario.no_email');\t\n\t\t\t$this->db->from('cao_usuario');\n\t\t\t$this->db->join('permissao_sistema', 'permissao_sistema.co_usuario = cao_usuario.co_usuario');\n\t\t\t$this->db->where('cao_usuario.co_usuario is NOT NULL', NULL, FALSE);\n\t\t\t$this->db->where('permissao_sistema.co_sistema',$this->_co_sistema);\n\t\t\t$this->db->where('permissao_sistema.in_ativo',$this->_in_ativo);\n\t\t\t$this->db->where_in('permissao_sistema.co_tipo_usuario', $this->_co_tipo_usuario);\n\t\t\t$this->db->order_by(\"cao_usuario.co_usuario\", \"asc\");\t\t\t\n\n\t\t\t$query = $this->db->get();\n\n\t\t if ($query && $query->num_rows() > 0)\n\t\t {\n\t\t\t\t$respuesta = $query->result_array();\n\n\t\t }else{\n\n\t\t throw new Exception('Error al intentar listar todos los consultores');\n\t\t\t log_message('error', 'Error al intentar listar todos los consultores');\t\t \n\n\t\t $respuesta = false;\t\t\t\t\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\n\t\t\t$respuesta = false;\n\t\t}\t\t\t\n\n\t\treturn $respuesta;\n }", "public function resultaSet(){\n $this->execute();\n return $this->statemet->fetchAll(PDO::FETCH_OBJ);\n }", "function result()\r\n {\r\n $result = array();\r\n if(!$this->res_id)\r\n {\r\n $this->error_msg = \"Could not execute query to $this->db_name database, wrong result id\";\r\n return 0;\r\n }\r\n $row = mysql_fetch_object($this->res_id);\r\n return $row;\r\n }", "public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function listar(){\n\n\t\t$data = $this->db->from($this->table)\n\t\t\t\t\t\t ->orderBy('id DESC')\n\t\t\t\t\t\t ->fetchAll();\n\t\tif(empty($data)){\n\t\t $respuesta = array('respuesta' => 0 );\n\t\t return $respuesta;\n\t\t}else{\n\t\t return $data;\n\t\t}\t\t\t\t \n\t// return $data = $this->db_pdo->query('select * from '.$this->table)\n\t//\t\t\t\t\t \t\t\t->fetchAll();\t\t\t\t \t\t\t\t\t\t \n\t}", "public function seleccionar(){\n //sql de la consulta\n $sql = \"SELECT * FROM especialidad E WHERE E.Estado = 1;\";\n //preparando la consulta\n $query = $this->conexion->prepare($sql);\n //ejecutandola\n $query->execute();\n //obteniendo el resultado en un arreglo asociativo\n $result = $query->fetchAll(PDO::FETCH_ASSOC);\n $this->conexion = null;\n return $result;\n }", "function consultarEstadoNomina(){\n \n $conexion = new conexion();\n $sql = \"select * from mod_nomina_estado\";\n $resulConsulta = $conexion->consultar($sql);\n return $resulConsulta; \n \n }", "public function listar()\n {\n $sql = \"SELECT CO.idconsulta, US.nombre, US.area, US.email, CO.problema, CO.tipo_problema,CO.estado, CO.tipo_estado,date(CO.fecha_hora) as fecha \n FROM usuarios US JOIN consulta CO\n ON US.idusuarios = CO.idusuario\n WHERE CO.tipo_estado IN ('Pendiente','En Proceso') AND CO.condicion=''\";\n return ejecutarConsulta($sql);\n\n }", "function getInscritos()\n{\n global $mysqli;\n $Query = new Query($mysqli, \"SELECT name,lastname,nombre_usuario,email,type from usuarios\");\n $parametros = array();\n $data = $Query->getresults();\n\n if (isset($data[0])) {\n return $data[0];\n } else {\n return null;\n }\n\n}", "public function select(){\n\t\t$sql = \"SELECT * FROM producto\n\t\t\t\twhere prod_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function getAll(){\r\n $sql=\"SELECT * FROM salas\";\r\n try{\r\n //creo la instancia de conexion\r\n $this->connection= Connection::getInstance();\r\n $result = $this->connection->execute($sql);\r\n }catch(\\PDOException $ex){\r\n throw $ex;\r\n } \r\n //hay que mapear de un arreglo asociativo a objetos\r\n if(!empty($result)){\r\n return $this->mapeo($result);\r\n }else{\r\n return false;\r\n }\r\n\r\n }", "public function GetResults() {\n return $this->rs; \n }", "public function read(){\n $sql = 'SELECT * FROM produtos';\n\n // Preparar a query \n $stmt = Conexao::getConn()->prepare($sql);\n // Executando query\n $stmt->execute();\n\n // Verificando se retornou algo do banco\n if($stmt->rowCount()>0){\n // Criando um array com todos os registros\n $result = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n return $result;\n }else{// Se nao encontrar nenhum dado no banco\n return [];\n }\n }", "public function select(){\n\t$sql=\"SELECT * FROM tipousuario\";\n\treturn ejecutarConsulta($sql);\n}", "public function getResults()\n {\n return $this->execute();\n }", "function consultarDetalles (){\n\t\t$x = $this->pdo->prepare('SELECT * FROM detalles');\n\t\t$x->execute();\n\t\treturn $x->fetchALL(PDO::FETCH_OBJ);\n\t}", "function getQueryResult() {\n $config = $this->call_asset['configuration']['filter'];\n $result = '';\n\n if ($config['restrict'] == 'typeid') {\n // By chado.table type_id column.\n $result = $this->class_name::getResultByTypeid();\n }\n elseif ($config['restrict'] == 'prop') {\n // By chado.prop table value column.\n $result = $this->class_name::getResultByPropertyTable();\n }\n else {\n // Unfiltered result.\n $result = $this->class_name::getResult();\n }\n\n return $result;\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}", "function RellenaDatos()\n{\n $this->ConectarBD();\n $sql = \"select * from EMPLEADOS where EMP_USER = '\".$this->EMP_USER.\"'\";\n\n if (!($resultado = $this->mysqli->query($sql))){\n\treturn 'Error en la consulta sobre la base de datos';\n\t}\n else{\n\t$result = $resultado->fetch_array();\n\treturn $result;\n\t}\n}", "public function resultSet(){\r\n $this->execute();\r\n return $this->stmt->fetchAll(PDO::FETCH_OBJ);\r\n /*PDO::FETCH_OBJ\r\n assim podemos imprimir como objeto exemplo\r\n foreach($users as user){\r\n echo $user->name . '<br>';\r\n ao invés de echo $user['name];\r\n */\r\n }", "public function ConsultarEmpleado(){\n\t\t$sql = \"CALL HAR_ConsultarEmpleado(?)\";\n\t\t$stm = $this->db->prepare($sql);\n\t\t$stm ->bindParam(1, $this->CedulaEmpleado);\n\t\t$stm->execute();\n\t\t//Fetch retorna solo un valor, el fetchall varios\n\t\treturn $stm->fetch();\n\n\t\t}", "function getResults(){\n\t\t//$nombre,$apellido,$ciudad,$provincia,$areas,$pais\n\t\t$db = $this->getDbo();\n\n\t\t$nombre = JFactory::getApplication()->input->getString('txtNombre');\n\t\t$apellido = JFactory::getApplication()->input->getString('txtApellido');\n\t\t$ciudad = JFactory::getApplication()->input->getString('txtCiudad');\n\t\t$provincia = JFactory::getApplication()->input->getString('txtProvincia');\n\t\t//$areas = JFactory::getApplication()->input->getString('txtProvincia');\n\t\t$pais = JFactory::getApplication()->input->getString('txtPais');\n\n\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tCONCAT(u.name, ' ', cp.zv_apellidopadre,' ', cp.zv_apellidomadre) AS name,\n\t\t\t\tu.name AS firstname,\n\t\t\t\tu.email AS email,\n\t\t\t\tcp.zv_apellidopadre AS apellidopadre,\n\t\t\t\tcp.zv_apellidomadre AS apellidomadre,\n\t\t\t\tCONCAT(cp.zv_apellidopadre,' ',cp.zv_apellidomadre) AS apellidos,\n\t\t\t\tcp.zv_telefono AS telefono,\n\t\t\t\tcp.zv_direccion AS direccion,\n\t\t\t\tcp.zv_direccionnumero AS numero,\n\t\t\t\tCONCAT(cp.zv_direccion,' ', cp.zv_direccionnumero) AS direccionCompleta,\n\t\t\t\tcp.zv_perfilacadmico AS perfil,\n\t\t\t\tIF(INSTR(cp.zv_autorizodivulgarmisdatosporalap,'instituc')>0,\n\t\t\t\t\tcp.zv_institucion ,-1)AS institucion\n\t\t\t\t,\n\t\t\t\tcp.zv_areainteres AS areas,\n\t\t\t\tcp.zv_direccionprovincia AS provincia,\n\t\t\t\tcp.user_id AS id\n\n\t\t\tFROM zv_zvcadastramento cp\n\t\t\tLEFT JOIN zv_users u ON cp.user_id = u.id\n\n\t\t\tWHERE\n\t\t\t\tcp.zv_socio = 1 AND\n\t\t\t\tu.name != 'administrator' AND\n\t\t\t\tIF(INSTR(cp.zv_autorizodivulgarmisdatosporalap,'nombre')>0,\n\t\t\t\t\tIF('' != '\".$nombre.\"',\n\t\t\t\t\t\tu.name like '%\".$nombre.\"%'\n\t\t\t\t\t,u.name like '%%')\n\t\t\t\t\tAND\n\t\t\t\t\tIF('' != '\".$apellido.\"',\n\t\t\t\t\t\tcp.zv_apellidomadre like '%\".$apellido.\"%'\n\t\t\t\t\t\t\t\tOR cp.zv_apellidopadre like '%\".$apellido.\"%'\n\t\t\t\t\t\t\t,cp.zv_apellidomadre like '%%'\n\t\t\t\t\t\t\t\tOR cp.zv_apellidopadre like '%%'\n\t\t\t\t\t\t\t)\n\n\t\t\t\t,'')\n\t\t\t\t\tAND\n\n\t\t\t\t\tIF('' != '\".$ciudad.\"',\n\t\t\t\t\t\tcp.zv_direccionciudad like '%\".$ciudad.\"%'\n\t\t\t\t\t,cp.zv_direccionciudad like '%%')\n\n\t\t\t\t\tAND\n\n\t\t\t\t\tIF('' != '\".$provincia.\"',\n\t\t\t\t\t\t\tcp.zv_direccionprovincia like '%\".$provincia.\"%'\n\t\t\t\t\t,cp.zv_direccionprovincia like '%%')\n\n\t\t\t\t\tAND\n\n\t\t\t\t\tIF('' != '\".$pais.\"',\n\t\t\t\t\t\t\tcp.zv_direccionpais like '%\".$pais.\"%'\n\t\t\t\t\t,cp.zv_direccionpais like '%%')\n\n\t\t\t\";\n\n\t\t/*\n\t\tforeach($areas as $area){\n\t\t\tforeach($fields as $field){\n\t\t\t\tif($field->fieldvalueid == $area){\n\t\t\t\t\t$query.=\n\t\t\t\t\t\t\"AND\n\t\t\t\t\t\t\tIF(INSTR(cp.zv_autorizodivulgarmisdatosporalap,'reas de inter') > 0,\n\t\t\t\t\t\t\t\tcp.zv_areainteres like'%\".$field->fieldtitle.\"%'\n\t\t\t\t\t\t\t,'')\";\n\t\t\t\t}\n\t\t\t}\n\t\t}*/\n\n\t\t$query .= \" ORDER BY name\";\n\n\n\t\t$users = $this->_getList($query);\n\n\t\treturn $users;\n\t}", "function get_empresas() {\n\t\t$query = $this -> db -> select() -> from('empresas') -> get();\n\n\t\tif ($query -> num_rows() > 0) {\n\t\t\treturn $query;\n\t\t}\n\t}", "function result()\n {\n return $this->rows;\n }", "public function buscarhorario()\n\t{\n\t\t$query=\"SELECT * FROM horario WHERE idhorario=\".$this->idhorario;\n\n\t\t\n\t\t$resp=$this->db->consulta($query);\n\t\t\n\t\t//echo $total;\n\t\treturn $resp;\n\t}", "function listado() {\r\n return self::consulta('SELECT * FROM \".self::$nTabla.\"');\r\n }", "public function result() {\n $this -> execute();\n return $this -> stmt -> fetch();\n }", "public function get(){\n $this->query = \"SELECT \".$this->select.\" FROM $this->table WHERE \";\n $wheres = $this->mergeWhere().\" OR \".$this->mergeOrWhere();\n $query = $this->query.$wheres;\n $statement = $this->prepare($query);\n $statement->execute($this->bindings);\n return $statement->fetchAll();\n }", "public function listar(){\n\t\t$sql = \"SELECT * FROM cargo\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function resultSet()\n\t{\n\t\t$this->execute();\n\t\treturn $this->stm->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function consulta(){\n\n $this->db->select(\"*\");\n $this->db->from(\"empleados\");\n\n /*\n if( $this->session->userdata('perfil') != \"admin\"){\n $this->db->where( $where );\n }\n */\n\n // El get() se utiliza para ejecutar el query.\n $resultado = $this->db->get();\n\n // El result() se utiliza para enviar solamente los datos de la consulta.\n return $resultado->result();\n\n }", "public function consultar ($conexion){\r\n // PROCEDIMIENTO ALMACENADO \r\n $query=\"call consulta_acudiente()\";\r\n $consulta=mysqli_query($conexion, $query);\r\n return $consulta;\r\n }", "public function gets() {\r\n $query = $this->db->query(\"SELECT *\r\n FROM\r\n articulos a,\r\n productos p\r\n WHERE\r\n a.idproducto = p.idproducto AND\r\n a.activo = '1'\r\n ORDER BY\r\n a.articulo\");\r\n return $query->result_array();\r\n }", "public function consultar($sql){\n $this->configura();\n $this->conectar();\n return $this->conn->query($sql);\n }", "public function results()\n {\n return $this->model->get($this->select);\n }", "public function getEntreprise()\n {\n $stmt = $this->conn->prepare(\"SELECT *\n FROM Entreprise\");\n //Exécution de la requete\n $stmt->execute();\n //Récupération du résultat dans la variable resultat\n $resultat = $stmt->get_result();\n //Fermeture de la connection avec la base de données MySql\n $stmt->close();\n //Retour de la variable resultat\n return $resultat;\n }", "public function get_resultado() \n\t\t{\n\t\t\t\t$ano = $this->input->post('anio');\n\t\t\t\t$prueba = $this->input->post('prueba');\n\t\t\t\t$snpRegistro = $this->input->post('snp_registro');\n\t\t\t\t$noDocumento = $this->input->post('no_documento');\n\t\t\t\n\t\t\t\n\t\t\t\t$this->db->select();\n\t\t\t\tif ($ano && $ano != '') {\n\t\t\t\t\t$where = \"fecha_aplicacion like '%$ano%'\";\n\t\t\t\t\t$this->db->where($where);\n\t\t\t\t}\n\t\t\t\tif ($prueba && $prueba != '') {\n\t\t\t\t\t$this->db->where('codigo_prueba', $prueba);\n\t\t\t\t}\n\t\t\t\tif ($snpRegistro && $snpRegistro != '') {\n\t\t\t\t\t$this->db->where('snp_registro', $snpRegistro);\n\t\t\t\t}\n\t\t\t\tif ($noDocumento && $noDocumento != '') {\n\t\t\t\t\t$this->db->where('numero_documento', $noDocumento);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$query = $this->db->get('aplicacion_pruebas');\n\n\t\t\t\tif ($query->num_rows() > 0) {\n\t\t\t\t\treturn $query->result_array();\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}", "public function queryselect() {\r\n // we should load the database (autoload)\r\n $this->load->database();\r\n $query = $this->db->query('SELECT * FROM crud');\r\n return $query->result_array();\r\n //$result = $query->result_array();\r\n //return $result;\r\n }", "public function search() {\n $sql = \"SELECT * FROM tb_msg ORDER BY id DESC\";\n $stmt = $this->db->prepare($sql);\n\n// $stmt->bindValue(\":senha\", $this->aluno->getSenha());\n $stmt->execute();\n $result = $stmt->fetchAll();\n return $result;\n }", "public function readValoraciones(){\n $sql='SELECT valoracion, producto.nombre as producto, cliente.nombre as cliente FROM cliente, producto, valoraciones WHERE producto.idProducto=valoraciones.idProducto AND cliente.idCliente=valoraciones.idCliente and producto.idProducto = ?';\n $params=array($this->id);\n return Database::getRows($sql, $params);\n }", "function consultar(){\n\n\n\t\t$this->db->select('p.NUMERO, p.FACULTAD, p.PROGRAMA, p.FORMATO_PROYECTO, c.ESTADO');\n\t\t$this->db->from('PROYECTO p');\n\t\t$this->db->join('VICERRECTORIA_INVESTIGACION c', 'c.FK_PROYECTO = p.NUMERO');\n\n\n\t\t$query = $this->db->get();\n\n\t\treturn $data[]=$query->result();\n\t}", "public function get_Docente(){\r\n $conectar=parent::conexion();\r\n parent::set_names();\r\n $sql=\"select * from docente;\";\r\n $sql=$conectar->prepare($sql);\r\n $sql->execute();\r\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\r\n }", "public function getAllReturnInfo() {\n $this->selStmt->execute(); // execute SQL statement\n return $this->selStmt->fetchAll(PDO::FETCH_ASSOC); // return fetched result\n }", "public function all(){ \n $arraytoret = array();\n $query='select *\n from Usuario';\n $results = $this->driver->exec($query);\n return $this->factory($results);\n}", "public function consultarClientes() {\n\n $conexion = new conexion();\n $sql = \"select nit, nombre from cliente_general where estado = 'A' group by nit,nombre order by nombre\";\n $resulConsulta = $conexion->consultar($sql);\n\n return $resulConsulta;\n }", "public function resultSet(){\n $this->executeQuery($this->statement);\n return $this->fetchAll($this->statement);\n }", "public function select()\n {\n $sql = \"SELECT * FROM tipousuario\";\n return ejecutarConsulta($sql);\n }", "public function buscar_cliente1()\n\t\t{\n\t\t\t$sql =\"SELECT nom_empresa, razon_social FROM empresas\";\t\n\t\t\t$query = $this->db->query($sql);\n\t\t\treturn $query->result();\n\t\t}", "public function selecionarEmpresaContratada()\n {\n try\n {\n $sql = \"SELECT * FROM empresa_contratada\";\n $busca = $this->conexao->conectar()->prepare($sql);\n $busca->execute();\n return $busca->fetchALL(PDO::FETCH_OBJ);\n }\n catch(PDOException $erro)\n {\n echo \"Erro\" . $erro->getMessage();\n }\n\n }", "public function get_datos_empresa($empresa){\n\t$conectar= parent::conexion();\n\tparent::set_names();\n\t$sql=\"select *from empresas where nombre=?\";\n\t$sql=$conectar->prepare($sql);\n\t$sql->bindValue(1,$empresa);\n\t$sql->execute();\n\treturn $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n}", "function Readto()\n {\n $conexion=floopets_BD::Connect();\n $conexion->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\n\n $consulta=\"SELECT denuncia.*,tipo_denuncia.* FROM tipo_denuncia INNER JOIN denuncia on tipo_denuncia.td_cod_tipo_denuncia=denuncia.td_cod_tipo_denuncia \";\n // $consulta=\"SELECT * FROM citas WHERE Cod_usu=?\";\n $query=$conexion->prepare($consulta);\n $query->execute(array());\n\n\t$resultado=$query->fetchAll(PDO::FETCH_BOTH);\n\n\tfloopets_BD::Disconnect();\n\n\treturn $resultado;\n }", "public function consultaTodos()\n\t{\n\t\t$sql = \"SELECT * FROM \" . $this->tabela;\n\n\t\t// $this->resultado = mysqli_query($this->conn, $sql);\n\t\t$this->resultado = $this->conn->prepare($sql);\n\t\treturn $this->resultado->execute();\n\t}", "public static function verCompetencia(){\n\n $rel=Conexion::conectar('localhost','proyecto','root','');\n $resultado=$rel->prepare(\"SELECT * FROM resultados_aprendizaje\");\n $resultado->execute();\n\n return $resultado;\n }", "public function get() {\n\t\t\n\t\t/**\n\t\t * @get() Almacena los resultados de la query en un array\n\t\t * en este caso $this->rows[]\n\t\t */\n\t\t\n\t\ttry {\n\n\t\t\tif (!$this->result) {\n\t\t\t\tthrow new Exception(_QUERY_ERROR);\n\t\t\t}\n\t\t\t\t\n\t\t\t/**\n\t\t\t * Almacenamos los resultados MySQLi en un array ($this->rows[])\n\t\t\t * Para poder exportarlo a la vista.\n\t\t\t */\n\t\t\t\n\t\t\twhile($row = $this->result->fetch_array()) {\n\t\t\t\t$this->rows[] = $row;\n\t\t\t}\n\n//\t\t\t\trecorrer datos almacenados en $rows[]\n//\t\t\t\tlo hacemos desde la vista:\t\t\t\n \t\t\t//foreach ($this->rows as $row) {\n \t\t\t\t//echo $row['id'] . $row['title'];\n \t\t\t//}\n\n\t\t\t\n\t\t} catch (Exception $e) {\n\t\t\t$e->getMessage();\n\t\t}\n\t\t\n\t}", "public function buscarDocente($codigo){\r\n $query = \"SELECT * FROM docente WHERE codigo = \".$codigo.\";\";\r\n $statement = $this->cdb->prepare($query);\r\n $statement->execute();\r\n $rows = $statement->fetchAll(\\PDO::FETCH_OBJ);\r\n return $rows; \r\n }", "function consultar(){\n\t\t\n\t\t$this->mysqli = conectarBD();\n\t\t\n\t\t$sql = \"SELECT Linea_Factura.Id_Linea_Factura,Linea_Factura.Id_Factura,Servicio.Nombre,Linea_Factura.Importe,Linea_Factura.Descripcion FROM Linea_Factura INNER JOIN Servicio WHERE Linea_Factura.Id_Factura='\".$this->factura.\"' AND Linea_Factura.Id_Servicio=Servicio.Id_Servicio AND Linea_Factura.Borrado='0';\";\n\t\t$resultado = $this->mysqli->query($sql);\t\n\t\tif ($resultado->num_rows > 0){\n\t\t\twhile($row = $resultado->fetch_array()){\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t\treturn $array;\n\t\t}\n\t}", "public function get(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n\t\t\t\t\t ;\n return $this->db->getRows(array(\"where\"=>$condition,\"return_type\"=>\"single\"));\n\t\t\t\t\t }", "function obtenerClientes(){\n $query = $this->connect()->query('SELECT * FROM cliente');\n return $query;\n }", "public function readAll(){\r\n $query = \"SELECT * FROM docente;\";\r\n $statement = $this->cdb->prepare($query);\r\n $statement->execute();\r\n $rows = $statement->fetchAll(\\PDO::FETCH_OBJ);\r\n return $rows; \r\n }", "function getAll() {\n global $dbh, $schema;\n try {\n // using prepared statements will help protect you from SQL injection\n $stmt = $dbh->prepare(\"SELECT * FROM $schema.ingrediente\");\n $stmt->execute();\n // get array containing all of the result set rows \n $result = $stmt->fetchall(PDO::FETCH_ASSOC);\n return $result;\n }\n catch(PDOException $e) {\n $_SESSION[\"s_errors\"][\"generic\"][] = \"ERRO[16]: \".$e->getMessage();\n header(\"Location: ../../index.php\");\n die;\n }\n }", "function getResult($select){\n // Connexion à la base de données\n $servername = \"localhost\";\n $username = \"root\";\n $password = \"\";\n\n try {\n $conn = new PDO(\"mysql:host=$servername;dbname=base_etudiants\", $username, $password);\n // set the PDO error mode to exception\n $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n $conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n }\n catch (PDOException $e) {\n echo \"Connexion à la base impossible ! \" . $e->getMessage();\n }\n\n // Selection en base de données\n $sql = $conn->query($select);\n $reponse = $sql->fetchAll();\n\n return $reponse;\n}", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM consultation_vp';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "function consultaUsuario($conexion){\n $resultado = $conexion->query(\"SELECT * FROM usuario\");\n return $resultado;\n}", "public function select_all(string $query)\n{\n $this->strquery = $query;\n $result = $this->conexion->prepare($this->strquery);\n $result->execute();\n $data = $result->fetchall(PDO::FETCH_ASSOC);\n return $data; \n}", "public function getResults($type = null){\n //And combined two functions together\n //default is just to excute the code\n if(!@oci_execute($this->result)){\n echo \"Something wrong with the Query please check and try again!\";\n return false;\n }else{\n if($type == 'ARRAY'){\n while ($row = oci_fetch_assoc($this->result)) {\n $this->_array[] = $row;\n }\n return $this->_array;\n }else{\n return $this->result;\n }\n }\n\n }", "public function get()\n {\n return self::fetchAll();\n }", "function getResult(){\n\t\t\n\t\t$cx\t\t= new Connexion();\n\t\t$managerVisuel\t= new ManagerVisuel($cx);\n\t\t$managerLike\t= new ManagerLike($cx);\n\t\t$managerFavoris\t= new ManagerFavoris($cx);\n\n\t\t$transformDate = new DateTimeTransform();\n\n\t\t$http = new HTTPRequest();\n\t\t$offset = $http->getDataPost('offset');\n\t\t$values = $http->getDataPost('select');\n\t\t$exp = explode(\",\", $values);\n\n\t\tforeach ($exp as $value) {\n\t\t\tif(preg_match('/^theme-/', $value)){\n\t\t\t\t$theme[] = preg_replace('/[a-zA-Z-]/', '', $value);\n\t\t\t}\n\t\t\tif(preg_match('/^logiciel-/', $value)){\n\t\t\t\t$log[] = preg_replace('/[a-zA-Z-]/', '', $value);\n\t\t\t}\n\t\t}\n\t\tif(isset($theme)){\n\t\t\t$themes = implode(',', $theme);\n\t\t}\n\t\tif(isset($log)){\n\t\t\t$logs = implode(',', $log);\n\t\t}\n\t\t\n\t\t\n\n\t\tif((isset($themes)) || (isset($logs))){\n\n\t\t\tif(!isset($logs)){\n\t\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChainesByThemes($offset,$themes);\n\t\t\t}else if(!isset($themes)){\n\t\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChainesByLogs($offset,$logs);\n\t\t\t}else{\n\t\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChainesByCat($offset,$themes,$logs);\n\t\t\t}\n\n\t\t}else{\n\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChaines($offset);\n\t\t}\n\n\t\tif(!is_null($tabVisuChaine)){\n\t\t\tforeach ($tabVisuChaine as $visuel) {\n\n\t\t\t\t$visuel->{'3'} = $transformDate->transformDateTime($visuel->{'3'});\n\t\t\t\tif(isset($_SESSION['auth'])){\n\t\t\t\t\t$like = $managerLike->likePostExist($_SESSION['auth'][\"id\"],$visuel->getIdVisuel());\n\t\t\t\t\t$fav = $managerFavoris->favorisVisuelExist($_SESSION['auth'][\"id\"],$visuel->getIdVisuel());\n\t\t\t\t\t$tabLike[] = $like;\n\t\t\t\t\t$tabFav[] = $fav;\n\t\t\t\t}\n\t\t\t\t$countLikes[] = $managerLike->countLikeVisuel($visuel->getIdVisuel());\n\t\t\t}\n\t\t\tif(isset($_SESSION['auth'])){\n\t\t\t\t$result[\"user\"] = $_SESSION['auth']['id'];\n\t\t\t\t$result[\"favoris\"] = $tabFav;\n\t\t\t\t$result[\"likes\"] = $tabLike;\n\t\t\t}\n\t\t\t$result[\"countLikes\"] = $countLikes;\n\t\t\t$result[\"visu\"] = $tabVisuChaine;\n\t\t}else{\n\t\t\t$result[\"visu\"] = \"Aucun visuel trouvé\";\n\t\t}\n\t\t$cx->close();\n\t\techo json_encode($result);\n\t\texit();\n\t}", "function contar(){\n $sql = \"Select (select count(cita.id) from cita) as Citas,( select count(medico.id) from medico) as Medicos, (select count(paciente.id) from paciente)as Pacientes\";\n $conexion = new Conexion();\n return $conexion->executeQuery($sql)->fetch_object();\n }", "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM alojamientos';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "function obtener_inf_cliente(){\n $sql=\"select c.id_cliente,c.razon_social \n from cliente c\n \";\n \n $consulta =$this->db->query($sql);\n return $consulta;\n }", "public function get_query_result()\n\t{\n\t\t$sql = \"select * from test_db\";\n\t\t$query = $this->db->query($sql);\n\n\t\t//Complete array result\n\t\t$result = $query->result_array();\n\n\t\t//result of first row\n\t\t$firsts_row = $query->first_row();\n\t}", "public static function getProdutos(){\n $conexao = new ConexaoDAO();\n \n $sqlText = \"SELECT * FROM produtos\";\n $resultado = $conexao->query($sqlText)->fetchAll();\n \n \n return $resultado;\n }", "public function getAllByUser(){\n //hacemos la consulta y lo guardamos en una variable\n $sql=\"SELECT * FROM pedidos\"\n .\" where usuario_id={$this->getUsuario_id()} order by id desc\";\n $pedido=$this->db->query($sql);\n //devolvemos un valor en especifico \n return $pedido;\n }", "public function getComentarios()\n\t\t{\n\t\t\t $this->limpiarVariables();\n\t\t\t $this->conexion = new Conexion();\n\t\t\t $registros[]=array();\n\t\t\t $this->queryComentarios=\"select * from contacto\";\n\t\t\t $resultado=$this->conexion->consultar( $this->queryComentarios );\n\t\t\t \n\t\t\t \n\t\t\t return $resultado;\n\t\t}", "public function fetchAll(){\n $adapter = $this->adapter;\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from('flota');\n $selectString = $sql->getSqlStringForSqlObject($select);\n $data = $adapter->query($selectString, $adapter::QUERY_MODE_EXECUTE);\n \n return $data;\n }", "function dbacha($sql, $retorno) {\r\n $qtemp = DBExecute($sql . \" LIMIT 0,1\");\r\n foreach ($qtemp as $r) {\r\n $campo = $r[$retorno];\r\n }\r\n return $campo;\r\n }", "protected function get_results_from_query() {\n\t\t//para vaciar posibles resultados previos\n\t\t$this->rows = array();\n\t\t\n\t\t$this->crear_conexion();\n\t\t$this->set_charset();\n\t\t$result = $this->conn->query($this->query);\n\t\twhile ($row = $result->fetch_assoc())\n\t\t\t$this->rows[] = $row;\n\t\t$result->close();\n\t\t$this->cerrar_conexion();\n\t\t//array_pop($this->rows);\t//trae uno de más por el while\n\t\t//return $this->rows;\n\t}", "public function pegaTodos(){\n\t\treturn $this->resultado->fetchAll();\n\t}", "public function getResults();", "public function consultarDatos($consultaSQL){\n $conexionBD=$this->conectarBD();\n\n //2.Preparar la consulta que se va a realizar\n $consultaBuscarDatos= $conexionBD->prepare($consultaSQL);\n\n //3. Definir la forma en la que vmos a traer los datos\n // setFetchMode\n $consultaBuscarDatos->setFetchMode(PDO::FETCH_ASSOC);\n\n //4.Ejecutar la consulta\n $consultaBuscarDatos->execute();\n\n //5. Retornar los datos consultados\n return($consultaBuscarDatos->fetchAll());\n\n\n\n}", "function consulta_datos_empresa($id) {\n $sql = \"SELECT nombre_empresa,ruc_empresa FROM prosic_empresa WHERE id_empresa=\" . $id;\n $sql = \"SELECT nombre_empresa,ruc_empresa FROM prosic_empresa WHERE id_empresa=\" . $id;\n $result = $this->Consulta_Mysql($sql);\n $row = mysql_fetch_array($result);\n return $row;\n }" ]
[ "0.7483587", "0.7480224", "0.74065113", "0.73093337", "0.72550046", "0.72046214", "0.7178627", "0.7137149", "0.7126968", "0.71266574", "0.7089757", "0.70719606", "0.7068917", "0.70585495", "0.7045348", "0.69795966", "0.69606644", "0.696037", "0.69602686", "0.6953094", "0.69411224", "0.69372976", "0.69297785", "0.6913269", "0.6909051", "0.6908714", "0.6898539", "0.6874336", "0.685631", "0.68557185", "0.6853651", "0.6853169", "0.6848772", "0.68445075", "0.68386817", "0.683399", "0.6825268", "0.68245935", "0.68196094", "0.68175244", "0.6794221", "0.67840844", "0.67839515", "0.6781957", "0.678023", "0.6775798", "0.67675585", "0.6762823", "0.67599887", "0.67582643", "0.6744893", "0.6723662", "0.672342", "0.6718483", "0.67178273", "0.67112374", "0.6709952", "0.67098975", "0.6704731", "0.66994816", "0.6699078", "0.6695361", "0.6679841", "0.66749907", "0.66677076", "0.6653243", "0.6652029", "0.665143", "0.6650029", "0.6643279", "0.663344", "0.663201", "0.66314065", "0.6629083", "0.66281885", "0.6621756", "0.66208047", "0.66204375", "0.66130495", "0.6610672", "0.6608094", "0.6607906", "0.66042566", "0.6602971", "0.6602955", "0.66017836", "0.660065", "0.65913975", "0.6591226", "0.65903944", "0.6585827", "0.65848386", "0.6584586", "0.6584535", "0.6581898", "0.65808606", "0.65792817", "0.6577391", "0.65765595", "0.65748817", "0.6573429" ]
0.0
-1
Retorna os dados ao Controller
public function BuscarCadastro() { return TableFactory::getInstance('Cadastro')->incluirCadastro(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readAction(){\n\n //Pega o id do veiculo\n $veiculo = Application::getParam('id');\n if($veiculo === null){\n return json_encode(array(\n 'success' => false,\n 'message' => 'Veiculo é inválido ou não existe.',\n 'code' => 0\n ));\n }\n\n try {\n //Pega o veiculo solicitado\n $model = Veiculo::findOneBy(array('id' => $veiculo));\n }\n catch (\\Exception $e){\n\n //Caso algo dê errado, retorna uma menssagem de erro\n return json_encode(array(\n 'success' => false,\n 'message' => $e->getMessage(),\n 'code' => $e->getCode()\n ));\n }\n\n //Retorna os dados encontrados\n return json_encode(array(\n 'success' => true,\n 'data' => array($model->toArray()),\n 'total' => 1\n ));\n }", "public function index()\n {\n $body = (object) Request::all();\n\n // Verificación para el uso del Controllador\n if (!$this->validateController($body->usuario)) {\n return Response::json(['texto' => \"Actualmente no cuenta con permisos\"], 418);\n }\n\n return Clientes::Filtro()->with('detalle')->get();\n }", "public function index()\n {\n return response()->json(Controladores::todos());\n }", "public function index_get()\n {\n $config = array(\n 'id' => $this->get('id'),\n 'fields' => $this->get('fields'),\n 'type_id' => $this->get('type_id'),\n 'search' => $this->get('search'),\n 'limit' => $this->get('limit'),\n 'per_page' => $this->get('per_page'),\n 'page' => $this->get('page'),\n 'offset' => $this->get('offset'),\n 'order_type' => $this->get('order_type'),\n 'order_col' => $this->get('order_col')\n );\n\n //Validamos los permisos para crear usuarios\n if (!$this->ion_auth->is_admin()) \n {\n $this->response([\n 'status' => FALSE,\n 'message' => 'No tenés permisos'\n ], REST_Controller::HTTP_UNAUTHORIZED);\n }\n \n //Filtered rows\n $rows = $this->Rest_model->get($config);\n //Obtenemos el total\n $total_rows = $this->Rest_model->total();\n //Obtenemos la cuenta del total\n $count_query = $this->Rest_model->get($config, 1); //El 1 representa obtener el total de la query sin limite\n\n //Validamos que exista\n if($this->get('id') && empty($rows))\n {\n //Devolvemos un error en caso de que no exista\n $this->response([\n 'status' => FALSE,\n 'message' => 'El registro no existe'\n ], REST_Controller::HTTP_BAD_REQUEST);\n }\n\n //Traemos propiedades del objeto\n if(!empty($this->get('id')) && !empty($rows))\n {\n //$rows->assign = $this->Rest_model->get_assigned($config);\n }\n\n //Armamos la respuesta\n $response = array(\n 'data' => $rows,\n 'results' => array(\n 'recordsTotal' => $total_rows,\n 'recordsFiltered' => $count_query,\n )\n );\n \n //Si tenemos una respuesta con datos la devolvemos.\n if ($response)\n {\n $this->response($response, REST_Controller::HTTP_OK);\n }\n else\n {\n //Set the response and exit\n $this->response([\n 'status' => FALSE,\n 'message' => 'No se encontraron registros'\n ],REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n }\n }", "public function index()\n {\n return $this->getData();\n }", "public function index()\n {\n //retornar todos los registros\n return Directorio::all();\n }", "public function vistaReservasController(){\n //Se envia la consulta al model para que regrese la informacion\n $respuesta = Datos::vistaReservasModel();\n //y esta es enviada a la vista para ser procesada y mostrada.\n return $respuesta;\n }", "public function index(Request $request)\n {\n if($request->has('txtBuscar')){\n $doctores = Record::where('patient_id', $request->txtBuscar)->get();\n }else{\n $doctores = Record::all();\n }\n return $doctores;\n }", "public function index()\n {\n $respuesta['registros'] = Clientes::all()->toArray();\n $respuesta['mensaje'] = 'Registros Obtenidos Correctamente';\n $respuesta['resultado'] = true; \n return $respuesta;\n }", "public function index()\n {\n return response()->json(['data' => Compra::with([\"insumos\", \"insumos.insumo\", \"proveedor\"])->orderBy('fecha', 'DESC')->get()]);\n }", "public function index()\n {\n $pedidos = Pedido::all();\n\n if (count($pedidos) == 0) {\n return response()->json(['error' => 'true', 'message' => 'No existen pedidos cargados en el sistema.']);\n }\n\n $pedidos->load(['obra', 'solicitante']);\n\n return response()->json(['error' => 'false', 'data' => $pedidos, 'message' => 'Pedidos enviados correctamente.']);\n }", "public function index(){\n\n\t\t$model = new CursoModel();\n \n \n\t\t$data['cursos'] = $model->orderBy('id', 'DESC')->findAll();\n\n\t\treturn $this->respond($data);\n }", "public function index()\n {\n if ($request->all==true) {\n $empresa=Empresa::all();\n }else {\n $empresa=Empresa::paginate(5);\n }\n return response()->json($empresa);\n }", "public function index()\n {\n $data = $this->repository->all();\n\n return response()->json($data,200);\n }", "public function index()\n {\n $carros = Carro::orderBy('marca', 'asc')->paginate(6);\n \n return $this->sendResponse(\n CarroResource::collection($carros)->response()->getData(true),\n 'Carros recuperados com sucesso!'\n );\n }", "public function index()\n {\n return Contatos::orderBy('id', 'DESC')->get();\n }", "public function index()\n {\n // return request();\n return Usuario::all();\n }", "public function index()\n {\n //faz a consulta de todos os estabelecimentos nos banco de dados\n $estabelecimentos = Estabelecimento::all();\n return response()->json($estabelecimentos);\n }", "public function index()\n {\n return response()->json(ModelsArugula::all());\n }", "public function getSesionesControllerModel(){\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT a.id as id_alumno, a.imagen as imagen, sc.id as id, a.matricula as matricula, CONCAT(a.nombre,' ',a.apellidos) as nombre, ac.nombre as actividad, sc.hora as hora, sc.asistencia as asistencia FROM sesion_cai AS sc INNER JOIN alumnos AS a ON a.id=sc.id_alumno INNER JOIN actividades AS ac ON ac.id = sc.id_actividad WHERE fecha = CURDATE() AND hora >= DATE_FORMAT(NOW(), '%k:00:00') AND hora <= DATE_FORMAT(NOW(), '%k:59:59') AND asistencia=0\"); //preparacion de la consulta SQL \n\t\t$stmt->execute(); //ejecucion de la consulta\n\t\treturn $stmt->fetchAll(); //se retorna en un array asociativo el resultado de la consulta\n\t\t$stmt->close();\n\t}", "public function index()\n\t{\n\t\treturn Response::json(Usuari::get());\n\t\t// $usus = Response::json(Usuari::get());\n\t\t// return View::make('usuaris.create')->with('usus', $usus);\n\t}", "public function index()\n {\n \n $response = [];\n \n $parentescos = Parentescos::all();\n $response['data'] = $parentescos;\n $response['code'] = \"200\";\n $response['msg'] = \"Parentescos Listados Con Exito\";\n return $response;\n }", "public function index()\n\t{\n\t\t$res['data']=Ingresos::All();\n\t\t$respuesta = json_encode(array('error' =>false,'mensaje'=>'', 'respuesta'=>$res));\n\t\t$final_response = Response::make($respuesta, 200);\n $final_response->header('Content-Type', \"application/json; charset=utf-8\");\n\n return $final_response;\n\t}", "public function index()\n {\n //echo $request;\n //return response()->json($request->json()->get('userid'));\n $TipoDocumento = tdocumentos::orderBy(\"tdocumentos_codigo\")->get();\n return response()->json($TipoDocumento);\n }", "public function index()\n\t{\n\n\t\t$instance = new static;\n\t\t$obj = call_user_func($instance->model . '::all',null);\n\t\treturn static::responseSuccess( $obj );\n\t}", "public function index()\n {\n return ParamedicResource::collection(Paramedic::all());\n }", "public function index()\n {\n //\n return Paciente::all();\n }", "public function index()\n {\n return $this->pedido->with(\n 'categoria',\n 'servico',\n 'envios',\n 'envios.prestador',\n 'interessados',\n 'interessados.prestador',\n 'situacao'\n )->where('ativo',1)->orderBy('id','DESC')->get();\n }", "public function index()\n {\n $dato = Empresa::all();\n $rs=['results'=>$dato];\n return response()->json($rs);\n }", "public function index(){\n return $this->model->all();\n }", "public function index()\n {\n //qui ritorno l'elenco delle liste\n //return TodoList::paginate(20);\n $lists = TodoList::paginate(20);\n return $this->getResult($lists->toArray());\n }", "public function index()\n\t{\n\t\treturn $this->repo->loadRecord();\n\t}", "public function index()\n {\n return $this->model->getAll();\n }", "public function index(){\n\n // $establecimientos = Establecimiento::all();\n // como establecimiento tiene una relacion con categoria en el modelo de establecimiento,\n // entonces podemos usa 'with' que es parte de laravel eager loading para obtener ademnas de los establecimientos, las categorias relacionadas\n $establecimientos = Establecimiento::with('categoria')->get();\n return response()->json($establecimientos);\n }", "public function index()\n {\n return Procliente::all();\n }", "public function vistaUsuariosController(){\n //Se envia la consulta al model para que regrese la informacion\n $respuesta = Datos::vistaUsuariosModel();\n //y esta es enviada a la vista para ser procesada y mostrada.\n return $respuesta;\n }", "public function index()\n {\n return response()->json(Receta::with('ingredientes','comedor')->get());\n }", "public function indexAction() {\n $data = array();\n $data['sample'] = \"My Data from the User controller Index action!\";\n return $data;\n }", "public function index() {\n\t\t$respostas = $this->Resposta->find('all');\n\n\t\t$this->set('respostas', $respostas);\n\t}", "public function index()\n {\n $repository = new UsuarioRepository; \n return $repository->findAll();\n }", "public function index()\n {\n //\n $clientes = TcCliente::where('id_estado', 1)->get();\n $productos = TtProducto::with('sabor', 'tipo_producto', 'tamanio')->where('id_estado','=',1)->get();\n foreach ($productos as $i => $producto) {\n $producto->producto = $producto->producto .': '. $producto->tipo_producto->tipo_producto.' '.$producto->sabor->sabor.' '. $producto->tamanio->tamanio;\n unset($productos[$i]->sabor); \n unset($productos[$i]->tipo_producto); \n unset($productos[$i]->tamanio); \n }\n $direcciones = new TtDireccionPedidoController();\n $direcciones = $direcciones->index();\n $data = collect([\"clientes\" => $clientes, \"productos\" => $productos, \"direcciones\" => $direcciones]);\n return response()->json($data);\n }", "public function index()\n {\n try {\n $query = 'SELECT * FROM subjects';\n $stmt = $this->db->prepare($query);\n $stmt->execute();\n $subjects = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n\n return $subjects; // return to controller\n } catch (PDOException $exception) {\n die($exception->getMessage());\n }\n }", "public function index()\n {\n /*$tipotrans = mtipotran::all();\n $response = Response::json($tipotrans,200);\n return $response;*/\n\n return response()->json([\n 'data' => mtipotran::all(),\n ], 200);\n }", "public function indexAction(){\n //Trazendo todos os registros que forem encontrados.\n $list = $this->getEm()\n ->getRepository($this->entity)\n ->findAll();\n //Pegar o parametro page caso ele tenha\n $page = $this->params()->fromRoute('page');\n //Respons�vel pela pagina��o\n $paginator = new Paginator(new ArrayAdapter($list));\n $paginator->setCurrentPageNumber($page)\n //Um registro por p�gina\n ->setDefaultItemCountPerPage(10);\n \n return new ViewModel(array('data' => $paginator, 'page'=>$page));\n }", "public function index()\n {\n $actividades = Actividad::all();\n\n return response()->success($actividades, new ActividadesTransformer);\n }", "public function indexAction()\n {\n return new JsonModel();\n }", "public function index()\n {\n return $this->get();\n }", "public function index()\n {\n return $this->findModel()->toArray();\n }", "public function index()\n {\n $this->request->allowMethod(['get']);\n\n $this->set('data', $this->Users->find());\n }", "public function indexAction()\n {\n $security = $this->get('security');\n if(!$security->authentication()){ return $this->redirect($this->generateUrl('login'));} \n if(!$security->authorization($this->getRequest()->get('_route'))){ throw $this->createNotFoundException($this->get('translator')->trans(\"Acceso denegado\"));}\n $usuarioId = $security->getSessionValue('id');\n \n $mentorias = $this->getMentorias($usuarioId, false);\n \n return array(\n 'mentorias' => $mentorias\n );\n }", "public function index()\n {\n //\n $alumno=alumnos::all(['id','nombre','apellido','carrera','direccion','telefono']);\n return response()->json(alumno);\n }", "public function index(){\n $retangulo = $this->retangulo->get_all();\n return response()->json($retangulo, 200);\n }", "public function index()\n {\n $iva = Iva::all();\n return $this->sendResponse(IvaResource::collection($iva), 'iva traidos');\n }", "public function index()\n {\n $data = matakuliah::with('dosen', 'prodi')->get();\n $data2 = dosen::all();\n $data3 = prodi::all();\n \n return response()->json(['item' => $data, 'item2' => $data2, 'item3' => $data3], 200);\n }", "public function index()\n {\n $categories = Category::get();\n return $this -> returnData('categories', $categories);\n\n\n }", "public function index()\n\t{\n\t\t$requests = RequestAccess::all();\n return $requests->toArray();\n\t}", "public function index()\n {\n $veiculos = Veiculo::all();\n return response()->json(['data' => $veiculos]); \n }", "public function index()\n {\n $data = Estudiantes::all();\n $data->map(function($item){\n $item->carreras = $item->carreras()->get();\n $item->carreras->map(function ($info){\n $info->nombreCarrera = $info->carrera()->first()->nombre;\n return $info;\n });\n return $item;\n });\n return response()->json(['data'=>$data],200);\n //return view(\"Estudiantes.menu\",[\"estudiantes\"=>Estudiantes::all()]);\n }", "public function index()\n {\n $trabajos = Trabajo::orderBy('id','desc')->get();\n return TrabajoResource::collection($trabajos);\n }", "public function index() {\n //acceder al modelo Libro y consutlar su informacion y devolverlo en un json\n $datosLibro = Libro::all();\n return response()->json($datosLibro);\n }", "public function getAction() {\r\n \t\r\n \t$data = $this->getMapper()->fetch($this->getRequest());\r\n \t\r\n \tif (is_array($data)) {\r\n \t\t$this->view->data = $data;\r\n \t} else {\r\n \t\t$this->view->data = $data->toArray();\r\n \t}\r\n \t$this->view->total = $this->getMapper()->rowCount();\r\n \treturn $this->view->data;\r\n }", "public function index()\n {\n return response()->json(['data'=>TiendaApi::where('estado',1)->get()],200);\n }", "public function index() {\n\n return 1;\n\n $usuarios = GestionUsuario::all();\n\n return response()->json($usuarios, 200);\n }", "public function index()\n {\n return $this->model->all();\n }", "public function index()\n {\n //\n $pacientes = Paciente::orderBy('name')->get();\n return response()->json([\n 'type' => 'pacientes',\n 'data' => $pacientes->toArray()\n ]);\n }", "public function index()\n {\n $cruds = Crud::all();\n \n return $this->sendResponse(CrudResource::collection($cruds), 'Cruds retrieved successfully.');\n }", "public function index()\n {\n return json_encode([\n 'status_code' => 200,\n 'data' => $this->model::all()\n ]);\n }", "public function index()\n {\n $empresas_aseguradoras = EmpresasAseguradoras::all();\n return response()->json(['empresas_aseguradoras' => $empresas_aseguradoras, 'success' => true, 'mensaje' => \"Datos encontrados.\"], 200);\n }", "public function index()\n {\n try {\n \n return response()->json([\n 'status' => true,\n 'data'=>[\n 'marcas' => Marcas::where('id', '>', 0)->with(['modelos'])->orderBy('id', 'desc')->get()\n ]\n ]);\n\n } catch (\\Exception $e) {\n return response()->json(['status' => false, 'message' => 'nao_foi_possivel_trazer_marcas'], 500);\n }\n }", "public function index(){\n \t$clientes= ClienteModel::All();\n \treturn view('cliente.read',compact('clientes'));\n }", "public function index()\n\t{\n\t\t$ciudads = $this->ciudadRepository->all();\n\n\t\treturn $this->sendResponse($ciudads->toArray(), \"Ciudads retrieved successfully\");\n\t}", "public function index()\n {\n return OrdenTrabajo::all();\n\n }", "public function index()\n {\n $ciudad = Ciudad::with('departamento')->paginate(15);\n\n return $this->sendResponse($ciudad->toArray(), 'Ciudades devueltas con éxito');\n }", "public function indexAction()\n {\n $helpers = $this->get(\"app.helpers\");\n $em = $this->getDoctrine()->getManager();\n\n $msvTalonarios = $em->getRepository('AppBundle:MsvTalonario')->findBy(\n array('estado' => true)\n );\n \n $response['data'] = array();\n\n if ($msvTalonarios) {\n $response = array(\n 'status' => 'success',\n 'code' => 200,\n 'msj' => 'listado talonarios',\n 'data' => $msvTalonarios,\n );\n }\n return $helpers->json($response);\n }", "public function index()\n {\n $candidato = $this->candidato->all();\n return $candidato;\n }", "public function index()\n {\n return response()->json([\n \"Itens da Compra\"=>supermercado::pluck('valor','nome'),\n \"Total a Pagar\"=>supermercado::sum('valor')\n ]);\n }", "public static function index()\n {\n return Comida::all();\n }", "public function index()\n {\n $usuarios = dev_Usuario::get();\n return $usuarios;\n }", "public function actionIndex(){\n $data = Category::find()->all();\n return $data;\n }", "public function index()\n {\n $operacion = Operacion::all();\n return $this->showAll($operacion);\n }", "public function index()\n {\n //\n $alumnoSeccion = Seccion_Alumno::all();\n return response()->json($alumnoSeccion);\n }", "public function index(Request $request)\n {\n try {\n $model = $this->getModel();\n $lstRecords = $model->queryByModel($request->all());\n //return RestResource::collection($lstRecords);\n //return RestResource::collection($lstRecords);\n //return $lstRecords;\n //return RestResource::collection($lstRecords);\n return $lstRecords;\n } catch (\\Exception $ex) {\n return $this->respondError($ex);\n }\n }", "public function index()\n {\n //cargar todos los establecimientos\n $establecimientos = \\App\\Establecimiento::\n with(['usuario' => function ($query){\n $query->select('id', 'email', 'nombre', 'ciudad', 'estado', 'telefono', 'imagen', 'tipo_usuario', 'token_notificacion')\n ->where('tipo_usuario', 4);\n }])\n ->get();\n\n if(count($establecimientos) == 0){\n return response()->json(['error'=>'No existen establecimientos.'], 404); \n }else{\n return response()->json(['establecimientos'=>$establecimientos], 200);\n } \n }", "public function index() {\n $meja = Meja::all();\n\n if(count($meja) > 0) {\n return response([\n 'message' => 'Retrieve All Success',\n 'data' => $meja\n ], 200);\n }\n\n return response([\n 'message' => 'Empty',\n 'data' => null\n ], 404);\n }", "public function index()\n {\n $contaBancaria = ContaBancaria::all();\n return $contaBancaria;\n }", "public function index()\n {\n //Coloquei um retorno de uma lista de ususarios para caso deseje futuramente listar os usuarios na view \n //index possa acessar pela variavel usuario.\n $usuario = Cadastro::all();\n return view('cadastro.index')->with(['usuario'=>$usuario]);\n //Fum da consulta.\n }", "public function index()\n {\n try {\n $pengembalian = PengembalianDana::with('transaksi')->whereHas('project.pembayaran.pin.pengajuan', function ($query) {\n $query->where('kode_client', Auth::id());\n })->paginate(10);\n return (new PengembalianDanaResourceController(['data' => $pengembalian]))->response()->setStatusCode(200);\n } catch (ModelNotFoundException $ee) {\n return (new PengembalianDanaResourceController(['error' => 'Item tidak ditemukan.']))->response()->setStatusCode(401);\n }\n }", "public function index()\n\t{\n\t $properties = Propiedad::all();\t \n\t\treturn Response::json($properties->toArray(), 200);\t\t\t\n\t}", "public function index()\n {\n return response()->json(['data'=>TaskSequence::all(), 'status'=>200, 'message'=>'data successfully retrieved'] );\n }", "public function index()\n {\n //\n // return 'test';\n return $this->model->all();\n }", "public function index()\n {\n //\n $ret = cefire::get();\n return $ret->toArray();\n\n }", "public function index()\n {\n return Asistencia::all();\n }", "public function index()\n {\n return ObatMasuk::with('jenisObat','stokObat')->get();\n }", "public function index()\n {\n \t$clientes = Cliente::all();\n\t\treturn response()->json($clientes, 200);\n }", "public function index()\n {\n $carrera= \\App\\Models\\Carrera::get();\n return response()->json(\n [\n \"msg\"=>\"success\",\n \"carrera\"=>$carrera->toArray()\n ],200);\n }", "public function index()\n {\n $comentario = Comentario::all()->where('estado', true);\n if($comentario!=NULL){\n return response()-> json($comentario);\n }\n return response('ERROR 404');\n }", "public function index() // does not take parameter or values as it will show all the data inside makers\n\t{\n\t\t$makers = Maker::all(); // fetching all the value from the database (*)\n\t\treturn response()->json(['data' => $makers], 200); // returning the response in json format with status 200 code\n\t\t//\n\t}", "public function index()\n {\n $tipo = Tipo_pa::all();\n\n return response()->json(compact('tipo'));\n }", "public function index()\n {\n // Entrega las Comunas, Provincias y Regiones\n\n $comunas= ComunasModel::all();\n\n return $this->showAll($comunas);\n }", "public function indexAction()\n {\n\n $this->view['get'] = $this->params()->fromQuery();\n \n\t\t$db = new Depoimentos($this->tb, $this->adapter);\n\t\t$this->view['result'] = $db->getFilter($this->view['get']['de'],$this->view['get']['ate'], array('ativo','inativo'));\n\n\t\t//echo '<pre>'; print_r($this->view['result']); exit;\n\t\t\n \t\t$page = $this->params()->fromQuery('page', 0);\n \t\t$paginator = new \\Zend\\Paginator\\Paginator( new \\Zend\\Paginator\\Adapter\\ArrayAdapter( $this->view['result'] ) );\n \t\t$paginator->setItemCountPerPage( 10 );\n \t\t$paginator->setCurrentPageNumber( $page );\n \t\t$this->view['result'] = $paginator;\n\t\t//view\n\t\t$view = new ViewModel($this->view);\n\t\treturn $view;\n }", "public function index()\n {\n return response()->json(TipoEquipo::all());\n }" ]
[ "0.7213842", "0.6995091", "0.6952026", "0.6882828", "0.68810904", "0.68728906", "0.68289804", "0.6819267", "0.6802652", "0.6797764", "0.67917585", "0.6787681", "0.67789495", "0.6774815", "0.6766548", "0.6758586", "0.6754839", "0.6749393", "0.6747169", "0.674047", "0.673943", "0.67325", "0.67322075", "0.6723302", "0.67228484", "0.67189014", "0.6717472", "0.67106736", "0.6704097", "0.6701105", "0.66925025", "0.6691334", "0.66904265", "0.66898084", "0.66884154", "0.668581", "0.66795707", "0.6674895", "0.66706127", "0.6670406", "0.6664031", "0.66616845", "0.6659491", "0.6659167", "0.6654649", "0.6654053", "0.6652179", "0.6648577", "0.6646847", "0.6646442", "0.6641587", "0.66354823", "0.6635263", "0.66287184", "0.6626152", "0.6617658", "0.66080123", "0.6606349", "0.66047984", "0.6603708", "0.65979904", "0.6597343", "0.6593703", "0.65916187", "0.65905446", "0.6582917", "0.6570308", "0.65687966", "0.6567906", "0.65673244", "0.65664124", "0.65659386", "0.656207", "0.65591913", "0.6555604", "0.6553208", "0.65525925", "0.6549683", "0.6546378", "0.6546244", "0.6544196", "0.6543579", "0.65397257", "0.6538666", "0.6538246", "0.6531209", "0.6529444", "0.6528357", "0.6527736", "0.65245026", "0.65242255", "0.6523945", "0.6523062", "0.6522633", "0.6516814", "0.65156585", "0.6513121", "0.6510631", "0.65102994", "0.65094936", "0.65065485" ]
0.0
-1
Inclui a biblioteca do JSON
public function editaTexto($parametros) { LibFactory::getInstance(null,null,'Zend/Json.php'); //Instancia o componente de validação $ComponenteValidacao = getComponent('validacoes/textos.validacao','TextosValidacao'); //total de idiomas $total = count(TableFactory::getInstance('WebsiteIdiomas')->getIdiomas()); //Executa a Validação $resultado_validacao = $ComponenteValidacao->validar($parametros, $total); //Verifica o resultado da validação if(count($resultado_validacao) == 0) { //Trata os dados antes de gravar no banco de dados $parametros = HelperFactory::getInstance()->TrataValor($parametros,null,null,null,true); for($i = 1; $i <= $total; $i++) { //salva os dados atualizados TableFactory::getInstance('Textos')->ExecuteEditaTexto($parametros, $i); } //Busca os textos de erro $erro = TableFactory::getInstance('TextosLayoutAdmin')->getLayoutTexts(); //Mensagem de confirmação via SESSION(usar sempre o indice view_data) $_SESSION['view_data'] = array('mensagem_confirmacao' => $erro[35]); //Retorna o resultado da atualização do texto echo Zend_Json::encode(array("1")); } else { //Retorna os erros da validação echo Zend_Json::encode($resultado_validacao); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateJSON_LD(){\n\t\t \n\t\t $metadata = $this->metadata;\n\t\t $JSON_LD = array();\n\t\t \n\t\t $JSON_LD[\"metadata-version\"] = self::JSONldVersion;\n\t\t $JSON_LD[\"@context\"] = array(\n\n\t\t\t\t\"type\" => \"@type\",\n\t\t\t\t\"id\" => \"@id\",\n\t\t\t\t\"tableID\" => \"http://purl.org/dc/elements/1.1/identifier\",\n\t\t\t\t\"title\" => \"http://purl.org/dc/elements/1.1/title\",\n\t\t\t\t\"description\" => \"http://purl.org/dc/terms/abstract\",\n\t\t\t\t\"published\" => \"http://purl.org/dc/terms/issued\",\n\t\t\t\t\"updated\" => \"http://purl.org/dc/terms/modified\",\n\t\t\t\t\"doi\" => \"http://purl.org/ontology/bibo/doi\",\n\t\t\t\t\"ark\" => \"http://en.wikipedia.org/wiki/Archival_Resource_Key\",\n\t\t\t\t\"versionControl\" => \"http://purl.org/dc/terms/hasVersion\",\n\t\t\t\t//\"editorList\" => array(\"@id\" => \"http://purl.org/ontology/bibo/editorList\", \"@container\" => \"@list\"),\n\t\t\t\t\"editorList\" => \"http://purl.org/ontology/bibo/editorList\",\n\t\t\t\t\"editor\" => \"http://purl.org/ontology/bibo/editor\",\n\t\t\t\t//\"contributorList\" => array(\"@id\" => \"http://purl.org/ontology/bibo/contributorList\", \"@container\" => \"@list\"),\n\t\t\t\t\"contributorList\" => \"http://purl.org/ontology/bibo/contributorList\",\n\t\t\t\t\"contributor\" => \"http://purl.org/dc/terms/contributor\",\n\t\t\t\t\"references\" => \"http://purl.org/dc/terms/references\",\n\t\t\t\t\"name\" => \"http://www.w3.org/2000/01/rdf-schema#label\",\n\t\t\t\t\"spatial\" => \"http://purl.org/dc/terms/spatial\",\n\t\t\t\t\"temporal\" => \"http://purl.org/dc/terms/temporal\",\n\t\t\t\t\"recordCount\" => \"http://rdfs.org/ns/void#entities\", //number of entities\n\t\t\t\t\"fieldCount\" => \"http://rdfs.org/ns/void#properties\", //number of properties\n\t\t\t\t\"license\" => \"http://www.w3.org/1999/xhtml/vocab/#license\", //copyright license\n\t\t\t\t\"publisher\" => \"http://purl.org/dc/terms/publisher\",\n\t\t\t\t\"partOf\" => \"http://purl.org/dc/terms/isPartOf\"\n\t\t\t\t);\n\t\t \n\t\t $JSON_LD[\"id\"] = $this->generateTableURI();\n\t\t $JSON_LD[\"tableID\"] = $this->getGenerateTableID();\n\t\t $JSON_LD[\"title\"] = $metadata[\"title\"];\n\t\t $JSON_LD[\"description\"] = $metadata[\"description\"];\n\t\t if($this->pubCreated){\n\t\t\t\t$JSON_LD[\"published\"] = date(\"Y-m-d\\TH:i:s\\-07:00\", strtotime($this->pubCreated));\n\t\t }\n\t\t else{\n\t\t\t\t$JSON_LD[\"published\"] = date(\"Y-m-d\\TH:i:s\\-07:00\", time());\n\t\t }\n\t\t $JSON_LD[\"updated\"] = date(\"Y-m-d\\TH:i:s\\-07:00\", time());\n\t\t $JSON_LD[\"recordCount\"] = $metadata[\"recordCount\"];\n\t\t $JSON_LD[\"fieldCount\"] = count($metadata[\"tableFields\"]);\n\t\t $JSON_LD[\"publisher\"] = array(\"name\" => \"Open Context\",\n\t\t\t\t\t\t\t\t\t\t\t\t \"id\" => \"http://opencontext.org\");\n\t\t $JSON_LD[\"license\"] = $metadata[\"license\"];\n\t\t \n\t\t if($metadata[\"doi\"] != false){\n\t\t\t\t$JSON_LD[\"doi\"] = $metadata[\"doi\"];\n\t\t }\n\t\t if($metadata[\"ark\"] != false){\n\t\t\t\t$JSON_LD[\"ark\"] = $metadata[\"ark\"];\n\t\t }\n\t\t if($this->tablePage > 1){\n\t\t\t\t$JSON_LD[\"partOf\"] = $this->generateParentPartURI();\n\t\t }\n\t\t if(isset($metadata[\"versionControl\"])){\n\t\t\t\tif($metadata[\"versionControl\"] != false){\n\t\t\t\t\t $JSON_LD[\"versionControl\"] = $metadata[\"versionControl\"];\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t if(count($metadata[\"rawCreators\"])>0){\n\t\t\t\t$JSON_LD[\"editorList\"][\"@id\"] = \"#editor-list\";\n\t\t\t\tforeach($metadata[\"rawCreators\"] as $uriKey => $nameArray){\n\t\t\t\t\t $JSON_LD[\"editorList\"][\"editor\"][] = array(\"name\" => $nameArray[\"name\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"count\" => $nameArray[\"count\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"id\" => $uriKey\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t\t\t \n\t\t\t\t}\n\t\t }\n\t\t if(count($metadata[\"rawContributors\"])>0){\n\t\t\t\t$JSON_LD[\"contributorList\"][\"@id\"] = \"#contributor-list\";\n\t\t\t\tforeach($metadata[\"rawContributors\"] as $uriKey => $nameArray){\n\t\t\t\t\t $JSON_LD[\"contributorList\"][\"contributor\"][] = array(\"name\" => $nameArray[\"name\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"count\" => $nameArray[\"count\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"id\" => $uriKey\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t\t\t \n\t\t\t\t}\n\t\t }\n\t\t if(count($metadata[\"projects\"])>0){\n\t\t\t\tforeach($metadata[\"projects\"] as $uriKey => $nameArray){\n\t\t\t\t\t $JSON_LD[\"references\"][] = array(\"name\" => $nameArray[\"name\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"count\" => $nameArray[\"count\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"type\" => \"http://opencontext/about/concepts#projects\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"id\" => $uriKey\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t\t\t \n\t\t\t\t}\n\t\t }\n\t\t \n\t\t $JSON_LD[\"files\"] = $metadata[\"files\"];\n\t\t $JSON_LD[\"tableFields\"] = $metadata[\"tableFields\"];\n\t\t $this->JSON_LD = $JSON_LD;\n\t\t return $JSON_LD;\n\t }", "public function toLDJSON()\n {\n }", "public function insert_json_ld( $att ) {\r\n\t\t\t$retHtml = '<!-- BL Contact JSON feed --><script type=\"application/ld+json\">{';\r\n\r\n\t\t\t\t$retHtml .= '\"@context\": \"https://schema.org\",';\r\n\t\t\t\t$retHtml .= '\"@type\": \"' . $this->value('seo_business_type') . '\",';\r\n\t\t\t\t$retHtml .= '\"url\": \"' . get_bloginfo('url') . '\",';\r\n\t\t\t\t$retHtml .= '\"address\": {';\r\n\t\t\t\t\t$retHtml .= '\"@type\": \"PostalAddress\",';\r\n\t\t\t\t\t$retHtml .= '\"addressLocality\": \"' . $this->value('town') . '\",';\r\n\t\t\t\t\t$retHtml .= '\"addressRegion\": \"' . $this->value('state') . '\",';\r\n\t\t\t\t\t$retHtml .= '\"postalCode\":\"' . $this->value('postcode') . '\",';\r\n\t\t\t\t\t$retHtml .= '\"streetAddress\": \"' . $this->value('address') . '\"';\r\n\t\t\t\t$retHtml .= '},';\r\n\t\t\t\t$retHtml .= '\"description\": \"' . get_bloginfo('description') . '\",';\r\n\t\t\t\t$retHtml .= '\"name\": \"' . get_bloginfo('name') . '\",';\r\n\t\t\t\t$retHtml .= '\"image\": [\"' . $this->value('seo_business_image') . '\"],';\r\n\t\t\t\t$retHtml .= '\"telephone\": \"' . $this->value('phone') . '\"';\r\n\t\t\t\t\r\n\t\t\t\t$lat = $this->value('lat');\r\n\t\t\t\t$lng = $this->value('lng');\r\n\t\t\t\tif ( (strlen($lat) > 0) && (strlen($lng) > 0) ) {\r\n\t\t\t\t\t$retHtml .= ',\"geo\": {';\r\n\t\t\t\t\t\t$retHtml .= '\"@type\": \"GeoCoordinates\",';\r\n\t\t\t\t\t\t$retHtml .= '\"latitude\": \"' . $lat . '\",';\r\n\t\t\t\t\t\t$retHtml .= '\"longitude\": \"' . $lng . '\"';\r\n\t\t\t\t\t$retHtml .= '}';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$social_urls = \"\";\r\n\t\t\t\tif (stripos($this->value('facebook'),'https://facebook.com') !== false) {\r\n\t\t\t\t\t$social_urls .= '\"' . $this->value('facebook') . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif (stripos($this->value('twitter'),'https://twitter.com') !== false) {\r\n\t\t\t\t\t$social_urls .= '\"' . $this->value('twitter') . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif (stripos($this->value('instagram'),'https://instagram.com') !== false) {\r\n\t\t\t\t\t$social_urls .= '\"' . $this->value('instagram') . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif (stripos($this->value('linkedin'),'https://linkedin.com') !== false) {\r\n\t\t\t\t\t$social_urls .= '\"' . $this->value('linkedin') . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif (stripos($this->value('pinterest'),'https://pinterest.com') !== false) {\r\n\t\t\t\t\t$social_urls .= '\"' . $this->value('pinterest') . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif (stripos($this->value('youtube'),'https://youtube.com') !== false) {\r\n\t\t\t\t\t$social_urls .= '\"' . $this->value('youtube') . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->endsWith($social_urls,\",\")) {\r\n\t\t\t\t\t$social_urls = substr($social_urls,0, strlen($social_urls)-1);\r\n\t\t\t\t}\r\n\t\t\t\tif (strlen($social_urls) > 0) {\r\n\t\t\t\t\t$retHtml .= ',\"sameAs\" : [ ' . $social_urls . ']';\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t// Opening Hours\r\n\t\t\t\t$openHours = \"\";\r\n\t\t\t\tif ($this->value('open_mon') != $this->value('close_mon') ) {\r\n\t\t\t\t\t$openHours .= '\"Mo ' . formatHours($this->value('open_mon')) . '-' . formatHours($this->value('close_mon')) . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->value('open_tue') != $this->value('close_tue') ) {\r\n\t\t\t\t\t$openHours .= '\"Tu ' . formatHours($this->value('open_tue')) . '-' . formatHours($this->value('close_tue')) . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->value('open_wed') != $this->value('close_wed') ) {\r\n\t\t\t\t\t$openHours .= '\"We ' . formatHours($this->value('open_wed')) . '-' . formatHours($this->value('close_wed')) . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->value('open_thu') != $this->value('close_thu') ) {\r\n\t\t\t\t\t$openHours .= '\"Th ' . formatHours($this->value('open_thu')) . '-' . formatHours($this->value('close_thu')) . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->value('open_fri') != $this->value('close_fri') ) {\r\n\t\t\t\t\t$openHours .= '\"Fr ' . formatHours($this->value('open_fri')) . '-' . formatHours($this->value('close_fri')) . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->value('open_sat') != $this->value('close_sat') ) {\r\n\t\t\t\t\t$openHours .= '\"Sa ' . formatHours($this->value('open_sat')) . '-' . formatHours($this->value('close_sat')) . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->value('open_sun') != $this->value('close_sun') ) {\r\n\t\t\t\t\t$openHours .= '\"Su ' . formatHours($this->value('open_sun')) . '-' . formatHours($this->value('close_sun')) . '\",';\r\n\t\t\t\t}\r\n\t\t\t\tif ($this->endsWith($openHours,\",\")) {\r\n\t\t\t\t\t$openHours = substr($openHours,0, strlen($openHours)-1);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (strlen($openHours) > 0) {\r\n\t\t\t\t\t$retHtml .= ',\"openingHours\" : [ ' . $openHours . ']';\r\n\t\t\t\t}\r\n\t\t\t\tif (strlen( $this->value('seo_extra_meta_tags') ) > 0) {\r\n\t\t\t\t\t$retHtml .= ',' . $this->value('seo_extra_meta_tags');\r\n\t\t\t\t}\r\n\r\n\t\t\t$retHtml .= '}</script>';\r\n\t\t\treturn $retHtml;\r\n\t\t}", "public function include_json_folders()\n {\n }", "function readJSON($file) {\n //JSON Bib einlesen und zurückgeben\n $Lesesaalampel = json_decode($file, true);\n return $Lesesaalampel;\n}", "function getAllCitationJson($lang){\n //$file = \"ressources/views/json_files/all_tests/\".$lang.\"_all_test.json\";\n $file = $_SERVER['STORAGE_BASE'] . \"/json_files/all_quotes/\" . $lang . \"_all_quotes.json\";\n\n $jsondata = file_get_contents($file);\n // converts json data into array\n $arr_data = json_decode($jsondata);\n $allcitation = array();\n foreach ($arr_data as $citation) {\n $allcitation [$citation->id_citation] = [\n \"id_citation\" => $citation->id_citation,\n \"id_rubrique\" => $citation->id_rubrique,\n \"statut\" => $citation->statut,\n \"if_translated\" => $citation->if_translated,\n \"if_personalizable\" => $citation->if_personalizable,\n \"default_lang\" => $citation->default_lang,\n \"titre_citation\" => stripslashes((string)$citation->titre_citation),\n \"url_image_citation\" => $citation->url_image_citation,\n \"url_thumb_img_citation\"=> $citation->url_thumb_img_citation,\n \"codes_countries\" => $citation->codes_countries\n ];\n }\n\n return $allcitation;\n }", "function monk_json_load( $paths ) {\n\t\t\tunset($paths[0]);\n\t\t\t\n\t\t\t\n\t\t\t// append path\n\t\t\t$paths[] = get_stylesheet_directory() . '/acf-json';\n\t\t\t\n\t\t\t\n\t\t\t// return\n\t\t\treturn $paths;\n\t\t\t\n\t}", "function json_post($post_id) {\n // $post = get_post($post_id);\n // $fields = get_fields($post_id);\n $content = array();\n\n //On récupère les lat lng en fonction de l'adresse\n $coords = geocode(get_field('adresse_de_lassociation',$post_id),get_field('ville',$post_id),\"FRANCE\");\n // $fields['latitude'] = $coords['latitude'];\n // $fields['longitude'] = $coords['longitude'];\n\n\n update_field('field_528e0e4107a59', $coords['latitude'], $post_id);\n update_field('field_528e0e5207a5a', $coords['longitude'], $post_id);\n\n\n //array_push($content,$fields);\n\n \n\n $tmp = array();\n foreach(get_posts( array('post_type'=> 'associations')) as $key=>$value){\n $id=$value->ID;\n\n $tmp = get_fields($id);\n $tmp['nom']=get_the_title($id);\n $tmp['permalink']=get_permalink($id);\n $tmp['categories']=wp_get_post_terms($id,'categories');\n $tmp['action_en_cours']=wp_get_post_terms($id,'action_en_cours');\n\n array_push($content, $tmp);\n }\n\n $content = json_encode($content);\n\n $fp = fopen(get_stylesheet_directory().\"/associations.json\",\"wb\");\n fwrite($fp,$content);\n fclose($fp);\n\n}", "function loadLanguagePackade($jsonstrorlink, $defaultLang=\"en\") {\r\n if(is_array($jsonstrorlink)) {\r\n $streams = [];\r\n foreach($jsonstrorlink as $entry) {\r\n if(strpos($entry, \"file:///\")===0) {\r\n $entry = str_replace(\"file:///\", \"\", $entry);\r\n array_push($streams, json_decode(file_get_contents($entry, true)));\r\n } else {\r\n array_push($streams, json_decode($jsonstrorlink, true));\r\n }\r\n }\r\n $parsedLangDescriptor = new TemplaterLanguageDescriptor($streams, [\"defaultLang\"=>$defaultLang]);\r\n } else {\r\n if(strpos($jsonstrorlink, \"file:///\")===0) {\r\n $jsonstrorlink = str_replace(\"file:///\", \"\", $jsonstrorlink);\r\n $stream = file_get_contents($jsonstrorlink);\r\n } else {\r\n $stream = $jsonstrorlink;\r\n }\r\n $parsedLangDescriptor = new TemplaterLanguageDescriptor([json_decode($stream, true)], [\"defaultLang\"=>$defaultLang]);\r\n }\r\n array_push($this->langsInstances, $parsedLangDescriptor); \r\n }", "function pegaCadastrosJson(){\n $arquivo = file_get_contents('json/cadastros.json');//arquivo Json que será pego\n $GLOBALS['cadastros'] = json_decode($arquivo);//salva no array global cadastros os cadastros\n $cadastrosLocal = $GLOBALS['cadastros'];\n }", "function test_json_lookup_posts() {\n\t\t\n\t}", "function catalog2json( $c ) {\n $catalogs = null;\n FileMgrIrodsWs::collections( $catalogs, $c->name );\n \n /* Return a 'context' for the catalog to be displayed\n */\n $context = '';\n foreach( explode( '/', $c->name ) as $s ) {\n if( $s != '' ) $context .= '&nbsp;/&nbsp;'.$s;\n }\n return json_encode(\n array (\n \"label\" => '<em style=\"color:#0071bc;\"><b>'.basename( $c->name ).'</b></em>',\n \"expanded\" => false,\n \"isLeaf\" => count( $catalogs ) < 1,\n \"type\" => BROWSE_CATALOGS,\n \"title\" => \"click to see nested iRODS catalogs\",\n \"path\" => $c->name,\n \"context\" => $context\n )\n );\n}", "public function _jsonSerialize();", "function my_acf_json_load_point( $paths ) {\n\t\t\t\tunset($paths[0]);\n\t\t\t\t\n\t\t\t\t// append path\n\t\t\t\t$paths[] = IG_BLOCKS_PLUGIN_PATH . '/ig-faq-json';\n\t\t\t\t\n\t\t\t\t// return\n\t\t\t\treturn $paths;\n\t\t\t\t\n\t\t\t}", "public function json_ld() {\n\t\t$deprecated_data = array(\n\t\t\t'_deprecated' => 'Please use the \"wpseo_schema_*\" filters to extend the Yoast SEO schema data - see the WPSEO_Schema class.',\n\t\t);\n\n\t\t/**\n\t\t * Filter: 'wpseo_json_ld_output' - Allows disabling Yoast's schema output entirely.\n\t\t *\n\t\t * @api mixed If false or an empty array is returned, disable our output.\n\t\t */\n\t\t$return = apply_filters( 'wpseo_json_ld_output', $deprecated_data, '' );\n\t\tif ( $return === array() || $return === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\tdo_action( 'wpseo_json_ld' );\n\t}", "function smarty_modifier_json($data) {\n require_once ANGIE_PATH . '/classes/json/init.php';\n return do_json_encode($data);\n }", "public function include_json_folder($path = '')\n {\n }", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function json();", "public static function printJsonUpdateLibrary()\n {\n self::printJson(self::getUpdateLibrary());\n }", "abstract protected function getAdditionalJsonData(): array;", "function importJSON() {\n\n\t$allPosts = json_decode( file_get_contents( content_url() . \"/book.json\" ) );\n\n\t$chapters = array(\n\n\t\t1 => \"Reactive environments\",\n\t\t2 => \"Language in/as any&nbsp;form\",\n\t\t3 => \"Recontextualisation\",\n\t\t4 => \"Focus\",\n\t\t5 => \"Ambiguity\",\n\t\t6 => \"Uniqueness and hybridity&nbsp;of&nbsp;media\"\n\n\t);\n\t\n\t// add all chapters (categories)\n\tforeach($chapters as $name) {\n\t\t\n\t\tif( get_cat_ID($name) === 0 ) {\n\t\t\t\n\t\t\twp_insert_term($name, \"category\", array('description' => \"\"));\n\t\t}\n\t}\n\n\tremoveMyPosts();\n\n\tforeach($allPosts as $par) {\n\n\t\t$postCount++;\n\t\t$sortArray[] = strval($par->id);\n\n\t\t$checkExisting = get_page_by_title( $par->id, OBJECT, 'post' );\n\n\t\t$postData = array(\n\t\t\t//'ID'\t\t\t => [ <post id> ] // Are you updating an existing post?\n\t\t\t'post_content'\t=> $par->content, // The full text of the post.\n\t\t\t//'post_name'\t => [ <string> ] // The name (slug) for your post\n\t\t\t'post_title'\t\t=> $par->id, // The title of your post.\n\t\t\t'post_status'\t=> 'publish', // Default 'draft'.\n\t\t\t//'post_type'\t => [ 'post' | 'page' | 'link' | 'nav_menu_item' | custom post type ] // Default 'post'.\n\t\t\t'post_author'\t=> 1, // The user ID number of the author. Default is the current user ID.\n\t\t\t'ping_status'\t=> 'closed', // Pingbacks or trackbacks allowed. Default is the option 'default_ping_status'.\n\t\t\t//'post_parent'\t => [ <post ID> ] // Sets the parent of the new post, if any. Default 0.\n\t\t\t//'menu_order'\t => [ <order> ] // If new post is a page, sets the order in which it should appear in supported menus. Default 0.\n\t\t\t//'to_ping'\t\t => // Space or carriage return-separated list of URLs to ping. Default empty string.\n\t\t\t//'pinged'\t\t => // Space or carriage return-separated list of URLs that have been pinged. Default empty string.\n\t\t\t//'post_password' => [ <string> ] // Password for post, if any. Default empty string.\n\t\t\t//'guid'\t\t\t => // Skip this and let Wordpress handle it, usually.\n\t\t\t//'post_content_filtered' => // Skip this and let Wordpress handle it, usually.\n\t\t\t//'post_excerpt'\t => [ <string> ] // For all your post excerpt needs.\n\t\t\t//'post_date'\t => [ Y-m-d H:i:s ] // The time post was made.\n\t\t\t//'post_date_gmt' => [ Y-m-d H:i:s ] // The time post was made, in GMT.\n\t\t\t'comment_status' => 'closed', // Default is the option 'default_comment_status', or 'closed'.\n\t\t\t'post_category'\t=> array( get_cat_ID( $chapters[$par->chapter] ) ), // Default empty.\n\t\t\t'tags_input'\t\t=> 'Original' //, Default empty.\n\t\t\t//'tax_input'\t => [ array( <taxonomy> => <array | string> ) ] // For custom taxonomies. Default empty.\n\t\t\t//'page_template' => [ <string> ] // Default empty.\n\t\t);\n\n\t\t// iterate through references\n\t\tforeach( $par->references as $ref ) {\n\n\t\t\t$references[] = array(\n\t\t\t\t\"link\" => $ref->link,\n\t\t\t\t\"quote\" => urlencode($ref->quote)\n\t\t\t);\n\t\t}\n\n\t\t// TODO: if new post\n\n\t\t\t// insert post\n\t\t\t$postID = wp_insert_post( $postData );\n\n\t\t\t// if failed at one\n\t\t\tif( $postID === 0 ) { echo \"ERROR POSTING\"; exit; }\n\n\t\t\tsave_references( $references, $postID );\n\n\t\t// TODO: if existing post\n\n/*\n\t\t\t// insert post\n\t\t\t$postID = wp_update_post( $postData );\n\n\t\t\t// if failed at one\n\t\t\tif( $postID === 0 ) { echo \"ERROR POSTING\"; exit; }\n\n\t\t\t// add each reference as a custom field array\n\t\t\tforeach($references as $i => $ref) {\n\t\t\t\tupdate_post_meta($postID, 'reference-'.($i+1), $ref, true);\n\t\t\t}\n*/\n\n\n\t\t// clear reference array\n\t\t$references = [];\n\t\t\n/*\n\t\t// make 1s gaps between imports to have different timestamp\n\t\techo \"Imported \".$postCount.\". Sleeping 1s...\\n\";\n\t\tsleep(1);\n\n*/\n\t}\n\n\t// save edition info\n\t$edition = get_term_by('name', 'Original', 'post_tag');\n\t$editionData = array(\n\t\t\"author\" => \"Jure Martinec\",\n\t\t\"email\" => \"[email protected]\",\n\t\t\"sort\" => json_encode($sortArray),\n\t\t\"timestamp\" => time(),\n\t\t\"votes\" => array()\n\n\t);\n\tsave_extra_post_tag_fields($edition->term_id, $editionData);\n\n\techo \"IMPORTED \" . $postCount . \" POSTS.\";\n\texit;\n}", "function json($content = null){\n $this->_JSON = true;\n $this->_HTML = false;\n $this->_redirect = false;\n if(is_array($content)) $this->_JSON_contents = $content;\n }", "function jsonSerialize();", "function give_import_core_settings_merge_license_key( $json_to_array, $type ) {\n\tif ( 'merge' === $type ) {\n\t\tforeach ( $json_to_array as $key => $value ) {\n\t\t\t$is_license_key = strpos( '_license_key', $key );\n\t\t\tif ( ! empty( $is_license_key ) ) {\n\t\t\t\tunset( $json_to_array[ $key ] );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $json_to_array;\n}", "function add_recipe($r) {\n ## Fichier json contenant les recettes\n $file = \"./recipes.json\";\n\n ## Récupérer les données du fichier (càd la recette)\n if (file_exists($file)) {\n $contenu = file_get_contents($file);\n $data = json_decode($contenu, true);\n }\n\n ## Ajout de la recette dans l'array\n array_push($data,$r);\n\n ## Ré-encondage\n $nouveau_contenu = json_encode($data);\n file_put_contents($file,$nouveau_contenu);\n}", "function bibTex() {\n\t\t$bibtex = '';\n\t\tforeach ($this->data as $entry) {\n\t\t\t//Intro\n\t\t\t$bibtex .= '@' . strtolower($entry['entryType']) . ' { ' . $entry['cite'] . \",\\n\";\n\t\t\t//Other fields except author\n\t\t\tforeach ($entry as $key => $val) {\n\t\t\t\tif ($this->_options['wordWrapWidth'] > 0) {\n\t\t\t\t\t$val = $this->_wordWrap($val);\n\t\t\t\t}\n\t\t\t\tif (!in_array($key, array('cite', 'entryType', 'author', 'editor'))) {\n\t\t\t\t\tif($key != 'url')\n\t\t\t\t\t\t$val = str_replace(array_keys($this->escapedChars), array_values($this->escapedChars), $val);\n\t\t\t\t\tif($key == 'pages')\n\t\t\t\t\t\t$val = str_replace('-', '--', $val);\n\n\t\t\t\t\t$bibtex .= \"\\t\" . $key . ' = {' . $val . \"},\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Author\n\t\t\t$author = '';\n\t\t\tif (array_key_exists('author', $entry)) {\n\t\t\t\tif ($this->_options['extractAuthors']) {\n\t\t\t\t\t$tmparray = array(); //In this array the authors are saved and the joind with an and\n\t\t\t\t\tforeach ($entry['author'] as $authorentry) {\n\t\t\t\t\t\t$tmparray[] = $this->_formatAuthor($authorentry);\n\t\t\t\t\t}\n\t\t\t\t\t$author = join(' and ', $tmparray);\n\t\t\t\t} else {\n\t\t\t\t\t$author = $entry['author'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$editor = '';\n\t\t\tif (array_key_exists('editor', $entry)) {\n\t\t\t\tif ($this->_options['extractAuthors']) {\n\t\t\t\t\t$tmparray = array(); //In this array the authors are saved and the joind with an and\n\t\t\t\t\tforeach ($entry['editor'] as $authorentry) {\n\t\t\t\t\t\t$tmparray[] = $this->_formatAuthor($authorentry);\n\t\t\t\t\t}\n\t\t\t\t\t$editor = join(' and ', $tmparray);\n\t\t\t\t} else {\n\t\t\t\t\t$editor = $entry['editor'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!empty($author))\n\t\t\t\t$bibtex .= \"\\tauthor = {\" . str_replace(array_keys($this->escapedChars), array_values($this->escapedChars), $author) . \"}\";\n\n\t\t\tif(!empty($editor))\n\t\t\t\t$bibtex .= \",\\n\\teditor = {\" . str_replace(array_keys($this->escapedChars), array_values($this->escapedChars), $editor) . \"}\";\n\t\t\t$bibtex.=\"\\n}\\n\\n\";\n\t\t}\n\t\treturn $bibtex;\n\t}", "function apply_json_filter( $_post, $post, $context )\n{\n $_post['meta'] = array_merge($_post['meta'],get_fields($post['ID']));\n return $_post;\n}", "function my_acf_json_load_point( $paths ) {\n unset( $paths[0] );\n // append path\n $paths[] = get_stylesheet_directory() . '/acf/load-json';\n // return\n return $paths;\n}", "public function getJsonForm () {\n return json_decode($this->books);\n }", "function acf_get_local_json_files()\n{\n}", "public function asJson($content=[])\n{\n self::$stored['json'][] = $content;\n return json_encode($content);\n}", "protected function prepareJsonStructure(){\n\t\t\n\t}", "public static function json_ld()\n {\n if (YouTube::hasLink()) {\n global $post;\n $yt = YouTube::postMeta($post->ID);\n if (!empty($yt)) {\n $json = [\n '@context' => 'http://schema.org',\n '@type' => 'VideoObject',\n '@id' => get_permalink($post->ID),\n 'name' => get_the_title(),\n 'description' => get_the_title(),\n 'uploadDate' => get_the_date('c', $post->ID),\n 'duration' => !empty($yt['contentDetails']['duration']) ? $yt['contentDetails']['duration'] : ''\n ];\n\n $attachment = YouTube::thumbnailAttachment($post->ID);\n if (!empty($attachment)) {\n $img = wp_get_attachment_image_src($attachment->ID, 'full');\n $thumb = [\n '@context' => 'http://schema.org',\n '@type' => 'ImageObject',\n 'contentUrl' => $img[0],\n 'width' => $img[1],\n 'height' => $img[2]\n ];\n $json['thumbnail'] = $thumb;\n $json['thumbnailUrl'] = $img[0];\n }\n\n echo '<script type=\"application/ld+json\">' . json_encode($json) . '</script>';\n }\n }\n }", "function translate_raw_ref ( $raw ) {\n\t\t$pub = array();\n\n\t\t// Bibtype\n\t\t$raw_val = strtolower ( $raw['type'] );\n\t\tif ( in_array ( $raw_val, $this->ref_read->allBibTypes ) ) {\n\t\t\t$pub['bibtype'] = array_search ( $raw_val, $this->ref_read->allBibTypes );\n\t\t} else {\n\t\t\tthrow new tx_sevenpack_Translator_Exception ( 'Unknown bibtype: ' . strval ( $raw_val ) );\n\t\t}\n\n\t\t// Citeid\n\t\t$pub['citeid'] = $raw['citeid'];\n\n\t\t// Iterate through all raw values\n\t\tforeach ( $raw['values'] as $r_key => $r_val ) {\n\t\t\t//t3lib_div::debug ( array( 'pre_trans' => $r_val) );\n\t\t\t$r_val = $this->translate_raw_string ( $r_val );\n\t\t\t//t3lib_div::debug ( array( 'post_trans' => $r_val) );\n\t\t\t$r_key = strtolower ( $r_key );\n\t\t\tswitch ( $r_key ) {\n\t\t\t\tcase 'author':\n\t\t\t\t\t$pub['authors'] = $this->translate_raw_authors ( $r_val );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'state':\n\t\t\t\t\tforeach ( $this->ref_read->allStates as $ii => $state ) {\n\t\t\t\t\t\tif ( strtolower ( $r_val ) == $state ) {\n\t\t\t\t\t\t\t$r_val = $ii;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$pub['state'] = $r_val;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'url':\n\t\t\t\tcase 'file_url':\n\t\t\t\t\t$pub['file_url'] = $r_val;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ( in_array ( $r_key, $this->pubKeys ) ) {\n\t\t\t\t\t\tif ( array_key_exists ( $r_key, $this->pubKeyMap ) )\n\t\t\t\t\t\t\t$r_key = $this->pubKeyMap[$r_key];\n\t\t\t\t\t\t$pub[$r_key] = $r_val;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->stat['warnings'][] = 'Ignored field: ' . $r_key;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $pub;\n\t}", "function json_import($acf_export_paths) {\n // remove original path (optional)\n unset($acf_export_paths[0]);\n\n // append path\n $acf_export_paths[] = get_stylesheet_directory() . '/includes/acf-groups';\n // return\n return $acf_export_paths;\n}", "private function populateVerb($json_array) {\n if(isset($json_array['id'])) {\n $this->tincan_verb[LANGUAGE_NONE][0]['id'] = $json_array['id'];\n }\n if(isset($json_array['display']['en-US'])) { \n $this->tincan_verb[LANGUAGE_NONE][0]['display_en_us'] = $json_array['display']['en-US'];\n }\n if(isset($json_array['display'])) {\n $this->tincan_verb[LANGUAGE_NONE][0]['display'] = drupal_json_encode($json_array['display']);\n }\n \n $this->tincan_verb[LANGUAGE_NONE][0]['json'] = drupal_json_encode($json_array);\n }", "function settings_load_json($paths)\n {\n }", "function add_json_filter()\n{\n add_filter( 'json_prepare_post', 'apply_json_filter', 10, 3 );\n}", "private function loadJson ($file) {\n // Decode File\n // Insert Contents into table\n $filePath = \"resources/igdb/platforms/\". $file;\n\n $jsonOutput = file_get_contents($filePath);\n $myJson = json_decode($jsonOutput,true);\n\n //echo $myJson['name'] . \" - ID: \" . $myJson['id'] . PHP_EOL;\n\n $myJson['id'] = (!isset($myJson['id'])) ? \"unknown\" : $myJson['id'];\n $myJson['name'] = (!isset($myJson['name'])) ? \"unknown\" : $myJson['name'];\n $myJson['slug'] = (!isset($myJson['slug'])) ? \"unknown\" : $myJson['slug'];\n\n $slug = $myJson['slug'];\n if(array_key_exists($slug,$this->slugUpdates)){$myJson['slug'] = $this->slugUpdates[$slug];}\n\n $myJson['logo']['url'] = (!isset($myJson['logo']['url'])) ? \"unknown\" : $myJson['logo']['url'];\n $myJson['website'] = (!isset($myJson['website'])) ? \"unknown\" : $myJson['website'];\n\n if(isset($myJson['summary'])){\n $myJson['versions'][0]['summary'] = $myJson['summary'];\n } else {\n $myJson['versions'][0]['summary'] = (!isset($myJson['versions'][0]['summary'])) ? \"unknown\" : $myJson['versions'][0]['summary'];\n }\n\n $myJson['generation'] = (!isset($myJson['generation'])) ? \"unknown\" : $myJson['generation'];\n $myJson['alternative_name'] = (!isset($myJson['alternative_name'])) ? \"none\" : $myJson['alternative_name'];\n\n return [\n 'igdb_id' => $myJson['id'],\n 'name' => $myJson['name'],\n 'slug' => $myJson['slug'],\n 'logo' => $myJson['logo']['url'],\n 'website' => $myJson['website'],\n 'summary' => $myJson['versions'][0]['summary'],\n 'alternative_name' => $myJson['alternative_name'],\n 'generation' => $myJson['generation'],\n 'created_at' => \\Carbon\\Carbon::now(),\n 'updated_at' => \\Carbon\\Carbon::now()\n ];\n }", "function get_kelas1a_json() { //data kelas1a by JSON object\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas1a();\n }", "function emic_cwrc_get_authorities($dataType, $query = \"\") {\n $mappings = array(\n 'Tag Place' => array('collection' => 'islandora:9247', 'type' => t('Place')),\n 'Tag Person' => array('collection' => 'islandora:9239', 'type' => t('Person')),\n 'Tag Event' => array('collection' => 'islandora:9242', 'type' => t('Event')),\n 'Tag Organization' => array('collection' => 'islandora:9236', 'type' => t('Organization')),\n );\n\n\n\n $authorities = cwrc_get_authorities_list($mappings[$dataType], $query);\n if ($authorities) {\n $json = json_encode($authorities);\n echo $json;\n }\n}", "public static function mappingBibtex($tableau)\n {\n $date = \"\";\n $date_display = \"\";\n $journal = \"\";\n $volume = \"\";\n $number = \"\";\n $pages = \"\";\n $note = \"\";\n $abstract = \"\";\n $keywords = \"\";\n $series = \"\";\n $localite = \"\";\n $publisher = \"\";\n $editor = \"\";\n $categorie = \"\";\n $date_display = \"\";\n\n \n\n\n\n\n var_dump($tableau);\n\n\n\n\n\n $entryType = utf8_encode($tableau[\"entryType\"]);\n // Champs obligatoire\n $reference = utf8_encode($tableau[\"cite\"]);\n $auteurs = utf8_encode($tableau[\"author\"]);\n $titre = utf8_encode($tableau[\"title\"]);\n\n // On formate la date\n if( array_key_exists('year', $tableau) )\n {\n $date = $tableau[\"year\"];\n $date_display = $tableau[\"year\"]; \n if(array_key_exists('month', $tableau) && $tableau[\"month\"] != \"\")\n {\n $date .= \"-\".$tableau[\"month\"].\"-01\";\n $date_display = $tableau[\"month\"].\" \".$date_display;\n }\n else\n {\n $date .= \"-01-01\";\n }\n }\n\n // On récupère les autres données\n foreach ($tableau as $key => $value)\n {\n if(!in_array($key, array('cite','author','title','year','month')))\n {\n $key = utf8_encode($value);\n }\n }\n\n // On fait correspondre les variables du fichier bibtex et les attributs\n // de la publication\n if(isset($booktitle))\n $journal = $booktitle;\n if(isset($address))\n $localite = $address;\n // On defini la categorie\n if( in_array($entryType, array('article','book','booklet','inbook','incollection')))\n $categ_id = \"1\";\n else if( in_array($entryType, array('manual','techreport')))\n $categ_id = \"3\";\n else if( in_array($entryType, array('conference','inproceedings','proceedings')))\n $categ_id = \"2\";\n else if( in_array($entryType, array('phdthesis','mastersthesis')))\n $categ_id = \"4\";\n else\n $categ_id = \"5\";\n \n \n // On créer la publication et on attribut les values\n $publication = new Publication();\n\t\t$publication->setAttribute('ID',null);\n\t\t$publication->setAttribute('reference',$reference);\n\t\t$publication->setAttribute('auteurs',$auteurs);\n\t\t$publication->setAttribute('titre',$titre);\n\t\t$publication->setAttribute('date',$date);\n\t\t$publication->setAttribute('journal',$journal);\n\t\t$publication->setAttribute('volume',$volume);\n\t\t$publication->setAttribute('number',$number);\n\t\t$publication->setAttribute('pages',$pages);\n\t\t$publication->setAttribute('note',$note);\n\t\t$publication->setAttribute('abstract',$abstract);\n\t\t$publication->setAttribute('keywords',$keywords);\n\t\t$publication->setAttribute('series',$series);\n\t\t$publication->setAttribute('localite',$localite);\n\t\t$publication->setAttribute('publisher',$publisher);\n\t\t$publication->setAttribute('editor',$editor);\n\t\t$publication->setAttribute('pdf',null);\n\t\t$publication->setAttribute('date_display',date('Y-m-d'));\n\t\t$publication->setAttribute('categorie_id',$categ_id);\n return $publication;\n }", "function researcher_observations_get_json_callback(){\n drupal_set_header('Content-Type: text/plain; charset: utf-8');\n global $user;\n \n //get all project related with this user\n \n $sql = \"SELECT ido_type, name, description FROM {observation_type}\";\n $res = db_query($sql,$type);\n $observations = array();\n while($observation=db_fetch_array($res)){\n //get all keynames\n $key_sql = \"SELECT ido_keyname id, keyname, unit, datatype, description FROM {observation_keyname} WHERE ido_type=%d\";\n $key_res = db_query($key_sql,$observation['ido_type']);\n $keynames = array();\n while($key=db_fetch_array($key_res)){\n $keynames[] = $key;\n }\n $observations[] = array(\n 'id' => $observation['ido_type'],\n 'name' => $observation['name'],\n 'description' => $observation['description'],\n 'keynames' => $keynames,\n );\n }\n print(json_encode($observations));\n}", "function get_kelas1b_json() {\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas1b();\n }", "function rn_section($type,$item,$name){\n\tif($type == 'belarus'){\n\t\t$patch = '../../jsdb/JSON/tours/belarus.json';\n\t}\n\tif($type == 'belarus_pref'){\n\t\t$patch = '../../jsdb/JSON/tours/belarus_pref.json';\n\t}\n\tif($type == 'foreigners'){\n\t\t$patch = '../../jsdb/JSON/tours/foreigners.json';\n\t}\n\tif($type == 'foreigners_pref'){\n\t\t$patch = '../../jsdb/JSON/tours/foreigners_pref.json';\n\t}\n\t$object = json_decode(file_get_contents($patch));\n\t$object_item = $object[0]->$item;\n\t$object_item[0] = $name;\n\t$object[0]->$item = $object_item;\n\t$fp = fopen($patch,'w');\n\tfwrite($fp,json_encode($object));\n\tfclose($fp);\n\treturn true;\n}", "function get_kelas3a_json() { //data kelas1a by JSON object\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas3a();\n}", "private function loadData(): void\n {\n if (null !== $this->data) {\n // Data is already loaded.\n return;\n }\n\n $json = file_get_contents($this->filePath);\n $data = (new JsonEncoder())->decode($json, JsonEncoder::FORMAT);\n\n $this->data = [];\n\n foreach ($data['quotes'] as $quote) {\n $this->data[$this->slugifier->slugify($quote['author'])][] = $quote['quote'];\n }\n }", "function my_acf_json_load_point( $paths ) {\n unset($paths[0]);\n\n // append path\n $paths[] = get_stylesheet_directory() . '/acf-json';\n\n // return\n return $paths;\n}", "function get_kelas2a_json() { //data kelas1a by JSON object\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas2a();\n}", "public function to_json() {\n\t\tparent::to_json();\n\n\t\t// We need to make sure we have the correct image URL.\n\t\tforeach ( $this->choices as $value => $args )\n\t\t\t$this->choices[ $value ]['url'] = esc_url( sprintf( $args['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) );\n\n\t\t$this->json['choices'] = $this->choices;\n\t\t$this->json['link'] = $this->get_link();\n\t\t$this->json['value'] = $this->value();\n\t\t$this->json['id'] = $this->id;\n\t}", "function acf_json_encode($json)\n{\n}", "function get_doi_metadata($doi, &$json)\n{\n\t$reference = null;\n\t\n\t$url = 'http://data.crossref.org/' . $doi;\n\t$url = 'http://dx.doi.org/' . $doi;\n\t$url = 'https://doi.org/' . $doi;\n\t$json = get($url, '', \"application/citeproc+json;q=1.0\");\n\t\n\t//echo $url;\n\t//echo $json;\n\t//exit();\n\t\n\tif ($json == '')\n\t{\n\t\treturn $reference;\n\t}\n\t\n\t$citeproc = json_decode($json);\n\n\tif ($citeproc == null)\n\t{\n\t\treturn $reference;\n\t}\n\t\t\n\t$reference = new stdclass;\n\t$reference->type = 'generic';\n\t\n\t$crossref = new stdclass;\n\t$crossref->time = date(DATE_ISO8601, time());\n\t$crossref->url = 'http://dx.doi.org/' . $doi;\n\t$reference->provenance['crossref'] = $crossref;\n\t\t\n\t\t\n\tif (isset($citeproc->title) && $citeproc->title != '')\n\t{\n\t\t$reference->title = $citeproc->title;\n\t\tif ($reference->title != '')\n\t\t{\n\t\t\t// clean\n\t\t\t$reference->title = strip_tags($reference->title);\n\t\t\n\t\t\t$reference->title = preg_replace('/\\s\\s+/u', ' ', $reference->title);\n\t\t\t$reference->title = preg_replace('/^\\s+/u', '', $reference->title);\n\t\t\t$reference->title = preg_replace('/\\s+$/u', '', $reference->title);\n\t\t\n\t\t}\n\t}\n\t\t\n\t$reference->identifier = array();\n\t$identifier = new stdclass;\n\t$identifier->type = 'doi';\n\t$identifier->id = $citeproc->DOI;\n\t$reference->identifier[] = $identifier;\n\t\n\tif ($citeproc->type == 'article-journal')\n\t{\n\t\t$reference->type = 'article';\n\t\t$reference->journal = new stdclass;\n\t\t$reference->journal->name = $citeproc->{'container-title'};\n\t\t$reference->journal->volume = $citeproc->volume;\n\t\tif ($citeproc->issue)\n\t\t{\n\t\t\t$reference->journal->issue = $citeproc->issue;\n\t\t}\n\t\t$reference->journal->pages = $citeproc->page;\n\t\t\n\t\tif (preg_match('/--/', $reference->journal->pages))\n\t\t{\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$reference->journal->pages = str_replace('-', '--', $reference->journal->pages);\n\t\t}\n\t\t\n\t\tif (isset($citeproc->ISSN))\n\t\t{\n\t\t\t$identifier = new stdclass;\n\t\t\t$identifier->type = 'issn';\n\t\t\t$identifier->id = $citeproc->ISSN[0];\n\t\t\t\n\t\t\t$reference->journal->identifier[] = $identifier;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}\n\n\tif ($citeproc->issued->{'date-parts'})\n\t{\n\t\t$reference->year = $citeproc->issued->{'date-parts'}[0][0];\n\t}\n\telse\n\t{\n\t\tif (isset($citeproc->issued->raw))\n\t\t{\n\t\t\tif (preg_match('/^[0-9]{4}$/', $citeproc->issued->raw))\n\t\t\t{\n\t\t\t\t$reference->year = $citeproc->issued->raw;\n\t\t\t}\n\t\t}\n\t}\n\t$reference->issued = $citeproc->issued;\n\t\n\tif (isset($citeproc->publisher))\n\t{\n\t\t$reference->publisher = $citeproc->publisher;\n\t}\n\t\n\tif (isset($citeproc->author))\n\t{\n\t\t$reference->author = array();\n\t\tforeach ($citeproc->author as $a)\n\t\t{\n\t\t\t// clean up name\n\t\t\t$author = new stdclass;\n\t\t\t\n\t\t\tif (isset($a->literal))\n\t\t\t{\n\t\t\t\tif (preg_match('/^(?<lastname>.*),\\s+(?<firstname>.*)$/Uu', $a->literal, $m))\n\t\t\t\t{\n\t\t\t\t\t$author->firstname = $m['firstname'];\n\t\t\t\t\t$author->lastname = $m['lastname'];\n\t\t\t\t\t$author->name = $author->firstname . ' ' . $author->lastname;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$author->name = $a->literal;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (isset($a->given))\n\t\t\t\t{\t\t\t\n\t\t\t\t\t$author->firstname = $a->given;\n\t\t\t\t\t\n\t\t\t\t\t// Initials without space (try and catch long names that are all capitals by ignoring names > 3 characters)\n\t\t\t\t\tif (preg_match('/^[A-Z]+$/', $a->given) && (strlen($a->given) < 3))\n\t\t\t\t\t{\n\t\t\t\t\t\t$initials = str_split($a->given);\n\t\t\t\t\t\t$author->firstname = join(' ', $initials);\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$author->firstname = preg_replace('/\\.([A-Z])/Uu', ' $1', $author->firstname);\n\t\t\t\t\t$author->firstname = preg_replace('/\\./Uu', '', $author->firstname);\n\t\t\t\t\t$author->firstname = mb_convert_case($author->firstname, MB_CASE_TITLE, 'UTF-8');\n\t\t\t\t\t$author->lastname = mb_convert_case($a->family, MB_CASE_TITLE, 'UTF-8');\n\t\t\t\t\t$author->name = $author->firstname . ' ' . $author->lastname;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$reference->author[] = $author;\n\t\t}\n\t}\n\t//print_r($reference);exit();\n\treturn $reference;\n}", "public function annonceJson(){\n $db = $this->getPDO();\n $sql = \"SELECT * FROM annonces INNER JOIN utilisateurs ON annonces.utilisateur_id = utilisateurs.id_utilisateur INNER JOIN categories ON annonces.categorie_id = categories.id_categorie INNER JOIN regions ON annonces.regions_id = regions.id_regions\";\n $json = $db->query($sql);\n return $json;\n }", "public function buildJson();", "public static function importJson() {\n\t if(self::isJson()) {\n\t foreach (self::getJson() as $name => $value) {\n\t $_REQUEST[$name] = $value;\n\t }\n\t }\n\t}", "public function json(){ return json_encode( $this->objectify() ); }", "private function myJsonEncode($package){\r\n $myPackage = new ZendExt_WF_WFObject_Entidades_Package();\r\n $myPackage = $package;\r\n $packageArray = $myPackage->toArray();\r\n $packageJson = json_encode($packageArray);\r\n }", "abstract public function bundle();", "function add_question(array $user){\n $json = file_get_contents(FILE_QUESTION);\n $user['id']= uniqid();\n // 2 convertir contenu en tableau\n $arrayuser = json_decode($json, true);\n // 3 ajouter new user\n $arrayuser[] = $user;\n // convertir le tableau en json\n $json =json_encode($arrayuser);\n file_put_contents(FILE_QUESTION, $json); \n}", "function syntax_plugin_bibdata_entry(){\n $this->dtp =& plugin_load('syntax', 'datatemplate_entry');\n if(!$this->dtp) msg('Loading the datatemplate plugin failed. Make sure the data plugin is installed.',-1);\n }", "function json($id)\n{\n\t$query=$GLOBALS['GCMS_SAFESQL']->query(\n \t\"\n \tSELECT pg_title as name , id , pg_excerpt , date_modified\n\t\t\tFROM `gcms_page`\n\t\t\tWHERE pg_type = 'page' AND pg_status = 'publish'\n \t\t\t[ AND gcms_page.`parent_id` = %N ]\n \t\",array(\n \t\t\t$id ));\n\n $list = $GLOBALS['GCMS_DB']->get_results($query);\n \tusort($list, \"sort_compare\" );\n die (print_r($list));\n\tforeach ($list as $row)\n\t{\n\t\t\n\t\t$img = Image::get(array(\"im_type\"=>\"page\"),false, array(), $row->id );\n\t\t\n\t\t$page[] = $row->id ;\n\t\t$page[] = $row->name ;\n\t\t$page[] = $img->im_path . $img->im_name;\n\t\t$page[] = clean($row->pg_excerpt) ;\n\t\t$page[] = $row->date_modified ;\n\t\t$jsonExp[] = $page;\n\t\t$page = null;\n\t\t\n\t}\n\t\n\theader('Content-type: application/json');\n\tdie ( json_encode(array('posts'=>$jsonExp)));\n\n}", "function get_kelas3b_json() {\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas3b();\n}", "public function addJson($key, array &$content) {\n\t\t$json = json_encode($content);\n\t\t$this->add($key, $json);\n\t}", "function my_acf_json_load_point($paths) {\n unset($paths[0]);\n\n\n // append path\n $paths[] = get_template_directory() . '/acf-json';\n\n\n // return\n return $paths;\n}", "function get_kelas4a_json() { //data kelas1a by JSON object\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas4a();\n}", "final public function jsonSerialize() {}", "function _wp_json_prepare_data($data)\n {\n }", "public function json($encode = true)\n\t{\n\t\t$data = array(\n\t\t\t\"id\" => $this->id(),\n\t\t\t\"name\" => $this->prop(\"name\"),\n\t\t\t\"comment\" => $this->prop(\"comment\"),\n\t\t\t\"status\" => $this->prop(\"status\"),\n\t\t\t\"document_status\" => (int)$this->prop(\"document_status\"),\n\t\t\t\"title\" => $this->prop(\"title\"),\n\t\t\t\"lead\" => $this->prop(\"lead\"),\n\t\t\t\"content\" => $this->prop(\"content\"),\n\t\t\t\"show_title\" => (bool)$this->prop(\"show_title\"),\n\t\t\t\"showlead\" => (bool)$this->prop(\"showlead\"),\n\t\t\t\"show_modified\" => (bool)$this->prop(\"show_modified\"),\n\t\t\t\"esilehel\" => (bool)$this->prop(\"esilehel\"),\n\t\t\t\"title_clickable\" => (bool)$this->prop(\"title_clickable\"),\n\t\t\t\"editors\" => $this->meta(\"editors\"),\n\t\t\t\"authors\" => $this->meta(\"authors\"),\n\t\t\t\"participants\" => $this->meta(\"participants\"),\n\t\t);\n\n\t\t$json = new json();\n\t\treturn $encode ? $json->encode($data, aw_global_get(\"charset\")) : $data;\n\t}", "public function getJsonFileLink(){ return $this->jsonFileLink; }", "public function export_addFilesFromRelations() {}", "function get_kelas6a_json() { //data kelas1a by JSON object\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas6a();\n}", "public function updateJson()\n {\n $ExtensionData = ExtensionData::get()->filter(array(\"Title\" => $this->latestReleasePackage->getPrettyName()))->First();\n\n if ($ExtensionData) {\n $result = $this->dataFields($ExtensionData);\n return $result ;\n } else {\n return ;\n }\n }", "function child2json( $entry ) {\n\n $relevance_time_str = is_null( $entry->relevance_time()) ? 'n/a' : $entry->relevance_time()->toStringShort();\n $attachments = $entry->attachments();\n $children = $entry->children();\n\n $shift_begin_time_str = is_null( $entry->shift_id()) ? '' : \"<a href=\\\"javascript:select_shift(\".$entry->shift()->id().\")\\\" class=\\\"lb_link\\\">\".$entry->shift()->begin_time()->toStringShort().'</a>';\n $run_number_str = '';\n if( !is_null( $entry->run_id())) {\n $run = $entry->run();\n $run_number_str = \"<a href=\\\"javascript:select_run({$run->shift()->id()},{$run->id()})\\\" class=\\\"lb_link\\\">{$run->num()}</a>\";\n }\n $tag_ids = array();\n $attachment_ids = array();\n if( count( $attachments ) != 0 ) {\n foreach( $attachments as $attachment ) {\n $attachment_url = '<a href=\"ShowAttachment.php?id='.$attachment->id().'\" target=\"_blank\" class=\"lb_link\">'.$attachment->description().'</a>';\n array_push(\n $attachment_ids,\n array(\n \"id\" => $attachment->id(),\n \"type\" => $attachment->document_type(),\n \"size\" => $attachment->document_size(),\n \"url\" => $attachment_url\n )\n );\n }\n }\n $children_ids = array();\n foreach( $children as $child )\n array_push( $children_ids, child2json( $child ));\n\n $content = wordwrap( $entry->content(), 128 );\n return json_encode(\n array (\n \"event_time\" => $entry->insert_time()->toStringShort(),\n \"relevance_time\" => $relevance_time_str,\n \"run\" => $run_number_str,\n \"shift\" => $shift_begin_time_str,\n \"author\" => $entry->author(),\n \"id\" => $entry->id(),\n \"subject\" => substr( $entry->content(), 0, 72).(strlen( $entry->content()) > 72 ? '...' : '' ),\n \"html\" => \"<pre style=\\\"padding:4px; padding-left:8px; font-size:14px; border: solid 2px #efefef;\\\">{$content}</pre>\",\n \"content\" => $entry->content(),\n \"attachments\" => $attachment_ids,\n \"tags\" => $tag_ids,\n \"children\" => $children_ids\n )\n );\n}", "function getHighlightsFromJson($lang){\n $file = $_SERVER['STORAGE_BASE'] . \"/json_files/highlights/\" . $lang . \"_highlights.json\";\n $jsondata = file_get_contents($file, true);\n //$jsondata = file_get_contents(\"ressources/views/json_files/highlights/\".$lang.\"_highlights.json\",true);\n \t // converts json data into array\n \t $arr_data = json_decode($jsondata);\n $alltest = array();\n foreach ($arr_data as $test) {\n # code...\n $alltest [$test->id_test] = [\n \"id_test\" => $test->id_test,\n \"id_theme\" => $test->id_theme,\n \"id_rubrique\" => $test->id_rubrique,\n \"statut\" => $test->statut,\n \"titre_test\" => stripslashes((string)$test->titre_test),\n \"unique_result\" => $test->unique_result,\n \"url_image_test\" => $test->url_image_test,\n \"codes_countries\" => $test->codes_countries\n ];\n }\n\n return $alltest;\n }", "function wp_json_encode($data, $options = 0, $depth = 512)\n {\n }", "public function to_json() {\n\t\t\tparent::to_json();\n\t\t\t$this->json['mtmfontslist'] = $this->font_list;\n\t\t}", "function get_kelas4b_json() {\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas4b();\n}", "public function apiTest(Request $request){\n // $ch = curl_init(\"http://dblp.org/search/publ/api?q=author%3A\".$name.\"%3A&format=json\");\n $ch = curl_init(\"http://dblp.org/search/publ/api?q=author%3A\".$request->name.\"%3A&format=json\");\n\n //IMPOSTA L'OPZIONE CURLOPT_RETURNTRANSFER A true IN MODO DA POTER CONSERVARE IL RISULTATO IN UNA VARIABILE\n //CON LA FUNZIONE curl_multi_getcontent();\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n //ESEGUE LA RICHIESTA HTTP (GET DI DEFAULT) ATTRAVERSO LA RISORSA curl\n curl_exec($ch);\n\n $jsonResult= json_decode(curl_multi_getcontent($ch));\n\n if(!isset($jsonResult->result->hits->hit)){\n echo \"Vuoto\";\n return;\n }\n //ESTRAE IN MODO APPROPRIATO I DATI DI INTERESSE DALLA VARIABILE\n //Array che contiene i nomi dei campi da utilizzare come chiavi(tranne authors, trattato separatamente);\n $field = array(\"title\",//titolo della pubblicazione\n \"venue\",//rivista di pubblicazione\n \"volume\",//volume della rivista\n \"number\",//numero della rivista\n \"pages\",//pagine della rivista\n \"year\",//anno di pubblicazione\n \"type\",//tipo di pubblicazione\n \"key\",//The key can also be found as the \"key\" attribute of the record in the record's XML export.(dal faq di dblp)\n \"doi\",// id identificativo della pubblicazione (http://dblp.uni-trier.de/doi/)\n \"ee\",// Link alla risorsa (pdf o sito su cui comprare il pdf)\n \"url\");// Link alla pagina di dblp\n\n //Array (simil-DAO) in cui vengono salvate le informazioni di ogni hit\n $publication = array(\"title\"=>'', \"authors\" => array(), \"venue\"=>'',\"volume\"=>'',\"key\"=>'',\"number\"=>'', \"pages\"=>'', \"year\"=>'',\"type\"=>'',\n \"doi\"=>'',\"ee\"=>'',\"url\"=>'' );\n //CICLA SU TUTTE LE ISTANZE DI HIT CONTENUTE IN HITS (CONTENUTE IN RESULT)\n foreach ($jsonResult->result->hits->hit as $currentPub) {\n //PER OGNI CAMPO (descritto in $field)...\n foreach ($field as $curField) {\n //... SE IL CAMPO, PER QUELLA ISTANZA, NON è NULLO, ASSEGNA ALL'ARRAY DI SALVATAGGIO IL CORRISPONDENTE VALORE (no authors)\n if(isset($currentPub->info->$curField))$publication[$curField] = $currentPub->info->$curField;\n else $publication[$curField] = \"//\";\n }\n //TRATTAZIONE DELL'ARRAY DI AUTORI: SE E' UN ARRAY (più autori)...\n if(is_array($currentPub->info->authors->author)){\n foreach ($currentPub->info->authors->author as $author) {\n array_push($publication[\"authors\"],$author);//AVVALORA L'ARRAY DEGLI AUTORI\n }//...ALTRIMENTI, SE VI è UN SOLO AUTORE...\n }else array_push($publication[\"authors\"],$currentPub->info->authors->author);\n\n /*DEBUG*/\n // var_dump($publication);\n $publication[\"authors\"] = array();//DATO CHE USIAMO SEMPRE LA STESSA VARIABILE, PER PULIRE L'ARRAY DEGLI AUTORI\n echo '<br><br><br>';\n\n }\n //LIBERA LA RISORSA ALLOCATA\n curl_close($ch);\n }", "public function bundle();", "function appendtojson($json,$new,$subcategory=false,$limit=false) {\n\tif(!empty($json) OR $json != null){\n\t\t$data = json_decode($json,true);\n\t} else {\n\t\t$data = [];\n\t}\n\tif(!is_array($new)){\n\t\t$new = json_decode($new,true);\n\t}\n\tif($subcategory == false){\n\t\tarray_unshift($data, $new);\n\t\t//$data[] = $new;\n\t} else {\n\t\t//$data = json_decode($data[$subcategory],true);\n\t\tarray_push($data[$subcategory], $new);\n\t\t//$data[$subcategory][] = $new;\n\t}\n\tif($limit){\n\t\t$data = array_slice($data, 0, ($limit -1));\n\t}\n\treturn json_encode($data);\n}", "private static function _addGlossaryUsageToGlossaryFiles()\n {\n $dataDir = Help::getDocsDirectory();\n $doc = new DomDocument();\n\n foreach (self::$_glossaryUsage as $term => $references) {\n $termFile = $dataDir.'/glossary-'.$term.'.html';\n if (file_exists($termFile) === FALSE) {\n continue;\n }\n\n @$doc->loadHTMLFile($termFile);\n $container = $doc->createElement('div');\n $container->setAttribute('id', 'Help-articleListWrapper');\n $containerTitle = $doc->createElement('h2');\n $containerTitle->nodeValue = _('Articles');\n $container->appendChild($containerTitle);\n\n $ulTag = $doc->createElement('ul');\n $ulTag->setAttribute('id', 'Help-articleList');\n $container->appendChild($ulTag);\n\n $references = array_unique($references);\n foreach ($references as $ref) {\n $liTag = $doc->createElement('li');\n $aTag = $doc->createElement('a');\n $aTag->setAttribute('href', 'javascript:parent.window.Help.loadPage(\\''.$ref.'\\');');\n $aTag->nodeValue = self::$_articleTitles[$ref];\n $liTag->appendChild($aTag);\n $ulTag->appendChild($liTag);\n }\n\n $doc->getElementsByTagName('body')->item(0)->appendChild($container);\n $doc->saveHTMLFile($termFile);\n }//end foreach\n\n }", "function get_kelas2b_json() {\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas2b();\n}", "function __construct()\n {\n parent::__construct();\n header('Content-type: application/json');\n $this->load->library(\"crud\");\n // $this->collection = set_sub_collection($this->collection);\n }", "private function setJsonContentType()\n {\n Http::setContentType(self::JSON_CONTENT_TYPE);\n }", "public function jsonSerialize()\n {\n return parent::jsonSerialize() + ['text' => $this->text];\n }", "public function __toString(){\n $json = parent::__toString();\n\n $json['idm_url'] = $this->idm_url;\n $json['read_url'] = $this->read_url;\n $json['read_headers'] = $this->read_headers;\n $json['search_url'] = $this->search_url;\n $json['search_headers'] = $this->search_headers;\n $json['search_method'] = $this->search_method;\n $json['search_POST'] = $this->search_POST;\n $json['update_url'] = $this->update_url;\n $json['update_headers'] = $this->update_headers;\n $json['update_method'] = $this->update_method;\n $json['create_url'] = $this->create_url;\n $json['create_headers'] = $this->create_headers;\n $json['create_method'] = $this->create_method;\n\n $json['patron'] = $this->patron;\n $json['search'] = $this->search;\n $json['create'] = $this->create;\n $json['update'] = $this->update;\n\n\n return json_encode($json, JSON_PRETTY_PRINT);\n }", "function _h_load_acf_json_menu($paths) {\n $paths[] = plugin_dir_path(__FILE__) . '/acf-json';\n return $paths;\n}", "protected function afterFind()\n \t{\n \t\t$this->jsonArray_extra = json_decode($this->json_extra);\n \t\t$this->jsonArray_payload = json_decode($this->json_payload);\n\n \t\tparent::afterFind();\n \t}", "function get_kelas1e_json() {\n header('Content-Type: application/json');\n echo $this->bagikelas_model->get_all_kelas1e();\n }", "function searchinPho_json($type, $id) {\n\t $base = \"https://inpho.cogs.indiana.edu\";\n\t $format = \"json\";\n\t $url = $base . '/' . $type . '/' . $id . '.' . $format;\n\t $data = @file_get_contents($url, o, null, null);\n\t return $data;\n\t}", "public function extObjContent() {}", "public static function generateJSON();", "public function extObjContent() {}" ]
[ "0.62497336", "0.5854529", "0.55579585", "0.55516607", "0.5368465", "0.5291001", "0.52795345", "0.52034104", "0.5174359", "0.5168948", "0.5092016", "0.50919753", "0.5057808", "0.5048202", "0.5047946", "0.50304604", "0.50225335", "0.5020604", "0.5020604", "0.5020604", "0.5020604", "0.5020604", "0.5020604", "0.5020604", "0.5020604", "0.5003729", "0.50032806", "0.49996886", "0.49966288", "0.49778274", "0.49523664", "0.49253735", "0.49246413", "0.49108022", "0.48956347", "0.48831856", "0.48701373", "0.48531795", "0.48519576", "0.4851342", "0.48280165", "0.48270726", "0.4809315", "0.48058236", "0.47987095", "0.47772968", "0.47759855", "0.47757676", "0.47749418", "0.47729477", "0.47697362", "0.47617245", "0.4756231", "0.47550613", "0.4743841", "0.47426802", "0.474002", "0.4739198", "0.4731071", "0.47240543", "0.47181624", "0.47127348", "0.4707241", "0.47014037", "0.46964824", "0.46843567", "0.46836472", "0.46787837", "0.46704817", "0.46703318", "0.46693552", "0.46689385", "0.46630007", "0.46626502", "0.4661612", "0.4655524", "0.46538904", "0.46516886", "0.4645379", "0.4639367", "0.4634998", "0.4631499", "0.46210456", "0.46210054", "0.46178174", "0.46167076", "0.46164325", "0.46156868", "0.45982307", "0.459292", "0.45896596", "0.4588435", "0.45811644", "0.45780203", "0.4577791", "0.45581853", "0.45427513", "0.4542487", "0.45409346", "0.45404944", "0.45391032" ]
0.0
-1
Tests the basic translation UI.
public function testTranslationUI() { $this->doTestBasicTranslation(); $this->doTestTranslationOverview(); $this->doTestOutdatedStatus(); $this->doTestPublishedStatus(); $this->doTestAuthoringInfo(); $this->doTestTranslationEdit(); $this->doTestTranslationChanged(); $this->doTestChangedTimeAfterSaveWithoutChanges(); $this->doTestTranslationDeletion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function doTestTranslationOverview() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $translate_url = $entity->toUrl('drupal:content-translation-overview');\n $this->drupalGet($translate_url);\n $translate_url->setAbsolute(FALSE);\n\n foreach ($this->langcodes as $langcode) {\n if ($entity->hasTranslation($langcode)) {\n $language = new Language(['id' => $langcode]);\n // Test that label is correctly shown for translation.\n $view_url = $entity->toUrl('canonical', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//a[@href='{$view_url}']\", $entity->getTranslation($langcode)->label() ?? $entity->getTranslation($langcode)->id());\n // Test that edit link is correct for translation.\n $edit_path = $entity->toUrl('edit-form', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//ul[@class='dropbutton']/li/a[@href='{$edit_path}']\", 'Edit');\n }\n }\n }", "protected function doTestTranslationEdit() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $languages = $this->container->get('language_manager')->getLanguages();\n\n foreach ($this->langcodes as $langcode) {\n // We only want to test the title for non-english translations.\n if ($langcode != 'en') {\n $options = ['language' => $languages[$langcode]];\n $url = $entity->toUrl('edit-form', $options);\n $this->drupalGet($url);\n\n $this->assertSession()->responseContains($entity->getTranslation($langcode)->label());\n }\n }\n }", "protected function doTestBasicTranslation() {\n // Create a new test entity with original values in the default language.\n $default_langcode = $this->langcodes[0];\n $values[$default_langcode] = $this->getNewEntityValues($default_langcode);\n // Create the entity with the editor as owner, so that afterwards a new\n // translation is created by the translator and the translation author is\n // tested.\n $this->drupalLogin($this->editor);\n $this->entityId = $this->createEntity($values[$default_langcode], $default_langcode);\n $this->drupalLogin($this->translator);\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertNotEmpty($entity, 'Entity found in the database.');\n $this->drupalGet($entity->toUrl());\n $this->assertSession()->statusCodeEquals(200);\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $this->assertCacheContexts($this->defaultCacheContexts);\n\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n $translation = $this->getTranslation($entity, $default_langcode);\n foreach ($values[$default_langcode] as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $default_langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('@property correctly stored in the default language.', ['@property' => $property]);\n $this->assertEquals($value, $stored_value, $message);\n }\n\n // Add a content translation.\n $langcode = 'it';\n $language = ConfigurableLanguage::load($langcode);\n $values[$langcode] = $this->getNewEntityValues($langcode);\n\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n\n // Assert that HTML is not escaped unexpectedly.\n if ($this->testHTMLEscapeForAllLanguages) {\n $this->assertSession()->responseNotContains('&lt;span class=&quot;translation-entity-all-languages&quot;&gt;(all languages)&lt;/span&gt;');\n $this->assertSession()->responseContains('<span class=\"translation-entity-all-languages\">(all languages)</span>');\n }\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl());\n $this->assertCacheContexts(Cache::mergeContexts(['languages:language_content'], $this->defaultCacheContexts));\n\n // Reset the cache of the entity, so that the new translation gets the\n // updated values.\n $metadata_source_translation = $this->manager->getTranslationMetadata($entity->getTranslation($default_langcode));\n $metadata_target_translation = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));\n\n $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid';\n if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) {\n $this->assertEquals($this->translator->id(), $metadata_target_translation->getAuthor()->id(), new FormattableMarkup('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode]));\n\n $this->assertNotEquals($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(),\n new FormattableMarkup('Author of the target translation @target different from the author of the source translation @source for translatable owner field.',\n ['@target' => $langcode, '@source' => $default_langcode]));\n }\n else {\n $this->assertEquals($this->editor->id(), $metadata_target_translation->getAuthor()->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');\n }\n\n $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created';\n if ($entity->getFieldDefinition($created_field_name)->isTranslatable()) {\n // Verify that the translation creation timestamp of the target\n // translation language is newer than the creation timestamp of the source\n // translation default language for the translatable created field.\n $this->assertGreaterThan($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime());\n }\n else {\n $this->assertEquals($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');\n }\n\n if ($this->testLanguageSelector) {\n // Verify that language selector is correctly disabled on translations.\n $this->assertSession()->fieldNotExists('edit-langcode-0-value');\n }\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n // Switch the source language.\n $langcode = 'fr';\n $language = ConfigurableLanguage::load($langcode);\n $source_langcode = 'it';\n $edit = ['source_langcode[source]' => $source_langcode];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n // This does not save anything, it merely reloads the form and fills in the\n // fields with the values from the different source language.\n $this->drupalGet($add_url);\n $this->submitForm($edit, 'Change');\n $this->assertSession()->fieldValueEquals(\"{$this->fieldName}[0][value]\", $values[$source_langcode][$this->fieldName][0]['value']);\n\n // Add another translation and mark the other ones as outdated.\n $values[$langcode] = $this->getNewEntityValues($langcode);\n $edit = $this->getEditValues($values, $langcode) + ['content_translation[retranslate]' => TRUE];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $source_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextContains('Source language');\n\n // Check that the entered values have been correctly stored.\n foreach ($values as $langcode => $property_values) {\n $translation = $this->getTranslation($entity, $langcode);\n foreach ($property_values as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]);\n $this->assertEquals($value, $stored_value, $message);\n }\n }\n }", "public function testSimpleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $value = $this->translator->translate('hi', 'fr', 'en');\n\n // Then\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }", "public function testTranslate(): void\n {\n $result = $this->editInPlaceExtension->translate('key', ['key' => 'value'], 'domain');\n\n $this->assertEquals(0, \\strlen($result));\n\n $this->assertEmpty($result);\n }", "public function testVariableSubstitutionInStringUkranian()\n {\n $this->specify(\n \"Translator does not translate to Ukranian correctly with passed params\",\n function () {\n $translator = new Gettext(\n [\n 'locale' => 'uk_UA.utf8',\n 'defaultDomain' => 'messages',\n 'directory' => PATH_DATA . 'translation/gettext'\n ]\n );\n\n expect($translator->_(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n expect($translator->t(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n }\n );\n }", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2019),\n [self::LOCALE => '体育の日']\n );\n }", "public function testPlainTextTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => \"J'ai\"]]]]\n ));\n\n // When\n $value = $this->translator->translate('I have', 'fr', 'en', true);\n\n // Then\n $this->assertEquals($value, \"J'ai\", 'Should return \"J\\'ai\"');\n }", "public function testInternationalization(): void\n {\n $properCased = 'Iñtërnâtiônàlizætiøn';\n $this->assertEquals($properCased, Formatter::nameCase(mb_strtolower($properCased)));\n }", "public function testLanguageStringSelector() {\n // Add another language.\n $edit = ['predefined_langcode' => 'es'];\n $this->drupalGet('admin/config/regional/language/add');\n $this->submitForm($edit, 'Add language');\n\n // Translate the string English in Spanish (Inglés). Override config entity.\n $name_translation = 'Inglés';\n \\Drupal::languageManager()\n ->getLanguageConfigOverride('es', 'language.entity.en')\n ->set('label', $name_translation)\n ->save();\n\n // Check content translation overview selector.\n $path = 'es/admin/config/regional/content-language';\n $this->drupalGet($path);\n\n // Get en language from selector.\n $option = $this->assertSession()->optionExists('edit-settings-user-user-settings-language-langcode', 'en');\n\n // Check that the language text is translated.\n $this->assertSame($name_translation, $option->getText());\n }", "protected function setUp()\n {\n parent::setUp();\n $this->getTranslator()->setLanguage(1);\n }", "public function testTranslation(): void\n {\n $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR);\n $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Día Nacional de la Memoria por la Verdad y la Justicia']);\n }", "function i18n_plugin_test() {\n\treturn __( 'This is a dummy plugin', 'internationalized-plugin' );\n}", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR),\n [self::LOCALE => 'Canada Day']\n );\n }", "public function testCanGetMessageByKeyFromTranslator()\n {\n $this->translator->load();\n $message = $this->translator->get('test_message');\n $this->assertEquals('file has been loaded', $message);\n }", "public function testTranslateNoProxy()\n {\n $translator = new \\Magento\\Framework\\Translate\\Adapter();\n $this->assertEquals('test string', $translator->translate('test string'));\n }", "public function test_mixed_lang_rendering() {\n $dd = test_question_maker::make_question('ddimageortext', 'mixedlang');\n $dd->shufflechoices = false;\n $this->start_attempt_at_question($dd, 'interactive', 1);\n\n // Check the initial state.\n $this->check_current_state(question_state::$todo);\n $this->check_current_mark(null);\n $this->check_current_output(\n new question_pattern_expectation('~<div class=\"group1 draghome choice1\"><span lang=\"fr\">la</span></div>~'),\n new question_pattern_expectation('~<div class=\"group1 draghome choice2\"><span lang=\"fr\">ma</span></div>~')\n );\n }", "public function testTransliterate() {\n $this->assertEquals('Ingles', Inflector::transliterate('Inglés'));\n $this->assertEquals('Uber', Inflector::transliterate('Über'));\n }", "public function testTranslationOfStores()\n {\n // set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'orderId' => '1',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/loadStores?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n $data = $responseJSON['data'];\n\n // Test for fallback value\n $this->assertElementWithKeyValuePairExists('SEPA', 'description', 6, $data['payments']);\n\n // Test for translation\n $this->assertElementWithKeyValuePairExists('Invoice', 'description', 4, $data['payments']);\n\n $this->assertElementWithKeyValuePairExists('Standard delivery', 'name', 9, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Express Delivery', 'name', 14, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Standard international delivery', 'name', 16, $data['dispatches']);\n\n $this->assertElementWithKeyValuePairExists('Invoice', 'name', 1, $data['documentTypes']);\n $this->assertElementWithKeyValuePairExists('Credit', 'name', 3, $data['documentTypes']);\n }", "public function testLanguageOption()\n {\n $expected = 'tesseract image.png stdout -l deu';\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->lang('deu')\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "public function testTranslationOfOrderList()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n Shopware()->Container()->reset('translation');\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/getList?' . $getString);\n\n // Remove 'new Date(...)' strings from json\n $responseStr = preg_replace('/(new Date\\([-0-9]+\\))/', '\"$1\"', $response->getBody());\n\n $responseJSON = json_decode($responseStr, true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $dataElement) {\n switch ($dataElement['payment']['id']) {\n case 2:\n static::assertEquals(\n 'Debit',\n $dataElement['payment']['description']\n );\n break;\n case 3:\n static::assertEquals(\n 'Cash on delivery',\n $dataElement['payment']['description']\n );\n break;\n case 4:\n static::assertEquals(\n 'Invoice',\n $dataElement['payment']['description']\n );\n break;\n case 5:\n static::assertEquals(\n 'Paid in advance',\n $dataElement['payment']['description']\n );\n break;\n case 6:\n static::assertEquals(\n 'SEPA',\n $dataElement['payment']['description']\n );\n break;\n }\n }\n }", "public function translationStart()\n {\n }", "public function testUnderscoresTranslation()\n {\n $this->markTestIncomplete('MAGETWO-1012: i18n Improvements - Localization/Translations');\n }", "function testLanguage()\r\n {\r\n\t\tglobal $webUrl, $SERVER, $DATABASE;\r\n\r\n // Locate the list page of language.\r\n\t\t$this->assertTrue($this->get(\"$webUrl/languages.php\", array(\r\n\t\t\t 'server' => $SERVER,\r\n\t\t\t\t\t\t'database' => $DATABASE,\r\n\t\t\t\t\t\t'subject' => 'database'))\r\n\t\t\t\t\t);\r\n\r\n $this->assertWantedPattern('/sql/');\r\n\r\n return TRUE;\r\n }", "public function testTranslateUsingDetector()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'comment allez-vous ?']]]]\n ));\n\n // When\n $value = $this->translator->translate('how are you?', 'fr');\n\n // Then\n $this->assertEquals($value, 'comment allez-vous ?', 'Should return \"comment allez-vous ?\"');\n }", "public function isTranslated();", "public function load_translation() {\n\t\t\t$locale = apply_filters( 'plugin_locale', determine_locale(), 'sv_core' );\n\t\t\tload_textdomain( 'sv_core', dirname( __FILE__ ) . '/languages/sv_core-'.$locale.'.mo' );\n\t\t}", "public function testEmptyTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body', 'description'],\n 'allowEmptyTranslations' => false,\n ]);\n $table->setLocale('spa');\n $result = $table->find()->first();\n $this->assertNull($result->description);\n }", "public function loadMainTrans()\n {\n $translationPath = $this->_getTransPath();\n require $translationPath.\"/main.php\";\n\n //Return a translation object\n $mainTranslate = new Phalcon\\Translate\\Adapter\\NativeArray(array(\n \"content\" => $messages\n ));\n\n //Set $mt as main translation object\n $this->view->setVar(\"mt\", $mainTranslate);\n }", "public function translated();", "public function translated();", "protected function sectionTranslations()\n {\n $found = []; // translations found in latte templates\n foreach (glob('template/*.latte') as $file) {\n $tempFileContents = file_get_contents($file);\n Assert::string($tempFileContents);\n preg_match_all('~\\{=(\"([^\"]+)\"|\\'([^\\']+)\\')\\|translate\\}~i', $tempFileContents, $matches);\n $found = array_merge($found, $matches[2]);\n }\n $found = array_unique($found);\n $output = '<h1><i class=\"fa fa-globe\"></i> ' . $this->tableAdmin->translate('Translations')\n . '</h1><div id=\"agenda-translations\">'\n . '<form action=\"\" method=\"post\" onsubmit=\"return confirm(\\''\n . $this->tableAdmin->translate('Are you sure?') . '\\')\">'\n . Tools::htmlInput('translations', '', 1, array('type' => 'hidden'))\n . Tools::htmlInput('token', '', end($_SESSION['token']), 'hidden')\n . Tools::htmlInput('old_name', '', '', array('type' => 'hidden', 'id' => 'old_name'))\n . '<table class=\"table table-striped\"><thead><tr><th style=\"width:'\n . intval(100 / (count($this->MyCMS->TRANSLATIONS) + 1)) . '%\">'\n . Tools::htmlInput('one', '', false, 'radio') . '</th>';\n $translations = $keys = [];\n $localisation = new L10n($this->prefixUiL10n, $this->MyCMS->TRANSLATIONS);\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= \"<th>$value</th>\";\n $translations[$key] = $localisation->readLocalisation($key);\n $keys = array_merge($keys, array_keys($translations[$key]));\n }\n $output .= '</tr></thead><tbody>' . PHP_EOL;\n $keys = array_unique($keys);\n natcasesort($keys);\n foreach ($keys as $key) {\n $output .= '<tr><th>'\n . Tools::htmlInput('one', '', $key, array('type' => 'radio', 'class' => 'translation')) . ' '\n . Tools::h((string) $key) . '</th>';\n foreach ($this->MyCMS->TRANSLATIONS as $code => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"tr[$code][$key]\",\n '',\n Tools::set($translations[$code][$key], ''),\n ['class' => 'form-control form-control-sm', 'title' => \"$code: $key\"]\n ) . '</td>';\n }\n $output .= '</tr>' . PHP_EOL;\n if ($key = array_search($key, $found)) {\n unset($found[$key]);\n }\n }\n $output .= '<tr><td>' . Tools::htmlInput(\n 'new[0]',\n '',\n '',\n array('class' => 'form-control form-control-sm', 'title' => $this->tableAdmin->translate('New record'))\n ) . '</td>';\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"new[$key]\",\n '',\n '',\n ['class' => 'form-control form-control-sm',\n 'title' => $this->tableAdmin->translate('New record') . ' (' . $value . ')']\n ) . '</td>';\n }\n $output .= '</tr></tbody></table>\n <button name=\"translations\" type=\"submit\" class=\"btn btn-secondary\"><i class=\"fa fa-save\"></i> '\n . $this->tableAdmin->translate('Save') . '</button>\n <button name=\"delete\" type=\"submit\" class=\"btn btn-secondary\" value=\"1\"><i class=\"fa fa-dot-circle\"></i>\n <i class=\"fa fa-trash\"></i> ' . $this->tableAdmin->translate('Delete') . '</button>\n <fieldset class=\"d-inline-block position-relative\"><div class=\"input-group\" id=\"rename-fieldset\">'\n . '<div class=\"input-group-prepend\">\n <button class=\"btn btn-secondary\" type=\"submit\"><i class=\"fa fa-dot-circle\"></i> '\n . '<i class=\"fa fa-i-cursor\"></i> ' . $this->tableAdmin->translate('Rename') . '</button>\n </div>'\n . Tools::htmlInput('new_name', '', '', array('class' => 'form-control', 'id' => 'new_name'))\n . '</div></fieldset>\n </form></div>' . PHP_EOL;\n $output .= count($found) ? '<h2 class=\"mt-4\">' .\n $this->tableAdmin->translate('Missing translations in templates') . '</h2><ul>' : '';\n foreach ($found as $value) {\n $output .= '<li><code>' . Tools::h($value) . '</code></li>' . PHP_EOL;\n }\n $output .= count($found) ? '</ul>' : '';\n return $output;\n }", "public function testItWorksWithError()\n {\n // It allows us to stay in sync with T.io while being compatible with previous PHP-VCR tests\n // ---\n // If one day gettext/languages is updated, please use another more stable language than French\n // and edit the plural rules in the pre-recorded PHP-VCR YAML files so that both regular composer\n // and `--prefer-lowest` pass\n app()['config']->set('translation.target_locales', ['fr-BE']);\n app()['config']->set('translation.key', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');\n app()['config']->set('translation.gettext_parse_paths', ['tests/fixtures/gettext']);\n\n $this->addTranslationFixture('fr-BE', [], 'auth', [\n 'fields' => [\n 'first_name' => 'Prénom'\n ]\n ]);\n\n $this->cassette('integration/init_with_bad_api_key.yml');\n\n try {\n $this->artisan('translation:init');\n }\n catch(\\Throwable $e) {\n $this->assertEquals(\"Could not find any *active* project with this API key.\", $e->getMessage());\n }\n }", "function translation() {\n\t\t\n\t\t// only use, if we have it...\n\t\tif( function_exists('load_plugin_textdomain') ) {\n\t\t\n\t\t\t// load it\n\t\t\tload_plugin_textdomain( \n\t\t\t\n\t\t\t\t// unique name\n\t\t\t\t'cp-multisite', \n\t\t\t\t\n\t\t\t\t// deprecated argument\n\t\t\t\tfalse,\n\t\t\t\t\n\t\t\t\t// path to directory containing translation files\n\t\t\t\tplugin_dir_path( CPMU_PLUGIN_FILE ) . 'languages/'\n\t\t\t\t\n\t\t\t);\n\t\t\t\n\t\t}\n\t\t\n\t}", "private static function translator()\n {\n $files = ['Lang', 'Smiley'];\n $folder = static::$root.'Translator'.'/';\n\n self::call($files, $folder);\n\n $files = ['LanguageKeyNotFoundException', 'LanguageNotSupportedException'];\n $folder = static::$root.'Translator/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "function i18n() {\n\tload_theme_textdomain( 'project', Project_PATH . '/languages' );\n }", "public function testReplaceFormLines()\n {\n $translator = new Translator();\n $translator->replaceFormLines();\n\n $this->assertSame(__('Reset Password'), 'Set Password');\n }", "public function testLongTranslate()\n {\n // Build a long input text, so that the translate method will split it up in two.\n $text = 'hi. ';\n $multiplier = 1.5 * Translator::MAXIMUM_TEXT_SIZE / strlen($text);\n $textInEn = str_repeat('hi. ', $multiplier);\n $textInFr = str_repeat('salut. ', $multiplier);\n $textInFrPart1 = substr($textInFr, 0, strlen($textInFr) / 2);\n $textInFrPart2 = substr($textInFr, strlen($textInFrPart1));\n\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->onConsecutiveCalls(\n ['data' => ['translations' => [['translatedText' => $textInFrPart1]]]],\n ['data' => ['translations' => [['translatedText' => $textInFrPart2]]]]\n ));\n\n // When\n $value = $this->translator->translate($textInEn, 'en');\n\n // Then\n $this->assertEquals($value, $textInFr, 'Should return \"'.$textInFr.'\"');\n }", "public function loadTranslations()\n {\n $oTranslation = new Translation($this->sLang, $this->sBundleName);\n $this->aView[\"lang\"] = $this->sLang;\n $this->aView[\"tr\"] = $oTranslation->getTranslations();\n }", "public function testSystemLocalization()\n {\n foreach ($this->testLocales as $locale) {\n Localization::changeLocale($locale);\n\n foreach ($this->testAddresses as $data) {\n $country = $this->getCountryNameWithLocale(\n $data['source']['country'],\n $locale\n );\n $expected = $this->getExpectedFormatWithLocale(\n $data,\n 'text',\n $locale\n );\n\n $formatted = $this->addressFormat->format(\n $data['source'],\n 'text'\n );\n\n $this->assertEquals($expected, $formatted);\n }\n }\n\n Localization::changeLocale(Localization::BASE_LOCALE);\n }", "public function testOrgApacheSlingI18nImplI18NFilter()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/org.apache.sling.i18n.impl.I18NFilter';\n\n $crawler = $client->request('POST', $path);\n }", "public function testBasicTest()\n {\n $response = $this->get('/test');\n\n $response->assertStatus(200);\n\n $response->assertSeeText('小粽子');\n\n }", "public function testInsertNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('fra');\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertSame('fra', $article->get('_locale'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $article->set('title', 'Un autre titre');\n $article->set('body', 'Le contenu');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame('Un autre titre', $article->get('title'));\n $this->assertSame('Le contenu', $article->get('body'));\n }", "public function translationManagement()\n {\n $langListFromDB = $this->service->getLanguageCodeList();\n $dataTransFromDB = $this->service->getTranslateList('', '');\n $langList = ($langListFromDB->status == SDBStatusCode::OK)?$langListFromDB->data:array();\n $dataTrans = ($dataTransFromDB->status == SDBStatusCode::OK)?$dataTransFromDB->data:array();\n $dataComboFilter = $this->service->getNewTransComboList();\n return view(\"dev/translation\", compact(['dataTrans', 'langList', 'dataComboFilter']));\n }", "public function load_textdomain()\n {\n }", "public function testLanguageConsistency(): void\n\t{\n\t\tstatic::assertEquals('en', app()->getLocale());\n\t\tstatic::assertEquals('OK', __('lychee.SUCCESS'));\n\n\t\t$msgSection = (new ConsoleOutput())->section();\n\n\t\t$englishDictionary = include base_path('lang/en/lychee.php');\n\t\t$availableDictionaries = config('app.supported_locale');\n\t\t$failed = false;\n\n\t\tforeach ($availableDictionaries as $locale) {\n\t\t\t$dictionary = include base_path('lang/' . $locale . '/lychee.php');\n\t\t\t$missingKeys = array_diff_key($englishDictionary, $dictionary);\n\t\t\tforeach ($missingKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s misses the following key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\n\t\t\t$extraKeys = array_diff_key($dictionary, $englishDictionary);\n\t\t\tforeach ($extraKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s has the following extra key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\t\t}\n\t\tstatic::assertFalse($failed);\n\t}", "public function translate();", "public function localization() {\n\t\t\tload_plugin_textdomain( 'bitlive-custom-codes', false, __DIR__ . '/languages/' );\n\t\t}", "public function testTranslationFieldForTranslatedFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'en_US',\n ]);\n\n $expectedSameLocale = 'Articles.title';\n $expectedOtherLocale = 'Articles_title_translation.content';\n\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('es_ES');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n I18n::setLocale('en');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->removeBehavior('Translate');\n\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'de_DE',\n ]);\n\n I18n::setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('en_US');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n $table->setLocale('es');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n }", "public function testLoadTranslation(): void\n {\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'English topic';\n $data['text'] = 'English text';\n $data['nullable'] = 'not null';\n $data['settings'] = ['key' => 'value'];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Sujet français';\n $data['text'] = 'Texte français';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n $this->assertEquals('not null', $doc->nullable);\n $this->assertEquals(['key' => 'value'], $doc->getSettings());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->text);\n $this->assertNull($doc->nullable);\n $this->assertEquals([], $doc->getSettings());\n }", "public function testMultipleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en');\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "public function localization_setup() {\n load_plugin_textdomain( 'baseplugin', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );\n }", "public function testExample()\n {\n // can pass optional arguments: $langFrom, $langTo, API $url\n $client = new \\Errogaht\\YandexOCR\\Client();\n\n //tell path to recognizing file\n $client->setFilePath(__DIR__ . DIRECTORY_SEPARATOR . '1e741d3b-ba67-42e5-8229-f07a72072c96.png');\n\n //get response from Yandex translate\n $response = $client->request();\n $this->assertNotEmpty($response);\n\n //convert response to plain text\n $texter = new \\Errogaht\\YandexOCR\\Response2Text($response);\n $text = $texter->getText();\n $this->assertNotEmpty($text);\n\n //ensure that recognize pass\n $this->assertNotFalse(strpos($text, 'написано'));\n\n }", "public function testLanguageOptionForMultipleLanguages()\n {\n $expected = 'tesseract image.png stdout -l eng+deu+jpn';\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->lang('eng', 'deu', 'jpn')\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "public function testRenderWithNonDefaultLocale()\n {\n $result = $this->render();\n $this->assertMatchesRegularExpression('/<span>Nordamerikanische Westküsten-Normalzeit/', $result);\n }", "public function testCurrentLanguage() {\n\t\t$router = $this->getRouter('/en/test', array());\n\t\t$this->assertEquals('en', $router->getLanguage());\n\n\t\t$router = $this->getRouter('/test', array());\n\t\t$this->assertEquals($this->defaultLanguage, $router->getLanguage());\n\n\t\t$router = $this->getRouter('/de/test', array());\n\t\t$this->assertEquals('de', $router->getLanguage());\n\t}", "public function testInit()\n {\n $deDir = $this->localeDir . 'de_DE' . DS;\n if (!is_dir($deDir)) {\n mkdir($deDir, 0770, true);\n }\n file_put_contents($this->localeDir . 'default.pot', 'Testing POT file.');\n file_put_contents($this->localeDir . 'cake.pot', 'Testing POT file.');\n if (file_exists($deDir . 'default.po')) {\n unlink($deDir . 'default.po');\n }\n if (file_exists($deDir . 'default.po')) {\n unlink($deDir . 'cake.po');\n }\n\n $this->shell->getIo()->expects($this->at(0))\n ->method('ask')\n ->will($this->returnValue('de_DE'));\n $this->shell->getIo()->expects($this->at(1))\n ->method('ask')\n ->will($this->returnValue($this->localeDir));\n\n $this->shell->params['verbose'] = true;\n $this->shell->init();\n\n $this->assertFileExists($deDir . 'default.po');\n $this->assertFileExists($deDir . 'cake.po');\n }", "function GetLocalizedTexts()\n\t{\n\t\t$result = $this->sendRequest(\"GetLocalizedTexts\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function isTranslatable() {\n $observerWrapper = $this->getMock('\\EntityDrupalWrapper');\n $mockDrupal = $this->getMockDrupalHandlerForConstructor();\n\n $translatable = new ParagraphsTranslatable($observerWrapper, $mockDrupal);\n $this->assertSame(TRUE, $translatable->isTranslatable());\n }", "private function load_localization() {\n $plugin_i18n = new PLUGINNAME_i18n($this->getter()->get_translation_slug);\n add_action('plugins_loaded', array($plugin_i18n, 'load_plugin_textdomain'));\n }", "private function mockTranslations(): void\n {\n $languages = [/*'en_EN',*/\n 'fr_FR', 'de_DE', ];\n $i18nItems = I18nItem::where('status', I18nItem::STATUS_DRAFT)->get();\n\n foreach ($languages as $language) {\n $faker = \\Faker\\Factory::create($language);\n\n foreach ($i18nItems as $i18nItem) {\n $charCount = round(strlen($i18nItem->value) * 1.5);\n $mockValue = $faker->realText($charCount > 10 ? $charCount : 10);\n $short = strlen($mockValue) < 256;\n\n I18nTranslation::create([\n 'i18n_item_id' => $i18nItem->id,\n 'language' => substr($language, 0, 2),\n 'short_value' => $short ? $mockValue : null,\n 'long_value' => ! $short ? $mockValue : null,\n ]);\n }\n }\n }", "public function displayCorrectLocale()\n {\n $message = new CustomerMessage('de_DE');\n $this->assertEquals('de_DE', $message->getLocale());\n }", "function main() {\n\t\t$this->out(__('I18n Shell', true));\n\t\t$this->hr();\n\t\t$this->out(__('[E]xtract POT file from sources', true));\n\t\t$this->out(__('[I]nitialize i18n database table', true));\n\t\t$this->out(__('[H]elp', true));\n\t\t$this->out(__('[Q]uit', true));\n\n\t\t$choice = strtolower($this->in(__('What would you like to do?', true), array('E', 'I', 'H', 'Q')));\n\t\tswitch ($choice) {\n\t\t\tcase 'e':\n\t\t\t\t$this->Extract->execute();\n\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\t$this->initdb();\n\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\t$this->help();\n\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\texit(0);\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->out(__('You have made an invalid selection. Please choose a command to execute by entering E, I, H, or Q.', true));\n\t\t}\n\t\t$this->hr();\n\t\t$this->main();\n\t}", "public function testTitle()\n {\n\n $this->assertEquals(\"About|Laracarte\",getTile('About'));\n\n }", "protected function checkTranslatedShortcut() {}", "function is_translatable()\n {\n }", "function positive_panels_lang(){\n\tload_textdomain('positive-panels', 'lang/positive-panels.mo');\n}", "public function testFilterUntranslated(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'onlyTranslated' => true,\n ]);\n $table->setLocale('eng');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(1, $results);\n\n $table->setLocale('fr');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(0, $results);\n }", "function __($text)\n{\n $sys = getSysInfo();\n $lang = $sys[\"lang\"];\n //set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'].getPathFromDocRoot().'locales'.FILE_SEPARATOR.$lang);\n if ($lang == \"\") {\n //do nothing\n return $text;\n } else {\n require_once('locales'.FILE_SEPARATOR.$lang.FILE_SEPARATOR.$lang.'.php');\n //$translation = getTranslation($text);\n $translation = call_user_func('getTranslation_'.$lang, $text);\n if ($translation == \"\") {\n return $text;\n //maybe send an error email to admin?\n } else {\n return $translation;\n }\n }\n}", "public function __construct() {\n\t\t\t$this->trans_strings();\n\t\t}", "public function testCustomTranslationTable(): void\n {\n ConnectionManager::setConfig('custom_i18n_datasource', ['url' => getenv('DB_URL')]);\n\n $table = $this->getTableLocator()->get('Articles');\n\n $table->addBehavior('Translate', [\n 'translationTable' => CustomI18nTable::class,\n 'fields' => ['title', 'body'],\n ]);\n\n $items = $table->associations();\n $i18n = $items->getByProperty('_i18n');\n\n $this->assertSame('CustomI18n', $i18n->getName());\n $this->assertInstanceOf(CustomI18nTable::class, $i18n->getTarget());\n $this->assertSame('custom_i18n_datasource', $i18n->getTarget()->getConnection()->configName());\n $this->assertSame('custom_i18n_table', $i18n->getTarget()->getTable());\n\n ConnectionManager::drop('custom_i18n_datasource');\n }", "public static function testGetShortEN() {\n\n echo HTTPStatusCode::get(200, 'en', 'short');\n }", "public function testGetDefaultLanguageLocaleCodeViaGetterMethod()\n {\n $this->assertEquals('en', $this->translator->getLocale());\n }", "public function setup_i18n() {\n\t\tload_plugin_textdomain( 'woocommerce-bundle-rate-shipping', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );\n\t}", "public function localization_setup() {\n load_plugin_textdomain( 'wc-mailerlite', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );\n }", "public function testLoad()\n\t{\n\t\t$this->assertEquals(\"Welcome Dave\", substr($this->view->render(), 0, 12));\n\t}", "public function practice3()\n {\n $translator = new Parser();\n $translation = $translator->translate('Hello World');\n dump($translation);\n }", "function i18n() {\n\tload_theme_textdomain( 'additive', ADDITIVE_PATH . '/languages' );\n }", "public function initLocalization() {\n $moFiles = scandir(trailingslashit($this->dir) . 'languages/');\n foreach ($moFiles as $moFile) {\n if (strlen($moFile) > 3 && substr($moFile, -3) == '.mo' && strpos($moFile, get_locale()) > -1) {\n load_textdomain('WP_Visual_Chat', trailingslashit($this->dir) . 'languages/' . $moFile);\n }\n }\n }", "public function testSavingWithNonDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n I18n::setLocale('fra');\n $translations = [\n 'fra' => ['title' => 'Un article'],\n 'spa' => ['title' => 'Un artículo'],\n ];\n\n $article = $table->get(1);\n foreach ($translations as $lang => $data) {\n $article->translation($lang)->set($data, ['guard' => false]);\n }\n\n $table->save($article);\n $article = $table->find('translations')->where(['Articles.id' => 1])->first();\n $this->assertSame('Un article', $article->translation('fra')->title);\n $this->assertSame('Un artículo', $article->translation('spa')->title);\n }", "public function testMultipleEconomicTranslate()\n {\n // Given\n $this->responseMock->expects($this->once())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut # salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en', true);\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "function langonet_tester_definition() {\n\t// Commenter ou decommenter les lignes suivantes pour tester les differents cas de verification\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items du module Langonet, ne sont pas definis dans langonet-tests_fr.php\n\t$essai = _T('langonet-tests:test_item_non_defini_1');\n\t$essai = _T('langonet-tests:test_item_non_defini_2');\n\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items de modules differents de Langonet, ne sont pas definis dans leur fichier\n\t// de langue respectif (spip, ecrire ou public.php pour le premier, cfg_fr pour le second)\n\t$essai = _T('test_item_non_defini_3');\n\t$essai = _T('cfg:test_item_non_defini_4');\n\t$essai = _T('cfg:bouton_valider');\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants n'appartiennent pas au module Langonet, sont utilises dans Langonet mais bien definis dans leur \n\t// fichier de langue respectif\n\t$essai = array(0 => _T('date_jour_1'));\n\t$essai = array_push(_T('cfg:bouton_effacer'));\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants sont utilises dans un contexte complexe. Ce sont des items de Langonet ou pas\n\t$essai = _T('langonet-tests:test_item_1_'.$variable);\n\t$essai = _T('test_item_2_'.$variable);\n\t$essai = _T(\"langonet-tests:$arg1\");\n\t$essai = _T('langonet-tests:' . $arg2);\n\t$essai = _T(\"langonet-tests:\".$arg3);\n\n\t// VERIFICATION _L() : Erreurs\n\t$essai = _L('Test 1 _L() de langonet');\n\t$essai = _L(\"Test 2 _L() de langonet\");\n\t$essai = _L(\"Test 3 _L()\", $arg4);\n\t$essai = _L('Test 4 _L()' . $arg5);\n\t$essai = _L(\"Test 5 _L()$arg6\");\n\t$essai = _L(\"Test 6 _L()${arg7}\");\n\t$essai = _L(\"Test 7 _L()\");\n\t$essai = _L (\"TEST 7 _L()\");\n\t$essai = _L\t\t(\"Test 7 _L()\");\n\t$essai = _L(\"T1234567890123456789012345678901abcdef\");\n}", "protected abstract function getTranslations();", "public function testEmailUkTranslate()\n {\n $this->getEmailWithLocal('uk');\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_HELLO_UK);\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_THANKS_UK);\n }", "public static function translationEditor($page) {\n\t\t\n\t\t$include_file = false;\n\t\t$base_path = elgg_get_plugins_path() . 'translation_editor/pages/';\n\t\t\n\t\tswitch ($page[0]) {\n\t\t\tcase 'search':\n\t\t\t\t$include_file = \"{$base_path}search.php\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (empty($page[0])) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// set language\n\t\t\t\tset_input('current_language', $page[0]);\n\t\t\t\t\n\t\t\t\t// set (optional) plugin_id\n\t\t\t\tif (!empty($page[1])) {\n\t\t\t\t\tset_input('plugin', $page[1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$include_file = \"{$base_path}index.php\";\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (!empty($include_file)) {\n\t\t\tinclude($include_file);\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t$current_language = get_current_language();\n\t\tforward(\"translation_editor/{$current_language}\");\n\t\t\n\t\treturn true;\n\t}", "public function testFindTranslationsList(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table\n ->find(\n 'list',\n keyField: 'title',\n valueField: '_translations.deu.title',\n groupField: 'id',\n )\n ->find('translations', locales: ['deu']);\n\n $expected = [\n 1 => ['First Article' => 'Titel #1'],\n 2 => ['Second Article' => 'Titel #2'],\n 3 => ['Third Article' => 'Titel #3'],\n ];\n $this->assertEquals($expected, $results->toArray());\n }", "private function autoTranslate()\n {\n $translationServices = $this->manager->getAutomaticTranslationServices();\n $translationService = new $translationServices[$this->choice('Which automatic translation provider should be used?',\n array_keys($translationServices), 0)]();\n if (!in_array($this->manager->getDefaultLocale(), $translationService->getAvailableLocales())) {\n $this->warn('Provider '.class_basename($translationService).' doesn\\'t support locale \"'.$this->manager->getDefaultLocale().'\"');\n\n return;\n }\n\n $translationLocale = $this->ask('In which language do you want to translate?', 'en');\n if (!in_array($translationLocale, $translationService->getAvailableLocales())) {\n $this->warn('Provider '.class_basename($translationService).' doesn\\'t support locale \"'.$translationLocale.'\"');\n\n return;\n }\n\n $translationValues = $this->manager->getUntranslatedValues(\n $this->manager->getDefaultLocale(),\n $translationLocale\n );\n if (!$this->confirm('This translation costs $'.$translationService->calculateCosts($translationValues).' Do you want to continue?')) {\n return;\n }\n\n $this->info('Translating values...');\n $progress = $this->output->createProgressBar(count($translationValues));\n\n $translatedLocaleValues = [];\n foreach ($translationValues as $name => $localeString) {\n $translatedLocaleValues[$translationLocale][$name] = $translationService->translate(\n $this->manager->getDefaultLocale(),\n $translationLocale,\n $localeString\n );\n $progress->advance();\n }\n $progress->finish();\n echo \"\\r\\n\";\n\n $this->info('Write values');\n $this->manager->write($translatedLocaleValues);\n }", "public function testSaveTranslationDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->hasMany('Comments');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $article = $table->get(1);\n $data = [\n 'title' => 'New title',\n 'body' => 'New body',\n '_translations' => [\n 'es' => [\n 'title' => 'ES title',\n 'body' => 'ES body',\n ],\n ],\n ];\n $article = $table->patchEntity($article, $data);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find('translations')->where(['id' => 1])->first();\n $this->assertSame('New title', $article->get('title'));\n $this->assertSame('New body', $article->get('body'));\n\n $this->assertSame('ES title', $article->_translations['es']->title);\n $this->assertSame('ES body', $article->_translations['es']->body);\n }", "public function testIfPDFDocumentsListIncludesTranslation()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost([\n 'username' => 'demo',\n 'password' => 'demo',\n ]);\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_repositoryClass' => 'document',\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check if German values are still the same\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n static::assertEquals($documentType['name'], $documentType['description']);\n }\n\n $this->reset();\n Shopware()->Container()->reset('translation');\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n switch ($documentType['id']) {\n case 1:\n static::assertEquals('Invoice', $documentType['description']);\n break;\n case 2:\n static::assertEquals('Notice of delivery', $documentType['description']);\n break;\n case 3:\n static::assertEquals('Credit', $documentType['description']);\n break;\n case 4:\n static::assertEquals('Cancellation', $documentType['description']);\n break;\n }\n }\n }", "public function translate($text);", "public function test_get_supported_languages()\n {\n $ocr = new \\App\\Modules\\OCR\\OCR();\n\n $lang = $ocr->supportedLanguages();\n\n PHPUnit::assertContains(\n 'eng',\n $lang,\n );\n\n }", "public function testSaveTranslation(): void\n {\n $data = [];\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n\n $data['topic'] = 'Un sujet intéressant';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->getPhpcrSession()->save();\n\n // Then test we have what we expect in the content repository\n $node_en = $this->session->getNode($this->nodeNameForLocale('en'));\n $node_fr = $this->session->getNode($this->nodeNameForLocale('fr'));\n\n $this->assertTrue($node_en->hasProperty('topic'));\n $this->assertTrue($node_fr->hasProperty('topic'));\n $this->assertTrue($node_en->hasProperty('text'));\n $this->assertTrue($node_fr->hasProperty('text'));\n $this->assertFalse($node_fr->hasProperty('author'));\n $this->assertFalse($node_en->hasProperty('author'));\n\n $this->assertEquals('Some interesting subject', $node_en->getPropertyValue('topic'));\n $this->assertEquals('Un sujet intéressant', $node_fr->getPropertyValue('topic'));\n $this->assertEquals('Lorem ipsum...', $node_en->getPropertyValue('text'));\n $this->assertEquals('Lorem ipsum...', $node_fr->getPropertyValue('text'));\n }", "public function testGetLabelAndLanguageListEx() {\n try {\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('getLanguageStringBySrcTargetAndLanguageGroupId')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->getLabelAndLanguageList('s_lang_id', 't_lang_id', 'group_id');\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "function lang($message) {\n echo Mvc::getInstance()->getView()->translateViewMessage($message);\n}", "function i18n() {\n\tload_theme_textdomain( 'playground-theme', PLAYGROUND_THEME_PATH . '/languages' );\n}", "public function testEditGlobalTemplate()\n {\n\n }", "protected function getTranslateTools() {}", "protected function loadLocalization() {}", "public function testAddLangStrEx() {\n\n try {\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('addLangStr')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->addLangStr(new LanguageLabelString());\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "protected function _initTranslate() {\n\t\t$translate = new Zend_Translate('array',\n\t\t\tAPPLICATION_PATH . '/langs',\n\t\t\tnull,\n\t\t\tarray('scan'=>Zend_Translate::LOCALE_FILENAME)\n\t\t\t);\n\t\t$registry = Zend_Registry::getInstance();\n\t\t$registry->set('Zend_Translate',$translate);\n\t\t// This is assigned by the initLocale on the fly based on browser language\n\t\t//$translate->setlocale('en_US');\n\t}" ]
[ "0.7155073", "0.6869474", "0.67515814", "0.66741776", "0.65856504", "0.64591104", "0.64552826", "0.6436511", "0.6393012", "0.6388643", "0.6330205", "0.6319794", "0.63195133", "0.63138986", "0.62505317", "0.6246821", "0.6236729", "0.6167913", "0.6100812", "0.6062083", "0.6021604", "0.6017814", "0.6017753", "0.60154206", "0.60136527", "0.59912837", "0.5989511", "0.5977539", "0.5922309", "0.59159166", "0.59159166", "0.5906556", "0.5904797", "0.5882698", "0.58721524", "0.58696586", "0.58623457", "0.5850551", "0.5832375", "0.58321935", "0.5817679", "0.5804251", "0.5804149", "0.58039594", "0.57993215", "0.5784128", "0.57836515", "0.57824004", "0.5782246", "0.5777673", "0.5774592", "0.5773198", "0.57516015", "0.574122", "0.57396644", "0.57346976", "0.57320917", "0.57304424", "0.5705015", "0.57049644", "0.56897074", "0.56873345", "0.5682393", "0.567965", "0.56737256", "0.56720644", "0.5671251", "0.56661534", "0.56658703", "0.56646025", "0.5659186", "0.56568485", "0.5653042", "0.5644322", "0.56430036", "0.5639968", "0.56355214", "0.563516", "0.5621414", "0.5606771", "0.5601284", "0.5599723", "0.5592011", "0.5589849", "0.55868983", "0.55841476", "0.5584098", "0.55806303", "0.55787295", "0.55720305", "0.5569401", "0.55662596", "0.5564124", "0.5563318", "0.55584747", "0.5557704", "0.5549206", "0.5540662", "0.55403996", "0.55355984" ]
0.8696037
0
Tests the basic translation workflow.
protected function doTestBasicTranslation() { // Create a new test entity with original values in the default language. $default_langcode = $this->langcodes[0]; $values[$default_langcode] = $this->getNewEntityValues($default_langcode); // Create the entity with the editor as owner, so that afterwards a new // translation is created by the translator and the translation author is // tested. $this->drupalLogin($this->editor); $this->entityId = $this->createEntity($values[$default_langcode], $default_langcode); $this->drupalLogin($this->translator); $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->assertNotEmpty($entity, 'Entity found in the database.'); $this->drupalGet($entity->toUrl()); $this->assertSession()->statusCodeEquals(200); // Ensure that the content language cache context is not yet added to the // page. $this->assertCacheContexts($this->defaultCacheContexts); $this->drupalGet($entity->toUrl('drupal:content-translation-overview')); $this->assertSession()->pageTextNotContains('Source language'); $translation = $this->getTranslation($entity, $default_langcode); foreach ($values[$default_langcode] as $property => $value) { $stored_value = $this->getValue($translation, $property, $default_langcode); $value = is_array($value) ? $value[0]['value'] : $value; $message = new FormattableMarkup('@property correctly stored in the default language.', ['@property' => $property]); $this->assertEquals($value, $stored_value, $message); } // Add a content translation. $langcode = 'it'; $language = ConfigurableLanguage::load($langcode); $values[$langcode] = $this->getNewEntityValues($langcode); $entity_type_id = $entity->getEntityTypeId(); $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [ $entity->getEntityTypeId() => $entity->id(), 'source' => $default_langcode, 'target' => $langcode, ], ['language' => $language]); $this->drupalGet($add_url); $this->submitForm($this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode)); // Assert that HTML is not escaped unexpectedly. if ($this->testHTMLEscapeForAllLanguages) { $this->assertSession()->responseNotContains('&lt;span class=&quot;translation-entity-all-languages&quot;&gt;(all languages)&lt;/span&gt;'); $this->assertSession()->responseContains('<span class="translation-entity-all-languages">(all languages)</span>'); } // Ensure that the content language cache context is not yet added to the // page. $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->drupalGet($entity->toUrl()); $this->assertCacheContexts(Cache::mergeContexts(['languages:language_content'], $this->defaultCacheContexts)); // Reset the cache of the entity, so that the new translation gets the // updated values. $metadata_source_translation = $this->manager->getTranslationMetadata($entity->getTranslation($default_langcode)); $metadata_target_translation = $this->manager->getTranslationMetadata($entity->getTranslation($langcode)); $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid'; if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) { $this->assertEquals($this->translator->id(), $metadata_target_translation->getAuthor()->id(), new FormattableMarkup('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode])); $this->assertNotEquals($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(), new FormattableMarkup('Author of the target translation @target different from the author of the source translation @source for translatable owner field.', ['@target' => $langcode, '@source' => $default_langcode])); } else { $this->assertEquals($this->editor->id(), $metadata_target_translation->getAuthor()->id(), 'Author of the entity remained untouched after translation for non translatable owner field.'); } $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created'; if ($entity->getFieldDefinition($created_field_name)->isTranslatable()) { // Verify that the translation creation timestamp of the target // translation language is newer than the creation timestamp of the source // translation default language for the translatable created field. $this->assertGreaterThan($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime()); } else { $this->assertEquals($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.'); } if ($this->testLanguageSelector) { // Verify that language selector is correctly disabled on translations. $this->assertSession()->fieldNotExists('edit-langcode-0-value'); } $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->drupalGet($entity->toUrl('drupal:content-translation-overview')); $this->assertSession()->pageTextNotContains('Source language'); // Switch the source language. $langcode = 'fr'; $language = ConfigurableLanguage::load($langcode); $source_langcode = 'it'; $edit = ['source_langcode[source]' => $source_langcode]; $entity_type_id = $entity->getEntityTypeId(); $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [ $entity->getEntityTypeId() => $entity->id(), 'source' => $default_langcode, 'target' => $langcode, ], ['language' => $language]); // This does not save anything, it merely reloads the form and fills in the // fields with the values from the different source language. $this->drupalGet($add_url); $this->submitForm($edit, 'Change'); $this->assertSession()->fieldValueEquals("{$this->fieldName}[0][value]", $values[$source_langcode][$this->fieldName][0]['value']); // Add another translation and mark the other ones as outdated. $values[$langcode] = $this->getNewEntityValues($langcode); $edit = $this->getEditValues($values, $langcode) + ['content_translation[retranslate]' => TRUE]; $entity_type_id = $entity->getEntityTypeId(); $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [ $entity->getEntityTypeId() => $entity->id(), 'source' => $source_langcode, 'target' => $langcode, ], ['language' => $language]); $this->drupalGet($add_url); $this->submitForm($edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode)); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->drupalGet($entity->toUrl('drupal:content-translation-overview')); $this->assertSession()->pageTextContains('Source language'); // Check that the entered values have been correctly stored. foreach ($values as $langcode => $property_values) { $translation = $this->getTranslation($entity, $langcode); foreach ($property_values as $property => $value) { $stored_value = $this->getValue($translation, $property, $langcode); $value = is_array($value) ? $value[0]['value'] : $value; $message = new FormattableMarkup('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]); $this->assertEquals($value, $stored_value, $message); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTranslationUI() {\n $this->doTestBasicTranslation();\n $this->doTestTranslationOverview();\n $this->doTestOutdatedStatus();\n $this->doTestPublishedStatus();\n $this->doTestAuthoringInfo();\n $this->doTestTranslationEdit();\n $this->doTestTranslationChanged();\n $this->doTestChangedTimeAfterSaveWithoutChanges();\n $this->doTestTranslationDeletion();\n }", "public function testTranslate(): void\n {\n $result = $this->editInPlaceExtension->translate('key', ['key' => 'value'], 'domain');\n\n $this->assertEquals(0, \\strlen($result));\n\n $this->assertEmpty($result);\n }", "public function testSimpleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $value = $this->translator->translate('hi', 'fr', 'en');\n\n // Then\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }", "public function testTranslation(): void\n {\n $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR);\n $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Día Nacional de la Memoria por la Verdad y la Justicia']);\n }", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2019),\n [self::LOCALE => '体育の日']\n );\n }", "public function testPlainTextTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => \"J'ai\"]]]]\n ));\n\n // When\n $value = $this->translator->translate('I have', 'fr', 'en', true);\n\n // Then\n $this->assertEquals($value, \"J'ai\", 'Should return \"J\\'ai\"');\n }", "public function testSaveTranslation(): void\n {\n $data = [];\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n\n $data['topic'] = 'Un sujet intéressant';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->getPhpcrSession()->save();\n\n // Then test we have what we expect in the content repository\n $node_en = $this->session->getNode($this->nodeNameForLocale('en'));\n $node_fr = $this->session->getNode($this->nodeNameForLocale('fr'));\n\n $this->assertTrue($node_en->hasProperty('topic'));\n $this->assertTrue($node_fr->hasProperty('topic'));\n $this->assertTrue($node_en->hasProperty('text'));\n $this->assertTrue($node_fr->hasProperty('text'));\n $this->assertFalse($node_fr->hasProperty('author'));\n $this->assertFalse($node_en->hasProperty('author'));\n\n $this->assertEquals('Some interesting subject', $node_en->getPropertyValue('topic'));\n $this->assertEquals('Un sujet intéressant', $node_fr->getPropertyValue('topic'));\n $this->assertEquals('Lorem ipsum...', $node_en->getPropertyValue('text'));\n $this->assertEquals('Lorem ipsum...', $node_fr->getPropertyValue('text'));\n }", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR),\n [self::LOCALE => 'Canada Day']\n );\n }", "public function testLoadTranslation(): void\n {\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'English topic';\n $data['text'] = 'English text';\n $data['nullable'] = 'not null';\n $data['settings'] = ['key' => 'value'];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Sujet français';\n $data['text'] = 'Texte français';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n $this->assertEquals('not null', $doc->nullable);\n $this->assertEquals(['key' => 'value'], $doc->getSettings());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->text);\n $this->assertNull($doc->nullable);\n $this->assertEquals([], $doc->getSettings());\n }", "protected function doTestTranslationOverview() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $translate_url = $entity->toUrl('drupal:content-translation-overview');\n $this->drupalGet($translate_url);\n $translate_url->setAbsolute(FALSE);\n\n foreach ($this->langcodes as $langcode) {\n if ($entity->hasTranslation($langcode)) {\n $language = new Language(['id' => $langcode]);\n // Test that label is correctly shown for translation.\n $view_url = $entity->toUrl('canonical', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//a[@href='{$view_url}']\", $entity->getTranslation($langcode)->label() ?? $entity->getTranslation($langcode)->id());\n // Test that edit link is correct for translation.\n $edit_path = $entity->toUrl('edit-form', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//ul[@class='dropbutton']/li/a[@href='{$edit_path}']\", 'Edit');\n }\n }\n }", "public function testCanGetMessageByKeyFromTranslator()\n {\n $this->translator->load();\n $message = $this->translator->get('test_message');\n $this->assertEquals('file has been loaded', $message);\n }", "public function practice3()\n {\n $translator = new Parser();\n $translation = $translator->translate('Hello World');\n dump($translation);\n }", "protected function doTestTranslationEdit() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $languages = $this->container->get('language_manager')->getLanguages();\n\n foreach ($this->langcodes as $langcode) {\n // We only want to test the title for non-english translations.\n if ($langcode != 'en') {\n $options = ['language' => $languages[$langcode]];\n $url = $entity->toUrl('edit-form', $options);\n $this->drupalGet($url);\n\n $this->assertSession()->responseContains($entity->getTranslation($langcode)->label());\n }\n }\n }", "public function testTranslationOfStores()\n {\n // set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'orderId' => '1',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/loadStores?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n $data = $responseJSON['data'];\n\n // Test for fallback value\n $this->assertElementWithKeyValuePairExists('SEPA', 'description', 6, $data['payments']);\n\n // Test for translation\n $this->assertElementWithKeyValuePairExists('Invoice', 'description', 4, $data['payments']);\n\n $this->assertElementWithKeyValuePairExists('Standard delivery', 'name', 9, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Express Delivery', 'name', 14, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Standard international delivery', 'name', 16, $data['dispatches']);\n\n $this->assertElementWithKeyValuePairExists('Invoice', 'name', 1, $data['documentTypes']);\n $this->assertElementWithKeyValuePairExists('Credit', 'name', 3, $data['documentTypes']);\n }", "protected function setUp()\n {\n parent::setUp();\n $this->getTranslator()->setLanguage(1);\n }", "public function test_transform_all() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'repository' => \"slack\",\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'url' => 'http://svn.example.com/wsvn/main/?op=revision&rev=126299',\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, '[slack] <http://svn.example.com/wsvn/main/?op=revision&amp;rev=126299|r126299>: ph - commit message');\n\t\t}", "public function testTranslationOfOrderList()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n Shopware()->Container()->reset('translation');\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/getList?' . $getString);\n\n // Remove 'new Date(...)' strings from json\n $responseStr = preg_replace('/(new Date\\([-0-9]+\\))/', '\"$1\"', $response->getBody());\n\n $responseJSON = json_decode($responseStr, true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $dataElement) {\n switch ($dataElement['payment']['id']) {\n case 2:\n static::assertEquals(\n 'Debit',\n $dataElement['payment']['description']\n );\n break;\n case 3:\n static::assertEquals(\n 'Cash on delivery',\n $dataElement['payment']['description']\n );\n break;\n case 4:\n static::assertEquals(\n 'Invoice',\n $dataElement['payment']['description']\n );\n break;\n case 5:\n static::assertEquals(\n 'Paid in advance',\n $dataElement['payment']['description']\n );\n break;\n case 6:\n static::assertEquals(\n 'SEPA',\n $dataElement['payment']['description']\n );\n break;\n }\n }\n }", "public function testItWorksWithError()\n {\n // It allows us to stay in sync with T.io while being compatible with previous PHP-VCR tests\n // ---\n // If one day gettext/languages is updated, please use another more stable language than French\n // and edit the plural rules in the pre-recorded PHP-VCR YAML files so that both regular composer\n // and `--prefer-lowest` pass\n app()['config']->set('translation.target_locales', ['fr-BE']);\n app()['config']->set('translation.key', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');\n app()['config']->set('translation.gettext_parse_paths', ['tests/fixtures/gettext']);\n\n $this->addTranslationFixture('fr-BE', [], 'auth', [\n 'fields' => [\n 'first_name' => 'Prénom'\n ]\n ]);\n\n $this->cassette('integration/init_with_bad_api_key.yml');\n\n try {\n $this->artisan('translation:init');\n }\n catch(\\Throwable $e) {\n $this->assertEquals(\"Could not find any *active* project with this API key.\", $e->getMessage());\n }\n }", "public function isTranslatable() {\n $observerWrapper = $this->getMock('\\EntityDrupalWrapper');\n $mockDrupal = $this->getMockDrupalHandlerForConstructor();\n\n $translatable = new ParagraphsTranslatable($observerWrapper, $mockDrupal);\n $this->assertSame(TRUE, $translatable->isTranslatable());\n }", "public function testLongTranslate()\n {\n // Build a long input text, so that the translate method will split it up in two.\n $text = 'hi. ';\n $multiplier = 1.5 * Translator::MAXIMUM_TEXT_SIZE / strlen($text);\n $textInEn = str_repeat('hi. ', $multiplier);\n $textInFr = str_repeat('salut. ', $multiplier);\n $textInFrPart1 = substr($textInFr, 0, strlen($textInFr) / 2);\n $textInFrPart2 = substr($textInFr, strlen($textInFrPart1));\n\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->onConsecutiveCalls(\n ['data' => ['translations' => [['translatedText' => $textInFrPart1]]]],\n ['data' => ['translations' => [['translatedText' => $textInFrPart2]]]]\n ));\n\n // When\n $value = $this->translator->translate($textInEn, 'en');\n\n // Then\n $this->assertEquals($value, $textInFr, 'Should return \"'.$textInFr.'\"');\n }", "public function test_transform_minimal() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, 'r126299: ph - commit message');\n\t\t}", "public function testTranslateNoProxy()\n {\n $translator = new \\Magento\\Framework\\Translate\\Adapter();\n $this->assertEquals('test string', $translator->translate('test string'));\n }", "public function testTranslateUsingDetector()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'comment allez-vous ?']]]]\n ));\n\n // When\n $value = $this->translator->translate('how are you?', 'fr');\n\n // Then\n $this->assertEquals($value, 'comment allez-vous ?', 'Should return \"comment allez-vous ?\"');\n }", "public function setUp(): void\n {\n $this->translator = new Translator(new DictionaryStub());\n }", "public function testMultipleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en');\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "abstract protected function translator();", "public function testPassDoesNothingIfTranslatorIsNotAvailable()\n {\n $this->setExpectedException(null);\n $this->container->compile();\n }", "public function translate();", "public function testMultipleEconomicTranslate()\n {\n // Given\n $this->responseMock->expects($this->once())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut # salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en', true);\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "public function translated();", "public function translated();", "public function translationStart()\n {\n }", "private static function translator()\n {\n $files = ['Lang', 'Smiley'];\n $folder = static::$root.'Translator'.'/';\n\n self::call($files, $folder);\n\n $files = ['LanguageKeyNotFoundException', 'LanguageNotSupportedException'];\n $folder = static::$root.'Translator/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "public function testVariableSubstitutionInStringUkranian()\n {\n $this->specify(\n \"Translator does not translate to Ukranian correctly with passed params\",\n function () {\n $translator = new Gettext(\n [\n 'locale' => 'uk_UA.utf8',\n 'defaultDomain' => 'messages',\n 'directory' => PATH_DATA . 'translation/gettext'\n ]\n );\n\n expect($translator->_(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n expect($translator->t(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n }\n );\n }", "private function mockTranslations(): void\n {\n $languages = [/*'en_EN',*/\n 'fr_FR', 'de_DE', ];\n $i18nItems = I18nItem::where('status', I18nItem::STATUS_DRAFT)->get();\n\n foreach ($languages as $language) {\n $faker = \\Faker\\Factory::create($language);\n\n foreach ($i18nItems as $i18nItem) {\n $charCount = round(strlen($i18nItem->value) * 1.5);\n $mockValue = $faker->realText($charCount > 10 ? $charCount : 10);\n $short = strlen($mockValue) < 256;\n\n I18nTranslation::create([\n 'i18n_item_id' => $i18nItem->id,\n 'language' => substr($language, 0, 2),\n 'short_value' => $short ? $mockValue : null,\n 'long_value' => ! $short ? $mockValue : null,\n ]);\n }\n }\n }", "public function testInsertNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('fra');\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertSame('fra', $article->get('_locale'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $article->set('title', 'Un autre titre');\n $article->set('body', 'Le contenu');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame('Un autre titre', $article->get('title'));\n $this->assertSame('Le contenu', $article->get('body'));\n }", "public function testUnderscoresTranslation()\n {\n $this->markTestIncomplete('MAGETWO-1012: i18n Improvements - Localization/Translations');\n }", "protected function setUp() {\n parent::setUp();\n\n $translator = new MessageTranslator();\n $translator->setReader(new PhpReader());\n\n $this->object = Registry::factory('Titon\\G11n\\G11n');\n $this->object->addLocale(new Locale('en'));\n $this->object->useLocale('en');\n $this->object->setTranslator($translator);\n }", "public function testInternationalization(): void\n {\n $properCased = 'Iñtërnâtiônàlizætiøn';\n $this->assertEquals($properCased, Formatter::nameCase(mb_strtolower($properCased)));\n }", "public function testTranslationFieldForTranslatedFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'en_US',\n ]);\n\n $expectedSameLocale = 'Articles.title';\n $expectedOtherLocale = 'Articles_title_translation.content';\n\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('es_ES');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n I18n::setLocale('en');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->removeBehavior('Translate');\n\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'de_DE',\n ]);\n\n I18n::setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('en_US');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n $table->setLocale('es');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n }", "public function testTranslationNullProperties(): void\n {\n $node = $this->fillTranslations();\n\n // Then try to read it's translation\n $doc = new Article();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->getText());\n }", "public function testEmptyTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body', 'description'],\n 'allowEmptyTranslations' => false,\n ]);\n $table->setLocale('spa');\n $result = $table->find()->first();\n $this->assertNull($result->description);\n }", "public function testSystemLocalization()\n {\n foreach ($this->testLocales as $locale) {\n Localization::changeLocale($locale);\n\n foreach ($this->testAddresses as $data) {\n $country = $this->getCountryNameWithLocale(\n $data['source']['country'],\n $locale\n );\n $expected = $this->getExpectedFormatWithLocale(\n $data,\n 'text',\n $locale\n );\n\n $formatted = $this->addressFormat->format(\n $data['source'],\n 'text'\n );\n\n $this->assertEquals($expected, $formatted);\n }\n }\n\n Localization::changeLocale(Localization::BASE_LOCALE);\n }", "public function testTransliterate() {\n $this->assertEquals('Ingles', Inflector::transliterate('Inglés'));\n $this->assertEquals('Uber', Inflector::transliterate('Über'));\n }", "public function testSaveNewRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'N',\n '_translations' => [\n 'en' => [\n 'title' => 'Title EN',\n 'body' => 'Body EN',\n ],\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $article = $table->patchEntity($table->newEmptyEntity(), $data);\n $result = $table->save($article);\n\n $this->assertNotFalse($result);\n\n $expected = [\n [\n 'en' => [\n 'title' => 'Title EN',\n 'locale' => 'en',\n ],\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "public function test_all() {\n $obj = new My_task;\n \n echo \"Start test_reverse() <br>\";\n $obj->test_reverse();\n echo \"<br><br>\";\n \n echo \"Start test_is_palindrome() <br>\";\n $obj->test_is_palindrome();\n echo \"<br><br>\";\n \n echo \"Start test_encryption() <br>\";\n $obj->test_encryption(); \n echo \"<br><br>\";\n }", "public function testCurrentLanguage() {\n\t\t$router = $this->getRouter('/en/test', array());\n\t\t$this->assertEquals('en', $router->getLanguage());\n\n\t\t$router = $this->getRouter('/test', array());\n\t\t$this->assertEquals($this->defaultLanguage, $router->getLanguage());\n\n\t\t$router = $this->getRouter('/de/test', array());\n\t\t$this->assertEquals('de', $router->getLanguage());\n\t}", "public function testLanguageConsistency(): void\n\t{\n\t\tstatic::assertEquals('en', app()->getLocale());\n\t\tstatic::assertEquals('OK', __('lychee.SUCCESS'));\n\n\t\t$msgSection = (new ConsoleOutput())->section();\n\n\t\t$englishDictionary = include base_path('lang/en/lychee.php');\n\t\t$availableDictionaries = config('app.supported_locale');\n\t\t$failed = false;\n\n\t\tforeach ($availableDictionaries as $locale) {\n\t\t\t$dictionary = include base_path('lang/' . $locale . '/lychee.php');\n\t\t\t$missingKeys = array_diff_key($englishDictionary, $dictionary);\n\t\t\tforeach ($missingKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s misses the following key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\n\t\t\t$extraKeys = array_diff_key($dictionary, $englishDictionary);\n\t\t\tforeach ($extraKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s has the following extra key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\t\t}\n\t\tstatic::assertFalse($failed);\n\t}", "public function testParseLanguage(): void\n {\n $result = Parser::parseLanguage('en');\n $this->assertEquals('en', $result);\n\n $result = Parser::parseLanguage('fr');\n $this->assertEquals('fr', $result);\n\n $result = Parser::parseLanguage('english');\n $this->assertEquals('en', $result);\n\n $result = Parser::parseLanguage('français');\n $this->assertEquals('fr', $result);\n\n $result = Parser::parseLanguage('eng');\n $this->assertEquals('en', $result);\n\n $result = Parser::parseLanguage('fra');\n $this->assertEquals('fr', $result);\n\n $this->assertNull(Parser::parseLanguage('banana'));\n }", "public function isTranslated();", "public function testTranslationArrayProperties(): void\n {\n // First save some translations\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data['topic'] = 'Un sujet intéressant';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ];\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ], $doc->getSettings());\n\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ], $doc->getSettings());\n }", "public function testBuildMarshalMapTranslationsOn(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $marshaller = $table->marshaller();\n $translate = $table->behaviors()->get('Translate');\n\n $result = $translate->buildMarshalMap($marshaller, [], ['translations' => true]);\n $this->assertArrayHasKey('_translations', $result);\n $this->assertInstanceOf('Closure', $result['_translations']);\n\n $result = $translate->buildMarshalMap($marshaller, [], []);\n $this->assertArrayHasKey('_translations', $result);\n $this->assertInstanceOf('Closure', $result['_translations']);\n }", "public function testExample()\n {\n // can pass optional arguments: $langFrom, $langTo, API $url\n $client = new \\Errogaht\\YandexOCR\\Client();\n\n //tell path to recognizing file\n $client->setFilePath(__DIR__ . DIRECTORY_SEPARATOR . '1e741d3b-ba67-42e5-8229-f07a72072c96.png');\n\n //get response from Yandex translate\n $response = $client->request();\n $this->assertNotEmpty($response);\n\n //convert response to plain text\n $texter = new \\Errogaht\\YandexOCR\\Response2Text($response);\n $text = $texter->getText();\n $this->assertNotEmpty($text);\n\n //ensure that recognize pass\n $this->assertNotFalse(strpos($text, 'написано'));\n\n }", "function langonet_tester_definition() {\n\t// Commenter ou decommenter les lignes suivantes pour tester les differents cas de verification\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items du module Langonet, ne sont pas definis dans langonet-tests_fr.php\n\t$essai = _T('langonet-tests:test_item_non_defini_1');\n\t$essai = _T('langonet-tests:test_item_non_defini_2');\n\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items de modules differents de Langonet, ne sont pas definis dans leur fichier\n\t// de langue respectif (spip, ecrire ou public.php pour le premier, cfg_fr pour le second)\n\t$essai = _T('test_item_non_defini_3');\n\t$essai = _T('cfg:test_item_non_defini_4');\n\t$essai = _T('cfg:bouton_valider');\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants n'appartiennent pas au module Langonet, sont utilises dans Langonet mais bien definis dans leur \n\t// fichier de langue respectif\n\t$essai = array(0 => _T('date_jour_1'));\n\t$essai = array_push(_T('cfg:bouton_effacer'));\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants sont utilises dans un contexte complexe. Ce sont des items de Langonet ou pas\n\t$essai = _T('langonet-tests:test_item_1_'.$variable);\n\t$essai = _T('test_item_2_'.$variable);\n\t$essai = _T(\"langonet-tests:$arg1\");\n\t$essai = _T('langonet-tests:' . $arg2);\n\t$essai = _T(\"langonet-tests:\".$arg3);\n\n\t// VERIFICATION _L() : Erreurs\n\t$essai = _L('Test 1 _L() de langonet');\n\t$essai = _L(\"Test 2 _L() de langonet\");\n\t$essai = _L(\"Test 3 _L()\", $arg4);\n\t$essai = _L('Test 4 _L()' . $arg5);\n\t$essai = _L(\"Test 5 _L()$arg6\");\n\t$essai = _L(\"Test 6 _L()${arg7}\");\n\t$essai = _L(\"Test 7 _L()\");\n\t$essai = _L (\"TEST 7 _L()\");\n\t$essai = _L\t\t(\"Test 7 _L()\");\n\t$essai = _L(\"T1234567890123456789012345678901abcdef\");\n}", "public function testSaveTranslationDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->hasMany('Comments');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $article = $table->get(1);\n $data = [\n 'title' => 'New title',\n 'body' => 'New body',\n '_translations' => [\n 'es' => [\n 'title' => 'ES title',\n 'body' => 'ES body',\n ],\n ],\n ];\n $article = $table->patchEntity($article, $data);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find('translations')->where(['id' => 1])->first();\n $this->assertSame('New title', $article->get('title'));\n $this->assertSame('New body', $article->get('body'));\n\n $this->assertSame('ES title', $article->_translations['es']->title);\n $this->assertSame('ES body', $article->_translations['es']->body);\n }", "public function setUp(): void\n {\n parent::setUp();\n\n $this->translator = $this->app->make('translator');\n }", "public function testCanGetTranslationById()\n {\n // Call the service requesting translation #1\n $responseTranslation = $this->translationService->getTranslationById(1);\n\n // Check the response is a translation entity\n $this->assertInstanceOf('Jobs\\Entity\\Translation', $responseTranslation);\n $this->assertInstanceOf('Jobs\\Entity\\Language', $responseTranslation->getLanguage());\n $this->assertInstanceOf('Jobs\\Entity\\Job', $responseTranslation->getJob());\n\n // Check that the returned entity is our dummy translation\n $this->assertEquals(1, $responseTranslation->getId());\n $this->assertEquals('English name', $responseTranslation->getName());\n $this->assertEquals('English description', $responseTranslation->getDescription());\n $this->assertEquals(1, $responseTranslation->getLanguage()->getId());\n $this->assertEquals('en', $responseTranslation->getLanguage()->getName());\n $this->assertEquals(1, $responseTranslation->getJob()->getId());\n $this->assertEquals(1, $responseTranslation->getJob()->getDepartment()->getId());\n $this->assertEquals('It Department', $responseTranslation->getJob()->getDepartment()->getName());\n }", "public function test()\r\n {\r\n $this->db->trans_begin(); // Inicio una transaccion\r\n $this->test_register_item();\r\n $this->test_get_items();\r\n $this->test_item_exists();\r\n $this->test_get_amount_category_by_item();\r\n $this->test_get_letters_item();\r\n $this->db->trans_rollback(); // Rollback para no afectar los datos en la DB\r\n\r\n echo $this->unit->report();\r\n }", "public function testSaveExistingRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'Y',\n '_translations' => [\n 'eng' => [\n 'title' => 'First Article1',\n 'body' => 'First Article content has been updated',\n ],\n 'spa' => [\n 'title' => 'Mi nuevo titulo',\n 'body' => 'Contenido Actualizado',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertSame('Mi nuevo titulo', $results['spa']['title']);\n $this->assertSame('Contenido Actualizado', $results['spa']['body']);\n\n $this->assertSame('First Article1', $results['eng']['title']);\n $this->assertSame('Description #1', $results['eng']['description']);\n }", "protected function setUp(): void\n {\n $this->booleanUtils = $this->createPartialMock(BooleanUtils::class, ['toBoolean']);\n $this->booleanUtils->expects(\n $this->any()\n )->method(\n 'toBoolean'\n )->willReturnMap(\n [['true', true], ['false', false]]\n );\n $this->model = new BaseStringUtils($this->booleanUtils);\n /** @var RendererInterface|\\PHPUnit\\Framework\\MockObject\\MockObject $translateRenderer */\n $translateRenderer = $this->getMockBuilder(RendererInterface::class)\n ->setMethods(['render'])\n ->getMockForAbstractClass();\n $translateRenderer->expects(self::never())->method('render');\n \\Magento\\Framework\\Phrase::setRenderer($translateRenderer);\n }", "function testLanguage()\r\n {\r\n\t\tglobal $webUrl, $SERVER, $DATABASE;\r\n\r\n // Locate the list page of language.\r\n\t\t$this->assertTrue($this->get(\"$webUrl/languages.php\", array(\r\n\t\t\t 'server' => $SERVER,\r\n\t\t\t\t\t\t'database' => $DATABASE,\r\n\t\t\t\t\t\t'subject' => 'database'))\r\n\t\t\t\t\t);\r\n\r\n $this->assertWantedPattern('/sql/');\r\n\r\n return TRUE;\r\n }", "function is_translatable()\n {\n }", "abstract public function translate($sentence);", "protected function setUp() {\n\t$this->object = new Translator;\n }", "public function getTranslationByEcom()\n {\n if ($this->getTimeoutDetected()) {\n return;\n }\n $this->unitSetup();\n $methods = $this->TEST->ECOM->getPaymentMethods();\n\n if (count($methods) < 4) {\n static::markTestSkipped('Test can not perform with missing payment methods (this account is missing some).');\n return;\n }\n\n $partPayment = $this->TEST->ECOM->getMethodTranslation('PARTPAYMENT', 'sv');\n $revolving = $this->TEST->ECOM->getMethodTranslation('REVOLVING_CREDIT', 'sv');\n $swish = $this->TEST->ECOM->getMethodTranslation('SWISH', 'sv');\n $newCard = $this->TEST->ECOM->getMethodTranslation('NEWCARD', 'sv');\n\n static::assertTrue(\n count($methods) &&\n !empty($partPayment['title']) &&\n $revolving['info'] === 'Se alla dina köp i Resurs Banks app' &&\n (isset($swish['mobileText']) && $swish['mobileText'] === 'Ditt mobilnummer: {{mobileNumber}}') &&\n $newCard['title'] === 'Betala hela eller dela beloppet'\n );\n }", "public function _before()\n {\n parent::_before();\n\n if (!extension_loaded('gettext')) {\n $this->markTestSkipped('Warning: gettext extension is not loaded');\n }\n }", "public function test_transform_no_url() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'repository' => \"slack\",\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, '[slack] r126299: ph - commit message');\n\t\t}", "public function testIndexLocalized()\n {\n $classFqn = 'stdClass';\n $count = 100;\n $providerName = 'provider';\n $batch = \\array_fill(0, 2, new \\stdClass());\n\n $this->resumeManager->getUnfinishedProviders()->willReturn([]);\n $this->providerRegistry->getProviders()->willReturn([\n $providerName => $this->localizedProvider1->reveal(),\n ]);\n $this->localizedProvider1->getClassFqns()->willReturn([$classFqn]);\n $this->localizedProvider1->getCount('stdClass')->willReturn($count);\n $this->localizedProvider1->provide('stdClass', 0, 50)->willReturn($batch);\n $this->localizedProvider1->provide('stdClass', 50, 50)->willReturn([]);\n $this->localizedProvider1->cleanUp('stdClass')->shouldBeCalledTimes(2);\n\n foreach ($batch as $object) {\n $this->localizedProvider1->getLocalesForObject($object)->willReturn(['de', 'fr']);\n $this->localizedProvider1->translateObject($object, 'de')\n ->shouldBeCalled()\n ->willReturn($object);\n $this->localizedProvider1->translateObject($object, 'fr')\n ->shouldBeCalled()\n ->willReturn($object);\n }\n\n $this->resumeManager->getCheckpoint($providerName, $classFqn)->willReturn(null);\n $this->resumeManager->setCheckpoint($providerName, $classFqn, 50)->shouldBeCalled();\n $this->resumeManager->setCheckpoint($providerName, $classFqn, 100)->shouldBeCalled();\n $this->resumeManager->removeCheckpoints($providerName)->shouldBeCalled();\n\n $tester = $this->execute('prod', []);\n\n $this->assertStringContainsString(\n 'reindexing \"100\" instances of \"stdClass\"',\n $tester->getDisplay()\n );\n }", "public function testInit()\n {\n $deDir = $this->localeDir . 'de_DE' . DS;\n if (!is_dir($deDir)) {\n mkdir($deDir, 0770, true);\n }\n file_put_contents($this->localeDir . 'default.pot', 'Testing POT file.');\n file_put_contents($this->localeDir . 'cake.pot', 'Testing POT file.');\n if (file_exists($deDir . 'default.po')) {\n unlink($deDir . 'default.po');\n }\n if (file_exists($deDir . 'default.po')) {\n unlink($deDir . 'cake.po');\n }\n\n $this->shell->getIo()->expects($this->at(0))\n ->method('ask')\n ->will($this->returnValue('de_DE'));\n $this->shell->getIo()->expects($this->at(1))\n ->method('ask')\n ->will($this->returnValue($this->localeDir));\n\n $this->shell->params['verbose'] = true;\n $this->shell->init();\n\n $this->assertFileExists($deDir . 'default.po');\n $this->assertFileExists($deDir . 'cake.po');\n }", "public function getTargetEntityFromStaticCache() {\n $targetLang = 'de';\n $expectedEntity = 'expected entity wrapper';\n $targetEntities = array($targetLang => $expectedEntity);\n\n $translatable = new MockParagraphsTranslatable();\n $translatable->setTargetEntities($targetEntities);\n $this->assertEquals($expectedEntity, $translatable->getTargetEntity($targetLang));\n }", "public function testInstallerTranslationFiles() {\n // Different translation files would be found depending on which language\n // we are looking for.\n $expected_translation_files = [\n NULL => ['drupal-8.0.0-beta2.hu.po', 'drupal-8.0.0.de.po', 'drupal-8.0.x.fr-CA.po'],\n 'de' => ['drupal-8.0.0.de.po'],\n 'fr-CA' => ['drupal-8.0.x.fr-CA.po'],\n 'hu' => ['drupal-8.0.0-beta2.hu.po'],\n 'it' => [],\n ];\n\n // Hardcode the fixtures location as we don't yet know where it is.\n // @todo Remove as part of https://www.drupal.org/node/2186491\n $file_translation = new FileTranslation('core/tests/fixtures/files/translations', $this->container->get('file_system'));\n foreach ($expected_translation_files as $langcode => $files_expected) {\n $files_found = $file_translation->findTranslationFiles($langcode);\n $this->assertSameSize($files_expected, $files_found, new FormattableMarkup('@count installer languages found.', ['@count' => count($files_expected)]));\n foreach ($files_found as $file) {\n $this->assertContains($file->filename, $files_expected, new FormattableMarkup('@file found.', ['@file' => $file->filename]));\n }\n }\n }", "public function loadMainTrans()\n {\n $translationPath = $this->_getTransPath();\n require $translationPath.\"/main.php\";\n\n //Return a translation object\n $mainTranslate = new Phalcon\\Translate\\Adapter\\NativeArray(array(\n \"content\" => $messages\n ));\n\n //Set $mt as main translation object\n $this->view->setVar(\"mt\", $mainTranslate);\n }", "public function testLanguageOption()\n {\n $expected = 'tesseract image.png stdout -l deu';\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->lang('deu')\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "public function testSavingWithNonDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n I18n::setLocale('fra');\n $translations = [\n 'fra' => ['title' => 'Un article'],\n 'spa' => ['title' => 'Un artículo'],\n ];\n\n $article = $table->get(1);\n foreach ($translations as $lang => $data) {\n $article->translation($lang)->set($data, ['guard' => false]);\n }\n\n $table->save($article);\n $article = $table->find('translations')->where(['Articles.id' => 1])->first();\n $this->assertSame('Un article', $article->translation('fra')->title);\n $this->assertSame('Un artículo', $article->translation('spa')->title);\n }", "private function dummyMethodToIncludeTranslatableString(){\n return;\n /** @var TranslatorInterface $translator */\n $translator = $this->container->get('translator');\n if ($translator !== null) {\n $translator->trans('hasFacebook', array(), 'advertise');\n $translator->trans('hasTwitter', array(), 'advertise');\n $translator->trans('hasInstagram', array(), 'advertise');\n }\n unset($translator);\n }", "public function test_transform_no_repository() {\n\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'url' => 'http://svn.example.com/wsvn/main/?op=revision&rev=126299',\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, '<http://svn.example.com/wsvn/main/?op=revision&amp;rev=126299|r126299>: ph - commit message');\n\t\t}", "protected function getTranslateTools() {}", "public function testComAdobeGraniteTranslationCoreImplTranslationManagerImpl()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.granite.translation.core.impl.TranslationManagerImpl';\n\n $crawler = $client->request('POST', $path);\n }", "public function testEmailUkTranslate()\n {\n $this->getEmailWithLocal('uk');\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_HELLO_UK);\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_THANKS_UK);\n }", "public function testAddLangStrEx() {\n\n try {\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('addLangStr')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->addLangStr(new LanguageLabelString());\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "public function testIfPDFDocumentsListIncludesTranslation()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost([\n 'username' => 'demo',\n 'password' => 'demo',\n ]);\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_repositoryClass' => 'document',\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check if German values are still the same\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n static::assertEquals($documentType['name'], $documentType['description']);\n }\n\n $this->reset();\n Shopware()->Container()->reset('translation');\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n switch ($documentType['id']) {\n case 1:\n static::assertEquals('Invoice', $documentType['description']);\n break;\n case 2:\n static::assertEquals('Notice of delivery', $documentType['description']);\n break;\n case 3:\n static::assertEquals('Credit', $documentType['description']);\n break;\n case 4:\n static::assertEquals('Cancellation', $documentType['description']);\n break;\n }\n }\n }", "public function testGetDefaultLanguageLocaleCodeViaGetterMethod()\n {\n $this->assertEquals('en', $this->translator->getLocale());\n }", "public function setUp ()\n {\n $this->tran = new Noherczeg\\Breadcrumb\\Translator;\n }", "public function testFilterUntranslated(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'onlyTranslated' => true,\n ]);\n $table->setLocale('eng');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(1, $results);\n\n $table->setLocale('fr');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(0, $results);\n }", "public function testSaveMultipleTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n }", "public function testSaveMultipleNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $translations['spa'] = new Entity(['title' => 'Titulo']);\n $translations['fre'] = new Entity(['title' => 'Titre']);\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n $this->assertSame('Titulo', $translations['spa']->get('title'));\n $this->assertSame('Titre', $translations['fre']->get('title'));\n }", "public function testFindTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table->find('translations');\n $expected = [\n [\n 'eng' => ['title' => 'Title #1', 'body' => 'Content #1', 'description' => 'Description #1', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #1', 'body' => 'Inhalt #1', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #1', 'body' => 'Obsah #1', 'locale' => 'cze'],\n 'spa' => ['body' => 'Contenido #1', 'locale' => 'spa', 'description' => ''],\n ],\n [\n 'eng' => ['title' => 'Title #2', 'body' => 'Content #2', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #2', 'body' => 'Inhalt #2', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #2', 'body' => 'Obsah #2', 'locale' => 'cze'],\n ],\n [\n 'eng' => ['title' => 'Title #3', 'body' => 'Content #3', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #3', 'body' => 'Inhalt #3', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #3', 'body' => 'Obsah #3', 'locale' => 'cze'],\n ],\n ];\n\n $translations = $this->_extractTranslations($results);\n $this->assertEquals($expected, $translations->toArray());\n $expected = [\n 1 => ['First Article' => 'First Article Body'],\n 2 => ['Second Article' => 'Second Article Body'],\n 3 => ['Third Article' => 'Third Article Body'],\n ];\n\n $grouped = $results->all()->combine('title', 'body', 'id');\n $this->assertEquals($expected, $grouped->toArray());\n }", "public function testCanLoadLanguageFilesFromSpecifiedPath()\n {\n $this->translator->load();\n $messages = $this->translator->all();\n $this->assertArrayHasKey('test_message', $messages);\n }", "public function testTranslationFieldForOtherFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $expected = 'Articles.foo';\n $field = $table->translationField('foo');\n $this->assertSame($expected, $field);\n }", "public function testLanguageOptionForMultipleLanguages()\n {\n $expected = 'tesseract image.png stdout -l eng+deu+jpn';\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->lang('eng', 'deu', 'jpn')\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "public function test_mixed_lang_rendering() {\n $dd = test_question_maker::make_question('ddimageortext', 'mixedlang');\n $dd->shufflechoices = false;\n $this->start_attempt_at_question($dd, 'interactive', 1);\n\n // Check the initial state.\n $this->check_current_state(question_state::$todo);\n $this->check_current_mark(null);\n $this->check_current_output(\n new question_pattern_expectation('~<div class=\"group1 draghome choice1\"><span lang=\"fr\">la</span></div>~'),\n new question_pattern_expectation('~<div class=\"group1 draghome choice2\"><span lang=\"fr\">ma</span></div>~')\n );\n }", "public function test_request(){\n\n return $this->send_request( 'en', 'es', array( 'about' ) );\n\n }", "public function testCustomTranslationTable(): void\n {\n ConnectionManager::setConfig('custom_i18n_datasource', ['url' => getenv('DB_URL')]);\n\n $table = $this->getTableLocator()->get('Articles');\n\n $table->addBehavior('Translate', [\n 'translationTable' => CustomI18nTable::class,\n 'fields' => ['title', 'body'],\n ]);\n\n $items = $table->associations();\n $i18n = $items->getByProperty('_i18n');\n\n $this->assertSame('CustomI18n', $i18n->getName());\n $this->assertInstanceOf(CustomI18nTable::class, $i18n->getTarget());\n $this->assertSame('custom_i18n_datasource', $i18n->getTarget()->getConnection()->configName());\n $this->assertSame('custom_i18n_table', $i18n->getTarget()->getTable());\n\n ConnectionManager::drop('custom_i18n_datasource');\n }", "protected abstract function getTranslations();", "public function testAddLangStr() {\n\n foreach ($this->testCases['LanguageLabelString'] as $key => $testCase) {\n $langStr = new LanguageLabelString();\n $langStr->setLanguageLabelStringId($testCase['language_label_string_id']);\n $langStr->setLabelId($testCase['label_id']);\n $langStr->setLanguageId($testCase['language_id']);\n $langStr->setLanguageLabelString($testCase['language_label_string']);\n $langStr->setLanguageLabelStringStatus($testCase['language_label_string_status']);\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('addLangStr')\n ->will($this->returnValue($langStr));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->addLangStr($langStr);\n $this->assertTrue($result instanceof LanguageLabelString);\n $this->assertEquals($langStr, $result);\n }\n }", "public function testFindTranslationsList(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table\n ->find(\n 'list',\n keyField: 'title',\n valueField: '_translations.deu.title',\n groupField: 'id',\n )\n ->find('translations', locales: ['deu']);\n\n $expected = [\n 1 => ['First Article' => 'Titel #1'],\n 2 => ['Second Article' => 'Titel #2'],\n 3 => ['Third Article' => 'Titel #3'],\n ];\n $this->assertEquals($expected, $results->toArray());\n }", "public function translate($text);", "protected function setUp()\n\t{\n\t\t$this->object = new \\Aimeos\\MW\\Translation\\None( 'ru_XX' );\n\t}", "public function testTranslateOperator()\n {\n $dataSourceElement = new Field(\n 'test_data_source_element_name',\n '',\n '',\n new StringDataType()\n );\n\n $dataSource = $this->getMock('Netdudes\\DataSourceryBundle\\DataSource\\DataSourceInterface');\n $dataSource->expects($this->any())\n ->method('getFields')\n ->will($this->returnValue([$dataSourceElement]));\n\n $extensionContainer = $this->getMockBuilder('Netdudes\\DataSourceryBundle\\Extension\\TableBundleExtensionContainer')\n ->disableOriginalConstructor()\n ->getMock();\n $interpreterFactory = new InterpreterFactory($extensionContainer);\n $interpreter = $interpreterFactory->create($dataSource);\n\n // LIKE is valid for String type, should return LIKE\n $this->assertEquals(FilterCondition::METHOD_STRING_LIKE, $interpreter->translateOperator('T_OP_LIKE', $dataSourceElement), 'Failed to translate T_OP_LIKE into STRING_LIKE for type String');\n\n // EQ is valid for String, and should choose STRING_EQ as it's the default for the type\n $this->assertEquals(FilterCondition::METHOD_STRING_EQ, $interpreter->translateOperator('T_OP_EQ', $dataSourceElement), 'Failed to translate T_OP_EQ into STRING_EQ for type String');\n }", "public function testSaveNewRecordWithOnlyTranslationsNotDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Sections');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n\n $data = [\n '_translations' => [\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $group = $table->newEntity($data);\n $result = $table->save($group);\n $this->assertNotFalse($result, 'Record should save.');\n\n $expected = [\n [\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }" ]
[ "0.8284054", "0.7071227", "0.7071022", "0.6685348", "0.6681617", "0.66433495", "0.6642468", "0.6639676", "0.66346496", "0.6608294", "0.65313935", "0.6522165", "0.6508544", "0.6507085", "0.6491973", "0.6476521", "0.64555407", "0.64275545", "0.64121616", "0.6385944", "0.6365847", "0.63573736", "0.63007617", "0.62210715", "0.619194", "0.618645", "0.6137103", "0.6136246", "0.61332977", "0.61219275", "0.61219275", "0.61107534", "0.60953486", "0.6088812", "0.60841906", "0.6072604", "0.60683656", "0.6048538", "0.6039745", "0.6018438", "0.59807146", "0.59756744", "0.596156", "0.5956321", "0.59518266", "0.5915185", "0.589122", "0.58554", "0.58163226", "0.5789282", "0.57604045", "0.5755176", "0.5750432", "0.57452995", "0.57410616", "0.5738152", "0.57345736", "0.5728011", "0.5727901", "0.5727788", "0.57153696", "0.57035357", "0.56953025", "0.56839836", "0.5675379", "0.5674736", "0.5671359", "0.5649458", "0.5644849", "0.56349623", "0.56297237", "0.5624418", "0.5614827", "0.5609647", "0.5607213", "0.5604827", "0.5579022", "0.55789626", "0.5575769", "0.55643475", "0.5563604", "0.55600655", "0.5554829", "0.5545625", "0.5544802", "0.5536226", "0.55355525", "0.5532023", "0.5529811", "0.5529276", "0.5522423", "0.5499038", "0.5498106", "0.54973996", "0.5492606", "0.5471464", "0.54693204", "0.54642844", "0.5462437", "0.54611397" ]
0.7219463
1
Tests that the translation overview shows the correct values.
protected function doTestTranslationOverview() { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $translate_url = $entity->toUrl('drupal:content-translation-overview'); $this->drupalGet($translate_url); $translate_url->setAbsolute(FALSE); foreach ($this->langcodes as $langcode) { if ($entity->hasTranslation($langcode)) { $language = new Language(['id' => $langcode]); // Test that label is correctly shown for translation. $view_url = $entity->toUrl('canonical', ['language' => $language])->toString(); $this->assertSession()->elementTextEquals('xpath', "//table//a[@href='{$view_url}']", $entity->getTranslation($langcode)->label() ?? $entity->getTranslation($langcode)->id()); // Test that edit link is correct for translation. $edit_path = $entity->toUrl('edit-form', ['language' => $language])->toString(); $this->assertSession()->elementTextEquals('xpath', "//table//ul[@class='dropbutton']/li/a[@href='{$edit_path}']", 'Edit'); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTranslationUI() {\n $this->doTestBasicTranslation();\n $this->doTestTranslationOverview();\n $this->doTestOutdatedStatus();\n $this->doTestPublishedStatus();\n $this->doTestAuthoringInfo();\n $this->doTestTranslationEdit();\n $this->doTestTranslationChanged();\n $this->doTestChangedTimeAfterSaveWithoutChanges();\n $this->doTestTranslationDeletion();\n }", "public function testTranslation(): void\n {\n $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR);\n $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Día Nacional de la Memoria por la Verdad y la Justicia']);\n }", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR),\n [self::LOCALE => 'Canada Day']\n );\n }", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2019),\n [self::LOCALE => '体育の日']\n );\n }", "protected function doTestTranslationEdit() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $languages = $this->container->get('language_manager')->getLanguages();\n\n foreach ($this->langcodes as $langcode) {\n // We only want to test the title for non-english translations.\n if ($langcode != 'en') {\n $options = ['language' => $languages[$langcode]];\n $url = $entity->toUrl('edit-form', $options);\n $this->drupalGet($url);\n\n $this->assertSession()->responseContains($entity->getTranslation($langcode)->label());\n }\n }\n }", "public function testSimpleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $value = $this->translator->translate('hi', 'fr', 'en');\n\n // Then\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }", "public function testMultipleEconomicTranslate()\n {\n // Given\n $this->responseMock->expects($this->once())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut # salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en', true);\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "public function testPlainTextTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => \"J'ai\"]]]]\n ));\n\n // When\n $value = $this->translator->translate('I have', 'fr', 'en', true);\n\n // Then\n $this->assertEquals($value, \"J'ai\", 'Should return \"J\\'ai\"');\n }", "public function testMultipleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en');\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "public function testSystemLocalization()\n {\n foreach ($this->testLocales as $locale) {\n Localization::changeLocale($locale);\n\n foreach ($this->testAddresses as $data) {\n $country = $this->getCountryNameWithLocale(\n $data['source']['country'],\n $locale\n );\n $expected = $this->getExpectedFormatWithLocale(\n $data,\n 'text',\n $locale\n );\n\n $formatted = $this->addressFormat->format(\n $data['source'],\n 'text'\n );\n\n $this->assertEquals($expected, $formatted);\n }\n }\n\n Localization::changeLocale(Localization::BASE_LOCALE);\n }", "public function testInternationalization(): void\n {\n $properCased = 'Iñtërnâtiônàlizætiøn';\n $this->assertEquals($properCased, Formatter::nameCase(mb_strtolower($properCased)));\n }", "public function testCanGetMessageByKeyFromTranslator()\n {\n $this->translator->load();\n $message = $this->translator->get('test_message');\n $this->assertEquals('file has been loaded', $message);\n }", "public function testFindTranslationsList(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table\n ->find(\n 'list',\n keyField: 'title',\n valueField: '_translations.deu.title',\n groupField: 'id',\n )\n ->find('translations', locales: ['deu']);\n\n $expected = [\n 1 => ['First Article' => 'Titel #1'],\n 2 => ['Second Article' => 'Titel #2'],\n 3 => ['Third Article' => 'Titel #3'],\n ];\n $this->assertEquals($expected, $results->toArray());\n }", "public function testTranslate(): void\n {\n $result = $this->editInPlaceExtension->translate('key', ['key' => 'value'], 'domain');\n\n $this->assertEquals(0, \\strlen($result));\n\n $this->assertEmpty($result);\n }", "public function testVariableSubstitutionInStringUkranian()\n {\n $this->specify(\n \"Translator does not translate to Ukranian correctly with passed params\",\n function () {\n $translator = new Gettext(\n [\n 'locale' => 'uk_UA.utf8',\n 'defaultDomain' => 'messages',\n 'directory' => PATH_DATA . 'translation/gettext'\n ]\n );\n\n expect($translator->_(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n expect($translator->t(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n }\n );\n }", "protected function doTestBasicTranslation() {\n // Create a new test entity with original values in the default language.\n $default_langcode = $this->langcodes[0];\n $values[$default_langcode] = $this->getNewEntityValues($default_langcode);\n // Create the entity with the editor as owner, so that afterwards a new\n // translation is created by the translator and the translation author is\n // tested.\n $this->drupalLogin($this->editor);\n $this->entityId = $this->createEntity($values[$default_langcode], $default_langcode);\n $this->drupalLogin($this->translator);\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertNotEmpty($entity, 'Entity found in the database.');\n $this->drupalGet($entity->toUrl());\n $this->assertSession()->statusCodeEquals(200);\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $this->assertCacheContexts($this->defaultCacheContexts);\n\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n $translation = $this->getTranslation($entity, $default_langcode);\n foreach ($values[$default_langcode] as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $default_langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('@property correctly stored in the default language.', ['@property' => $property]);\n $this->assertEquals($value, $stored_value, $message);\n }\n\n // Add a content translation.\n $langcode = 'it';\n $language = ConfigurableLanguage::load($langcode);\n $values[$langcode] = $this->getNewEntityValues($langcode);\n\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n\n // Assert that HTML is not escaped unexpectedly.\n if ($this->testHTMLEscapeForAllLanguages) {\n $this->assertSession()->responseNotContains('&lt;span class=&quot;translation-entity-all-languages&quot;&gt;(all languages)&lt;/span&gt;');\n $this->assertSession()->responseContains('<span class=\"translation-entity-all-languages\">(all languages)</span>');\n }\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl());\n $this->assertCacheContexts(Cache::mergeContexts(['languages:language_content'], $this->defaultCacheContexts));\n\n // Reset the cache of the entity, so that the new translation gets the\n // updated values.\n $metadata_source_translation = $this->manager->getTranslationMetadata($entity->getTranslation($default_langcode));\n $metadata_target_translation = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));\n\n $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid';\n if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) {\n $this->assertEquals($this->translator->id(), $metadata_target_translation->getAuthor()->id(), new FormattableMarkup('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode]));\n\n $this->assertNotEquals($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(),\n new FormattableMarkup('Author of the target translation @target different from the author of the source translation @source for translatable owner field.',\n ['@target' => $langcode, '@source' => $default_langcode]));\n }\n else {\n $this->assertEquals($this->editor->id(), $metadata_target_translation->getAuthor()->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');\n }\n\n $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created';\n if ($entity->getFieldDefinition($created_field_name)->isTranslatable()) {\n // Verify that the translation creation timestamp of the target\n // translation language is newer than the creation timestamp of the source\n // translation default language for the translatable created field.\n $this->assertGreaterThan($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime());\n }\n else {\n $this->assertEquals($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');\n }\n\n if ($this->testLanguageSelector) {\n // Verify that language selector is correctly disabled on translations.\n $this->assertSession()->fieldNotExists('edit-langcode-0-value');\n }\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n // Switch the source language.\n $langcode = 'fr';\n $language = ConfigurableLanguage::load($langcode);\n $source_langcode = 'it';\n $edit = ['source_langcode[source]' => $source_langcode];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n // This does not save anything, it merely reloads the form and fills in the\n // fields with the values from the different source language.\n $this->drupalGet($add_url);\n $this->submitForm($edit, 'Change');\n $this->assertSession()->fieldValueEquals(\"{$this->fieldName}[0][value]\", $values[$source_langcode][$this->fieldName][0]['value']);\n\n // Add another translation and mark the other ones as outdated.\n $values[$langcode] = $this->getNewEntityValues($langcode);\n $edit = $this->getEditValues($values, $langcode) + ['content_translation[retranslate]' => TRUE];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $source_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextContains('Source language');\n\n // Check that the entered values have been correctly stored.\n foreach ($values as $langcode => $property_values) {\n $translation = $this->getTranslation($entity, $langcode);\n foreach ($property_values as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]);\n $this->assertEquals($value, $stored_value, $message);\n }\n }\n }", "public function isTranslated();", "public function testTranslateUsingDetector()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'comment allez-vous ?']]]]\n ));\n\n // When\n $value = $this->translator->translate('how are you?', 'fr');\n\n // Then\n $this->assertEquals($value, 'comment allez-vous ?', 'Should return \"comment allez-vous ?\"');\n }", "public function testLongTranslate()\n {\n // Build a long input text, so that the translate method will split it up in two.\n $text = 'hi. ';\n $multiplier = 1.5 * Translator::MAXIMUM_TEXT_SIZE / strlen($text);\n $textInEn = str_repeat('hi. ', $multiplier);\n $textInFr = str_repeat('salut. ', $multiplier);\n $textInFrPart1 = substr($textInFr, 0, strlen($textInFr) / 2);\n $textInFrPart2 = substr($textInFr, strlen($textInFrPart1));\n\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->onConsecutiveCalls(\n ['data' => ['translations' => [['translatedText' => $textInFrPart1]]]],\n ['data' => ['translations' => [['translatedText' => $textInFrPart2]]]]\n ));\n\n // When\n $value = $this->translator->translate($textInEn, 'en');\n\n // Then\n $this->assertEquals($value, $textInFr, 'Should return \"'.$textInFr.'\"');\n }", "public function testFormatText()\n {\n foreach ($this->testLocales as $locale) {\n foreach ($this->testAddresses as $data) {\n $expected = $this->getExpectedFormatWithLocale(\n $data,\n 'text',\n $locale\n );\n\n $formatted = $this->addressFormat->format(\n $data['source'],\n 'text',\n $locale\n );\n\n $this->assertEquals($expected, $formatted);\n }\n }\n }", "public function testTranslationOfOrderList()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n Shopware()->Container()->reset('translation');\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/getList?' . $getString);\n\n // Remove 'new Date(...)' strings from json\n $responseStr = preg_replace('/(new Date\\([-0-9]+\\))/', '\"$1\"', $response->getBody());\n\n $responseJSON = json_decode($responseStr, true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $dataElement) {\n switch ($dataElement['payment']['id']) {\n case 2:\n static::assertEquals(\n 'Debit',\n $dataElement['payment']['description']\n );\n break;\n case 3:\n static::assertEquals(\n 'Cash on delivery',\n $dataElement['payment']['description']\n );\n break;\n case 4:\n static::assertEquals(\n 'Invoice',\n $dataElement['payment']['description']\n );\n break;\n case 5:\n static::assertEquals(\n 'Paid in advance',\n $dataElement['payment']['description']\n );\n break;\n case 6:\n static::assertEquals(\n 'SEPA',\n $dataElement['payment']['description']\n );\n break;\n }\n }\n }", "private function mockTranslations(): void\n {\n $languages = [/*'en_EN',*/\n 'fr_FR', 'de_DE', ];\n $i18nItems = I18nItem::where('status', I18nItem::STATUS_DRAFT)->get();\n\n foreach ($languages as $language) {\n $faker = \\Faker\\Factory::create($language);\n\n foreach ($i18nItems as $i18nItem) {\n $charCount = round(strlen($i18nItem->value) * 1.5);\n $mockValue = $faker->realText($charCount > 10 ? $charCount : 10);\n $short = strlen($mockValue) < 256;\n\n I18nTranslation::create([\n 'i18n_item_id' => $i18nItem->id,\n 'language' => substr($language, 0, 2),\n 'short_value' => $short ? $mockValue : null,\n 'long_value' => ! $short ? $mockValue : null,\n ]);\n }\n }\n }", "public function testTranslationOfStores()\n {\n // set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'orderId' => '1',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/loadStores?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n $data = $responseJSON['data'];\n\n // Test for fallback value\n $this->assertElementWithKeyValuePairExists('SEPA', 'description', 6, $data['payments']);\n\n // Test for translation\n $this->assertElementWithKeyValuePairExists('Invoice', 'description', 4, $data['payments']);\n\n $this->assertElementWithKeyValuePairExists('Standard delivery', 'name', 9, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Express Delivery', 'name', 14, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Standard international delivery', 'name', 16, $data['dispatches']);\n\n $this->assertElementWithKeyValuePairExists('Invoice', 'name', 1, $data['documentTypes']);\n $this->assertElementWithKeyValuePairExists('Credit', 'name', 3, $data['documentTypes']);\n }", "public function testEmptyTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body', 'description'],\n 'allowEmptyTranslations' => false,\n ]);\n $table->setLocale('spa');\n $result = $table->find()->first();\n $this->assertNull($result->description);\n }", "public function testTranslationFieldForTranslatedFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'en_US',\n ]);\n\n $expectedSameLocale = 'Articles.title';\n $expectedOtherLocale = 'Articles_title_translation.content';\n\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('es_ES');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n I18n::setLocale('en');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->removeBehavior('Translate');\n\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'de_DE',\n ]);\n\n I18n::setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('en_US');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n $table->setLocale('es');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n }", "public function translated();", "public function translated();", "public function displayCorrectLocale()\n {\n $message = new CustomerMessage('de_DE');\n $this->assertEquals('de_DE', $message->getLocale());\n }", "public function testLanguageConsistency(): void\n\t{\n\t\tstatic::assertEquals('en', app()->getLocale());\n\t\tstatic::assertEquals('OK', __('lychee.SUCCESS'));\n\n\t\t$msgSection = (new ConsoleOutput())->section();\n\n\t\t$englishDictionary = include base_path('lang/en/lychee.php');\n\t\t$availableDictionaries = config('app.supported_locale');\n\t\t$failed = false;\n\n\t\tforeach ($availableDictionaries as $locale) {\n\t\t\t$dictionary = include base_path('lang/' . $locale . '/lychee.php');\n\t\t\t$missingKeys = array_diff_key($englishDictionary, $dictionary);\n\t\t\tforeach ($missingKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s misses the following key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\n\t\t\t$extraKeys = array_diff_key($dictionary, $englishDictionary);\n\t\t\tforeach ($extraKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s has the following extra key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\t\t}\n\t\tstatic::assertFalse($failed);\n\t}", "public function testReplaceResponseLines()\n {\n $translator = new Translator();\n $translator->replaceResponseLines();\n\n $this->assertSame(__('passwords.reset'), 'Your password has been set!');\n $this->assertSame(__('passwords.token'), 'This token is invalid.');\n $this->assertSame(__('passwords.user'), 'We can\\'t find a user with that e-mail address.');\n }", "public function testGetDefaultMessageIfNoMatchingValueFoundInMessagesList()\n {\n $this->translator->load();\n $this->assertEquals('default_value', $this->translator->get('invalid_message_key', 'default_value'));\n }", "public function testTranslationNullProperties(): void\n {\n $node = $this->fillTranslations();\n\n // Then try to read it's translation\n $doc = new Article();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->getText());\n }", "public function testTranslationArrayProperties(): void\n {\n // First save some translations\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data['topic'] = 'Un sujet intéressant';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ];\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ], $doc->getSettings());\n\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ], $doc->getSettings());\n }", "protected abstract function getTranslations();", "public function testTransliterate() {\n $this->assertEquals('Ingles', Inflector::transliterate('Inglés'));\n $this->assertEquals('Uber', Inflector::transliterate('Über'));\n }", "public function testFindTranslationsFormatResultsIteration(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('eng');\n $results = $table->find('translations')\n ->limit(1)\n ->formatResults(function ($results) {\n foreach ($results as $res) {\n $res->first = 'val';\n }\n foreach ($results as $res) {\n $res->second = 'loop';\n }\n\n return $results;\n })\n ->toArray();\n $this->assertCount(1, $results);\n $this->assertSame('Title #1', $results[0]->title);\n $this->assertSame('val', $results[0]->first);\n $this->assertSame('loop', $results[0]->second);\n $this->assertNotEmpty($results[0]->_translations);\n }", "public function testIfPDFDocumentsListIncludesTranslation()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost([\n 'username' => 'demo',\n 'password' => 'demo',\n ]);\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_repositoryClass' => 'document',\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check if German values are still the same\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n static::assertEquals($documentType['name'], $documentType['description']);\n }\n\n $this->reset();\n Shopware()->Container()->reset('translation');\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n switch ($documentType['id']) {\n case 1:\n static::assertEquals('Invoice', $documentType['description']);\n break;\n case 2:\n static::assertEquals('Notice of delivery', $documentType['description']);\n break;\n case 3:\n static::assertEquals('Credit', $documentType['description']);\n break;\n case 4:\n static::assertEquals('Cancellation', $documentType['description']);\n break;\n }\n }\n }", "public function testFindTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table->find('translations');\n $expected = [\n [\n 'eng' => ['title' => 'Title #1', 'body' => 'Content #1', 'description' => 'Description #1', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #1', 'body' => 'Inhalt #1', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #1', 'body' => 'Obsah #1', 'locale' => 'cze'],\n 'spa' => ['body' => 'Contenido #1', 'locale' => 'spa', 'description' => ''],\n ],\n [\n 'eng' => ['title' => 'Title #2', 'body' => 'Content #2', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #2', 'body' => 'Inhalt #2', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #2', 'body' => 'Obsah #2', 'locale' => 'cze'],\n ],\n [\n 'eng' => ['title' => 'Title #3', 'body' => 'Content #3', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #3', 'body' => 'Inhalt #3', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #3', 'body' => 'Obsah #3', 'locale' => 'cze'],\n ],\n ];\n\n $translations = $this->_extractTranslations($results);\n $this->assertEquals($expected, $translations->toArray());\n $expected = [\n 1 => ['First Article' => 'First Article Body'],\n 2 => ['Second Article' => 'Second Article Body'],\n 3 => ['Third Article' => 'Third Article Body'],\n ];\n\n $grouped = $results->all()->combine('title', 'body', 'id');\n $this->assertEquals($expected, $grouped->toArray());\n }", "public function testLocalesList()\n {\n $client = $this->createClient();\n $response = $client->get(sprintf('%s/locales', $_ENV['site_url']));\n $body = json_decode($response->getBody()->getContents(), true);\n\n $this->assertEquals(200 , $response->getStatusCode());\n $this->assertContains(['name' => 'test'], $body['response']);\n }", "public static function testGetShortEN() {\n\n echo HTTPStatusCode::get(200, 'en', 'short');\n }", "public function testSaveNewRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'N',\n '_translations' => [\n 'en' => [\n 'title' => 'Title EN',\n 'body' => 'Body EN',\n ],\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $article = $table->patchEntity($table->newEmptyEntity(), $data);\n $result = $table->save($article);\n\n $this->assertNotFalse($result);\n\n $expected = [\n [\n 'en' => [\n 'title' => 'Title EN',\n 'locale' => 'en',\n ],\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "public function testReturnsSupportedTranslationLanguagePairsTiersAndCreditPrices()\n {\n $serviceAPI = new Service();\n\n $response = json_decode($serviceAPI->getLanguagePairs(), true);\n $this->assertEquals('ok', $response['opstat']);\n $this->assertTrue(isset($response['response']));\n }", "public function testUnderscoresTranslation()\n {\n $this->markTestIncomplete('MAGETWO-1012: i18n Improvements - Localization/Translations');\n }", "public function testFindFilteredTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table->find('translations', locales: ['deu', 'cze']);\n $expected = [\n [\n 'deu' => ['title' => 'Titel #1', 'body' => 'Inhalt #1', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #1', 'body' => 'Obsah #1', 'locale' => 'cze'],\n ],\n [\n 'deu' => ['title' => 'Titel #2', 'body' => 'Inhalt #2', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #2', 'body' => 'Obsah #2', 'locale' => 'cze'],\n ],\n [\n 'deu' => ['title' => 'Titel #3', 'body' => 'Inhalt #3', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #3', 'body' => 'Obsah #3', 'locale' => 'cze'],\n ],\n ];\n\n $translations = $this->_extractTranslations($results);\n $this->assertEquals($expected, $translations->toArray());\n\n $expected = [\n 1 => ['First Article' => 'First Article Body'],\n 2 => ['Second Article' => 'Second Article Body'],\n 3 => ['Third Article' => 'Third Article Body'],\n ];\n\n $grouped = $results->all()->combine('title', 'body', 'id');\n $this->assertEquals($expected, $grouped->toArray());\n }", "public function testConfigLocale()\n {\n\n $this->assertTrue(Config::setLocale('RU'));\n $this->assertTrue(Config::setLocale('US'));\n $this->assertTrue(Config::setLocale('TR'));\n $this->assertTrue(Config::setLocale('UA'));\n $this->assertTrue(Config::setLocale('EN'));\n $this->assertTrue(Config::setLocale('BY'));\n\n $this->assertFalse(Config::setLocale('BU'));\n $this->assertFalse(Config::setLocale('FR'));\n $this->assertFalse(Config::setLocale('DE'));\n $this->assertFalse(Config::setLocale('IT'));\n $this->assertFalse(Config::setLocale('SP'));\n $this->assertFalse(Config::setLocale('CZ'));\n\n }", "public function testReplaceFormLines()\n {\n $translator = new Translator();\n $translator->replaceFormLines();\n\n $this->assertSame(__('Reset Password'), 'Set Password');\n }", "function GetLocalizedTexts()\n\t{\n\t\t$result = $this->sendRequest(\"GetLocalizedTexts\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function testLoadTranslation(): void\n {\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'English topic';\n $data['text'] = 'English text';\n $data['nullable'] = 'not null';\n $data['settings'] = ['key' => 'value'];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Sujet français';\n $data['text'] = 'Texte français';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n $this->assertEquals('not null', $doc->nullable);\n $this->assertEquals(['key' => 'value'], $doc->getSettings());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->text);\n $this->assertNull($doc->nullable);\n $this->assertEquals([], $doc->getSettings());\n }", "protected function sectionTranslations()\n {\n $found = []; // translations found in latte templates\n foreach (glob('template/*.latte') as $file) {\n $tempFileContents = file_get_contents($file);\n Assert::string($tempFileContents);\n preg_match_all('~\\{=(\"([^\"]+)\"|\\'([^\\']+)\\')\\|translate\\}~i', $tempFileContents, $matches);\n $found = array_merge($found, $matches[2]);\n }\n $found = array_unique($found);\n $output = '<h1><i class=\"fa fa-globe\"></i> ' . $this->tableAdmin->translate('Translations')\n . '</h1><div id=\"agenda-translations\">'\n . '<form action=\"\" method=\"post\" onsubmit=\"return confirm(\\''\n . $this->tableAdmin->translate('Are you sure?') . '\\')\">'\n . Tools::htmlInput('translations', '', 1, array('type' => 'hidden'))\n . Tools::htmlInput('token', '', end($_SESSION['token']), 'hidden')\n . Tools::htmlInput('old_name', '', '', array('type' => 'hidden', 'id' => 'old_name'))\n . '<table class=\"table table-striped\"><thead><tr><th style=\"width:'\n . intval(100 / (count($this->MyCMS->TRANSLATIONS) + 1)) . '%\">'\n . Tools::htmlInput('one', '', false, 'radio') . '</th>';\n $translations = $keys = [];\n $localisation = new L10n($this->prefixUiL10n, $this->MyCMS->TRANSLATIONS);\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= \"<th>$value</th>\";\n $translations[$key] = $localisation->readLocalisation($key);\n $keys = array_merge($keys, array_keys($translations[$key]));\n }\n $output .= '</tr></thead><tbody>' . PHP_EOL;\n $keys = array_unique($keys);\n natcasesort($keys);\n foreach ($keys as $key) {\n $output .= '<tr><th>'\n . Tools::htmlInput('one', '', $key, array('type' => 'radio', 'class' => 'translation')) . ' '\n . Tools::h((string) $key) . '</th>';\n foreach ($this->MyCMS->TRANSLATIONS as $code => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"tr[$code][$key]\",\n '',\n Tools::set($translations[$code][$key], ''),\n ['class' => 'form-control form-control-sm', 'title' => \"$code: $key\"]\n ) . '</td>';\n }\n $output .= '</tr>' . PHP_EOL;\n if ($key = array_search($key, $found)) {\n unset($found[$key]);\n }\n }\n $output .= '<tr><td>' . Tools::htmlInput(\n 'new[0]',\n '',\n '',\n array('class' => 'form-control form-control-sm', 'title' => $this->tableAdmin->translate('New record'))\n ) . '</td>';\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"new[$key]\",\n '',\n '',\n ['class' => 'form-control form-control-sm',\n 'title' => $this->tableAdmin->translate('New record') . ' (' . $value . ')']\n ) . '</td>';\n }\n $output .= '</tr></tbody></table>\n <button name=\"translations\" type=\"submit\" class=\"btn btn-secondary\"><i class=\"fa fa-save\"></i> '\n . $this->tableAdmin->translate('Save') . '</button>\n <button name=\"delete\" type=\"submit\" class=\"btn btn-secondary\" value=\"1\"><i class=\"fa fa-dot-circle\"></i>\n <i class=\"fa fa-trash\"></i> ' . $this->tableAdmin->translate('Delete') . '</button>\n <fieldset class=\"d-inline-block position-relative\"><div class=\"input-group\" id=\"rename-fieldset\">'\n . '<div class=\"input-group-prepend\">\n <button class=\"btn btn-secondary\" type=\"submit\"><i class=\"fa fa-dot-circle\"></i> '\n . '<i class=\"fa fa-i-cursor\"></i> ' . $this->tableAdmin->translate('Rename') . '</button>\n </div>'\n . Tools::htmlInput('new_name', '', '', array('class' => 'form-control', 'id' => 'new_name'))\n . '</div></fieldset>\n </form></div>' . PHP_EOL;\n $output .= count($found) ? '<h2 class=\"mt-4\">' .\n $this->tableAdmin->translate('Missing translations in templates') . '</h2><ul>' : '';\n foreach ($found as $value) {\n $output .= '<li><code>' . Tools::h($value) . '</code></li>' . PHP_EOL;\n }\n $output .= count($found) ? '</ul>' : '';\n return $output;\n }", "public function testTranslationFieldForOtherFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $expected = 'Articles.foo';\n $field = $table->translationField('foo');\n $this->assertSame($expected, $field);\n }", "public function testSaveTranslation(): void\n {\n $data = [];\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n\n $data['topic'] = 'Un sujet intéressant';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->getPhpcrSession()->save();\n\n // Then test we have what we expect in the content repository\n $node_en = $this->session->getNode($this->nodeNameForLocale('en'));\n $node_fr = $this->session->getNode($this->nodeNameForLocale('fr'));\n\n $this->assertTrue($node_en->hasProperty('topic'));\n $this->assertTrue($node_fr->hasProperty('topic'));\n $this->assertTrue($node_en->hasProperty('text'));\n $this->assertTrue($node_fr->hasProperty('text'));\n $this->assertFalse($node_fr->hasProperty('author'));\n $this->assertFalse($node_en->hasProperty('author'));\n\n $this->assertEquals('Some interesting subject', $node_en->getPropertyValue('topic'));\n $this->assertEquals('Un sujet intéressant', $node_fr->getPropertyValue('topic'));\n $this->assertEquals('Lorem ipsum...', $node_en->getPropertyValue('text'));\n $this->assertEquals('Lorem ipsum...', $node_fr->getPropertyValue('text'));\n }", "public function testTitle()\n {\n\n $this->assertEquals(\"About|Laracarte\",getTile('About'));\n\n }", "function langonet_tester_definition() {\n\t// Commenter ou decommenter les lignes suivantes pour tester les differents cas de verification\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items du module Langonet, ne sont pas definis dans langonet-tests_fr.php\n\t$essai = _T('langonet-tests:test_item_non_defini_1');\n\t$essai = _T('langonet-tests:test_item_non_defini_2');\n\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items de modules differents de Langonet, ne sont pas definis dans leur fichier\n\t// de langue respectif (spip, ecrire ou public.php pour le premier, cfg_fr pour le second)\n\t$essai = _T('test_item_non_defini_3');\n\t$essai = _T('cfg:test_item_non_defini_4');\n\t$essai = _T('cfg:bouton_valider');\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants n'appartiennent pas au module Langonet, sont utilises dans Langonet mais bien definis dans leur \n\t// fichier de langue respectif\n\t$essai = array(0 => _T('date_jour_1'));\n\t$essai = array_push(_T('cfg:bouton_effacer'));\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants sont utilises dans un contexte complexe. Ce sont des items de Langonet ou pas\n\t$essai = _T('langonet-tests:test_item_1_'.$variable);\n\t$essai = _T('test_item_2_'.$variable);\n\t$essai = _T(\"langonet-tests:$arg1\");\n\t$essai = _T('langonet-tests:' . $arg2);\n\t$essai = _T(\"langonet-tests:\".$arg3);\n\n\t// VERIFICATION _L() : Erreurs\n\t$essai = _L('Test 1 _L() de langonet');\n\t$essai = _L(\"Test 2 _L() de langonet\");\n\t$essai = _L(\"Test 3 _L()\", $arg4);\n\t$essai = _L('Test 4 _L()' . $arg5);\n\t$essai = _L(\"Test 5 _L()$arg6\");\n\t$essai = _L(\"Test 6 _L()${arg7}\");\n\t$essai = _L(\"Test 7 _L()\");\n\t$essai = _L (\"TEST 7 _L()\");\n\t$essai = _L\t\t(\"Test 7 _L()\");\n\t$essai = _L(\"T1234567890123456789012345678901abcdef\");\n}", "public function testIndexLocalized()\n {\n $classFqn = 'stdClass';\n $count = 100;\n $providerName = 'provider';\n $batch = \\array_fill(0, 2, new \\stdClass());\n\n $this->resumeManager->getUnfinishedProviders()->willReturn([]);\n $this->providerRegistry->getProviders()->willReturn([\n $providerName => $this->localizedProvider1->reveal(),\n ]);\n $this->localizedProvider1->getClassFqns()->willReturn([$classFqn]);\n $this->localizedProvider1->getCount('stdClass')->willReturn($count);\n $this->localizedProvider1->provide('stdClass', 0, 50)->willReturn($batch);\n $this->localizedProvider1->provide('stdClass', 50, 50)->willReturn([]);\n $this->localizedProvider1->cleanUp('stdClass')->shouldBeCalledTimes(2);\n\n foreach ($batch as $object) {\n $this->localizedProvider1->getLocalesForObject($object)->willReturn(['de', 'fr']);\n $this->localizedProvider1->translateObject($object, 'de')\n ->shouldBeCalled()\n ->willReturn($object);\n $this->localizedProvider1->translateObject($object, 'fr')\n ->shouldBeCalled()\n ->willReturn($object);\n }\n\n $this->resumeManager->getCheckpoint($providerName, $classFqn)->willReturn(null);\n $this->resumeManager->setCheckpoint($providerName, $classFqn, 50)->shouldBeCalled();\n $this->resumeManager->setCheckpoint($providerName, $classFqn, 100)->shouldBeCalled();\n $this->resumeManager->removeCheckpoints($providerName)->shouldBeCalled();\n\n $tester = $this->execute('prod', []);\n\n $this->assertStringContainsString(\n 'reindexing \"100\" instances of \"stdClass\"',\n $tester->getDisplay()\n );\n }", "public function testTextInfo() {\n $this->assertFalse($this->object->isset_textInfo());\n\n $textInfo = 'test';\n $this->object->set_textInfo($textInfo);\n $this->assertTrue($this->object->isset_textInfo());\n $this->assertEquals($textInfo, $this->object->get_textInfo());\n }", "public function testInsertNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('fra');\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertSame('fra', $article->get('_locale'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $article->set('title', 'Un autre titre');\n $article->set('body', 'Le contenu');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame('Un autre titre', $article->get('title'));\n $this->assertSame('Le contenu', $article->get('body'));\n }", "public function testGenerateDictionary() {\n\n $lan = new Language();\n $lan->setLanguageCode('en_US');\n $lan->setLanguageId(1);\n $lan->setLanguageName('English');\n $lan->setLanguageStatus('');\n\n $labelList = array();\n $langLabelList = array();\n\n foreach ($this->testCases['Label'] as $key => $testCase) {\n $label = new Label();\n $label->setLabelId($testCase['label_id']);\n $label->setLabelName($testCase['label_name']);\n $label->setLabelComment($testCase['label_comment']);\n $label->setLabelStatus($testCase['label_status']);\n\n array_push($labelList, $label);\n }\n\n foreach ($this->testCases['LanguageLabelString'] as $key => $testCase) {\n $langStr = new LanguageLabelString();\n $langStr->setLanguageLabelStringId($testCase['language_label_string_id']);\n $langStr->setLabelId($testCase['label_id']);\n $langStr->setLanguageId($testCase['language_id']);\n $langStr->setLanguageLabelString($testCase['language_label_string']);\n $langStr->setLanguageGroupId($testCase['language_group_id']);\n $langStr->setLanguageLabelStringStatus($testCase['language_label_string_status']);\n \n array_push($langLabelList, $langStr);\n }\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n\n $this->localizationDao->expects($this->any())\n ->method('getLanguageById')\n ->will($this->returnValue($lan));\n\n $this->localizationDao->expects($this->once())\n ->method('getDataList')\n ->will($this->returnValue($labelList));\n\n $this->localizationDao->expects($this->once())\n ->method('getLanguageStringBySrcTargetAndLanguageGroupId')\n ->will($this->returnValue($langLabelList));\n \n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->generateDictionary('1', '2', '1');\n $this->assertTrue($result);\n $this->assertFileExists(sfConfig::get('sf_web_dir') . \"/language_files/messages.si.xml\");\n }", "function testText()\n {\n $l_st=new StaticText();\n $l_st->setText(new DynamicStaticValue(static::TEXT));\n $l_store=new MapData(null);\n $l_text=$l_st->getAttValue(\"text\", $l_store,\"string\",true);\n $this->assertEquals(static::TEXT,$l_text);\n }", "public function testSaveNewRecordWithOnlyTranslationsNotDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Sections');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n\n $data = [\n '_translations' => [\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $group = $table->newEntity($data);\n $result = $table->save($group);\n $this->assertNotFalse($result, 'Record should save.');\n\n $expected = [\n [\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "function is_translatable()\n {\n }", "public function testReturnsAListOfSupportedLanguagesAndTheirLanguageCodes()\n {\n $serviceAPI = new Service();\n\n $response = json_decode($serviceAPI->getLanguages(), true);\n $this->assertEquals('ok', $response['opstat']);\n $this->assertTrue(isset($response['response']));\n }", "public function testLanguage()\n {\n $f = new Formatter(['language' => 'en-US']);\n $this->assertEquals('en-US', $f->language);\n\n // language is configured via locale (omitting @calendar param)\n $f = new Formatter(['locale' => 'en-US@calendar=persian']);\n $this->assertEquals('en-US', $f->language);\n\n // if not, take from application\n $f = new Formatter();\n $this->assertEquals('ru-RU', $f->language);\n }", "public function getTestInfo($test)\n {\n /* Mapping of gettext strings -> labels. */\n $labels = array(\n 'contains' => _(\"Contains\"),\n 'not contain' => _(\"Doesn't contain\"),\n 'is' => _(\"Is\"),\n 'not is' => _(\"Isn't\"),\n 'begins with' => _(\"Begins with\"),\n 'not begins with' => _(\"Doesn't begin with\"),\n 'ends with' => _(\"Ends with\"),\n 'not ends with' => _(\"Doesn't end with\"),\n 'exists' => _(\"Exists\"),\n 'not exist' => _(\"Doesn't exist\"),\n 'regex' => _(\"Regular expression\"),\n 'not regex' => _(\"Doesn't match regular expression\"),\n 'matches' => _(\"Matches (with placeholders)\"),\n 'not matches' => _(\"Doesn't match (with placeholders)\"),\n 'less than' => _(\"Less than\"),\n 'less than or equal to' => _(\"Less than or equal to\"),\n 'greater than' => _(\"Greater than\"),\n 'greater than or equal to' => _(\"Greater than or equal to\"),\n 'equal' => _(\"Equal to\"),\n 'not equal' => _(\"Not equal to\")\n );\n\n /* The type of tests available. */\n $types = array(\n 'int' => array(\n 'less than', 'less than or equal to', 'greater than',\n 'greater than or equal to', 'equal', 'not equal'\n ),\n 'none' => array(\n 'exists', 'not exist'\n ),\n 'text' => array(\n 'contains', 'not contain', 'is', 'not is', 'begins with',\n 'not begins with', 'ends with', 'not ends with', 'regex',\n 'not regex', 'matches', 'not matches'\n )\n );\n\n /* Create the information object. */\n $ob = new stdClass;\n $ob->label = $labels[$test];\n foreach ($types as $key => $val) {\n if (in_array($test, $val)) {\n $ob->type = $key;\n break;\n }\n }\n\n return $ob;\n }", "public function testGetLabelAndLanguageList() {\n $labelList = array();\n $langLabelList = array();\n\n foreach ($this->testCases['Label'] as $key => $testCase) {\n $label = new Label();\n $label->setLabelId($testCase['label_id']);\n $label->setLabelName($testCase['label_name']);\n $label->setLabelComment($testCase['label_comment']);\n $label->setLabelStatus($testCase['label_status']);\n\n array_push($labelList, $label);\n }\n\n foreach ($this->testCases['LanguageLabelString'] as $key => $testCase) {\n $langStr = new LanguageLabelString();\n $langStr->setLanguageLabelStringId($testCase['language_label_string_id']);\n $langStr->setLabelId($testCase['label_id']);\n $langStr->setLanguageId($testCase['language_id']);\n $langStr->setLanguageLabelString($testCase['language_label_string']);\n $langStr->setLanguageLabelStringStatus($testCase['language_label_string_status']);\n\n array_push($langLabelList, $langStr);\n }\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('getDataList')\n ->will($this->returnValue($labelList));\n\n $this->localizationDao->expects($this->once())\n ->method('getLanguageStringBySrcTargetAndLanguageGroupId')\n ->will($this->returnValue($langLabelList));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->getLabelAndLanguageList(2, 1, 1);\n $this->assertTrue(true);\n }", "function ctools_node_language_ctools_acesss_summary($conf, $context) {\n $languages = array(\n 'current' => t('Current site language'),\n 'default' => t('Default site language'),\n 'no_language' => t('No language'),\n );\n $languages = array_merge($languages, locale_language_list());\n\n if (!isset($conf['language'])) {\n $conf['language'] = array();\n }\n\n $names = array();\n foreach (array_filter($conf['language']) as $language) {\n $names[] = $languages[$language];\n }\n\n if (empty($names)) {\n return t('@identifier is in any language', array('@identifier' => $context->identifier));\n }\n\n return format_plural(count($names), '@identifier language is \"@languages\"', '@identifier language is one of \"@languages\"', array('@languages' => implode(', ', $names), '@identifier' => $context->identifier));\n}", "function get_test_solution($testtype, $wo_record, $nosent, $wo_text)\n{\n if ($testtype == 1) {\n $trans = repl_tab_nl($wo_record['WoTranslation']) . \n getWordTagList($wo_record['WoID'], ' ', 1, 0);\n return $nosent ? $trans : \"[$trans]\";\n }\n return $wo_text;\n}", "public function testLocale()\n {\n $f = new Formatter(['locale' => 'en-US']);\n $this->assertEquals('en-US', $f->locale);\n\n // if not, take from application\n $f = new Formatter();\n $this->assertEquals('ru-RU', $f->locale);\n }", "public function testSaveTranslationDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->hasMany('Comments');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $article = $table->get(1);\n $data = [\n 'title' => 'New title',\n 'body' => 'New body',\n '_translations' => [\n 'es' => [\n 'title' => 'ES title',\n 'body' => 'ES body',\n ],\n ],\n ];\n $article = $table->patchEntity($article, $data);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find('translations')->where(['id' => 1])->first();\n $this->assertSame('New title', $article->get('title'));\n $this->assertSame('New body', $article->get('body'));\n\n $this->assertSame('ES title', $article->_translations['es']->title);\n $this->assertSame('ES body', $article->_translations['es']->body);\n }", "public function testSavingWithNonDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n I18n::setLocale('fra');\n $translations = [\n 'fra' => ['title' => 'Un article'],\n 'spa' => ['title' => 'Un artículo'],\n ];\n\n $article = $table->get(1);\n foreach ($translations as $lang => $data) {\n $article->translation($lang)->set($data, ['guard' => false]);\n }\n\n $table->save($article);\n $article = $table->find('translations')->where(['Articles.id' => 1])->first();\n $this->assertSame('Un article', $article->translation('fra')->title);\n $this->assertSame('Un artículo', $article->translation('spa')->title);\n }", "public function testGetLabelAndLanguageListEx() {\n try {\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('getLanguageStringBySrcTargetAndLanguageGroupId')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->getLabelAndLanguageList('s_lang_id', 't_lang_id', 'group_id');\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "function getTranslationObject();", "public function testFilterUntranslated(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'onlyTranslated' => true,\n ]);\n $table->setLocale('eng');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(1, $results);\n\n $table->setLocale('fr');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(0, $results);\n }", "public function testLanguages()\n {\n $languages = $this->translator->getSupportedLanguages();\n\n $this->assertTrue(is_array($languages), 'Check that getSupportedLanguages response is an array');\n\n $this->assertContains('en', $languages, 'Check that getSupportedLanguages response contains \"en\"');\n\n $this->assertContains('fr', $languages, 'Check that getSupportedLanguages response contains \"fr\"');\n }", "public function test_transform_all() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'repository' => \"slack\",\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'url' => 'http://svn.example.com/wsvn/main/?op=revision&rev=126299',\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, '[slack] <http://svn.example.com/wsvn/main/?op=revision&amp;rev=126299|r126299>: ph - commit message');\n\t\t}", "public function isTranslatable() {\n $observerWrapper = $this->getMock('\\EntityDrupalWrapper');\n $mockDrupal = $this->getMockDrupalHandlerForConstructor();\n\n $translatable = new ParagraphsTranslatable($observerWrapper, $mockDrupal);\n $this->assertSame(TRUE, $translatable->isTranslatable());\n }", "public function getTranslations()\n {\n }", "static private function ___translate___()\n {\n _('RECORD\\Farthest %1$s from Sagittarius A*');\n }", "public function testLocationAndTexts() {\r\n for($i = 0; $i < 9; $i++) {\r\n echo '$loc[' . $i . ']: ' . $loc[$i] . '<br/>';\r\n }\r\n for($i = 0; $i < 9; $i++) {\r\n echo '$texts[' . $i . ']: ' . $texts[$i] . '<br/>';\r\n }\r\n }", "public function getTextFields( $translation = true );", "public function testCustomTranslationTable(): void\n {\n ConnectionManager::setConfig('custom_i18n_datasource', ['url' => getenv('DB_URL')]);\n\n $table = $this->getTableLocator()->get('Articles');\n\n $table->addBehavior('Translate', [\n 'translationTable' => CustomI18nTable::class,\n 'fields' => ['title', 'body'],\n ]);\n\n $items = $table->associations();\n $i18n = $items->getByProperty('_i18n');\n\n $this->assertSame('CustomI18n', $i18n->getName());\n $this->assertInstanceOf(CustomI18nTable::class, $i18n->getTarget());\n $this->assertSame('custom_i18n_datasource', $i18n->getTarget()->getConnection()->configName());\n $this->assertSame('custom_i18n_table', $i18n->getTarget()->getTable());\n\n ConnectionManager::drop('custom_i18n_datasource');\n }", "public function testLanguageStringSelector() {\n // Add another language.\n $edit = ['predefined_langcode' => 'es'];\n $this->drupalGet('admin/config/regional/language/add');\n $this->submitForm($edit, 'Add language');\n\n // Translate the string English in Spanish (Inglés). Override config entity.\n $name_translation = 'Inglés';\n \\Drupal::languageManager()\n ->getLanguageConfigOverride('es', 'language.entity.en')\n ->set('label', $name_translation)\n ->save();\n\n // Check content translation overview selector.\n $path = 'es/admin/config/regional/content-language';\n $this->drupalGet($path);\n\n // Get en language from selector.\n $option = $this->assertSession()->optionExists('edit-settings-user-user-settings-language-langcode', 'en');\n\n // Check that the language text is translated.\n $this->assertSame($name_translation, $option->getText());\n }", "public function testGetName0()\n{\n\n $actual = $this->translatorHelper->getName();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "protected function doTestTranslationChanged() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $changed_field_name = $this->getChangedFieldName($entity);\n $definition = $entity->getFieldDefinition($changed_field_name);\n $config = $definition->getConfig($entity->bundle());\n\n foreach ([FALSE, TRUE] as $translatable_changed_field) {\n if ($definition->isTranslatable()) {\n // For entities defining a translatable changed field we want to test\n // the correct behavior of that field even if the translatability is\n // revoked. In that case the changed timestamp should be synchronized\n // across all translations.\n $config->setTranslatable($translatable_changed_field);\n $config->save();\n }\n elseif ($translatable_changed_field) {\n // For entities defining a non-translatable changed field we cannot\n // declare the field as translatable on the fly by modifying its config\n // because the schema doesn't support this.\n break;\n }\n\n foreach ($entity->getTranslationLanguages() as $language) {\n // Ensure different timestamps.\n sleep(1);\n\n $langcode = $language->getId();\n\n $edit = [\n $this->fieldName . '[0][value]' => $this->randomString(),\n ];\n $edit_path = $entity->toUrl('edit-form', ['language' => $language]);\n $this->drupalGet($edit_path);\n $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode));\n\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertEquals(\n $entity->getChangedTimeAcrossTranslations(), $entity->getTranslation($langcode)->getChangedTime(),\n new FormattableMarkup('Changed time for language %language is the latest change over all languages.', ['%language' => $language->getName()])\n );\n }\n\n $timestamps = [];\n foreach ($entity->getTranslationLanguages() as $language) {\n $next_timestamp = $entity->getTranslation($language->getId())->getChangedTime();\n if (!in_array($next_timestamp, $timestamps)) {\n $timestamps[] = $next_timestamp;\n }\n }\n\n if ($translatable_changed_field) {\n $this->assertSameSize($entity->getTranslationLanguages(), $timestamps, 'All timestamps from all languages are different.');\n }\n else {\n $this->assertCount(1, $timestamps, 'All timestamps from all languages are identical.');\n }\n }\n }", "public function testFailUpdateEntriesNotEqualAmountOfTranslations()\n {\n $this->expectExceptionMessage('Cannot update entry translation');\n $this->parser->read(TEST_DATA_PATH . '/general.po');\n\n $this->parser->updateEntries('cookie', ['Keks']);\n }", "public function testSetGetLocaleLanguageCodeViaSetterAndGetter()\n {\n $this->translator->setLocale('fo');\n $this->assertEquals('fo', $this->translator->getLocale());\n }", "public function testSaveExistingRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'Y',\n '_translations' => [\n 'eng' => [\n 'title' => 'First Article1',\n 'body' => 'First Article content has been updated',\n ],\n 'spa' => [\n 'title' => 'Mi nuevo titulo',\n 'body' => 'Contenido Actualizado',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertSame('Mi nuevo titulo', $results['spa']['title']);\n $this->assertSame('Contenido Actualizado', $results['spa']['body']);\n\n $this->assertSame('First Article1', $results['eng']['title']);\n $this->assertSame('Description #1', $results['eng']['description']);\n }", "public function getLocalizedDescription();", "private function overview()\n {\n foreach ($this->manager->getTranslationFiles() as $lang => $namespaces) {\n $files = 0;\n foreach ($namespaces as $namespace) {\n $files += count($namespace);\n }\n\n $this->info(\n $lang . ': Found ' . $files . ' files with ' . count($this->manager->getTranslationValues($lang)) .\n ' values' . (config('app.locale', null) == $lang ? ' *primary locale' : '')\n );\n }\n }", "public function getTranslationByEcom()\n {\n if ($this->getTimeoutDetected()) {\n return;\n }\n $this->unitSetup();\n $methods = $this->TEST->ECOM->getPaymentMethods();\n\n if (count($methods) < 4) {\n static::markTestSkipped('Test can not perform with missing payment methods (this account is missing some).');\n return;\n }\n\n $partPayment = $this->TEST->ECOM->getMethodTranslation('PARTPAYMENT', 'sv');\n $revolving = $this->TEST->ECOM->getMethodTranslation('REVOLVING_CREDIT', 'sv');\n $swish = $this->TEST->ECOM->getMethodTranslation('SWISH', 'sv');\n $newCard = $this->TEST->ECOM->getMethodTranslation('NEWCARD', 'sv');\n\n static::assertTrue(\n count($methods) &&\n !empty($partPayment['title']) &&\n $revolving['info'] === 'Se alla dina köp i Resurs Banks app' &&\n (isset($swish['mobileText']) && $swish['mobileText'] === 'Ditt mobilnummer: {{mobileNumber}}') &&\n $newCard['title'] === 'Betala hela eller dela beloppet'\n );\n }", "public function testSaveMultipleTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n }", "public function translations() {\n return $this->client->get(self::$apiName, array());\n }", "public function translate();", "public function testSavePartialFieldMultipleLocales() {\n\t\t$this->loadFixtures('Audit', 'AuditDelta', 'AuditableTranslate', 'AuditableTranslatedItem');\n\n\t\t$TestModel = new AuditableTranslatedItem();\n\t\t$TestModel->locale = 'eng';\n\t\t$data = array(\n\t\t\t'slug' => 'fifth_translated',\n\t\t\t'title' => array('eng' => 'Title #5', 'spa' => 'Leyenda #5'),\n\t\t);\n\t\t$TestModel->create($data);\n\t\t$TestModel->save();\n\t\t$TestModel->unbindTranslation();\n\n\t\t$translations = array('title' => 'Title', 'content' => 'Content');\n\t\t$TestModel->bindTranslation($translations, false);\n\t\t$result = $TestModel->read(null, $TestModel->id);\n\t\t$expected = array(\n\t\t\t'AuditableTranslatedItem' => array(\n\t\t\t\t'id' => '4',\n\t\t\t\t'auditable_translated_article_id' => null,\n\t\t\t\t'slug' => 'fifth_translated',\n\t\t\t\t'locale' => 'eng',\n\t\t\t\t'title' => 'Title #5',\n\t\t\t\t'content' => ''\n\t\t\t),\n\t\t\t'Title' => array(\n\t\t\t\t0 => array(\n\t\t\t\t\t'id' => '19',\n\t\t\t\t\t'locale' => 'eng',\n\t\t\t\t\t'model' => 'AuditableTranslatedItem',\n\t\t\t\t\t'foreign_key' => '4',\n\t\t\t\t\t'field' => 'title',\n\t\t\t\t\t'content' => 'Title #5'\n\t\t\t\t),\n\t\t\t\t1 => array(\n\t\t\t\t\t'id' => '20',\n\t\t\t\t\t'locale' => 'spa',\n\t\t\t\t\t'model' => 'AuditableTranslatedItem',\n\t\t\t\t\t'foreign_key' => '4',\n\t\t\t\t\t'field' => 'title',\n\t\t\t\t\t'content' => 'Leyenda #5'\n\t\t\t\t)\n\t\t\t),\n\t\t\t'Content' => array(\n\t\t\t\t0 => array(\n\t\t\t\t\t'id' => '21',\n\t\t\t\t\t'locale' => 'eng',\n\t\t\t\t\t'model' => 'AuditableTranslatedItem',\n\t\t\t\t\t'foreign_key' => '4',\n\t\t\t\t\t'field' => 'content',\n\t\t\t\t\t'content' => ''\n\t\t\t\t),\n\t\t\t\t1 => array(\n\t\t\t\t\t'id' => '22',\n\t\t\t\t\t'locale' => 'spa',\n\t\t\t\t\t'model' => 'AuditableTranslatedItem',\n\t\t\t\t\t'foreign_key' => '4',\n\t\t\t\t\t'field' => 'content',\n\t\t\t\t\t'content' => ''\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t$this->assertEquals($expected, $result);\n\t}", "public function testUpdateTranslationWithLocaleInEntity(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('_locale', 'fra');\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('First Article', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $table->setLocale('fra');\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n }", "public function testBoxContents()\n {\n $route = new Route(['Csíkszereda'], 1);\n $this->assertTrue($route->hasCity('Csíkszereda'));\n $this->assertFalse($route->hasCity('Temesvár'));\n }", "public function testTranslationFrom2020(): void\n {\n $year = 2020;\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear($year),\n [self::LOCALE => 'スポーツの日']\n );\n }", "public function testGetDefaultLanguageLocaleCodeViaGetterMethod()\n {\n $this->assertEquals('en', $this->translator->getLocale());\n }", "public function testEmailUkTranslate()\n {\n $this->getEmailWithLocal('uk');\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_HELLO_UK);\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_THANKS_UK);\n }", "public function provideInlineConversionTests() {\n $result = [\n [[\n 'descr' => \"[i] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [i]emergency broadcasting system[/i].\",\n 'html' => \"This is a test of the <i>emergency broadcasting system</i>.\",\n ]],\n [[\n 'descr' => \"[b] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [b]emergency broadcasting system[/b].\",\n 'html' => \"This is a test of the <b>emergency broadcasting system</b>.\",\n ]],\n [[\n 'descr' => \"[u] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [u]emergency broadcasting system[/u].\",\n 'html' => \"This is a test of the <u>emergency broadcasting system</u>.\",\n ]],\n [[\n 'descr' => \"[s] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [s]emergency broadcasting system[/s].\",\n 'html' => \"This is a test of the <strike>emergency broadcasting system</strike>.\",\n ]],\n [[\n 'descr' => \"[sup] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [sup]emergency broadcasting system[/sup].\",\n 'html' => \"This is a test of the <sup>emergency broadcasting system</sup>.\",\n ]],\n [[\n 'descr' => \"[sub] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [sub]emergency broadcasting system[/sub].\",\n 'html' => \"This is a test of the <sub>emergency broadcasting system</sub>.\",\n ]],\n [[\n 'descr' => \"[font=Arial] gets correctly converted (simple font name).\",\n 'bbcode' => \"This is a test of the [font=Arial]emergency broadcasting system[/font].\",\n 'html' => \"This is a test of the <span style=\\\"font-family:'Arial'\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[font=Times New Roman] gets correctly converted (unquoted default value).\",\n 'bbcode' => \"This is a test of the [font=Times New Roman]emergency broadcasting system[/font].\",\n 'html' => \"This is a test of the <span style=\\\"font-family:'Times New Roman'\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[font=Times New Roman size=1] gets converted (trailing parameter identified).\",\n 'bbcode' => \"This is a test of the [font=Times New Roman size=1]emergency broadcasting system[/font].\",\n 'html' => \"This is a test of the <span style=\\\"font-family:'Times New Roman'\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[font=\\\"Courier New\\\"] gets correctly converted (quoted default value).\",\n 'bbcode' => \"This is a test of the [font=\\\"Courier New\\\"]emergency broadcasting system[/font].\",\n 'html' => \"This is a test of the <span style=\\\"font-family:'Courier New'\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[font=\\\"Courier New\\\" blarg size=1] gets converted (floating parameter ignored).\",\n 'bbcode' => \"This is a test of the [font=\\\"Courier New\\\" blarg size=1]emergency broadcasting system[/font].\",\n 'html' => \"This is a test of the <span style=\\\"font-family:'Courier New'\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[size=6] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [size=6]emergency broadcasting system[/size].\",\n 'html' => \"This is a test of the <span style=\\\"font-size:2.0em\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[size=10] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [size=10]emergency broadcasting system[/size].\",\n 'html' => \"This is a test of the <span style=\\\"font-size:1.0em\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[size=blah] gets ignored.\",\n 'bbcode' => \"This is a test of the [size=blah]emergency broadcasting system[/size].\",\n 'html' => \"This is a test of the [size=blah]emergency broadcasting system[/size].\",\n ]],\n [[\n 'descr' => \"[color=red] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [color=red]emergency broadcasting system[/color].\",\n 'html' => \"This is a test of the <span style=\\\"color:red\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[color=gronk] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [color=gronk]emergency broadcasting system[/color].\",\n 'html' => \"This is a test of the <span style=\\\"color:gronk\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[color=#FFF] gets correctly converted.\",\n 'bbcode' => \"This is a test of the [color=#FFF]emergency broadcasting system[/color].\",\n 'html' => \"This is a test of the <span style=\\\"color:#FFF\\\">emergency broadcasting system</span>.\",\n ]],\n [[\n 'descr' => \"[color=*#\\$] is prohibited.\",\n 'bbcode' => \"This is a test of the [color=*#\\$]emergency broadcasting system[/color].\",\n 'html' => \"This is a test of the [color=*#\\$]emergency broadcasting system[/color].\",\n ]],\n [[\n 'descr' => \"[spoiler] gets converted.\",\n 'bbcode' => \"Ssh, don't tell, but [spoiler]Darth is Luke's father[/spoiler]!\",\n 'html' => \"Ssh, don't tell, but <span class=\\\"bbcode_spoiler\\\">Darth is Luke's father</span>!\",\n ]],\n [[\n 'descr' => \"[acronym] gets converted.\",\n 'bbcode' => \"The [acronym=\\\"British Broadcasting Company\\\"]BBC[/acronym] airs [i]Doctor Who[/i] on Saturdays.\",\n 'html' => \"The <span class=\\\"bbcode_acronym\\\" title=\\\"British Broadcasting Company\\\">BBC</span> airs <i>Doctor Who</i> on Saturdays.\",\n ]],\n [[\n 'descr' => \"[acronym] safely encodes its content.\",\n 'bbcode' => \"The [acronym=_\\\"><script>alert(/XSS/.source)</script><x]Foo[/acronym] is safe.\",\n 'html' => \"The <span class=\\\"bbcode_acronym\\\" title=\\\"_&quot;&gt;&lt;script&gt;alert(/XSS/.source)&lt;/script&gt;&lt;x\\\">Foo</span> is safe.\",\n ]],\n ];\n return $result;\n }", "public function testSaveMultipleNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $translations['spa'] = new Entity(['title' => 'Titulo']);\n $translations['fre'] = new Entity(['title' => 'Titre']);\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n $this->assertSame('Titulo', $translations['spa']->get('title'));\n $this->assertSame('Titre', $translations['fre']->get('title'));\n }" ]
[ "0.73799634", "0.6937003", "0.6797059", "0.6794012", "0.6719218", "0.64951336", "0.6403737", "0.63615346", "0.63314074", "0.6306944", "0.6299896", "0.62862647", "0.6278439", "0.6271557", "0.62462384", "0.6198654", "0.6195937", "0.6146018", "0.61252195", "0.61020106", "0.6097451", "0.6096079", "0.6076191", "0.60665464", "0.6035331", "0.6030362", "0.6030362", "0.60274947", "0.6020733", "0.60185206", "0.5972958", "0.5942588", "0.59416354", "0.5936755", "0.5934601", "0.5909617", "0.5899525", "0.58813107", "0.587733", "0.58690184", "0.58589375", "0.582613", "0.577961", "0.5770211", "0.5766067", "0.5756749", "0.5755004", "0.574906", "0.574839", "0.5738023", "0.5721722", "0.56994367", "0.56885", "0.5678004", "0.5672828", "0.5668674", "0.56657165", "0.5665507", "0.56586444", "0.56515145", "0.5644791", "0.5638927", "0.56249076", "0.56180096", "0.5617448", "0.561611", "0.56116235", "0.5594294", "0.55933726", "0.5587996", "0.558478", "0.55807346", "0.55751115", "0.557232", "0.55639946", "0.55560356", "0.55490667", "0.55484927", "0.55481064", "0.55422384", "0.5539941", "0.55288225", "0.55148417", "0.5496035", "0.5495844", "0.5493002", "0.54915017", "0.5486691", "0.5478862", "0.5471232", "0.54540753", "0.54466885", "0.544535", "0.54363567", "0.54317695", "0.5422652", "0.5420159", "0.5419349", "0.5413787", "0.5412377" ]
0.78109306
0
Tests uptodate status tracking.
protected function doTestOutdatedStatus() { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $langcode = 'fr'; $languages = \Drupal::languageManager()->getLanguages(); // Mark translations as outdated. $edit = ['content_translation[retranslate]' => TRUE]; $edit_path = $entity->toUrl('edit-form', ['language' => $languages[$langcode]]); $this->drupalGet($edit_path); $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode)); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); // Check that every translation has the correct "outdated" status, and that // the Translation fieldset is open if the translation is "outdated". foreach ($this->langcodes as $added_langcode) { $url = $entity->toUrl('edit-form', ['language' => ConfigurableLanguage::load($added_langcode)]); $this->drupalGet($url); if ($added_langcode == $langcode) { // Verify that the retranslate flag is not checked by default. $this->assertSession()->fieldValueEquals('content_translation[retranslate]', FALSE); $this->assertEmpty($this->xpath('//details[@id="edit-content-translation" and @open="open"]'), 'The translation tab should be collapsed by default.'); } else { // Verify that the translate flag is checked by default. $this->assertSession()->fieldValueEquals('content_translation[outdated]', TRUE); $this->assertNotEmpty($this->xpath('//details[@id="edit-content-translation" and @open="open"]'), 'The translation tab is correctly expanded when the translation is outdated.'); $edit = ['content_translation[outdated]' => FALSE]; $this->drupalGet($url); $this->submitForm($edit, $this->getFormSubmitAction($entity, $added_langcode)); $this->drupalGet($url); // Verify that retranslate flag is now shown. $this->assertSession()->fieldValueEquals('content_translation[retranslate]', FALSE); $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->assertFalse($this->manager->getTranslationMetadata($entity->getTranslation($added_langcode))->isOutdated(), 'The "outdated" status has been correctly stored.'); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uptodate()\n\t{\n\t\t$interval = new DateInterval('P1W'); // 1 Week\n\t\t$now = new DateTime();\n\n\t\treturn (new DateTime($this->updated_at))->add($interval) > $now && ( ! $this->recent());\n\t}", "public function testGetStatus()\n {\n $this->todo('stub');\n }", "protected function checkStatus()\n {\n $status = $this->autoTestController->checkStatus(Tools::getValue('queueItemId', 0));\n\n if ($status['finished']) {\n $this->autoTestController->stop(\n function () {\n return LoggerService::getInstance();\n }\n );\n }\n\n PacklinkPrestaShopUtility::dieJson($status);\n }", "public function testStatusPage() {\n // Verify if the 'Status report' is the first item link.\n $this->drupalGet('admin/reports');\n $this->assertEquals('Status report', $this->cssSelect('.list-group :first-child')[0]->getText());\n\n // Go to Administration.\n $this->drupalGet('admin/reports/status');\n $this->assertSession()->statusCodeEquals(200);\n\n // Verify that the PHP version is shown on the page.\n $this->assertSession()->pageTextContains(phpversion());\n\n if (function_exists('phpinfo')) {\n $this->assertSession()->linkByHrefExists(Url::fromRoute('system.php')->toString());\n }\n else {\n $this->assertSession()->linkByHrefNotExists(Url::fromRoute('system.php')->toString());\n }\n\n // If a module is fully installed no pending updates exists.\n $this->assertSession()->pageTextNotContains('Out of date');\n\n // The setting config_sync_directory is not properly formed.\n $this->assertSession()->pageTextContains(\"Your {$this->siteDirectory}/settings.php file must define the \\$settings['config_sync_directory'] setting\");\n\n /** @var \\Drupal\\Core\\Update\\UpdateHookRegistry $update_registry */\n $update_registry = \\Drupal::service('update.update_hook_registry');\n\n // Set the schema version of update_test_postupdate to a lower version, so\n // update_test_postupdate_update_8001() needs to be executed.\n $update_registry->setInstalledVersion('update_test_postupdate', 8000);\n $this->drupalGet('admin/reports/status');\n $this->assertSession()->pageTextContains('Out of date');\n\n // Now cleanup the executed post update functions.\n $update_registry->setInstalledVersion('update_test_postupdate', 8001);\n /** @var \\Drupal\\Core\\Update\\UpdateRegistry $post_update_registry */\n $post_update_registry = \\Drupal::service('update.post_update_registry');\n $post_update_registry->filterOutInvokedUpdatesByExtension('update_test_postupdate');\n $this->drupalGet('admin/reports/status');\n $this->assertSession()->pageTextContains('Out of date');\n\n $this->drupalGet('admin/reports/status/php');\n $this->assertSession()->statusCodeEquals(200);\n\n // Check if cron error is displayed in errors section\n $cron_last_run = \\Drupal::state()->get('system.cron_last');\n \\Drupal::state()->set('system.cron_last', 0);\n $this->drupalGet('admin/reports/status');\n $this->assertSession()->elementExists('xpath', '//details[contains(@class, \"system-status-report__entry\")]//div[contains(text(), \"Cron has not run recently\")]');\n \\Drupal::state()->set('system.cron_last', $cron_last_run);\n\n // Check if JSON database support is enabled.\n $this->assertSession()->pageTextContains('Database support for JSON');\n $elements = $this->xpath('//details[@class=\"system-status-report__entry\"]//div[contains(text(), :text)]', [\n ':text' => 'Is required in Drupal 10.0.',\n ]);\n $this->assertCount(1, $elements);\n $this->assertStringStartsWith('Available', $elements[0]->getParent()->getText());\n\n // Test the page with deprecated extensions.\n $module_installer = \\Drupal::service('module_installer');\n $session = $this->assertSession();\n\n // Install a deprecated module.\n $module_installer->install(['deprecated_module']);\n $this->drupalGet('admin/reports/status');\n\n // Confirm warning messages are displayed for the deprecated module.\n $session->pageTextContains('Deprecated modules enabled');\n $session->pageTextContains('Deprecated modules found: Deprecated module.');\n\n // Check that the deprecated module link was rendered correctly.\n $this->assertSession()->elementExists('xpath', \"//a[contains(@href, 'http://example.com/deprecated')]\");\n\n // Uninstall a deprecated module and confirm the warning is not displayed.\n $module_installer->uninstall(['deprecated_module']);\n $this->drupalGet('admin/reports/status');\n $session->pageTextNotContains('Deprecated modules enabled');\n $session->pageTextNotContains('Deprecated modules found: Deprecated module.');\n $this->assertSession()->elementNotExists('xpath', \"//a[contains(@href, 'http://example.com/deprecated')]\");\n\n // Make sure there are no warnings about obsolete modules.\n $session->pageTextNotContains('Obsolete extensions enabled');\n $session->pageTextNotContains('Obsolete extensions found: System obsolete status test.');\n\n // Install an obsolete module. Normally this isn't possible, so write to\n // configuration directly.\n $this->config('core.extension')->set('module.system_status_obsolete_test', 0)->save();\n $this->rebuildAll();\n $this->drupalGet('admin/reports/status');\n $session->pageTextContains('Obsolete extensions enabled');\n $session->pageTextContains('Obsolete extensions found: System obsolete status test.');\n\n // Make sure the warning is gone after uninstalling the module.\n $module_installer->uninstall(['system_status_obsolete_test']);\n $this->drupalGet('admin/reports/status');\n $session->pageTextNotContains('Obsolete extensions enabled');\n $session->pageTextNotContains('Obsolete extensions found: System obsolete status test.');\n\n // Install deprecated theme and confirm warning message is displayed.\n $theme_installer = \\Drupal::service('theme_installer');\n $theme_installer->install(['test_deprecated_theme']);\n $this->drupalGet('admin/reports/status');\n $session->pageTextContains('Deprecated themes enabled');\n $session->pageTextContains('Deprecated themes found: Test deprecated theme.');\n\n // Check that the deprecated theme link was rendered correctly.\n $this->assertSession()->elementExists('xpath', \"//a[contains(@href, 'http://example.com/deprecated_theme')]\");\n\n // Uninstall a deprecated theme and confirm the warning is not displayed.\n $theme_installer->uninstall(['test_deprecated_theme']);\n $this->drupalGet('admin/reports/status');\n $session->pageTextNotContains('Deprecated themes enabled');\n $session->pageTextNotContains('Deprecated themes found: Test deprecated theme.');\n $this->assertSession()->elementNotExists('xpath', \"//a[contains(@href, 'http://example.com/deprecated_theme')]\");\n }", "public function testStatus(){\n $model = new PersistenceManager();\n $stats = $model->getStatus();\n\n $this->assertEquals(\n intval($stats[0]['total']),\n intval($stats[0]['used'])+intval($stats[0]['not_used'])\n );\n }", "public static function check_for_updates()\n {\n }", "public function update_status();", "public function Check() {\n\t\t/*\n\t\t$local = $this->getLocalVersion();\n\t\t$remote = $this->getRemoteVersion(\"check\", $local[0]['version']);\n\t\t\n\t\t$nightly = true;\n\t\t$archive = Common::getConstant('ARCHIVEURL', $this->archive);\n\t\t$latest = '';\n\t\t\n\t\tforeach ($remote as $tag) {\n\t\t\tif ($latest == '') {\n\t\t\t\t$latest = $tag[\"name\"];\n\t\t\t\t$archive = $tag[\"zipball_url\"];\n\t\t\t}\n\t\t\tif ($local[0]['version'] == $tag[\"commit\"][\"sha\"]) {\n\t\t\t\t$local[0]['version'] = $tag[\"name\"];\n\t\t\t\t$nightly = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$search = array(\"\\r\\n\", \"\\n\", \"\\r\");\n\t\t$replace = array(\" \", \" \", \" \");\n\t\t\n\t\t$message = '';\n\t\t$merge = '';\n\t\t$commits = json_decode(file_get_contents(Common::getConstant('COMMITURL', $this->commits)), true);\n\t\tforeach ($commits as $commit) {\n\t\t\tif ($local[0]['version'] != $commit[\"sha\"]) {\n\t\t\t\tif (strpos($commit[\"commit\"][\"message\"], \"Merge\") === false) {\n\t\t\t\t\t$message .= '- '.str_replace($search, $replace, $commit[\"commit\"][\"message\"]).'<br/>';\n\t\t\t\t} else {\n\t\t\t\t\t$merge .= '- '.str_replace($search, $replace, $commit[\"commit\"][\"message\"]).'<br/>';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($message == '') {\n\t\t\t$message = $merge;\n\t\t}\n\t\t*/\n\t\t\n\t\t$archive = $this->archive;\n\t\t$current_version = self::VERSION;\n\t\t$nightly = false;\n\t\t$response = $this->getRemoteVersion(\"check\");\n\t\t\n\t\tif ( $response[\"name\"] > $current_version ) {\n\t\t\t\n\t\t\t$curl = curl_init();\n\t\t\tcurl_setopt($curl, CURLOPT_URL, $this->update_file);\n\t\t\t//curl_setopt($curl, CURLOPT_POSTFIELDS, \"\");\n\t\t\tcurl_setopt($curl, CURLOPT_HEADER, 0);\n\t\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n\t\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); \n\t\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);\n\t\t\tcurl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13');\n\t\t\t$content = curl_exec($curl);\n\t\t\tcurl_close($curl);\n\t\t\t\n\t\t\tunlink( \"./update.php\" );\n\t\t\tfile_put_contents( \"./update.php\", $content );\n\t\t}\n\t\t\n\t\t\n\t\t//echo var_dump( $response );\n\t\t//return \"[\".formatJSEND(\"success\", array(\"currentversion\"=>$local[0]['version'],\"remoteversion\"=>$latest,\"message\"=>$message,\"archive\"=>$archive,\"nightly\"=>$nightly,\"name\"=>$local[0]['name'])).\"]\";\n\t\treturn \"[\".formatJSEND(\"success\", array(\"currentversion\"=>$current_version,\"remoteversion\"=>$response[\"name\"],\"message\"=>$response[\"message\"],\"archive\"=>$archive,\"nightly\"=>$nightly,\"name\"=>$response[\"commit\"][\"author_name\"])).\"]\";\n\t}", "public function test_if_failed_update()\n {\n }", "public function updateStatusStart()\n {\n $this->resetStatuses();\n $this->pubDirectory->touch($this->getRelativeFilePath(self::IMPORT_STATUS_BUSY));\n }", "private function manageStatus()\n {\n $this->updateStatus();\n $this->checkStatus();\n }", "public function checkStatus()\n {\n echo 'All Branch of Bank is Opened at 9:30 AM<br>';\n }", "public function isCurrentBranchUpToDate() {\n\t\treturn (\n\t\t\t$current_branch = $this->getCurrentBranch()\n\t\t\t&& 0 == $this->repository->getLog('HEAD..origin/' . $this->getCurrentBranch()->getName(), /*$path=*/null, /*$limit=*/1)->count()\n\t\t);\n\t}", "public function checkForUpdates()\n\t{\n\t\tif (!is_numeric(BUILD))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// HOOK: proxy module\n\t\tif (Config::get('useProxy')) {\n\t\t\t$objRequest = new \\ProxyRequest();\n\t\t} else {\n\t\t\t$objRequest = new \\Request();\n\t\t}\n\n\t\t$objRequest->send(\\Config::get('liveUpdateBase') . (LONG_TERM_SUPPORT ? 'lts-version.txt' : 'version.txt'));\n\n\t\tif (!$objRequest->hasError())\n\t\t{\n\t\t\t\\Config::set('latestVersion', $objRequest->response);\n\t\t\t\\Config::persist('latestVersion', $objRequest->response);\n\t\t}\n\n\t\t// Add a log entry\n\t\t$this->log('Checked for Contao updates', __METHOD__, TL_CRON);\n\t}", "protected function _saveStatus()\n {\n try {\n\n /**\n * update task statuses with completion days\n */\n foreach( $this->_status as $key => $val ) {\n\n if ( in_array( $key, $this->_tasks ) ) {\n $task = Mage::getModel('jirafe_analytics/install')\n ->getCollection()\n ->addFieldToFilter( 'task', $key )\n ->getFirstItem();\n\n $task->setCompletedDt( $val );\n $task->save();\n }\n }\n\n /**\n * refresh status values in cache\n *\n */\n $this->_saveStatusToCache();\n\n return true;\n\n } catch (Exception $e) {\n Mage::helper('jirafe_analytics')->log('ERROR', 'Jirafe_Analytics_Model_Installer::_saveStatus()', $e->getMessage(), $e);\n return false;\n }\n }", "public function isOutdated() {}", "public function test_accepts_dev_updates()\n {\n }", "public function testStatusFlags()\n {\n $page = SiteTree::create();\n $page->Title = 'stuff';\n DBDatetime::set_mock_now('2016-01-16 00:00:00');\n\n $flags = $page->getStatusFlags(false);\n $this->assertNotContains('embargo_expiry', array_keys($flags ?? []));\n $this->assertNotContains('embargo', array_keys($flags ?? []));\n $this->assertNotContains('expiry', array_keys($flags ?? []));\n\n $page->PublishOnDate = '2016-02-01 00:00:00';\n $page->UnPublishOnDate = null;\n $flags = $page->getStatusFlags(false);\n $this->assertNotContains('embargo_expiry', array_keys($flags ?? []));\n $this->assertContains('embargo', array_keys($flags ?? []));\n $this->assertNotContains('expiry', array_keys($flags ?? []));\n\n $page->PublishOnDate = null;\n $page->UnPublishOnDate = '2016-02-01 00:00:00';\n $flags = $page->getStatusFlags(false);\n $this->assertNotContains('embargo_expiry', array_keys($flags ?? []));\n $this->assertNotContains('embargo', array_keys($flags ?? []));\n $this->assertContains('expiry', array_keys($flags ?? []));\n\n $page->PublishOnDate = '2016-02-01 00:00:00';\n $page->UnPublishOnDate = '2016-02-08 00:00:00';\n $flags = $page->getStatusFlags(false);\n $this->assertContains('embargo_expiry', array_keys($flags ?? []));\n $this->assertNotContains('embargo', array_keys($flags ?? []));\n $this->assertNotContains('expiry', array_keys($flags ?? []));\n }", "public function testFixStatus()\n {\n // modify job spec to add custom statuses\n $spec = Definition::fetch('job');\n $fields = $spec->getFields();\n $fields['Status']['options'] = array('a', 'b', 'c', 'd', 'closed');\n $fields['Status']['default'] = 'a';\n $spec->setFields($fields)->save();\n\n // open a file for add\n $file = new File;\n $file->setFilespec(\"//depot/foo\")->setLocalContents(\"this is a test\")->add();\n\n // create couple of jobs\n $job1 = new Job;\n $job1->set('Description', 'job 1')\n ->save();\n $job2 = new Job;\n $job2->set('Description', 'job 2')\n ->setStatus('b')\n ->save();\n\n // save a change with fixStatus set to 'same'\n $change = new Change;\n $change->setDescription(\"change test 1.\\n\")\n ->addFile($file)\n ->setJobs(array($job1->getId(), $job2->getId()))\n ->setFixStatus('same')\n ->save();\n\n // verify job statuses before submit\n $this->assertSame('a', $job1->getStatus());\n $this->assertSame('b', $job2->getStatus());\n\n // submit a change and verify job statuses after\n $change->submit();\n\n $this->assertSame('a', Job::fetch($job1->getId())->getStatus());\n $this->assertSame('b', Job::fetch($job2->getId())->getStatus());\n\n // try again with a new change and fixStatus set to 'd'\n $file = new File;\n $file->setFilespec(\"//depot/bar\")->setLocalContents(\"this is a test\")->add();\n $change = new Change;\n $change->setDescription(\"change test 2.\\n\")\n ->addFile($file)\n ->setJobs(array($job1->getId(), $job2->getId()))\n ->setFixStatus('d')\n ->save()\n ->submit();\n\n // verify job statuses after submit\n $this->assertSame('d', Job::fetch($job1->getId())->getStatus());\n $this->assertSame('d', Job::fetch($job2->getId())->getStatus());\n\n // try again without using fixStatus\n $file = new File;\n $file->setFilespec(\"//depot/baz\")->setLocalContents(\"this is a test\")->add();\n $change = new Change;\n $change->setDescription(\"change test 3.\\n\")\n ->addFile($file)\n ->setJobs(array($job1->getId(), $job2->getId()))\n ->save()\n ->submit();\n\n // verify job statuses after submit\n $this->assertSame('closed', Job::fetch($job1->getId())->getStatus());\n $this->assertSame('closed', Job::fetch($job2->getId())->getStatus());\n }", "private function getStatus(){\n\t\t$this->valid=$this->checkDatesValidity();\n\t\tif($this->usage==\"once\" && $this->usageCount) $this->valid = false;\n\t\tif($this->usage==\"count\" && $this->usageCount>=$this->maxUsage) $this->valid = false;\n\t\tif($this->type==\"fixed\" && $this->value<=0) $this->valid = false;\n\t\tif($this->type==\"grid\" && !count($this->grid)) $this->valid = false;\n\t}", "function check_update( $_, $assoc_args ) {\n\t\tself::run( 'core check-update', $_, $assoc_args );\n\t}", "protected function doTestPublishedStatus() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n\n // Unpublish translations.\n foreach ($this->langcodes as $index => $langcode) {\n if ($index > 0) {\n $url = $entity->toUrl('edit-form', ['language' => ConfigurableLanguage::load($langcode)]);\n $edit = ['content_translation[status]' => FALSE];\n $this->drupalGet($url);\n $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode));\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertFalse($this->manager->getTranslationMetadata($entity->getTranslation($langcode))->isPublished(), 'The translation has been correctly unpublished.');\n }\n }\n\n // Check that the last published translation cannot be unpublished.\n $this->drupalGet($entity->toUrl('edit-form'));\n $this->assertSession()->fieldDisabled('content_translation[status]');\n $this->assertSession()->fieldValueEquals('content_translation[status]', TRUE);\n }", "private function site_status_check() {\n\t\t$this->level = 4;\n\t\tEE::log( 'Checking and verifying site-up status. This may take some time.' );\n\t\t$httpcode = '000';\n\t\t$ch = curl_init( $this->site_name );\n\t\tcurl_setopt( $ch, CURLOPT_HEADER, true );\n\t\tcurl_setopt( $ch, CURLOPT_NOBODY, true );\n\t\tcurl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\tcurl_setopt( $ch, CURLOPT_TIMEOUT, 10 );\n\n\t\t$i = 0;\n\t\ttry {\n\t\t\twhile ( 200 !== $httpcode && 302 !== $httpcode ) {\n\t\t\t\tcurl_exec( $ch );\n\t\t\t\t$httpcode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\n\t\t\t\techo '.';\n\t\t\t\tsleep( 2 );\n\t\t\t\tif ( $i ++ > 60 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( 200 !== $httpcode && 302 !== $httpcode ) {\n\t\t\t\tthrow new Exception( 'Problem connecting to site!' );\n\t\t\t}\n\t\t}\n\t\tcatch ( Exception $e ) {\n\t\t\t$this->catch_clean( $e );\n\t\t}\n\n\t}", "public function isUpdated() {}", "public function check_sync()\n {\n }", "public function needUpdate()\n\t{\n\t\treturn ($this->getLastUpdate() == null || time() - $this->getLastUpdate()->format('U') > 1 * 60);\n\t}", "private function checkStatus()\n {\n $res = $this->parseBoolean(\n json_encode($this->getStatus()[\"timed_out\"])\n );\n\n if ($this->getStatus() == null)\n $this->setOnline(false);\n else if ($res)\n $this->setOnline(false);\n else\n $this->setOnline(true);\n }", "public function testStatusBusy()\n\t{\n\t\t$service = $this->getService();\n\t\t$this->mockResponseFromFile('catalogs.publish.busy');\n\t\t$response = $service->publishStatus()->pin(\"DEADBEEF\")->execute();\n\t\t$this->assertIsArray($response);\n\t\t$this->assertArrayHasKey('kind', $response);\n\t\t$this->assertArrayHasKey('selfLink', $response);\n\t\t$this->assertArrayHasKey('status', $response);\n\t\t$this->assertEquals('store#catalogPublishStatus', $response['kind']);\n\t\t$this->assertEquals('busy', $response['status']);\n\t}", "function checkForUpdate() {\n $cache_data = Terminus::getCache()->getData(\n 'latest_release',\n array('decode_array' => true)\n );\n if (!$cache_data\n || ((int)$cache_data['check_date'] < (int)strtotime('-7 days'))\n ) {\n $logger = Terminus::getLogger();\n try {\n $current_version = checkCurrentVersion();\n if (version_compare($current_version, TERMINUS_VERSION, '>')) {\n $logger->info(\n 'An update to Terminus is available. Please update to {version}.',\n array('version' => $current_version)\n );\n }\n } catch (\\Exception $e) {\n $logger->info($e->getMessage());\n $logger->info('Cannot retrieve current Terminus version.');\n }\n }\n}", "public function testNothingModifiedLastRunSet()\n {\n $this->_cs->updateLastRun($this->_name);\n sleep(2);\n\n $check = $this->_cs->checkEntitiesChanged($this->_name, array(self::ENTITY_NAME));\n $this->assertFalse($check);\n }", "public function refreshTaskStatus(){\n\n $webCronResult = $this->webCronResults()->orderBy('code', 'desc')->first();\n\n if ($webCronResult) {\n\n if ($webCronResult->code >= 300) {\n // bad status\n $this->status = 0 ;\n }else{\n // good status\n $this->status = 2 ;\n };\n\n $this->save();\n\n };\n\n }", "public function testUpdateTimesheet()\n {\n }", "public function testSetStatus()\n {\n $this->todo('stub');\n }", "public function isVersionActivelyMaintained() {}", "public function test_background_updates()\n {\n }", "public function testFresh(){\n Session::flush();\n $status_message = $this->getStatus();\n $this->assertResponseOk();\n $this->assertTrue($status_message['message'] == 'no active session');\n }", "public function updateStatuses()\n {\n $affected = DB::update('UPDATE los_orders SET status_code=1 WHERE status_code=0 AND order_date IN (SELECT provide_date FROM los_lunchdates WHERE orders_placed IS NOT NULL)');\n $affected = DB::update('UPDATE los_orders SET status_code=0 WHERE status_code=1 AND order_date IN (SELECT provide_date FROM los_lunchdates WHERE orders_placed IS NULL)');\n }", "protected function _updateStatus()\n {\n $this->_writeStatusFile(\n array(\n 'time' => time(),\n 'done' => ($this->_currentItemCount == $this->_totalFeedItems),\n 'count' => $this->_currentItemCount,\n 'total' => $this->_totalFeedItems,\n 'message' => \"Importing content. Item \" . $this->_currentItemCount\n . \" of \" . $this->_totalFeedItems . \".\"\n )\n );\n }", "public function test_accepts_minor_updates()\n {\n }", "abstract public function getStatus();", "public static function munim_schedule_status_update() {\n\t\tif ( ! wp_next_scheduled( 'munim_update_estimate_status' ) ) {\n\t\t\twp_schedule_event( time(), 'daily', 'munim_update_estimate_status' );\n\t\t}\n\t}", "public function testStatusConfirm()\n {\n\n }", "private function sanityChecksPass()\n {\n // Make sure our storage path exists.\n if ( ! is_dir($this->taskStatusStoragePath))\n {\n // No? Create it.\n mkdir($this->taskStatusStoragePath);\n }\n\n // Make sure we can write to our directory.\n $testFilename = rand(1, 1000);\n $testFilepath = $this->taskStatusStoragePath . $testFilename;\n try\n {\n file_put_contents($testFilepath, 'Testing');\n } catch (Exception $e)\n {\n return false;\n }\n\n // Ok, we're good. Delete the dummy lock file (if we can write, there's no reason to suspect we can't unlink also).\n unlink($testFilepath);\n\n // Announce sanity checks passed.\n return true;\n }", "public function PullTesst()\n {\n $this->assertTrue(true);\n }", "function checkWPTStatus() {\n\t// Query the status table to get wpt id list\n\tglobal $gStatusTable, $gErrBase;\n\n\t$wptServer = wptServer();\n\t$result = obtainTestsWithCode(SUBMITTED);\n\n\tif ( $result ) {\n\t\t$nNoResult = 0;\n\t\twhile ( $row = mysqli_fetch_assoc($result) ) {\n\t\t\t$request = $wptServer . \"testStatus.php?f=xml&test=\" . $row['wptid'];\n\t\t\t$doc = new DOMDocument();\n\t\t\tif ( $doc ) {\n\t\t\t\t$response = fetchUrl($request);\n\t\t\t\tif ( strlen($response) ) {\n\t\t\t\t\t$doc->loadXML($response);\n\t\t\t\t\t$nodes = $doc->getElementsByTagName('statusCode');\n\t\t\t\t\t$code = (int)trim($nodes->item(0)->nodeValue);\n\t\t\t\t\tunset($doc);\n\n\t\t\t\t\tif ( 200 == $code ) {\n\t\t\t\t\t\t$nNoResult = 0; // reset\n\t\t\t\t\t\tsetStatus($row['statusid'], SUBMIT_DONE);\n\t\t\t\t\t} \n\t\t\t\t\telseif ( 400 <= $code || 100 > $code ) {\n\t\t\t\t\t\t$nNoResult = 0; // reset\n\t\t\t\t\t\tsetStatus($row['statusid'], SUBMITTED + $gErrBase);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$nNoResult++;\n\t\t\t\t\t\tif ( $nNoResult > 2000 ) {\n\t\t\t\t\t\t\t// Quick bail:\n\t\t\t\t\t\t\t// If we've exhausted all the completed results we do NOT want\n\t\t\t\t\t\t\t// to continue checking EVERY remaining test. So instead we bail\n\t\t\t\t\t\t\t// after seeing many (50?) incomplete tests.\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}\n}", "function getStatus() ;", "function getStatus() ;", "function getStatus() ;", "public function updateStatus()\n\t\t{\n\t\t\t$thingdom = $this->getThingdom();\n\n\t\t\tif(!$thingdom) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$page_count = wp_count_posts('page')->publish;\n\t\t\t$post_count = wp_count_posts()->publish;\n\t\t\t$comment_count = wp_count_comments()->approved;\n\n\t\t\t$thing = $thingdom->getThing($this->thingName, $this->thingType);\n\n\t\t\t$thing->status('page_count', $page_count);\n\t\t\t$thing->status('post_count', $post_count);\n\t\t\t$thing->status('comment_count', $comment_count);\n\t\t}", "public function checkOrdersForUpdateCheckouts()\n {\n $orderCollection = Mage::getModel(\"sales/order\")->getCollection();\n\n //get current timestamp\n $nowTime = new DateTime(null, new DateTimeZone(\"UTC\"));\n $nowTimestamp = $nowTime->getTimestamp();\n\n foreach ($orderCollection as $order) {\n $isTriggered = $order->getUrbitTriggered();\n\n if (isset($isTriggered) && $isTriggered == 'false') {\n $orderUpdateCheckoutTime = $order->getUrbitUpdateCheckoutTime();\n\n if (isset($orderUpdateCheckoutTime) && $orderUpdateCheckoutTime != \"\" && (int)$orderUpdateCheckoutTime <= $nowTimestamp) {\n $this->sendUpdateCheckout($order->getId());\n $order->setData('urbit_triggered', 'true');\n $order->save();\n }\n }\n }\n }", "function TS_VCSC_GutenbergStatusCheck() {\r\n\t\t\t$this->TS_VCSC_GutenbergPlugin = \"false\";\r\n\t\t\t$this->TS_VCSC_GutenbergBlocks = \"false\";\r\n $this->TS_VCSC_GutenbergExists = \"false\";\r\n\t\t\tif (has_filter('replace_editor', 'gutenberg_init')) {\r\n\t\t\t\t$this->TS_VCSC_GutenbergPlugin = \"true\";\r\n $this->TS_VCSC_GutenbergExists = \"true\";\r\n\t\t\t}\t\t\r\n if (TS_VCSC_VersionCompare($GLOBALS['wp_version'], '5.0-beta') >= 0) {\r\n\t\t\t\t$this->TS_VCSC_GutenbergBlocks = \"true\";\r\n $this->TS_VCSC_GutenbergExists = \"true\";\r\n\t\t\t}\r\n\t\t}", "public function testCheckAvailability() {\n $date = '15/10/2015';\n $this->assertTrue($this->loan->checkAvailability($date));\n }", "public function testIfCreationIsCorrect(){ \n \n $this->assertEquals(-1, $this->status->getStatusId()); \n $this->assertEquals('default_status', $this->status->getStatusName());\n \n }", "function health_check()\n {\n $zombies = $this->scheduled_task_model->get_zombies();\n\n if ( $zombies )\n {\n foreach ( $zombies as $zombie )\n {\n $data = array(\n 'type' => config( 'emergency_types' )->scheduled_task,\n 'info' => \"Task: \". $zombie->name,\n 'message' => \"Scheduled task has been running for too long. Check the server \".\n \"and cron log for any errors. It's been moved to active for now.\" );\n\n log_message(\n 'error',\n \"Health Check Failed: \". print_r( $data, TRUE ) );\n\n $data = array(\n 'state' => 'active' );\n\n $this->scheduled_task_model->save( $data, $zombie->id );\n }\n }\n\n return TRUE;\n }", "public function testFilterStatusesReadyStatus()\r\n {\r\n $statusList = [\r\n $this->Artifacts::READY\r\n ];\r\n $result = $this->Artifacts->filterStatuses($statusList);\r\n $this->assertEquals($this->Artifacts::READY, $result);\r\n }", "public function testTestStatus()\n {\n // create review record for change 1\n $this->createChange();\n $review = Review::createFromChange('1')->save();\n\n // ensure starting test status of null.\n $this->assertSame($review->get('testStatus'), null);\n\n // dispatch and check output\n $this->dispatch('/reviews/2/tests/fail/' . $review->getToken());\n $result = $this->getResult();\n $review = Review::fetch(2, $this->p4);\n $this->assertRoute('review-tests');\n $this->assertResponseStatusCode(200);\n $this->assertSame(true, $result->getVariable('isValid'));\n $this->assertSame('fail', $review->get('testStatus'));\n }", "public function testProjectAssignmentsUpdateAvailability()\n {\n }", "public function action_update_check()\n\t{\n\t \tUpdate::add( 'DateNinja', 'e64e02e0-38f8-11dd-ae16-0800200c9a66', $this->info->version );\n\t}", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t\n\t\tif(!empty($data['t']) && !empty($data['list'])) $response = $this->_tender->update_status($data['t'], explode('--',$data['list']));\n\t\t\n\t\t# all good\n\t\tif(!empty($response) && $response['boolean']){\n\t\t\t$data['msg'] = 'The Invitation for Bids/Quotations status has been updated.';\n\t\t\t$data['area'] = 'refresh_list_msg';\n\t\t} \n\t\t# there was an error\n\t\telse {\n\t\t\t$data['msg'] = (!empty($data['t']) && !empty($data['list']))? 'ERROR: There was an error updating the Invitation for Bids/Quotations status.': 'ERROR: This action can not be resolved';\n\t\t\t$data['area'] = 'basic_msg';\n\t\t}\n\t\t\n\t\t$this->load->view('addons/basic_addons', $data);\n\t}", "protected function getRemainingUpdatesStatus() {}", "public function isStatusValidToStart()\n {\n if ($this->pubDirectory->isExist($this->getRelativeFilePath(self::IMPORT_STATUS_READY))) {\n return true;\n }\n return false;\n }", "protected function recentTestInstanceExists() {}", "public function testStatusDone()\n\t{\n\t\t$service = $this->getService();\n\t\t$this->mockResponseFromFile('catalogs.publish.done');\n\t\t$response = $service->publishStatus()->pin(\"DEADBEEF\")->execute();\n\t\t$this->assertIsArray($response);\n\t\t$this->assertArrayHasKey('kind', $response);\n\t\t$this->assertArrayHasKey('selfLink', $response);\n\t\t$this->assertArrayHasKey('status', $response);\n\t\t$this->assertEquals('store#catalogPublishStatus', $response['kind']);\n\t\t$this->assertEquals('done', $response['status']);\n\t}", "public function testDirty()\n {\n copy(__DIR__ . '/functional_dirty/Test_dirty.php', $this->folder_final . '/Test.php'); // make file dirty\n $res = $this->callFormatter('check-git');\n $this->assertEquals(1, $res['code']); // has errors\n $this->assertStringMatchesFormat(\"Test.php issues:%a\", $res['out']);\n $res = $this->callFormatter(\"apply-git\");\n $this->assertEquals(0, $res['code']);\n $this->assertStringMatchesFormat(\"Test.php formatted successfully%a\", $res['out']);\n $res = $this->callFormatter(\"check-git\");\n $this->assertEquals(0, $res['code']); // all right\n }", "function checkLastUpdated() {\r\n $conn = mysql_connect($this->mysql_host,$this->mysql_user,$this->mysql_pass);\r\n \r\n $rs = mysql_select_db($this->mysql_db,$conn);\r\n \r\n $sql = \"SHOW TABLE STATUS FROM \".$this->mysql_db.\" LIKE '\".$this->mysql_table.\"'\";\r\n \r\n $rs = mysql_query($sql,$conn);\r\n \r\n if(mysql_num_rows($rs) == 0 ) {\r\n \r\n $this->createTable();\r\n } else {\r\n $row = mysql_fetch_array($rs);\r\n if(time() > (strtotime($row[\"Update_time\"])+(12*60*60)) ) {\r\n \r\n $this->downloadExchangeRates();\r\n }\r\n }\r\n }", "public function testEventStatus()\n {\n $feed = $this->eventFeed;\n\n // Assert that all entry's have an eventStatus object\n foreach ($feed as $entry) {\n $this->assertTrue($entry->getEventStatus() instanceof Zend_Gdata_Extension_EventStatus);\n }\n\n // Assert one of the entries values\n $entry = $feed[2];\n $this->verifyProperty2($entry, \"eventStatus\", \"value\", \"http://schemas.google.com/g/2005#event.confirmed\");\n }", "public function action_update_check()\n\t{\n\t\tUpdate::add( 'StatusNet', '8676A858-E4B1-11DD-9968-131C56D89593', $this->info->version );\n\t}", "function update_status() {\r\n global $order, $db;\r\n\r\n if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_NOCHEX_ZONE > 0) ) {\r\n $check_flag = false;\r\n $check_query = $db->Execute(\"select zone_id from \" . TABLE_ZONES_TO_GEO_ZONES . \" where geo_zone_id = '\" . MODULE_PAYMENT_NOCHEX_ZONE . \"' and zone_country_id = '\" . $order->billing['country']['id'] . \"' order by zone_id\");\r\n while (!$check_query->EOF) {\r\n if ($check_query->fields['zone_id'] < 1) {\r\n $check_flag = true;\r\n break;\r\n } elseif ($check_query->fields['zone_id'] == $order->billing['zone_id']) {\r\n $check_flag = true;\r\n break;\r\n }\r\n $check_query->MoveNext();\r\n }\r\n\r\n if ($check_flag == false) {\r\n $this->enabled = false;\r\n }\r\n }\r\n }", "public function checkOrdersStatusForUpdateCheckout($observer)\n {\n Mage::log('update status');\n $order = $observer->getOrder();\n $configStatusTrigger = Mage::getStoreConfig('carriers/' . Vaimo_UrbIt_Model_System_Config_Source_Environment::CARRIER_CODE . '/order_status_trigger');\n $checkoutId = $order->getUrbitCheckoutId();\n $isTriggered = $order->getUrbitTriggered();\n\n if ($checkoutId && $isTriggered == 'false') {\n $orderStatus = $order->getState();\n\n if ($orderStatus == $configStatusTrigger) {\n $this->sendUpdateCheckout($order->getId());\n $order->setData('urbit_triggered', 'true');\n $order->save();\n }\n }\n\n }", "function getStatus();", "public function testGetStatus($status)\n\t{\n\t\t$timeSheetStatusChange = new TimeSheetStatusChange($status);\n\n\t\t$this->assertEquals($status, $timeSheetStatusChange->getStatus());\n\t}", "function rstatus() {\n\t\t$this->checkOnce();\n\t\t$versionPath = $this->getVersionPath();\n\t\t$remoteCmd = 'cd '.$versionPath.' && hg status';\n\t\t$this->ssh_exec($remoteCmd);\n\t}", "public function reportStatus()\n {\n if ( ! $this->isRequiredConfigPresent()) {\n $this->reportError('Config problem', 1485984755);\n }\n\n if ( ! $this->isDatabaseOkay()) {\n $this->reportError('Database problem', 1485284407);\n }\n\n echo 'OK';\n }", "function update_status() {\r\n global $order, $db;\r\n if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_AUTHORIZENET_ECHECK_ZONE > 0) ) {\r\n $check_flag = false;\r\n $check = $db->Execute(\"select zone_id from \" . TABLE_ZONES_TO_GEO_ZONES . \" where geo_zone_id = '\" . MODULE_PAYMENT_AUTHORIZENET_ECHECK_ZONE . \"' and zone_country_id = '\" . $order->billing['country']['id'] . \"' order by zone_id\");\r\n while (!$check->EOF) {\r\n if ($check->fields['zone_id'] < 1) {\r\n $check_flag = true;\r\n break;\r\n } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {\r\n $check_flag = true;\r\n break;\r\n }\r\n $check->MoveNext();\r\n }\r\n\r\n if ($check_flag == false) {\r\n $this->enabled = false;\r\n }\r\n }\r\n }", "public function updateStatusFinish()\n {\n $this->resetStatuses();\n }", "public function updateStatus(): void\n {\n $data = json_encode($this->getStatus(), JSON_PRETTY_PRINT);\n File::put(public_path(self::STATUS_FILE_NAME), $data);\n }", "public function get_update_availability()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $payload = $this->request('CheckForUpdate');\n\n if (preg_match('/' . self::CONSTANT_DO_UPDATE . 'true/i', $payload))\n return TRUE;\n else\n return FALSE;\n }", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "protected function in_progress() {\n\t\treturn 'in_progress' === get_option( 'ratesync_sync_status' );\n\t}", "public function testUpdated()\n {\n $feed = $this->eventFeed;\n\n // Assert that the feed's updated date is correct\n $this->assertTrue($feed->getUpdated() instanceof Zend_Gdata_App_Extension_Updated);\n $this->verifyProperty2(\n $feed,\n \"updated\",\n \"text\",\n \"2007-05-31T01:15:00.000Z\"\n );\n\n // Assert that all entry's have an Atom Published object\n foreach ($feed as $entry) {\n $this->assertTrue($entry->getUpdated() instanceof Zend_Gdata_App_Extension_Updated);\n }\n\n // Assert one of the entry's Published dates\n $entry = $feed[2];\n $this->verifyProperty2($entry, \"updated\", \"text\", \"2007-05-17T10:33:49.000Z\");\n }" ]
[ "0.6749489", "0.63809085", "0.6326466", "0.63174194", "0.62091744", "0.61626995", "0.6157364", "0.61325586", "0.6088355", "0.60060173", "0.5962227", "0.5951523", "0.5926973", "0.5921063", "0.59166676", "0.58775574", "0.58715314", "0.5862987", "0.58608496", "0.58494335", "0.5848734", "0.58085716", "0.57967484", "0.5791854", "0.5773741", "0.5773055", "0.57730216", "0.5771783", "0.57716256", "0.57566", "0.5755991", "0.57506424", "0.57446116", "0.57385325", "0.5727176", "0.5726945", "0.57209766", "0.5718302", "0.57163805", "0.57157403", "0.5704985", "0.5699452", "0.5692354", "0.5689658", "0.5675163", "0.5674619", "0.56727314", "0.56727314", "0.56660765", "0.5658429", "0.5657071", "0.56482804", "0.56478655", "0.5639227", "0.5619989", "0.5618489", "0.5593949", "0.5588421", "0.5585041", "0.5579963", "0.5563628", "0.555343", "0.5535182", "0.55348825", "0.55196095", "0.5508798", "0.5504392", "0.5499233", "0.5497938", "0.5492949", "0.5480412", "0.5474378", "0.5473177", "0.5455595", "0.5453389", "0.54533404", "0.54532045", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.5446093", "0.544563", "0.544563", "0.544563", "0.544563", "0.5444022", "0.5435297" ]
0.5978695
10
Tests the translation publishing status.
protected function doTestPublishedStatus() { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); // Unpublish translations. foreach ($this->langcodes as $index => $langcode) { if ($index > 0) { $url = $entity->toUrl('edit-form', ['language' => ConfigurableLanguage::load($langcode)]); $edit = ['content_translation[status]' => FALSE]; $this->drupalGet($url); $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode)); $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->assertFalse($this->manager->getTranslationMetadata($entity->getTranslation($langcode))->isPublished(), 'The translation has been correctly unpublished.'); } } // Check that the last published translation cannot be unpublished. $this->drupalGet($entity->toUrl('edit-form')); $this->assertSession()->fieldDisabled('content_translation[status]'); $this->assertSession()->fieldValueEquals('content_translation[status]', TRUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsPublishing()\n {\n $this->assertFalse(LivePubHelper::is_publishing());\n\n LivePubHelper::init_pub();\n $this->assertTrue(LivePubHelper::is_publishing());\n\n LivePubHelper::stop_pub();\n $this->assertFalse(LivePubHelper::is_publishing());\n }", "public function isPublished()\n {\n return $this->publish_status == Status::PUBLISHED;\n }", "public function shouldBePublished()\n {\n return $this->publish;\n }", "public function isPublished()\n {\n return $this->status == static::PUBLISHED;\n }", "public function isPublished(): bool\n {\n $publishedStatus = ['publish'];\n\n return in_array($this->status, $publishedStatus);\n }", "public function isPublished()\n {\n if(!strcmp($this->getStatus(), 'approved')) {\n return true;\n }\n\n return false;\n }", "public function testPublished()\n {\n $feed = $this->eventFeed;\n\n // Assert that all entry's have an Atom Published object\n foreach ($feed as $entry) {\n $this->assertTrue($entry->getPublished() instanceof Zend_Gdata_App_Extension_Published);\n }\n\n // Assert one of the entry's Published dates\n $entry = $feed[2];\n $this->verifyProperty2($entry, \"published\", \"text\", \"2007-05-09T16:44:38.000Z\");\n }", "function isPublished() {\n\t\tif ($this->status == 'published') {\n\t\t\t$now = time();\n\t\t\tif ($this->datePublish <= $now) {\n\t\t\t\tif ($this->dateUnpublish > $now || $this->dateUnpublish == null) {\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}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function isPublished()\n {\n return ($this->published == 1);\n }", "public function publishedStatus()\n {\n if ( !$this->owner->getScheduledStatus() && !$this->owner->getExpiredStatus() ) {\n return true;\n }\n\n return false;\n }", "public function isPublished()\n {\n if (\n $this->getStatus() === PageStatus::PUBLISHED ||\n ($this->getStatus() === PageStatus::SCHEDULED &&\n $this->getPublishedAt() < new \\DateTime())\n ) {\n return true;\n } else {\n return false;\n }\n }", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function isPublished();", "public function hasTranslationChanges();", "public function isTranslatable() {\n $observerWrapper = $this->getMock('\\EntityDrupalWrapper');\n $mockDrupal = $this->getMockDrupalHandlerForConstructor();\n\n $translatable = new ParagraphsTranslatable($observerWrapper, $mockDrupal);\n $this->assertSame(TRUE, $translatable->isTranslatable());\n }", "public function isPublished()\n {\n if ($this->getStatus() === self::PUBLISHED) {\n return true;\n }\n\n if ($this->getStatus() === self::SCHEDULED) {\n return $this->getPublishedAt() <= new \\DateTime();\n }\n\n return false;\n }", "function isPublished(){\n\t\tif($this->isPublished == 1){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function testTranslationUI() {\n $this->doTestBasicTranslation();\n $this->doTestTranslationOverview();\n $this->doTestOutdatedStatus();\n $this->doTestPublishedStatus();\n $this->doTestAuthoringInfo();\n $this->doTestTranslationEdit();\n $this->doTestTranslationChanged();\n $this->doTestChangedTimeAfterSaveWithoutChanges();\n $this->doTestTranslationDeletion();\n }", "public function testIsPublishScheduled()\n {\n $page = SiteTree::create();\n $page->Title = 'My page';\n $page->PublishOnDate = '2010-01-01 00:00:00';\n $page->AllowEmbargoedEditing = false;\n $page->write();\n\n $this->assertFalse($page->getIsPublishScheduled());\n\n $page->PublishOnDate = '2016-02-01 00:00:00';\n DBDatetime::set_mock_now('2016-01-16 00:00:00');\n $this->assertTrue($page->getIsPublishScheduled());\n\n DBDatetime::set_mock_now('2016-02-16 00:00:00');\n $this->assertFalse($page->getIsPublishScheduled());\n }", "public function isPublished()\n\t{\n\t\treturn ($this->get('published') == self::STATE_PUBLISHED);\n\t}", "public function isPublishedField()\n {\n return $this->get('check_publish') == 1;\n }", "public function isPublished()\n {\n return $this->postID > 0;\n }", "public function isPublished()\n {\n return $this->attribute('state') == self::STATUS_PUBLISHED;\n }", "public function isTranslationOn()\n {\n return !!$this->phptal->getTranslator();\n }", "public function status_subscription(){\n\t\t\treturn true;\n\t\t}", "public function getPublish()\n {\n return $this->shouldBePublished();\n }", "public function hasPublished() {\n return $this->_has(14);\n }", "public function isPublished()\n {\n return $this->published_at->lte(Carbon::now());\n }", "public function renderForNoPublicationHashSetInPiVarsReturnsPublishFailedMessage()\n {\n self::assertEquals(\n $this->fixture->translate('message_publishingFailed'),\n $this->fixture->render()\n );\n }", "public function has_published_pages()\n {\n }", "function is_translatable()\n {\n }", "public function testSuccess()\n\t{\n\t\t$service = $this->getService();\n\t\t$this->mockResponseFromFile('catalogs.publish.success');\n\t\t$response = $service->publish()->pin(\"DEADBEEF\")->execute();\n\t\t$this->assertIsArray($response);\n\t\t$this->assertArrayHasKey('kind', $response);\n\t\t$this->assertArrayHasKey('selfLink', $response);\n\t\t$this->assertArrayHasKey('statusLink', $response);\n\t\t$this->assertEquals('store#catalogPublish', $response['kind']);\n\t}", "public function testEventPublish()\n {\n $event = factory(Events::class)->create();\n $user = factory(User::class)->create();\n $params = ['status' => 1, 'id' => $event->id];\n\n $this->actingAs($user)\n ->seeIsAuthenticatedAs($user)\n ->get(route('events.status', $params))\n ->assertStatus(302)\n ->assertSessionHas(['flash_notification.0.message' => trans('events.flash-publish')]);\n }", "public function isPublished()\n\t{\n\t\tif (!$this->arrData['published'])\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telseif ($this->arrData['start'] > 0 && $this->arrData['start'] > time())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telseif ($this->arrData['stop'] > 0 && $this->arrData['stop'] < time())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public function isPublished()\n {\n # code...\n return !is_null($this->published_at) && $this->published_at < today();\n }", "public function testIsUnPublishScheduled()\n {\n $page = SiteTree::create();\n $page->Title = 'My page';\n $page->PublishOnDate = '2010-01-01 00:00:00';\n $page->AllowEmbargoedEditing = false;\n $page->write();\n\n $this->assertFalse($page->getIsUnPublishScheduled());\n\n $page->UnPublishOnDate = '2016-02-01 00:00:00';\n DBDatetime::set_mock_now('2016-01-16 00:00:00');\n $this->assertTrue($page->getIsUnPublishScheduled());\n\n DBDatetime::set_mock_now('2016-02-16 00:00:00');\n $this->assertFalse($page->getIsUnPublishScheduled());\n }", "public function products_could_be_queried_with_published_status()\n {\n $publishedProductQty = random_int(1, 10);\n factory(Product::class, $publishedProductQty)\n ->states('published')\n ->create();\n\n $unpublishedProductQty = random_int(1, 10);\n factory(Product::class, $unpublishedProductQty)\n ->states('unpublished')\n ->create();\n\n //status\n //act + assert\n $queryResult = $this->productFilter->getList(['published' => true]);\n $this->assertCount($publishedProductQty, $queryResult);\n\n //act + assert\n $queryResult = $this->productFilter->getList(['published' => false]);\n $this->assertCount($unpublishedProductQty, $queryResult);\n }", "public function testStatusDone()\n\t{\n\t\t$service = $this->getService();\n\t\t$this->mockResponseFromFile('catalogs.publish.done');\n\t\t$response = $service->publishStatus()->pin(\"DEADBEEF\")->execute();\n\t\t$this->assertIsArray($response);\n\t\t$this->assertArrayHasKey('kind', $response);\n\t\t$this->assertArrayHasKey('selfLink', $response);\n\t\t$this->assertArrayHasKey('status', $response);\n\t\t$this->assertEquals('store#catalogPublishStatus', $response['kind']);\n\t\t$this->assertEquals('done', $response['status']);\n\t}", "function checkPublish(){\n\t\trequire('variables.php');\t\t\n\t\t// check the number of results\n\t\t$numResults = $this->getResults(\"count\");\n\t\t// check the number of questions\n\t\t$numQuestions = $this->getQuestions(\"count\");\n\t\t// check the number of options\n\t\t$listQuestion = explode(',', $this->getQuestions());\n\t\t\n\t\tif($numQuestions != 0){\n\t\t\t$questionState = true;\n\t\t\t$optionState = true;\n\t\t\tforeach($listQuestion as $question){\n\t\t\t\t// check the number of options for this question\n\t\t\t\t$numOptions = $this->getOptions($question, \"count\");\n\t\t\t\tif($numOptions < $VAR_QUIZ_MIN_OPTIONS){\n\t\t\t\t\t$optionState = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t$questionState = false;\n\t\t\t$optionState = false;\n\t\t}\n\t\t// run through the checks, return false if failed\n\t\tif($numResults < $VAR_QUIZ_MIN_RESULT || $numQuestions < $VAR_QUIZ_MIN_QUESTIONS || !$optionState){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public function hasPublished() {\n return $this->_has(6);\n }", "protected function hasPublishedVersion(): bool {\n $revision = $this->getCurrentRevision();\n if (NULL === $revision) {\n return FALSE;\n }\n\n return $revision->isPublished();\n }", "public function isTranslatable();", "public function isTranslatable();", "public function isScheduled()\n {\n return $this->publish_status == Status::SCHEDULED;\n }", "public function isTranslated();", "function publish() {\n\t\tif (! $this->id) {\n\t\t\treturn false;\n\t\t}\n\t\t/* This method formerly updated the published_date, but that was removed in \n\t\t * favor of giving manual control of the published_date to the author\n\t\t * $this->saveField('published_date', date('Y-m-d', time()).' 00:00:00') */\n\t\treturn $this->saveField('is_published', 1);\n\t}", "protected function isTranslatable()\n {\n return Blog::isTranslatable();\n }", "public function testEventCanBeSubscribedToAndCanBePublished()\n\t{\n\t\tConfig::set('history::bus.driver', 'memory');\n\n\t\t$expected = false;\n\n\t\tBus::subscribe('TestEvent', function($event) use (&$expected)\n\t\t{\n\t\t\t$expected = $event->data == 'Hello World!';\n\t\t});\n\n\t\tBus::publish(new TestEvent);\n\n\t\t$this->assertTrue($expected);\n\t}", "protected function doTestTranslationOverview() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $translate_url = $entity->toUrl('drupal:content-translation-overview');\n $this->drupalGet($translate_url);\n $translate_url->setAbsolute(FALSE);\n\n foreach ($this->langcodes as $langcode) {\n if ($entity->hasTranslation($langcode)) {\n $language = new Language(['id' => $langcode]);\n // Test that label is correctly shown for translation.\n $view_url = $entity->toUrl('canonical', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//a[@href='{$view_url}']\", $entity->getTranslation($langcode)->label() ?? $entity->getTranslation($langcode)->id());\n // Test that edit link is correct for translation.\n $edit_path = $entity->toUrl('edit-form', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//ul[@class='dropbutton']/li/a[@href='{$edit_path}']\", 'Edit');\n }\n }\n }", "public function testGetAsPublic(): void\n {\n $job = factory(JobPoster::class)->state('live')->create();\n $response = $this->json('get', \"$this->baseUrl/jobs/$job->id\");\n $response->assertOk();\n $expected = array_merge($job->toArray(), $job->getTranslations());\n $response->assertJson($expected);\n }", "public function testIfPDFDocumentsListIncludesTranslation()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost([\n 'username' => 'demo',\n 'password' => 'demo',\n ]);\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_repositoryClass' => 'document',\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check if German values are still the same\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n static::assertEquals($documentType['name'], $documentType['description']);\n }\n\n $this->reset();\n Shopware()->Container()->reset('translation');\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n switch ($documentType['id']) {\n case 1:\n static::assertEquals('Invoice', $documentType['description']);\n break;\n case 2:\n static::assertEquals('Notice of delivery', $documentType['description']);\n break;\n case 3:\n static::assertEquals('Credit', $documentType['description']);\n break;\n case 4:\n static::assertEquals('Cancellation', $documentType['description']);\n break;\n }\n }\n }", "public function check() {\n\t\t$result = true;\n\t\t\n\t\tif(empty($this->user_id)) {\n\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_USER_ID'));\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\tif(empty($this->akeebasubs_level_id)) {\n\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_LEVEL_ID'));\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\tif(empty($this->publish_up)) {\n\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_PUBLISH_UP'));\n\t\t\t$result = false;\n\t\t} else {\n\t\t\tJLoader::import('joomla.utilities.date');\n\t\t\t$regex = '/^\\d{1,4}(\\/|-)\\d{1,2}(\\/|-)\\d{2,4}[[:space:]]{0,}(\\d{1,2}:\\d{1,2}(:\\d{1,2}){0,1}){0,1}$/';\n\t\t\tif(!preg_match($regex, $this->publish_up)) {\n\t\t\t\t$this->publish_up = '2000-01-01';\n\t\t\t}\n\t\t\t$test = new JDate($this->publish_up);\n\t\t\tif($test->toSql() == '0000-00-00 00:00:00') {\n\t\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_PUBLISH_UP'));\n\t\t\t\t$result = false;\n\t\t\t} else {\n\t\t\t\t$this->publish_up = $test->toSql();\n\t\t\t}\n\t\t}\n\n\t\tif(empty($this->publish_down)) {\n\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_PUBLISH_DOWN'));\n\t\t\t$result = false;\n\t\t} else {\n\t\t\tJLoader::import('joomla.utilities.date');\n\t\t\t$regex = '/^\\d{1,4}(\\/|-)\\d{1,2}(\\/|-)\\d{2,4}[[:space:]]{0,}(\\d{1,2}:\\d{1,2}(:\\d{1,2}){0,1}){0,1}$/';\n\t\t\tif(!preg_match($regex, $this->publish_down)) {\n\t\t\t\t$this->publish_down = '2038-01-01';\n\t\t\t}\n\t\t\t$test = new JDate($this->publish_down);\n\t\t\tif($test->toSql() == '0000-00-00 00:00:00') {\n\t\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_PUBLISH_DOWN'));\n\t\t\t\t$result = false;\n\t\t\t} else {\n\t\t\t\t$this->publish_down = $test->toSql();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If the current date is outside the publish_up / publish_down range\n\t\t// then disable the subscription. Otherwise make sure it's enabled.\n\t\tJLoader::import('joomla.utilities.date');\n\t\t$jNow = new JDate();\n\t\t$uNow = $jNow->toUnix();\n\t\t$jDown = new JDate($this->publish_down);\n\t\t$jUp = new JDate($this->publish_up);\n\t\t\n\t\tif( ($uNow >= $jDown->toUnix()) ) {\n\t\t\t$this->enabled = 0;\n\t\t} elseif( ($uNow >= $jUp->toUnix()) && ($uNow < $jDown->toUnix())) {\n\t\t\t$this->enabled = ($this->state == 'C') ? 1 : 0;\n\t\t} else {\n\t\t\t$this->enabled = 0;\n\t\t}\n\t\t\n\t\tif(is_array($this->params)) {\n\t\t\tif(!empty($this->params)) {\n\t\t\t\t$this->params = json_encode($this->params);\n\t\t\t}\n\t\t}\n\t\tif(is_null($this->params) || empty($this->params)) {\n\t\t\t$this->params = '';\n\t\t}\n\t\t\n\t\tif(empty($this->processor)) {\n\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_PROCESSOR'));\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\tif(empty($this->processor_key) && !$this->_dontCheckPaymentID) {\n\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_PROCESSOR_KEY'));\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\tif(!in_array($this->state, array('N','P','C','X'))) {\n\t\t\t$this->setError(JText::_('COM_AKEEBASUBS_SUBSCRIPTION_ERR_STATE'));\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function check() {\n\n // Set name\n $this->title = htmlspecialchars_decode($this->title, ENT_QUOTES);\n\n // Set alias\n $this->alias = JApplication::stringURLSafe($this->alias);\n if (empty($this->alias)) {\n $this->alias = JApplication::stringURLSafe($this->title);\n }\n\n // Check the publish down date is not earlier than publish up.\n if ($this->publish_down > $this->_db->getNullDate() && $this->publish_down < $this->publish_up) {\n $this->setError(JText::_('JGLOBAL_START_PUBLISH_AFTER_FINISH'));\n return false;\n }\n\n return true;\n }", "public function testSaveTranslation(): void\n {\n $data = [];\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n\n $data['topic'] = 'Un sujet intéressant';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->getPhpcrSession()->save();\n\n // Then test we have what we expect in the content repository\n $node_en = $this->session->getNode($this->nodeNameForLocale('en'));\n $node_fr = $this->session->getNode($this->nodeNameForLocale('fr'));\n\n $this->assertTrue($node_en->hasProperty('topic'));\n $this->assertTrue($node_fr->hasProperty('topic'));\n $this->assertTrue($node_en->hasProperty('text'));\n $this->assertTrue($node_fr->hasProperty('text'));\n $this->assertFalse($node_fr->hasProperty('author'));\n $this->assertFalse($node_en->hasProperty('author'));\n\n $this->assertEquals('Some interesting subject', $node_en->getPropertyValue('topic'));\n $this->assertEquals('Un sujet intéressant', $node_fr->getPropertyValue('topic'));\n $this->assertEquals('Lorem ipsum...', $node_en->getPropertyValue('text'));\n $this->assertEquals('Lorem ipsum...', $node_fr->getPropertyValue('text'));\n }", "protected function hasAccessOnPublished()\n\t{\n\t\treturn $this->User->hasAccess($GLOBALS['TL_DCA'][$this->strTable]['config']['ptable'] . '::published', 'alexf');\t\t\n\t}", "public function hasPublishedTag() {\n return $this->_has(1);\n }", "public function isTranslatable(): bool\n {\n return $this->isTranslatable;\n }", "public function getIsPublishScheduled()\n {\n /** @var DBDatetime $publishTime */\n $publishTime = $this->owner->dbObject('PublishOnDate');\n\n if ($publishTime->InFuture()) {\n return true;\n }\n\n if ((int) $this->owner->PublishJobID !== 0) {\n return true;\n }\n\n return false;\n }", "public function testIsInscriptionsOpen()\n {\n \n }", "public function isPublished($sequence)\n {\n return $this->sequencer->isAvailable($sequence);\n }", "public function testCanGetMessageByKeyFromTranslator()\n {\n $this->translator->load();\n $message = $this->translator->get('test_message');\n $this->assertEquals('file has been loaded', $message);\n }", "private function should_display_translate_notice() {\n\t\tif ( defined( 'HESTIA_PRO_FLAG' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( get_option( 'show_on_front' ) === 'page' ) {\n\t\t\tif ( defined( 'POLYLANG_VERSION' ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif ( defined( 'TRP_PLUGIN_VERSION' ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif ( get_option( 'icl_sitepress_settings' ) !== false ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t}", "public function hasTranslations()\n {\n return !empty($this->translations);\n }", "public function isActive()\n {\n return $this->isPublished();\n }", "public function translatable()\n {\n return $this->translatable !== false;\n }", "protected function isPublished()\n\t{\n\t\tif($this->blnIsPublished !== null)\n\t\t{\n\t\t\treturn $this->blnIsPublished;\n\t\t}\n\t\t\n\t\tif($this->blnParentView)\n\t\t{\n\t\t\t$strQuery = 'SELECT published FROM ' . $GLOBALS['TL_DCA'][$this->strTable]['config']['ptable'] . ' WHERE id=' . $this->intId;\t\t\t\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$strQuery \t= 'SELECT published FROM ' . $GLOBALS['TL_DCA'][$this->strTable]['config']['ptable'] \n\t\t\t\t\t\t. ' WHERE id=(SELECT pid FROM ' . $this->strTable . ' WHERE id=' . $this->intId . ')';\n\t\t}\n\n\t\t$this->blnIsPublished = (bool) $this->Database->query($strQuery)->published;\n\t\treturn $this->blnIsPublished;\n\t}", "public function isActive()\n {\n return $this->is_published;\n }", "public function getIsPublished()\n\t{\n\t\treturn $this->is_published;\n\t}", "public function hasTranslator();", "public function hasTranslator(): bool;", "public function testStatusBusy()\n\t{\n\t\t$service = $this->getService();\n\t\t$this->mockResponseFromFile('catalogs.publish.busy');\n\t\t$response = $service->publishStatus()->pin(\"DEADBEEF\")->execute();\n\t\t$this->assertIsArray($response);\n\t\t$this->assertArrayHasKey('kind', $response);\n\t\t$this->assertArrayHasKey('selfLink', $response);\n\t\t$this->assertArrayHasKey('status', $response);\n\t\t$this->assertEquals('store#catalogPublishStatus', $response['kind']);\n\t\t$this->assertEquals('busy', $response['status']);\n\t}", "function block_core_calendar_update_has_published_post_on_transition_post_status( $new_status, $old_status, $post ) {\n\t\tif ( $new_status === $old_status ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( 'post' !== get_post_type( $post ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( 'publish' !== $new_status && 'publish' !== $old_status ) {\n\t\t\treturn;\n\t\t}\n\n\t\tblock_core_calendar_update_has_published_posts();\n\t}", "static function content_object_is_published($object_id)\r\n {\r\n return ProfilerDataManager :: get_instance()->content_object_is_published($object_id);\r\n }", "protected function _publish_status()\n\t{\n\t\t//$fields = $this->fields();\n\t\t$fields = $fields = array_keys($this->table_info()); // used to prevent an additional query that the fields() method would create\n\n\t\tif (in_array('published', $fields))\n\t\t{\n\t\t\tif (in_array('published', $this->boolean_fields))\n\t\t\t{\n\t\t\t\t$this->db->where(array($this->table_name.'.published' => 1));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->db->where(array($this->table_name.'.published' => 'yes'));\n\t\t\t}\n\t\t}\n\n\t\tif (in_array('active', $fields))\n\t\t{\n\t\t\tif (in_array('active', $this->boolean_fields))\n\t\t\t{\n\t\t\t\t$this->db->where(array($this->table_name.'.active' => 1));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->db->where(array($this->table_name.'.active' => 'yes'));\n\t\t\t}\n\t\t}\n\n\t\tif (in_array('publish_date', $fields))\n\t\t{\n\t\t\t$this->db->where(array($this->table_name.'.publish_date <=' => datetime_now()));\n\t\t}\n\t}", "public function justPublished()\n {\n\n return $this->created_at->gt(Carbon::now()->subMinute());\n }", "static function content_object_is_published($object_id)\r\n {\r\n return PersonalMessengerDataManager :: get_instance()->content_object_is_published($object_id);\r\n }", "public function testDSTIdPublishPost()\n {\n }", "public function isTranslatable()\n\t{\n\t\treturn true;\n\t}", "function comment_subscription_status() {\n\tglobal $comment;\n\treturn !!_stc()->is_subscribed( $comment->comment_ID );\n}", "function documentIsPendingWebPublishing($iDocumentID) {\n\t\tglobal $default;\n\t\t$sQuery = \"SELECT id FROM $default->web_documents_table WHERE document_id = ? AND status_id = 1\";/*ok*/\n $aParams = array($iDocumentID);\n\t\t$sql = $default->db;\n\t\t$sql->query(array($sQuery, $aParams));\n\t\tif ($sql->next_record()) {\n\t\t\treturn true;;\n\t\t}\n\t\treturn false;\n\t}", "public function testTranslation(): void\n {\n $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR);\n $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Día Nacional de la Memoria por la Verdad y la Justicia']);\n }", "public function test_should_deliver_status() {\n\n\t\t$webhook = LLMS_REST_API()->webhooks()->create( array(\n\t\t\t'delivery_url' => 'https://mock.tld',\n\t\t\t'topic' => 'student.created',\n\t\t) );\n\n\t\t// Inactive.\n\t\t$this->assertFalse( LLMS_Unit_Test_Util::call_method( $webhook, 'should_deliver', array( array( $this->factory->student->create() ) ) ) );\n\n\t\t// Active.\n\t\t$webhook->set( 'status', 'active' )->save();\n\t\t$this->assertTrue( LLMS_Unit_Test_Util::call_method( $webhook, 'should_deliver', array( array( $this->factory->student->create() ) ) ) );\n\n\t}", "public function testEmptyTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body', 'description'],\n 'allowEmptyTranslations' => false,\n ]);\n $table->setLocale('spa');\n $result = $table->find()->first();\n $this->assertNull($result->description);\n }", "protected function canBeRepublished(): bool {\n $revision = $this->nodeRevisionManager->loadLatestPublishedRevision($this->node());\n if (NULL === $revision) {\n return FALSE;\n }\n\n return !$this->node()->isPublished();\n }", "public function ajax_get_translation_status()\n {\n $type = ee()->input->get('type', TRUE);\n $id = ee()->input->get('id', TRUE);\n\n $status = FALSE;\n\n $detailed = ee()->publisher_setting->detailed_translation_status();\n\n switch ($type)\n {\n case 'phrase':\n $status = ee()->publisher_phrase->is_translated_formatted($id, $detailed);\n break;\n case 'category':\n $status = ee()->publisher_category->is_translated_formatted($id, $detailed);\n break;\n case 'entry':\n if (strstr($id, ','))\n {\n $id = explode(',', $id);\n }\n\n if (is_array($id))\n {\n $status = FALSE;\n $translated_entries = array();\n\n foreach ($id as $entry_id)\n {\n if ($status = ee()->publisher_entry->is_translated_formatted($entry_id, $detailed))\n {\n $translated_entries[$entry_id] = $status;\n }\n }\n\n return ee()->publisher_helper->send_ajax_response(json_encode($translated_entries));\n }\n else\n {\n $status = ee()->publisher_entry->is_translated_formatted($id, $detailed);\n }\n break;\n }\n\n ee()->publisher_helper->send_ajax_response($status);\n }", "function unpublish() {\n\t\tif (! $this->id) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $this->saveField('is_published', 0);\n\t}", "public function setStatus ($value) {\n\t\t$vals = array(\"Published\", \"Draft\");\n\t\tif (in_array($value, $vals)) {\n\t\t\t$this->setData(\"pageStatus\", $value);\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->setMessage(LANG_INVALID.\" \".LANG_STATUS);\n\t\t\treturn false;\n\t\t}\n\t}", "public function isTranslatable()\n {\n return $this->isTranslatable;\n }", "protected function doTestBasicTranslation() {\n // Create a new test entity with original values in the default language.\n $default_langcode = $this->langcodes[0];\n $values[$default_langcode] = $this->getNewEntityValues($default_langcode);\n // Create the entity with the editor as owner, so that afterwards a new\n // translation is created by the translator and the translation author is\n // tested.\n $this->drupalLogin($this->editor);\n $this->entityId = $this->createEntity($values[$default_langcode], $default_langcode);\n $this->drupalLogin($this->translator);\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertNotEmpty($entity, 'Entity found in the database.');\n $this->drupalGet($entity->toUrl());\n $this->assertSession()->statusCodeEquals(200);\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $this->assertCacheContexts($this->defaultCacheContexts);\n\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n $translation = $this->getTranslation($entity, $default_langcode);\n foreach ($values[$default_langcode] as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $default_langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('@property correctly stored in the default language.', ['@property' => $property]);\n $this->assertEquals($value, $stored_value, $message);\n }\n\n // Add a content translation.\n $langcode = 'it';\n $language = ConfigurableLanguage::load($langcode);\n $values[$langcode] = $this->getNewEntityValues($langcode);\n\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n\n // Assert that HTML is not escaped unexpectedly.\n if ($this->testHTMLEscapeForAllLanguages) {\n $this->assertSession()->responseNotContains('&lt;span class=&quot;translation-entity-all-languages&quot;&gt;(all languages)&lt;/span&gt;');\n $this->assertSession()->responseContains('<span class=\"translation-entity-all-languages\">(all languages)</span>');\n }\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl());\n $this->assertCacheContexts(Cache::mergeContexts(['languages:language_content'], $this->defaultCacheContexts));\n\n // Reset the cache of the entity, so that the new translation gets the\n // updated values.\n $metadata_source_translation = $this->manager->getTranslationMetadata($entity->getTranslation($default_langcode));\n $metadata_target_translation = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));\n\n $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid';\n if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) {\n $this->assertEquals($this->translator->id(), $metadata_target_translation->getAuthor()->id(), new FormattableMarkup('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode]));\n\n $this->assertNotEquals($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(),\n new FormattableMarkup('Author of the target translation @target different from the author of the source translation @source for translatable owner field.',\n ['@target' => $langcode, '@source' => $default_langcode]));\n }\n else {\n $this->assertEquals($this->editor->id(), $metadata_target_translation->getAuthor()->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');\n }\n\n $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created';\n if ($entity->getFieldDefinition($created_field_name)->isTranslatable()) {\n // Verify that the translation creation timestamp of the target\n // translation language is newer than the creation timestamp of the source\n // translation default language for the translatable created field.\n $this->assertGreaterThan($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime());\n }\n else {\n $this->assertEquals($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');\n }\n\n if ($this->testLanguageSelector) {\n // Verify that language selector is correctly disabled on translations.\n $this->assertSession()->fieldNotExists('edit-langcode-0-value');\n }\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n // Switch the source language.\n $langcode = 'fr';\n $language = ConfigurableLanguage::load($langcode);\n $source_langcode = 'it';\n $edit = ['source_langcode[source]' => $source_langcode];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n // This does not save anything, it merely reloads the form and fills in the\n // fields with the values from the different source language.\n $this->drupalGet($add_url);\n $this->submitForm($edit, 'Change');\n $this->assertSession()->fieldValueEquals(\"{$this->fieldName}[0][value]\", $values[$source_langcode][$this->fieldName][0]['value']);\n\n // Add another translation and mark the other ones as outdated.\n $values[$langcode] = $this->getNewEntityValues($langcode);\n $edit = $this->getEditValues($values, $langcode) + ['content_translation[retranslate]' => TRUE];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $source_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextContains('Source language');\n\n // Check that the entered values have been correctly stored.\n foreach ($values as $langcode => $property_values) {\n $translation = $this->getTranslation($entity, $langcode);\n foreach ($property_values as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]);\n $this->assertEquals($value, $stored_value, $message);\n }\n }\n }" ]
[ "0.69824964", "0.65593195", "0.6530755", "0.6523578", "0.6489113", "0.6405633", "0.63548523", "0.62925905", "0.6262866", "0.6259605", "0.6255526", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6243924", "0.6236565", "0.61834425", "0.6170078", "0.60933095", "0.6028338", "0.59966105", "0.59809214", "0.5980325", "0.5973859", "0.597371", "0.5965026", "0.59527045", "0.5866111", "0.58534443", "0.58508205", "0.5825254", "0.57911974", "0.5763265", "0.5762736", "0.57587695", "0.5748277", "0.5726241", "0.5704342", "0.5703247", "0.5698747", "0.5655463", "0.56502736", "0.56385285", "0.5611287", "0.5611287", "0.56035787", "0.5584579", "0.5579319", "0.5538428", "0.5516044", "0.550688", "0.5498918", "0.5485278", "0.5475964", "0.5475342", "0.54650426", "0.54481953", "0.54122514", "0.5401209", "0.53961575", "0.5375824", "0.5375571", "0.53689575", "0.53655565", "0.5362715", "0.5349673", "0.53427094", "0.53308284", "0.53096676", "0.5302619", "0.5300015", "0.5284199", "0.52606905", "0.52602446", "0.5252325", "0.52381635", "0.52339697", "0.51945096", "0.5192161", "0.51819503", "0.51720995", "0.516644", "0.5163885", "0.5162792", "0.51525265", "0.51354575", "0.513459", "0.51304734", "0.5128707", "0.5125646", "0.5122237" ]
0.7371762
0
Tests the translation authoring information.
protected function doTestAuthoringInfo() { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $values = []; // Post different authoring information for each translation. foreach ($this->langcodes as $index => $langcode) { $user = $this->drupalCreateUser(); $values[$langcode] = [ 'uid' => $user->id(), 'created' => REQUEST_TIME - mt_rand(0, 1000), ]; $edit = [ 'content_translation[uid]' => $user->getAccountName(), 'content_translation[created]' => $this->container->get('date.formatter')->format($values[$langcode]['created'], 'custom', 'Y-m-d H:i:s O'), ]; $url = $entity->toUrl('edit-form', ['language' => ConfigurableLanguage::load($langcode)]); $this->drupalGet($url); $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode)); } $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); foreach ($this->langcodes as $langcode) { $metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode)); $this->assertEquals($values[$langcode]['uid'], $metadata->getAuthor()->id(), 'Translation author correctly stored.'); $this->assertEquals($values[$langcode]['created'], $metadata->getCreatedTime(), 'Translation date correctly stored.'); } // Try to post non valid values and check that they are rejected. $langcode = 'en'; $edit = [ // User names have by default length 8. 'content_translation[uid]' => $this->randomMachineName(12), 'content_translation[created]' => '19/11/1978', ]; $this->drupalGet($entity->toUrl('edit-form')); $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode)); $this->assertSession()->statusMessageExists('error'); $metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode)); $this->assertEquals($values[$langcode]['uid'], $metadata->getAuthor()->id(), 'Translation author correctly kept.'); $this->assertEquals($values[$langcode]['created'], $metadata->getCreatedTime(), 'Translation date correctly kept.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRequireAuthor()\n {\n $this->markTestIncomplete('Not yet implemented.');\n }", "public function testGetAuthor(): void\n {\n $result = new ReachResult;\n $user = factory(User::class)->make();\n $tweet = factory(Tweet::class)->states(['deterministic'])->make();\n $tweet->user = $user;\n $result->setTweet($tweet);\n\n // Assertions\n $this->assertSame($user, $result->getAuthor());\n }", "public function testCreateAuthorTest()\n {\n $payload = [\n 'name' => 'Author Test',\n ];\n\n $this->actingAs($this->user, 'api')->postJson('/api/authors', $payload, [])\n ->assertStatus(201)->assertJsonStructure([\n 'data' => ['id', 'name'],\n ])->assertJson([\n 'data' => [ 'name' => $payload['name'] ],\n ]);\n }", "public function testAuthorMutator()\n {\n $this->assertTrue(true);\n }", "public function checkAuthor()\n {\n if ($this->author()) {\n return $this->author->name;\n }\n return 'N/A';\n }", "public function testAuthor()\n {\n $feed = $this->eventFeed;\n\n // Assert that the feed's author is correct\n $feedAuthor = $feed->getAuthor();\n $this->assertEquals($feedAuthor, $feed->author);\n $this->assertEquals(1, count($feedAuthor));\n $this->assertTrue($feedAuthor[0] instanceof Zend_Gdata_App_Extension_Author);\n $this->verifyProperty2($feedAuthor[0], \"name\", \"text\", \"GData Ops Demo\");\n $this->verifyProperty2($feedAuthor[0], \"email\", \"text\", \"[email protected]\");\n\n // Assert that each entry has valid author data\n foreach ($feed as $entry) {\n $entryAuthor = $entry->getAuthor();\n $this->assertEquals(1, count($entryAuthor));\n $this->verifyProperty2($entryAuthor[0], \"name\", \"text\", \"GData Ops Demo\");\n $this->verifyProperty2($entryAuthor[0], \"email\", \"text\", \"[email protected]\");\n $this->verifyProperty($entryAuthor[0], \"uri\", null);\n }\n }", "public function testAuthorPageTest()\n {\n $response = $this->get('/authors');\n\n $response->assertStatus(302); //expect 302 since not logged in\n }", "public function testGetAuthor() {\n $this->get('/api/author/3')\n ->seeJson(['id' => 3,]);\n }", "public static function authorizable()\n {\n return true;\n }", "public function is_author($author = '')\n {\n }", "public function isAuthor()\n {\n $int;\n foreach ( $this->u_r_id as $int)\n {\n if($int==3)\n return true;\n }\n return false;\n }", "public function author();", "public function is_author() {\n global $USER;\n return ($USER->id == $this->_authorid);\n }", "function get_the_author_aim()\n {\n }", "function GetAuthor()\n {\n return 'texus';\n }", "public function testAuthor()\n {\n $author = $this->getMockBuilder(UserInterface::class)->getMock();\n $conversation = new Conversation();\n $this->assertNull($conversation->getAuthor());\n\n $conversation->setAuthor($author);\n $this->assertSame($author, $conversation->getAuthor());\n }", "public function testGetAllAuthors() {\n $this->get('/api/authors')\n ->seeJson(['id' => 2,]);\n }", "public function getAuthor() {}", "abstract public function getAuthor();", "public function testTranslationUI() {\n $this->doTestBasicTranslation();\n $this->doTestTranslationOverview();\n $this->doTestOutdatedStatus();\n $this->doTestPublishedStatus();\n $this->doTestAuthoringInfo();\n $this->doTestTranslationEdit();\n $this->doTestTranslationChanged();\n $this->doTestChangedTimeAfterSaveWithoutChanges();\n $this->doTestTranslationDeletion();\n }", "public function testGetSvnAuthor($line)\n {\n return $this->getAuthor($line);\n\n }", "function checkAuthors () {\n\t\tif ( count ( $this->authors) == 0 ) return ;\n\t\n\t\tif ( isset($this->existing_q) ) {\n\t\t\t$this->wd->loadItem ( $this->existing_q ) ;\n\t\t\t$i = $this->wd->getItem ( $this->existing_q ) ;\n\t\t\t$c1 = $i->getClaims ( $this->props['author'] ) ;\n\t\t\t$c2 = $i->getClaims ( $this->props['short author'] ) ;\n\t\t\t$this->invalidateExistingAuthors ( $c1 ) ;\n\t\t\t$this->invalidateExistingAuthors ( $c2 ) ;\n\t\t\t\n\t\t\t// Special case: Single author, one author already in item...\n\t\t\tif ( count($this->authors) == 1 && count($c1)+count($c2) == 1 ) {\n\t\t\t\t$this->authors[1]->hadthat = true ;\n\t\t\t}\n\t\t}\n\t}", "public function getAuthorname() {}", "public function testShowAllAuthors()\n {\n\n $this->seeInDatabase('authors',[\n 'username'=> 'Smith72'\n ]);\n\n\n \n }", "function the_author_aim()\n {\n }", "public function testCopyleftWhenAuthorshipOptionEnabled()\n {\n $this->service->assignCopyleft($this->author, $this->resource, new Authorship(1));\n\n // use black box approach by testing transformation result\n $doc = new Document();\n $this->resource->build()->transform($doc);\n\n $body = $doc->getEntity('resource')->property('body')->getValue();\n\n $this->assertEquals(\n 1,\n preg_match('~' . $this->author->getFullName() . ', ' . self::AGENCY_NAME . '?\\.$~', strip_tags($body)),\n 'Author doesn\\'t exists in article copyleft'\n );\n }", "public function getAuthor();", "public function getAuthor();", "public function getAuthor();", "public function authorsInitials();", "function GetAuthor()\n {\n return 'calguy1000';\n }", "function get_the_author_yim()\n {\n }", "public function testGetAllBooksFromAuthor()\n {\n $author_actions = new AuthorsActions();\n\n $response = $author_actions->handleGetBooksFromAuthorAction(['name' => 'terry_pratchett'], []);\n\n self::assertEquals(RestResponse::STATUS_OK, $response->getCode());\n self::assertEquals(3, count($response->getData()));\n }", "public function testGetGitAuthor($line)\n {\n return $this->getAuthor($line);\n\n }", "public function testGetAuthorizationSubjectsMe()\n {\n }", "protected function isAuthor() {\n return $this->getSocialUser() &&\n $this->getSocialUser()->ID === (int)$this->connectObj->CreatedBySocialUser->ID;\n }", "public function testAuthorPageView()\n {\n $author = factory(\\App\\Author::class)->create(\n [\n 'id' => '1'\n ]\n );\n\n $response = $this->get('api/author/1');\n\n $response->assertStatus(200);\n }", "function get_author_name($auth_id = \\false)\n {\n }", "function the_author_yim()\n {\n }", "function GetAuthorEmail()\n {\n return '[email protected]';\n }", "public function get_author_permastruct()\n {\n }", "public function isTranslated();", "public function get_author()\n {\n return 'Kamen Blaginov';\n }", "public function get_author()\n {\n return 'Kamen Blaginov';\n }", "public function authorizable(): bool\n {\n return false;\n }", "function compare_author($a, $b) \n{ \n if (($a[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG) && ($b[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG))\n return strnatcmp($a[$GLOBALS['MYFIELDS'][0]], $b[$GLOBALS['MYFIELDS'][0]]);\n if ($a[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG)\n return 1;\n if ($b[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG)\n return -1;\n \n return strcmp_from_utf8($a[$GLOBALS['MYFIELDS'][0]], $b[$GLOBALS['MYFIELDS'][0]]); \n}", "public function author() : string\n {\n if (isset($this->entity->author)) {\n return $this->entity->author->name;\n }\n\n return 'Sin autor';\n }", "public function whois_looking_check(){\n\t\tglobal $post;\n\t\t$post_id = get_the_ID();\n\t\t$current_user_id = get_current_user_id();\n\t\t$author_user_id = $post->post_author;\n\t\tif ($current_user_id == $author_user_id){\n\t\t\t$include_file = plugin_dir_path( __FILE__ ) . \"subscription_view_author.php\";\n\t\t\tinclude_once($include_file);\n\t\t\tif (isset ($$subscription_view_author)){return;}\n\t\t\t$subscription_view_author = new subscription_view_author($post_id);\n\t\t}\n\t}", "private function isAuthor($id)\n {\n $article = Article::find($id);\n if(Auth::user()->id === $article->user_id):\n return true;\n else:\n return false;\n endif;\n }", "public function authors_is_required()\n {\n $entry = Entry::factory()->raw();\n $category = Category::factory()->create();\n\n Sanctum::actingAs(User::factory()->create());\n\n $this->jsonApi()->withData([\n 'type' => 'entries',\n 'attributes' => $entry,\n 'relationships' => [\n 'categories' => [\n 'data' => [\n 'id' => $category->getRouteKey(),\n 'type' => 'categories'\n ]\n ]\n ]\n ])->post(route('api.v1.entries.create'))\n ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY) //422\n ->assertJsonFragment(['source' => ['pointer' => '/data']]);\n\n $this->assertDatabaseMissing('entries', $entry);\n }", "public function get_authors();", "public function testCopyleft()\n {\n $this->service->assignCopyleft($this->author, $this->resource, new Authorship(0));\n\n // use black box approach by testing transformation result\n $doc = new Document();\n $this->resource->build()->transform($doc);\n\n $body = $doc->getEntity('resource')->property('body')->getValue();\n $this->assertEquals(\n 1,\n preg_match('~' . self::AGENCY_NAME . '?\\.$~', strip_tags($body)),\n 'Agency name doesn\\'t exists in article copyleft'\n );\n }", "protected function _syncAuthor() {}", "public function testInternationalization(): void\n {\n $properCased = 'Iñtërnâtiônàlizætiøn';\n $this->assertEquals($properCased, Formatter::nameCase(mb_strtolower($properCased)));\n }", "function the_author_msn()\n {\n }", "public function testGetAuthorizationSubject()\n {\n }", "function get_the_author_icq()\n {\n }", "function publisher_userIsAuthor($itemObj)\r\n{\r\n global $xoopsUser;\r\n return (is_object($xoopsUser) && is_object($itemObj) && ($xoopsUser->uid() == $itemObj->uid()));\r\n}", "function the_author_icq()\n {\n }", "public function get_author()\n\t{\n\t\treturn '';\n\t}", "function get_the_author_msn()\n {\n }", "function is_translatable()\n {\n }", "function get_the_modified_author()\n {\n }", "public function test_transform_minimal() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, 'r126299: ph - commit message');\n\t\t}", "public function testScan()\n {\n try {\n $this->client->scan('author', 'name');\n } catch (\\Guzzle\\Http\\Exception\\CurlException $exception) {\n $this->assertContains('scan/author/name', $exception->getMessage());\n }\n }", "public function testDeleteIfAuthor()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $this->logInAsUser();\n\n $this->task->setUser($this->authUser);\n $this->client->request('GET', '/tasks/'.$id.'/delete');\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertContains('Superbe! La tâche a bien été supprimée.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function testCheckIsCaseInsensitive()\n {\n $this->assertTrue($this->Acl->check('hardy', 'controllers/forms/new'));\n $this->assertTrue($this->Acl->check('Role/data_acquirer', 'controllers/forms/new'));\n $this->assertTrue($this->Acl->check('hardy', 'controllers/FORMS/NEW'));\n $this->assertTrue($this->Acl->check('Role/data_acquirer', 'controllers/FORMS/NEW'));\n }", "public function testCanGetMessageByKeyFromTranslator()\n {\n $this->translator->load();\n $message = $this->translator->get('test_message');\n $this->assertEquals('file has been loaded', $message);\n }", "function get_the_author_description()\n {\n }", "public function PrintAuthInfo() \n {\n if($this->IsAuthenticated())\n echo \"Du är inloggad som: <b>\" . $this->GetAcronym() . \"</b> (\" . $this->GetName() . \")\";\n else\n echo \"Du är <b>UTLOGGAD</b>.\";\n }", "function thememove_setup_author() {\n\tglobal $wp_query;\n\n\tif ( $wp_query->is_author() && isset( $wp_query->post ) ) {\n\t\t$GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author );\n\t}\n}", "public function testInfoUser()\n {\n }", "public function hasAuthor(): bool\n {\n return null !== $this->author;\n }", "public function getAuthor() \r\n { \r\n return $this->_author; \r\n }", "public function isInAuthorMb()\n {\n return $this->object->isInAuthorMb();\n }", "public function store_new_author()\n {\n $author = $this->dispatch( new StoreAuthor( $this->authorDataFormat ) );\n $this->assertTrue( $author->exists() );\n }", "function test_anonymoususer(){\n global $ID,$conf,$REV;\n\n unset($_SERVER['REMOTE_USER']);\n global $USERINFO; $USERINFO = array();\n\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 $info['rev'] = '';\n\n $info = array_merge($info, array(\n 'isadmin' => false,\n 'ismanager' => false,\n 'perm' => 8,\n 'client' => '1.2.3.4',\n ));\n unset($info['userinfo']);\n $this->assertEquals($info, pageinfo());\n }", "function the_modified_author()\n {\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function author()\n {\n $userId = $_post['userId'];\n $userRepository = new UserRepository();\n if (!empty($userId)) {\n $author = $userRepository->getAuthor();\n }\n }", "public function testAddNewAuthor() {\n $this->post('/api/author',\n [\n 'first_name' => 'John',\n 'last_name' => 'Doe'\n ])\n ->seeJson(['first_name' => 'John']);\n }", "function getAuthor($template) {\n\tif ( !is_string($template['Repository'])) return false;\n\tif ( $template['Author'] ) return strip_tags($template['Author']);\n\t$repoEntry = explode(\"/\",$template['Repository']);\n\tif (count($repoEntry) < 2)\n\t\t$repoEntry[] = \"\";\n\n\treturn strip_tags(explode(\":\",$repoEntry[count($repoEntry)-2])[0]);\n}", "public function testGettingId()\n {\n $this->assertEquals('bar', $this->principal->getId());\n }", "public function skyword_author( $args ) {\n\t\tglobal $wp_xmlrpc_server;\n\t\t$wp_xmlrpc_server->escape( $args );\n\t\t$login = $this->login( $args );\n\t\tif ( 'success' == $login['status'] ) {\n\t\t\t$data = $args[3];\n\t\t\t$user_id = $this->check_username_exists( $data );\n\t\t\treturn esc_html(strval( $user_id ) );\n\t\t} else {\n\t\t\treturn esc_html( $login['message'] );\n\t\t}\n\t}", "public function authorize(): bool\n {\n return Gate::allows('seo.translation.edit');\n }", "function get_the_author_login()\n {\n }", "protected function get_iauthority()\n {\n }", "protected function get_iauthority()\n {\n }", "function the_author_login()\n {\n }", "public function testTranslation(): void\n {\n $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR);\n $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Día Nacional de la Memoria por la Verdad y la Justicia']);\n }", "public function testUnderscoresTranslation()\n {\n $this->markTestIncomplete('MAGETWO-1012: i18n Improvements - Localization/Translations');\n }", "public function getAuthor($encoding = 'UTF-8') {}", "function the_author_description()\n {\n }", "function testEditAction() {\n $authorInfoController = new AuthorinfoControllerForTest($this->request,$this->response);\n // guest not allowed to create/edit user object\n $this->test_user->role = \"guest\";\n $this->setUpGet(array('etd' => 'etd:1'));\n $this->assertFalse($authorInfoController->editAction()); // no pid = create new record\n // edit (still guest - not allowed)\n $this->setUpGet(array('pid' => 'bogus:1', 'etd' => 'etd:1'));\n $this->assertFalse($authorInfoController->editAction()); // edit existing record\n\n // allow to create new record \n $this->test_user->role = \"student with submission\";\n $this->resetGet();\n $this->setUpGet(array('etd' => 'etd:1'));\n $authorInfoController->editAction(); // no pid = create new record\n $view = $authorInfoController->view;\n $this->assertTrue(isset($view->title));\n $this->assertIsA($view->authorInfo, \"authorInfo\");\n // user should be a new, blank object\n $this->assertEqual(\"\", $view->authorInfo->label);\n $this->assertEqual(\"\", $view->authorInfo->pid);\n\n // allow to edit record\n $this->test_user->role = \"author\";\n $this->setUpGet(array('pid' => 'bogus:1', 'etd' => 'etd:1'));\n $authorInfoController->editAction(); // edit existing record\n $view = $authorInfoController->view;\n // pre-existing record\n $this->assertEqual(\"testuser:1\", $view->authorInfo->pid);\n }", "protected function author()\n {\n if ($this->presenter->wasByCurrentUser() || !$this->wrappedObject->user_id) {\n return 'You ';\n }\n\n if (!$this->wrappedObject->security) {\n return 'This user ';\n }\n\n return $this->presenter->author().' ';\n }" ]
[ "0.6713774", "0.6399758", "0.6244147", "0.6143146", "0.61206424", "0.60975266", "0.60208815", "0.58980304", "0.58944917", "0.5884977", "0.58400047", "0.5821197", "0.5803238", "0.57791793", "0.5775981", "0.57138795", "0.5705439", "0.57013476", "0.5696757", "0.5667064", "0.566413", "0.5655494", "0.56520474", "0.5614848", "0.55940616", "0.55911136", "0.55771405", "0.55771405", "0.55771405", "0.55252", "0.5497527", "0.5493575", "0.54710424", "0.5441749", "0.5441643", "0.5429736", "0.5428345", "0.541008", "0.5402623", "0.54004544", "0.53942174", "0.5388644", "0.5384841", "0.5384841", "0.53689146", "0.5366556", "0.53590083", "0.5345787", "0.532499", "0.53177375", "0.53060675", "0.5292727", "0.52846926", "0.52769136", "0.527624", "0.5269486", "0.52596647", "0.5246024", "0.5238892", "0.52256083", "0.52100337", "0.52044845", "0.5189308", "0.51834714", "0.5147157", "0.51457834", "0.5143047", "0.51419735", "0.5135877", "0.5126063", "0.51166123", "0.5113151", "0.5111806", "0.5111183", "0.5106992", "0.5106442", "0.50980353", "0.50967497", "0.5093354", "0.5093354", "0.5093354", "0.5093354", "0.5093354", "0.5093354", "0.50916046", "0.50888336", "0.50858086", "0.50763744", "0.50741017", "0.5069799", "0.5066483", "0.5057824", "0.5057824", "0.5054353", "0.50520086", "0.50428545", "0.5035804", "0.5027883", "0.50238514", "0.50087965" ]
0.7376124
0
Returns an array of entity field values to be tested.
protected function getNewEntityValues($langcode) { return [$this->fieldName => [['value' => $this->randomMachineName(16)]]]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValues(): array\n {\n return $this->getEntityDao()->getValues();\n }", "public function values(): array\n\t{\n\t\treturn $this->fields()->values()->all();\n\t}", "public function getExpectedFieldValues()\n {\n return $this->expected_field_values;\n }", "protected function getValidFieldValues()\n {\n return [\n 'id' => [\n '1',\n '100'\n ]\n ];\n }", "public function get_values() {\n\t\t$values = [];\n\n\t\tforeach ( $this->fields as $field ) {\n\t\t\t$values[$field->name] = $field->get_value();\n\t\t}\n\n\t\treturn $values;\n\t}", "public function getFields(): array;", "public function getFields(): array;", "public function getFields(): array;", "public function getValues(ContentEntityInterface $entity, $field);", "public function getValues(): array;", "public function getValues(): array;", "public function getFieldValues()\n {\n if($this->isNewRecord){\n return []; //TODO: LOAD DEFAULT FIELDS OF TYPE\n }\n\n //pull meta values from DB\n $table = self::tablePrefix().'cms_post_field';\n $strSql = \"SELECT id, field_id, value \n\t\t\t\t\tFROM {$table}\n\t\t\t\t\tWHERE post_id = :pid\n\t\t\t\t \";\n $cmd = self::getDb()->createCommand($strSql);\n $cmd->bindValue(\":pid\",$this->id,\\PDO::PARAM_STR);\n $arrResults = $cmd->queryAll();\n\n return ArrayHelper::index($arrResults, 'id', 'field_id');\n }", "protected function getEntityTypeValues(): array {\n $query = $this->index->query();\n // We don't need a query condition as we have only one node anyway.\n $results = $query->execute();\n $values = [];\n /** @var \\Drupal\\search_api\\Item\\ItemInterface $result */\n foreach ($results as $result) {\n $field_values = $result->getField('entity_type')->getValues();\n sort($field_values);\n $values[$result->getId()] = $field_values;\n }\n return $values;\n }", "public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }", "public function getValues(): array\n {\n return array_map(function ($model) {\n return $model->value;\n }, $this->values);\n }", "public function getValues() {}", "public function getValues() {}", "public function getFields() {\n $field = $this->get('field');\n return null !== $field ? $field : array();\n }", "public function getValues()\n {\n return $this->getVal('value', []);\n }", "public function getValues();", "function getCustomFields( $entity, $id, $cache_values = true, $editable_by = '' )\n\t{\n\t\tTienda::load( 'TiendaModelEavAttributes', 'models.eavattributes' );\n\t\tTienda::load( 'TiendaHelperEav', 'helpers.eav' );\n\t\t\n\t\t$eavs = TiendaHelperEav::getAttributes( $entity, $id, false, $editable_by );\n\t\t\n\t\t$fields = array( );\n\t\tforeach ( @$eavs as $eav )\n\t\t{\n\t\t\t$key = $eav->eavattribute_alias;\n\n\t\t\t$value = TiendaHelperEav::getAttributeValue( $eav, $entity, $id, false, $cache_values );\n\t\t\t\n\t\t\t$fields[] = array(\n\t\t\t\t'attribute' => $eav, 'value' => $value\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $fields;\n\t}", "public function getValues()\n {\n $values = array();\n \n foreach ($this->_fields as $name => $info) {\n $values[$name] = (isset($info['value'])) ? $info['value'] : null;\n }\n \n return $values;\n }", "function getValues()\n {\n return $this->type->getValues();\n }", "public function fields()\n {\n return array_map(\n function (array $field) {\n return Field::fromArray($field);\n },\n $this->client->get('field')\n );\n }", "public function getFieldValues() {\n return array_values($this->_fields);\n }", "public function values_as_array() {\n $Data = array();\n foreach ($this->__fields() as $field) {\n $v = $this->$field->cleaned_value();\n if ($v instanceof Newforms_File_Object) continue;\n $Data[$field] = $v;\n }\n return $Data;\n }", "abstract public function getFields(): array;", "public function getEntityFields(): EntityFieldCollection\n {\n return EntityFieldCollection::fromResponse(\n $this->client->get(\"Tags/entityInformation/fields\")\n );\n }", "public function getValues(): array\n {\n return $this->values;\n }", "abstract public function getFields($entity);", "public function getEntityFields(): EntityFieldCollection\n {\n return EntityFieldCollection::fromResponse(\n $this->client->get(\"Appointments/entityInformation/fields\")\n );\n }", "public function getFieldData(): array\n {\n return array_map(fn ($fieldIndex) => (object) [\n 'name' => oci_field_name($this->resultID, $fieldIndex),\n 'type' => oci_field_type($this->resultID, $fieldIndex),\n 'max_length' => oci_field_size($this->resultID, $fieldIndex),\n ], range(1, $this->getFieldCount()));\n }", "function fieldValues() {\n\t\n\t\tif (isset($this->fieldValues)) {\n\t\t\treturn $this->fieldValues;\n\t\t}\n\n\t\t// fieldvalues fanns inte.\n\t\t// kolla preload först och om inte där så ladda in\n\t\t$preloader = pb_query_preloader::getInstance();\n\t\t$preloadRows = $preloader->getPreloadFieldsRows($this->id);\n\t\tif ($preloadRows === false) {\n\t\t\t#echo \"<br>nah, no preload row for field, article: $this->id \";\n\t\t\t// no preload for this articles field, fetch them from db\n\t\t\tglobal $polarbear_db;\t\t\n\t\t\t$sql = \"\n\t\t\t\tSELECT \n\t\t\t\t\tfv.fieldID, fv.articleID, fv.value, fv.numInSet,\n\t\t\t\t\tf.name as fieldName, f.type as fieldType\n\t\t\t\tFROM \" . POLARBEAR_DB_PREFIX . \"_fields_values as fv\n\t\t\t\tINNER JOIN \" . POLARBEAR_DB_PREFIX . \"_fields as f ON f.id = fv.fieldID\n\t\t\t\tWHERE articleID = '$this->id' ORDER BY fieldID ASC, numInSet ASC\";\n\t\t\t$rows = $polarbear_db->get_results($sql);\n\t\t} else {\n\t\t\t#echo \"<br>got preload row for field, article: $this->id\";\n\t\t\t// horay! we got the field values preloaded\n\t\t\t$rows = $preloadRows;\n\t\t}\n\t\n\t\t$arrFieldValues = array();\n\t\t$arrFieldCount = array();\n\t\tif (is_array($rows)) {\n\t\t\tforeach ($rows as $oneRow) {\n\t\t\t\tif (!isset($arrFieldValues[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldValues[$oneRow->fieldID] = array();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t\ttodo: om det är en fil/bild ska det kanske finnas\n\t\t\t\t\tlink, downloadLink, imageSrc osv.\n\t\t\t\t*/\n\t\t\t\t$arrFieldValues[$oneRow->fieldID][] = array(\n\t\t\t\t\t\"fieldID\" => $oneRow->fieldID,\n\t\t\t\t\t\"articleID\" => $oneRow->articleID,\n\t\t\t\t\t\"value\" => $oneRow->value,\n\t\t\t\t\t\"numInSet\" => $oneRow->numInSet,\n\t\t\t\t\t// and some useful \"extras\" too\n\t\t\t\t\t\"valueEscaped\" => htmlspecialchars ($oneRow->value, ENT_COMPAT, \"UTF-8\"),\n\t\t\t\t\t\"valueNoTags\" => strip_tags($oneRow->value),\n\t\t\t\t\t\"fieldName\" => $oneRow->fieldName,\n\t\t\t\t\t\"fieldType\" => $oneRow->fieldType\n\t\t\t\t);\n\t\t\t\tif (!isset($arrFieldCount[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldCount[$oneRow->fieldID]=0;\n\t\t\t\t}\n\t\t\t\t$arrFieldCount[$oneRow->fieldID]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// update count\n\t\tforeach ($arrFieldCount as $fieldID => $fieldCount) {\n\t\t\tfor ($i=0; $i<sizeof($arrFieldValues[$fieldID]); $i++) {\n\t\t\t\t$arrFieldValues[$fieldID][$i][\"fieldSetCount\"] = $fieldCount;\n\t\t\t}\n\t\t}\n\t\t\n\t\t#pb_pqp_log_speed(\"article fieldValues()\");\n\t\t\n\t\t$this->fieldValues = $arrFieldValues;\n\t\treturn $this->fieldValues;\n\t}", "public function values($field)\n {\n if ($this->multiMode) {\n return $this->load()->values($field);\n }\n if ($this->data === null) {\n $this->load();\n }\n\n return ($v = $this[$field]) !== null ? [$v] : [];\n }", "private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }", "public function getValues() : array\n {\n return $this->values;\n }", "public function getAsArray(): array {\n\t\t$result = [];\n\t\tforeach ( self::FIELD_MAPPING as $field => $_ ) {\n\t\t\t$result[$field] = $this->$field;\n\t\t}\n\t\treturn $result;\n\t}", "public function customFieldValues()\n {\n return $this->morphMany(\\VentureDrake\\LaravelCrm\\Models\\FieldValue::class, 'custom_field_valueable');\n }", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFields(): array\n {\n return $this->fields;\n }", "protected function getFieldTags(ContentEntityInterface $entity, $field_name) {\n $tags = [];\n foreach ($entity->{$field_name} as $item) {\n // Get serialized value and break it into an array of tags with values.\n $serialized_value = $item->get('value')->getValue();\n if (!empty($serialized_value)) {\n $tags += unserialize($serialized_value);\n }\n }\n\n return $tags;\n }", "public function values() : array;", "public function getValues()\n {\n return $this->values;\n }", "public function getValues()\n {\n return $this->values;\n }", "public function getValues()\n {\n return $this->values;\n }", "public function getValues()\n {\n return $this->values;\n }", "public function getValues()\n {\n $values = [];\n foreach ($this->findScenario() as $name) {\n $values[$name] = $this->$name;\n }\n return $values;\n }", "public function fields()\n {\n $fields = array();\n\n foreach ($this->_data as $field => $row)\n {\n $fields[$field] = $row['value'];\n }\n\n return $fields;\n }", "public function getAttributes(): array\n {\n // Collects a list of usable Attributes from the Value Object.\n $fields = $this->filterSystemControlFields(\n \\get_object_vars($this)\n );\n\n foreach ($fields as $name => $value) {\n if ($value instanceof AbstractValueObject || $value instanceof EntityCollection) {\n unset($fields[$name]);\n }\n }\n\n // Converts all objects into primitives.\n return $this->convertIntoPrimitiveValues($fields);\n }", "final public function getAllFields()\r\n {\r\n return array($this->_field);\r\n }", "public function values()\n {\n return $this->values;\n }", "public function values()\n {\n return $this->values;\n }", "public function values()\n {\n return $this->values;\n }", "public function values()\n {\n return $this->values;\n }", "public function getFields()\n\t{\n\t\treturn [];\n\t}", "abstract public static function getValues(): array;", "public function values(): array\n {\n return $this->values;\n }", "public function getEntities(): array;", "function getFieldValues()\n {\n $myvalues = $this->m_oPageHelper->getFieldValues($this->m_protocol_shortname);\n return $myvalues;\n }", "public function getValues() {\n return $this->values;\n }", "public function getValues() {\n return $this->values;\n }", "public function testToArray()\n {\n $myFieldName = \"my_field\";\n $myFieldValue = \"my_value\";\n $where = new Where($myFieldName);\n $where->equals($myFieldValue);\n $arr = $where->toArray();\n $this->assertEquals(Where::COMBINED_BY_AND, $arr['blogic']);\n $this->assertEquals($myFieldName, $arr['field_name']);\n $this->assertEquals($myFieldValue, $arr['value']);\n $this->assertEquals(Where::OPERATOR_EQUAL_TO, $arr['operator']);\n }", "public function getValue($name)\n {\n $result = array();\n foreach ($this->entities as $entity) \n {\n $values = $entity->getValues(array($name));\n $result[] = $values[$name];\n }\n \n return $result;\n }", "public function getValues(): array\n {\n $values = [];\n foreach ($this->getInputNames() as $name) {\n $values[$name] = $this->$name;\n }\n return $values;\n }", "public function getValues()\n {\n $values = array();\n\n foreach ($this->items as $item) {\n $values[] = $item['value'];\n }\n\n return $values;\n }", "public function getFields(): array\n {\n return [\n 'user_id' => 'text',\n 'api_key' => 'text',\n 'shop_id' => 'text',\n 'secret_key' => 'password',\n ];\n }", "function getValues(){\n $values = [];\n \n foreach($this as $valor){\n $values[] = $valor;\n }\n \n return $values;\n }", "public function getEntityValues($pk = true) {\n $entityValues = array();\n foreach ($this->entity as $columnName => $column) {\n\n if (($column['contraint'] == 'pk' && $pk == true) || ($column['contraint'] != 'pk')) {\n $entityValues[$columnName] = $column['value'];\n }\n }\n\n return $entityValues;\n }", "public function get_values(){ return $this->values; }", "public function getValues()\n\t\t{\n\t\t\treturn $this->values;\n\t\t}", "public function fields(): array\n {\n return [];\n }", "protected function _get_save_values()\n\t{\n\t\t// Is this a create or update operation?\n\t\t$is_create = ! $is_update = $this->loaded();\n\n\t\t$values = array();\n\n\t\tforeach ($this->_meta->fields as $name => $field)\n\t\t{\n\t\t\t// When creating, primary fields should not be included unless\n\t\t\t// they have been changed.\n\t\t\tif ($is_create\n\t\t\t\tand $field instanceof Dorm_Field_Key\n\t\t\t\tand $field->primary\n\t\t\t\tand ! $this->changed($name) )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// When updating, only changed fields should be included\n\t\t\tif ($is_update AND ! $this->changed($name))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$value = Arr::get($this->_values, $name);\n\n\t\t\tif ($value !== NULL)\n\t\t\t{\n\t\t\t\t$value = $field->save($value);\n\t\t\t}\n\n\t\t\t$values[$name] = $value;\n\t\t}\n\n\t\t// @todo: Add \"unmapped\" values?\n\n\t\treturn $values;\n\t}", "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 toArray(): array\n {\n $values = array();\n foreach ($this->getAllFieldsAliases() as $name) {\n $field = $this->{'field' . \\ucfirst($name)};\n $values[$name] = $field['value'];\n }\n\n return $values;\n }", "public function getFieldData()\n {\n $retval = array();\n for ($c = 1, $fieldCount = $this->getFieldsCount(); $c <= $fieldCount; $c++) {\n $item = array();\n $item['name'] = oci_field_name($this->stmt_id, $c);\n $item['type'] = oci_field_type($this->stmt_id, $c);\n $item['max_length'] = oci_field_size($this->stmt_id, $c);\n $retval[] = $item;\n }\n\n return $retval;\n }", "public function Values()\n {\n return $this->values;\n }", "public function getFields() : array {\n\t\treturn $this->fields;\n\t}", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getValues()\n {\n return $this->_values;\n }", "public function getFields():array\n {\n return [\n 'x_login' => 'text',\n 'x_trans_key' => 'text',\n 'secret_key' => 'password',\n ];\n }", "public function getValues()\n {\n // Load the config data\n $output = [];\n $configData = $this->getConfigFieldsList();\n\n // Update the array with database values\n foreach ($configData as $group => $fields) {\n $output[$group] = [];\n foreach ($fields as $key => $value) {\n $v = $this->value($group . '/' . $key);\n $output[$group][$key] = $this->toBooleanFilter($v);\n }\n }\n\n return $output;\n }", "public function getFormValues()\n {\n return $this->form->getValues();\n }", "private function getFieldValues(ContentEntityInterface $entity, $attribute_key, $attribute_name) {\n $result = [];\n $fieldValue = $this->getFieldValueFromAttribute($entity, $attribute_key);\n switch ($attribute_key) {\n // Files need to append the File-Format and is single valued\n // so it is limited to the first one.\n case 'file_url':\n $result = $this->getFileAttributes($fieldValue);\n break;\n\n // Authors can be multiple.\n // @todo they can also have multiple attributes\n // currently limiting to Author-Name by default. Author-Name-First,\n // Author-Name-Last, Author-Email, Author-Workplace-Name can also\n // be provided as RePEc template attributes, see\n // https://ideas.repec.org/t/papertemplate.html\n // See issue #3 https://github.com/r-daneelolivaw/repec/issues/3\n case 'author_name':\n $authors = $this->getAuthorAttributes($fieldValue);\n foreach ($authors as $author) {\n $result[] = [\n 'attribute' => $attribute_name,\n 'value' => $author,\n ];\n }\n break;\n\n // Abstract needs post-processing.\n case 'abstract':\n $value = strip_tags($this->getDefaultAttributeValue($fieldValue));\n $value = str_replace([\"\\r\", \"\\n\"], '', $value);\n $result[] = [\n 'attribute' => $attribute_name,\n 'value' => $value,\n ];\n break;\n\n // Keywords can be multiple\n // and are loaded from the taxonomy.\n case 'keywords':\n $result[] = [\n 'attribute' => $attribute_name,\n 'value' => $this->getKeywordsValue($fieldValue),\n ];\n break;\n\n // @todo creation date fallback to entity created date\n // @todo date format\n default:\n // Default to single valued attribute mapping.\n $result[] = [\n 'attribute' => $attribute_name,\n 'value' => $this->getDefaultAttributeValue($fieldValue),\n ];\n break;\n }\n return $result;\n }", "public function getValuesList(){\n return $this->_get(1);\n }", "public function getCustomFields() {\n return Doctrine::getTable('ArticleCustomFieldValue')->getCustomFields($this);\n }", "final public function getValues()\n {\n return $this->values;\n }", "function getAllDataValues() {\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t$resultvalues = $conn->fetchAll(\"SELECT * FROM lookuptypevalue WHERE lookuptypeid = '\".$this->getID().\"' order by lookupvaluedescription asc \");\n\t\treturn $resultvalues;\t\n\t}", "public function getValues()\n {\n\n\t\t$record = ProductAttributeValues::whereIn('avid',[1,6])->get();\n\t\t$rec = $record->pluck('pro_att_value');\n\t\treturn $rec;\n }", "public function getAll() : array\n {\n if (!empty($listOfCustomFields = $this->getAllFromRedis())) {\n return $listOfCustomFields;\n }\n\n $companyId = $this->companies_id ?? 0;\n\n $result = Di::getDefault()->get('db')->prepare('\n SELECT name, value \n FROM apps_custom_fields\n WHERE\n companies_id = ?\n AND model_name = ?\n AND entity_id = ?\n ');\n\n $result->execute([\n $companyId,\n get_class($this),\n $this->getId()\n ]);\n\n $listOfCustomFields = [];\n\n while ($row = $result->fetch()) {\n $listOfCustomFields[$row['name']] = Str::jsonToArray($row['value']);\n }\n\n return $listOfCustomFields;\n }", "public function getValues()\n\t{\n\t\t$params = array();\n\n\t\tforeach($this->values as $value)\n\t\t{\n\t\t\tswitch($value[self::TYPE])\n\t\t\t{\n\t\t\t\tcase self::TYPE_RAW:\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase self::TYPE_IN:\n\n\t\t\t\t\t$params+= $value[self::VALUE];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase self::TYPE_SCALAR:\n\t\t\t\tdefault:\n\n\t\t\t\t\t$params[] = $value[self::VALUE];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $params;\n\t}", "public function getValues()\n\t{\n\t\treturn $this->_values;\n\t}", "public function getUpdateValues(): array;", "public function getAllValues();", "public function fields()\n {\n return [ \n ];\n }", "protected function _getValues()\n {\n $values = $this->getColumn()->getValues();\n return $this->_converter->toFlatArray($values);\n }", "public function getValuesList() {\n return $this->_get(2);\n }" ]
[ "0.73616964", "0.7033053", "0.6991884", "0.69394743", "0.6856391", "0.6849877", "0.6849877", "0.6849877", "0.6737841", "0.67118514", "0.67118514", "0.6690869", "0.66805696", "0.66715664", "0.662038", "0.6600609", "0.6600609", "0.6559079", "0.65530014", "0.6540264", "0.651988", "0.6511042", "0.6485608", "0.6450523", "0.6438512", "0.63825554", "0.6382198", "0.6354912", "0.63107485", "0.6296241", "0.6288028", "0.6277208", "0.62520236", "0.62508917", "0.6247926", "0.62441707", "0.622095", "0.62057555", "0.6203032", "0.6203032", "0.61957556", "0.6191805", "0.6180634", "0.6180634", "0.6180634", "0.6180634", "0.6178972", "0.6171578", "0.6170802", "0.61440545", "0.6137718", "0.6137718", "0.6137718", "0.6137718", "0.61324346", "0.6123648", "0.6118127", "0.6117339", "0.61104685", "0.6104865", "0.6104865", "0.61012703", "0.6099357", "0.6098108", "0.60834664", "0.6082134", "0.6078605", "0.6058647", "0.6052107", "0.6048467", "0.60404783", "0.60353935", "0.60242206", "0.60239226", "0.6023711", "0.60234743", "0.60155994", "0.60140467", "0.60140467", "0.60140467", "0.60140467", "0.60140467", "0.60140467", "0.6005683", "0.59941703", "0.5984135", "0.5983378", "0.5982437", "0.59820044", "0.59788895", "0.59749407", "0.5973497", "0.59733796", "0.59693855", "0.59688973", "0.59676427", "0.5966266", "0.5949644", "0.5949515", "0.5940102", "0.593983" ]
0.0
-1
Returns an edit array containing the values to be posted.
protected function getEditValues($values, $langcode, $new = FALSE) { $edit = $values[$langcode]; $langcode = $new ? LanguageInterface::LANGCODE_NOT_SPECIFIED : $langcode; foreach ($values[$langcode] as $property => $value) { if (is_array($value)) { $edit["{$property}[0][value]"] = $value[0]['value']; unset($edit[$property]); } } return $edit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPostValues() {\n $post_check_array = array(\n// submit action\n 'add' => array('filter' => FILTER_SANITIZE_STRING),\n 'update' => array('filter' => FILTER_SANITIZE_STRING),\n // List all update form fields !!!\n// event type name.\n 'datum' => array('filter' => FILTER_SANITIZE_STRING),\n 'prioriteit' => array('filter' => FILTER_SANITIZE_STRING),\n 'username' => array('filter' => FILTER_SANITIZE_STRING),\n 'user' => array('filter' => FILTER_SANITIZE_STRING),\n 'password' => array('filter' => FILTER_SANITIZE_STRING),\n // Help text\n 'status' => array('filter' => FILTER_SANITIZE_STRING),\n // Id of current row\n 'alarm_id' => array('filter' => FILTER_VALIDATE_INT),\n 'alarm_noticed' => array('filter' => FILTER_VALIDATE_INT),\n\t\t\t'alarm_origin' => array('filter' => FILTER_SANITIZE_STRING)\n );\n// Get filtered input:\n $inputs = filter_input_array(INPUT_POST, $post_check_array);\n// RTS\n return $inputs;\n }", "public function getPostValues()\n {\n // Define the check for params\n $post_check_array = array(\n // submit action\n 'toevoegen' => array('filter' => FILTER_SANITIZE_STRING),\n 'bijwerken' => array('filter' => FILTER_SANITIZE_STRING),\n 'verwijderen' => array('filter' => FILTER_SANITIZE_STRING),\n // question\n 'vraag' => array('filter' => FILTER_SANITIZE_STRING),\n // question type (open or closed)\n 'vraagId' => array('filter' => FILTER_SANITIZE_INT),\n // question type (open or closed)\n 'vraagSoort' => array('filter' => FILTER_SANITIZE_STRING),\n // Education\n 'opleiding' => array('filter' => FILTER_SANITIZE_STRING),\n // question send time\n 'verstuurTijd' => array('filter' => FILTER_SANITIZE_STRING)\n );\n // Get filtered input:\n $inputs = filter_input_array(INPUT_POST, $post_check_array);\n // RTS\n return $inputs;\n }", "public function getFormValues()\n {\n return array(\n 'title' => $this->issue['subject'],\n 'reference' => $this->issue['id'],\n 'date_started' => $this->issue['start_date'],\n 'description' => $this->issue['description']\n );\n }", "protected static function getValues() \n\t{\n\t\t$values = [\n\t\t\t'title_id' => isset($_POST['title_id']) ? $_POST['title_id'] : null,\n\t\t\t'firstname' => isset($_POST['firstname']) ? $_POST['firstname'] : null,\n\t\t\t'dob' => isset($_POST['dob']) ? $_POST['dob'] : null,\n\t\t\t'client_type' => isset($_POST['client_type']) ? $_POST['client_type'] : null,\n\t\t\t'company_phone' => isset($_POST['company_phone']) ? $_POST['company_phone'] : null,\n\t\t\t'country_id' => isset($_POST['country_id']) ? $_POST['country_id'] : null,\n\t\t\t'surname' => isset($_POST['surname']) ? $_POST['surname'] : null,\n\t\t\t'phone' => isset($_POST['phone']) ? $_POST['phone'] : null,\n\t\t\t'company_name' => isset($_POST['company_name']) ? $_POST['company_name'] : null,\n\t\t\t'company_country' => isset($_POST['company_country']) ? $_POST['company_country'] : null,\n\t\t\t'email' => isset($_POST['email']) ? $_POST['email'] : null,\n\t\t\t'confirm-email' => isset($_POST['confirm-email']) ? $_POST['confirm-email'] : null,\n\t\t];\n\t\t\n\t\treturn $values;\n\t}", "public function GetFormPostedValues() {\n\t\t$req_fields=array(\"description\",\"date_open\",\"date_closed\");\n\n\t\tfor ($i=0;$i<count($req_fields);$i++) {\n\n\t\t\t//echo $_POST['application_id'];\n\t\t\tif (ISSET($_POST[$req_fields[$i]]) && !EMPTY($_POST[$req_fields[$i]])) {\n\t\t\t\t$this->SetVariable($req_fields[$i],EscapeData($_POST[$req_fields[$i]]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//echo \"<br>\".$this->req_fields[$i].\"<br>\";\n\t\t\t\t$this->$req_fields[$i]=\"\";\n\t\t\t}\n\t\t}\n\t}", "public function edit() \n {\n $post = Input::all();\n \n $bodyArrayKey = $this->model . '-Array';\n\t\tif(isset($post[$bodyArrayKey]) && !empty($post[$bodyArrayKey])) {\n $arrayInput = $post[$bodyArrayKey];\n\t\t\tparse_str($arrayInput, $output);\n $post[$this->model] = $output[$this->model] ;\n }\n \n $jsonKey = $this->model . '-Multiple';\n \n if(isset($post[$jsonKey]) && !empty($post[$jsonKey])) {\n $jsonInput = $post[$jsonKey];\n $arrayObject = json_decode($jsonInput);\n foreach($arrayObject as $key => $object) {\n $arrayObject[$key] = get_object_vars($object);\n }\n \n $post[$this->model] = $arrayObject;\n }\n \n $result = array();\n foreach ($post[$this->model] as $singlePost) {\n $singleResult = $this->updateSingleObject($singlePost);\n $result[] = $singleResult;\n }\n \n return $jsend = JSend\\JSendResponse::success($result);\n }", "public function getPostArray()\n {\n return [\n 'name' => $this->name,\n 'message' => $this->message,\n 'iplog' => $this->iplog,\n 'timelog' => $this->timelog\n ];\n }", "protected function inputData() : array\n {\n return factory(Employee::class)->make()\n ->makeVisible('password')\n ->toArray();\n }", "public function getUpdateValues(): array;", "public function valuesFromPost()\n {\n return $this->setDefaultValues($_POST);\n }", "public function getRichFormdata() {\n $formdata = array();\n\n foreach($this->elements as $element) {\n $key = $element['object']->getName();\n\n $value = array (\n \t'value' => $element['object']->getSubmittedValue(),\n \t'description' => $element['object']->getDescription()\n );\n\n $formdata[$key] = $value;\n }\n\n return $formdata;\n }", "public function getInputData() {\n\t\t$a = array(\n\t\t\t'extension' => $this->extensionId,\n\t\t\t'dttm' => null,\n\t\t\t'data' => $this->data->asArray(),\n\t\t\t'verificationMode' => $this->verificationMode ? 'true' : 'false'\n\t\t);\n\n\t\treturn $a;\n\t}", "protected function getArrPost()\n {\n return $this->getServices()\n ->get(\\Application\\Service\\ServiceJsonPostRequest::class)\n ->setObjRequest(\n $this->getRequest()\n )\n ->getJsonPost();\n }", "public function getPostData() :array\n {\n return empty($_POST) ? [] : $_POST;\n }", "public static function allPost()\n {\n try {\n $form = [];\n foreach ($_POST as $name => $value) {\n $form[htmlspecialchars($name)] = htmlspecialchars($value);\n }\n return $form;\n } catch (Exception $e) {\n die($e);\n }\n }", "public function getFormValues()\n {\n return $this->form->getValues();\n }", "public function form() {\n\t\treturn array();\n\t}", "public function getFormdata() {\n $formdata = array();\n\n foreach($this->elements as $element) {\n $key = $element['object']->getName();\n $value = $element['object']->getSubmittedValue();\n\n $formdata[$key] = $value;\n }\n\n return $formdata;\n }", "public function getArray() : array {\n\t\treturn $this->input;\n\t}", "protected function getPostValues() {}", "public function getInputValues()\n {\n return $this->input_values;\n }", "public function get_editentries() {\n return $this->_editentries;\n }", "function pnFormGetValues()\n {\n $result = array();\n\n $this->pnFormGetValues_rec($this->pnFormPlugins, $result);\n\n return $result;\n }", "public function getValues(): array\n {\n $values = [];\n foreach ($this->getInputNames() as $name) {\n $values[$name] = $this->$name;\n }\n return $values;\n }", "private function post_params() {\n return [\n 'title' => $this->params['title'],\n 'excerpt' => $this->params['excerpt'],\n 'content' => $this->params['content'],\n 'tags' => $this->params['tags']\n ];\n }", "public function getDataForEditTypes(): array\n {\n $subType = $this->getSubTypes();\n\n $records = (CamposFormato::findByAttributes([\n 'nombre' => PqrFormField::FIELD_NAME_SYS_TIPO,\n 'formato_idformato' => $this->getPqrForm()->fk_formato\n ]))->getCampoOpciones();\n\n $data = [];\n foreach ($records as $CampoOpciones) {\n if ($CampoOpciones->estado) {\n $data[] = [\n 'id' => $CampoOpciones->getPK(),\n 'text' => $CampoOpciones->valor\n ];\n }\n }\n\n return [\n 'dataType' => $data,\n 'dataSubType' => $subType ?? [],\n 'activeDependency' => (int)$this->dependencyExist()\n ];\n }", "public function getEditRaw();", "public function toArray()\n {\n return [\n 'text' => $this->text(),\n 'value' => $this->value(),\n ];\n }", "public function getModifyValues() {\n\t\t$a = array();\n\t\tforeach($this->_states_ as $n => $v ){\n\t\t\tif(($v === self::MODTYPE_ADD || $v === self::MODTYPE_RM || $v === self::MODTYPE_REPLACE) && !($this->_values_[$n]===\"\")){\n\t\t\t\t$a [] = array(\n\t\t\t\t\t\t\"modtype\"=>$v,\n\t\t\t\t\t\t\"entry\" =>array(\"$n\" => $this->_values_[$n])\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn $a;\n\t}", "protected function getPostObject(): array\n {\n /** @var Input $oInput */\n $oInput = Factory::service('Input');\n /** @var Group $oUserGroupModel */\n $oUserGroupModel = Factory::model('UserGroup', Constants::MODULE_SLUG);\n /** @var Password $oUserPasswordModel */\n $oUserPasswordModel = Factory::model('UserPassword', Constants::MODULE_SLUG);\n\n return [\n 'slug' => $oInput->post('slug'),\n 'label' => $oInput->post('label'),\n 'description' => $oInput->post('description'),\n 'default_homepage' => $oInput->post('default_homepage'),\n 'registration_redirect' => $oInput->post('registration_redirect'),\n 'acl' => json_encode(\n array_values(\n array_filter(\n $oInput->post('is_superuser')\n ? [SuperUser::class]\n : (array) $oInput->post('acl'),\n )\n )\n ),\n 'password_rules' => $oUserPasswordModel->processRules($oInput->post('pw') ?: []),\n ];\n }", "public function getInputData()\n {\n return array_only($this->inputData, [\n 'title', 'description', 'tags', 'categories', 'code'\n ]);\n }", "public function getEditFields(): array\n\t{\n\t\t$fields = [];\n\t\t$editFields = ['name'];\n\t\t$editFields[] = 'icon';\n\t\tif ($this->fieldModel->getModule()->isEntityModule()) {\n\t\t\tif (!$this->getId()) {\n\t\t\t\t$editFields[] = 'roles';\n\t\t\t}\n\t\t\t$editFields[] = 'description';\n\t\t\t$editFields[] = 'prefix';\n\t\t\tif ($this->fieldModel->getFieldParams()['isProcessStatusField'] ?? false) {\n\t\t\t\tif (\\App\\Db::getInstance()->getTableSchema($this->getTableName())->getColumn('time_counting')) {\n\t\t\t\t\t$editFields[] = 'time_counting';\n\t\t\t\t}\n\t\t\t\t$editFields[] = 'record_state';\n\t\t\t}\n\t\t\tif (15 === $this->fieldModel->getUIType()) {\n\t\t\t\t$editFields[] = 'close_state';\n\t\t\t}\n\t\t}\n\n\t\tforeach ($editFields as $fieldName) {\n\t\t\t$propertyModel = $this->getFieldInstanceByName($fieldName);\n\t\t\tif (null !== $this->get($fieldName)) {\n\t\t\t\t$propertyModel->set('fieldvalue', $this->get($fieldName));\n\t\t\t} elseif (($defaultValue = $propertyModel->get('defaultvalue')) !== null) {\n\t\t\t\t$propertyModel->set('fieldvalue', $defaultValue);\n\t\t\t}\n\t\t\t$fields[$fieldName] = $propertyModel;\n\t\t}\n\n\t\treturn $fields;\n\t}", "public function getGetValues()\n {\n // Define the check for params\n $get_check_array = array(\n // Action\n 'action' => array('filter' => FILTER_SANITIZE_STRING),\n // Id of current row\n 'vraagId' => array('filter' => FILTER_VALIDATE_INT)\n );\n // Get filtered input:\n $inputs = filter_input_array(INPUT_GET, $get_check_array);\n // RTS\n return $inputs;\n }", "public function getFormInput()\n {\n $values = $this->getFormValues();\n\n return $values->all();\n }", "public function getInputsArray()\n\t{\n\t return $this->arrInputs;\n\t}", "public function values(): ?array\n {\n $parameters = [];\n foreach ($this->data['fields'] as $index => $input) {\n $parameters[$index] = FILTER_SANITIZE_SPECIAL_CHARS;\n }\n return filter_input_array(INPUT_POST, $parameters);\n }", "public static function formData()\n {\n return [\n 'id',\n 'code',\n 'name',\n 'icon',\n 'position',\n 'link',\n 'parent_id' => [\n 'dropDownList' => [ 'list' => static::dataOptions('id', 'name') ]\n ],\n 'row_status' => [\n // 'radioList' => [ 'list' => [ 0 => 'Active', 1 => 'Disactive' ] ]\n 'dropDownList' => [ 'list' => [ 1 => 'Active', 0 => 'Disactive' ] ]\n ]\n ];\n }", "public function getArrayEditoras()\n\t\t{\n\t\t\t\treturn $this->arrayEditoras;\n\t\t}", "protected function getUpdateInput()\n {\n return [\n 'email' => '[email protected]',\n 'password' => '123456',\n 'password_confirmation' => '123456',\n 'token' => 'auniquetoken',\n ];\n }", "function getInputValues() {\r\n $vals = array();\r\n \r\n $vals['datetime'] = @$_REQUEST['datetime'];\r\n $vals['mileage'] = @$_REQUEST['mileage'];\r\n $vals['location'] = @$_REQUEST['location'];\r\n $vals['pricepergallon'] = @$_REQUEST['pricepergallon'];\r\n $vals['gallons'] = @$_REQUEST['gallons'];\r\n $vals['grade'] = @$_REQUEST['grade'];\r\n $vals['pumpprice'] = @$_REQUEST['pumpprice'];\r\n $vals['notes'] = @$_REQUEST['notes'];\r\n \r\n return $vals;\r\n}", "private function executeEdit(): array\n {\n $cover = input_get('cover');\n $nonce = $this->create_nonce();\n $json = [\n 'nonce' => $nonce,\n 'admin_url' => url_admin_post(),\n 'referer' => url_menu('bc_covers'),\n 'title' => \\get_admin_page_title(),\n 'images' => url_images(),\n 'mode' => 'edit',\n 'baseurl' => url_cover(''),\n 'covers' => getCovers(),\n 'cover' => $cover\n ];\n return $json;\n }", "private function edit(): array {\n return [\n 'title' => $this->t('Edit Team Member'),\n ];\n }", "public function postPartnerFormEdits()\n {\n $input_array = array();\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\")\n {\n $input_array['title'] = $this->test_input($_POST['title']);\n $input_array['sub_title'] = $this->test_input($_POST['sub-title']);\n $input_array['desc_head'] = $this->test_input($_POST['desc-head']);\n $input_array['desc_body'] = $this->test_input($_POST['desc-body']);\n $input_array['desc_list_head'] = $this->test_input($_POST['desc-list-head']);\n $input_array['desc_list_data'] = $this->test_input($_POST['desc-list-data']);\n $input_array['desc_footer_head'] = $this->test_input($_POST['desc-footer-head']);\n $input_array['desc_footer_body'] = $this->test_input($_POST['desc-footer-body']);\n $input_array['info_head'] = $this->test_input($_POST['info-head']);\n $input_array['info_body'] = $this->test_input($_POST['info-body']);\n $input_array['info_list_head'] = $this->test_input($_POST['info-list-head']);\n $input_array['info_list_data'] = $this->test_input($_POST['info-list-data']);\n $input_array['info_footer_head'] = $this->test_input($_POST['info-footer-head']);\n $input_array['info_footer_body'] = $this->test_input($_POST['info-footer-body']);\n $input_array['footer_head'] = $this->test_input($_POST['footer-head']);\n $input_array['footer_body'] = $this->test_input($_POST['footer-body']);\n $input_array['footer_list_head'] = $this->test_input($_POST['footer-list-head']);\n $input_array['footer_list_data'] = $this->test_input($_POST['footer-list-data']);\n $input_array['contact_name'] = $this->test_input($_POST['contact-name']);\n $input_array['contact_title'] = $this->test_input($_POST['contact-title']);\n $input_array['contact_desc'] = $this->test_input($_POST['contact-desc']);\n $input_array['contact_phone'] = $this->test_input($_POST['contact-phone']);\n $input_array['contact_email'] = $this->test_input($_POST['contact-email']);\n\n if(!empty($_FILES[\"usr-file-upload\"][\"name\"]))\n {\n $img_path = $this->fileUpload();\n\n if(!is_array($img_path))\n {\n $input_array['img_path'] = $img_path;\n }\n else\n {\n $this->_errors = $img_path;\n }\n }\n else\n {\n $input_array['img_path'] = $this->test_input($_POST['img-path']);\n }\n $input_array['link'] = $this->test_input($_POST['link']);\n $input_array['link_text'] = $this->test_input($_POST['link-text']);\n }\n\n if(is_array($img_path))\n {\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo '<div class=\"container-fluid\">';\n echo '<div class=\"alert alert-danger\">';\n echo '<strong>Danger!</strong>';\n if(is_array($img_path))\n {\n foreach ($img_path as $error)\n {\n echo '<p>' . $error . '</p>';\n }\n }\n echo '</div>';\n echo '</div>';\n }\n else\n {\n $database = new Database();\n\n if($database->updatePartner($input_array, $this->_params['id']))\n {\n $url = '/Admin/edit-partner/' . $this->_params['id'];\n $this->_f3->reroute($url . '/success');\n }\n else\n {\n $errors = $database->getErrors();\n\n if(!empty($errors))\n {\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo '<div class=\"container-fluid\">';\n echo '<div class=\"alert alert-danger\">';\n echo '<strong>Danger!</strong>';\n foreach($errors as $error)\n {\n echo '<p>' . $error . '</p>';\n }\n echo '</div>';\n echo '</div>';\n }\n }\n }\n }", "public function values_as_array() {\n $Data = array();\n foreach ($this->__fields() as $field) {\n $v = $this->$field->cleaned_value();\n if ($v instanceof Newforms_File_Object) continue;\n $Data[$field] = $v;\n }\n return $Data;\n }", "public function getInputValues();", "private function getPostData(): array\n {\n return [\n 'product' => [\n 'attribute_set_id' => '4',\n 'status' => '1',\n 'name' => 'Simple Product',\n 'sku' => 'simple',\n 'url_key' => 'simple-product',\n 'type_id' => \\Magento\\Catalog\\Model\\Product\\Type::TYPE_SIMPLE\n ],\n 'links' => [\n 'upsell' => [\n ['id' => '10'],\n ],\n 'crosssell' => [\n ['id' => '11'],\n ],\n 'related' => [\n ['id' => '12'],\n ],\n ]\n ];\n }", "public function getInputs()\n {\n return array();\n }", "public function getRequestFieldsToSave(){\n\t\treturn array();\n\t}", "public function getEditInput();", "public function getPostParams()\n {\n return $this->request->all();\n }", "public function toForm()\n {\n $params = $this->toArray();\n\n if (array_key_exists('photo', $params) and $params['photo']) {\n $params['photo'] = @fopen($params['photo'], 'r');\n }\n\n return array_filter($params, function ($param) {\n return $param !== '' or !is_null($param);\n });\n }", "public function getEdits() {\n return $this->edits;\n }", "function get_input_array () {\n\t$input = array();\n\n\t// collect input values from the form\n\t$input['maker'] = isset($_POST['maker']) ? $_POST['maker'] : '';\n\t$input['model'] = isset($_POST['model']) ? $_POST['model'] : '';\n\t$input['speed'] = isset($_POST['speed']) ? $_POST['speed'] : '';\n\t$input['ram'] = isset($_POST['ram']) ? $_POST['ram'] : '';\n\t$input['hd'] = isset($_POST['hd']) ? $_POST['hd'] : '';\n\t$input['price'] = isset($_POST['price']) ? $_POST['price'] : '';\n\n\t// use the new_maker field instead of the maker field if it's set\n\t$new_maker = isset($_POST['new_maker']) ? $_POST['new_maker'] : '';\n\tif (!empty($new_maker)) {\n\t\t$input['maker'] = $new_maker;\n\t}\n\n\treturn $input;\n}", "public function values(): array\n\t{\n\t\treturn $this->fields()->values()->all();\n\t}", "public static function form_fields(){\n\n \treturn [\n [\n \t'id'=> 'description',\n \t'name'=> 'description', \n \t'desc'=> 'Description', \n \t'val'=>\tnull, \n \t'type'=> 'text',\n \t'maxlength'=> 255,\n \t'required'=> 'required',\n ],\n\n [\n \t'id'=> 'rate',\n \t'name'=> 'rate', \n \t'desc'=> 'Discount Rate', \n \t'val'=>\tnull, \n \t'type'=> 'number',\n \t'min'=> 0,\n \t'max'=> 100,\n \t'step'=> '0.01',\n \t'required'=> 'required',\n ],\n\n [\n \t'id'=> 'stat',\n \t'name'=> 'stat', \n \t'desc'=> 'isActive', \n \t'val'=>1, \n \t'type'=> 'checkbox',\n ],\n ];\n\n }", "public function getPost(): array;", "public function formData()\n {\n return array(\n 'id' => $this->_id,\n 'name' => $this->_name,\n 'content' => $this->_content,\n 'categoryId' => $this->_category_id,\n 'userId' => $this->_user_id\n );\n }", "protected function form()\n {\n return [];\n }", "protected function form()\n {\n return [];\n }", "public function updateData()\n {\n return ([\n [\"2\", \"9898989898\", \"pune\", 302, \"manager-records\"]\n ]);\n }", "private function to_array() {\n\t\t$values = array(\n\t\t\t'id' => $this -> id,\n\t\t\t'name' => $this -> name);\n\t\treturn $values;\n\t}", "public function toOptionArray()\n {\n return Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true);\n }", "public function posts()\n {\n $post = filter_input_array(INPUT_POST);\n array_walk_recursive($post, function(&$value) {\n $value = JORequest::setAntiInjection($value);\n });\n return $post;\n }", "private static function postParams(): array\n {\n $postParams = [];\n\n if (!empty($_POST)) {\n $postParams = filter_input_array(INPUT_POST, FILTER_DEFAULT);\n }\n\n return $postParams;\n }", "public function get_form() : ?array\n {\n $form_filtro = array();\n \n $form_filtro['estado'] = $this->estado;\n $form_filtro['cidade'] = $this->cidade;\n $form_filtro['ordem_preco'] = $this->ordem_preco;\n $form_filtro['ordem_data'] = $this->ordem_data;\n $form_filtro['estado_uso'] = $this->estado_uso;\n $form_filtro['preferencia_entrega'] = $this->preferencia_entrega;\n $form_filtro['status_peca'] = $this->status_peca;\n \n return $form_filtro;\n }", "public function getEdit($data)\n {\n return array(\n 'Currency.name' => array('type' => 'text', 'label' => __(\"Name\")),\n 'Currency.code' => array('type' => 'text', 'label' => __(\"Code\")),\n 'Currency.rate' => array('type' => 'text', 'label' => __(\"Rate\"))\n );\n }", "public function paramsPost()\r\n {\r\n return $this->params_post;\r\n }", "public function getEditSteps()\n {\n return isset($this->source['edit_steps']) ? $this->source['edit_steps'] : [];\n }", "function getPosts()\n{\n\n $posts = array();\n $posts[0] = $_POST['id'];\n $posts[1] = $_POST['color'];\n $posts[2] = $_POST['size'];\n return $posts;\n}", "function getPosts()\r\n{\r\n $posts = array();\r\n $posts[0] = $_POST['id'];\r\n $posts[1] = $_POST['iname'];\r\n $posts[2] = $_POST['cname'];\r\n //$posts[3] = $_POST['age'];\r\n return $posts;\r\n}", "public function getParameterValues(): array\n {\n return $this->parameterValues;\n }", "public function getPostParams(): array\n {\n return $this->postParams;\n }", "public function toFormArray() : array {\n $return = [];\n\n foreach ($this->toArray() as $component) {\n $return = array_merge($return, $component->toFormArray());\n }\n\n return $return;\n }", "public function getAddEditFieldInfo($editId=\"\",$defaultArray=array())\n{\n $returnArray=array();\n $table=$this->tableName;\n \n if (isset($this->tableStructure)) {\n $returnArray=$this->tableStructure; \n }\n \n //if editId is set - then get data and put in return array.\n if ($editId !== \"\" || count($defaultArray)) {\n if (count($defaultArray)) {\n $dataRow=$defaultArray; \n }\n else {\n $fieldsToInclude=$this->getFieldsOnTable();\n $fieldList=implode(\",\", $fieldsToInclude);\n $sql=\"select $fieldList from $table where id=$editId\";\n $dataRow=$this->getTableData($sql,true,true);\n } \n //if row returned - then loop thru returnArray and set value. \n if (count($dataRow)) {\n foreach ($returnArray as $index=>$val) {\n $columnName=$returnArray[$index]['columnName'];\n if (isset($dataRow[$columnName]) && $dataRow[$columnName] !== null) {\n $returnArray[$index]['value']=$dataRow[$columnName]; \n }\n }\n } \n }\n \n return $returnArray; \n}", "protected function getPost(): array {\n\t\t$post = array_diff_key($this->request->getParams(), array_flip(array( '_METHOD', )));\n\n\t\treturn $post;\n\t}", "public function parameters()\n {\n return array_merge($this->get, $this->post);\n }", "function get_actions_data() {\n\t\t$actions_data = $this->get_meta( 'actions' );\n\t\treturn is_array( $actions_data ) ? array_map( [ $this, 'format_action_fields' ], $actions_data ) : [];\n\t}", "public function getEditais()\n {\n return $this->editais;\n }", "public function getPostFields(): array\n {\n return $this->postFields;\n }", "public function getEdit()\n\t{\n\t}", "public function toArray()\n {\n return array(\n 'blogic' => $this->bLogic,\n 'field_name' => $this->fieldName,\n 'operator' => $this->operator,\n 'value' => $this->value,\n );\n }", "public function validate_edit(&$array) {\n\t\t$array = Validate::factory($array)\n ->filter(TRUE, 'trim')\n ->rules('name', $this->_rules['name'])\n ->rules('desc', $this->_rules['desc']);\n return $array;\n\t}", "protected function getValidFieldValues()\n {\n return [\n 'id' => [\n '1',\n '100'\n ]\n ];\n }", "public function getArrayResp()\n {\n return json_decode(Yii::$app->request->post(), false);\n }", "public function GetFormPostedValuesQuestions() {\n\t\t/* THE ARRAY OF POSTED FIELDS */\n\t\t$req_fields=array(\"survey_id\",\"question\");\n\n\t\tfor ($i=0;$i<count($req_fields);$i++) {\n\n\t\t\t//echo $_POST['application_id'];\n\t\t\tif (ISSET($_POST[$req_fields[$i]]) && !EMPTY($_POST[$req_fields[$i]])) {\n\t\t\t\t$this->SetVariable($req_fields[$i],EscapeData($_POST[$req_fields[$i]]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//echo \"<br>\".$this->req_fields[$i].\"<br>\";\n\t\t\t\t$this->$req_fields[$i]=\"\";\n\t\t\t}\n\t\t}\n\t}", "public function getEditForm();", "public function serializeForEdit(AdminRequest $request)\n {\n return array_merge($this->serializeWithId($this->resolveEditFields($request)), [\n 'authorizedToView' => $this->authorizedToView($request),\n 'authorizedToUpdate' => $this->authorizedToUpdate($request),\n 'authorizedToCreate' => static::authorizedToCreate($request),\n 'authorizedToDelete' => $this->authorizedToDelete($request),\n ]);\n }", "protected function getSaveData(): array\n {\n foreach ( $this->columns as $columnName => $column ) { //Get DB input array\n $propertyName = $this->getColumnPropertyName( $columnName );\n $propertyValue = $this->$propertyName;\n if ( !empty( $this->changed[$propertyName] ) ) {\n\n if ( !empty( $column['refresh_after_update'] ) ) {\n $this->redirectAfterUpdate = true;\n }\n\n if ( $propertyValue instanceof self ) {\n $data[$columnName] = $propertyValue->id;\n } else {\n $data[$columnName] = $propertyValue;\n }\n }\n }\n return $data ?? [];\n }", "protected function getInputData()\n {\n (new HCECOrderAddressValidator())->validateForm();\n\n $_data = request()->all();\n\n if( array_has($_data, 'id') )\n array_set($data, 'record.id', array_get($_data, 'id'));\n\n array_set($data, 'record.order_id', array_get($_data, 'order_id'));\n array_set($data, 'record.email', array_get($_data, 'email'));\n array_set($data, 'record.first_name', array_get($_data, 'first_name'));\n array_set($data, 'record.last_name', array_get($_data, 'last_name'));\n array_set($data, 'record.country', array_get($_data, 'country'));\n array_set($data, 'record.street_address', array_get($_data, 'street_address'));\n array_set($data, 'record.city', array_get($_data, 'city'));\n array_set($data, 'record.district', array_get($_data, 'district'));\n array_set($data, 'record.postal_code', array_get($_data, 'postal_code'));\n array_set($data, 'record.phone', array_get($_data, 'phone'));\n array_set($data, 'record.notes', array_get($_data, 'notes'));\n array_set($data, 'record.company_name', array_get($_data, 'company_name'));\n array_set($data, 'record.company_code', array_get($_data, 'company_code'));\n array_set($data, 'record.company_vat', array_get($_data, 'company_vat'));\n\n return $data;\n }", "protected function getInputData ()\n {\n (new HCRivilePaymentsValidator())->validateForm();\n\n $_data = request()->all();\n\n if (array_has($_data, 'id'))\n array_set($data, 'record.id', array_get($_data, 'id'));\n\n array_set($data, 'record.COUNT', array_get($_data, 'COUNT'));\n array_set($data, 'record.I04_KODAS_CH', array_get($_data, 'I04_KODAS_CH'));\n array_set($data, 'record.I04_DOK_NR', array_get($_data, 'I04_DOK_NR'));\n array_set($data, 'record.I04_OP_RUSIS', array_get($_data, 'I04_OP_RUSIS'));\n array_set($data, 'record.I04_OP_TIPAS', array_get($_data, 'I04_OP_TIPAS'));\n array_set($data, 'record.I04_OP_STORNO', array_get($_data, 'I04_OP_STORNO'));\n array_set($data, 'record.I04_OP_DATA', array_get($_data, 'I04_OP_DATA'));\n array_set($data, 'record.I04_KODAS_SS', array_get($_data, 'I04_KODAS_SS'));\n array_set($data, 'record.I04_MOKETOJAS', array_get($_data, 'I04_MOKETOJAS'));\n array_set($data, 'record.I04_KODAS_KS', array_get($_data, 'I04_KODAS_KS'));\n array_set($data, 'record.I04_PAV', array_get($_data, 'I04_PAV'));\n array_set($data, 'record.I04_ADR', array_get($_data, 'I04_ADR'));\n array_set($data, 'record.I04_ATSTOVAS', array_get($_data, 'I04_ATSTOVAS'));\n array_set($data, 'record.I04_KODAS_VS', array_get($_data, 'I04_KODAS_VS'));\n array_set($data, 'record.I04_SUMA', array_get($_data, 'I04_SUMA'));\n array_set($data, 'record.I04_SUMA_DSK', array_get($_data, 'I04_SUMA_DSK'));\n array_set($data, 'record.I04_SUMA_PLK', array_get($_data, 'I04_SUMA_PLK'));\n array_set($data, 'record.I04_PASTABOS', array_get($_data, 'I04_PASTABOS'));\n array_set($data, 'record.I04_PERKELTA', array_get($_data, 'I04_PERKELTA'));\n array_set($data, 'record.I04_IMP_EXP', array_get($_data, 'I04_IMP_EXP'));\n array_set($data, 'record.I04_KODAS_VL', array_get($_data, 'I04_KODAS_VL'));\n array_set($data, 'record.I04_SUMA_VAL', array_get($_data, 'I04_SUMA_VAL'));\n array_set($data, 'record.I04_KOEF', array_get($_data, 'I04_KOEF'));\n array_set($data, 'record.I04_USERIS', array_get($_data, 'I04_USERIS'));\n array_set($data, 'record.I04_R_DATE', array_get($_data, 'I04_R_DATE'));\n array_set($data, 'record.I04_ADDUSR', array_get($_data, 'I04_ADDUSR'));\n array_set($data, 'record.I04_KODAS_SM', array_get($_data, 'I04_KODAS_SM'));\n array_set($data, 'record.I04_APRASYMAS', array_get($_data, 'I04_APRASYMAS'));\n array_set($data, 'record.I04_SUMA_PER', array_get($_data, 'I04_SUMA_PER'));\n array_set($data, 'record.I04_SUMA_WK', array_get($_data, 'I04_SUMA_WK'));\n array_set($data, 'record.I04_KODAS_LS_1', array_get($_data, 'I04_KODAS_LS_1'));\n array_set($data, 'record.I04_KODAS_LS_2', array_get($_data, 'I04_KODAS_LS_2'));\n array_set($data, 'record.I04_KODAS_LS_3', array_get($_data, 'I04_KODAS_LS_3'));\n array_set($data, 'record.I04_KODAS_LS_4', array_get($_data, 'I04_KODAS_LS_4'));\n array_set($data, 'record.I04_KODAS_ZN', array_get($_data, 'I04_KODAS_ZN'));\n array_set($data, 'record.I04_BUSENA', array_get($_data, 'I04_BUSENA'));\n\n return makeEmptyNullable($data);\n }", "public function getInput()\n {\n $result = array();\n\n $table = new Application_Model_DbOptions();\n $options = array();\n\t\t$options['optRegion'] = $table->getRegion();\n\n // elements\n\t\t$result['src_region_code'] = array(\n 'type' => 'select',\n 'name' => 'src_region_code',\n 'value' => '',\n 'options' => $options['optRegion'],\n 'ext' => 'onChange=\\'$(\"#src_ba\").val(\"\");\\'', //src_afd\n\t\t\t'style' => 'width:200px;background-color: #e6ffc8;'\n );\n\t\t\n\t\t$options['optMatStage'] = $table->getMaturityStage();\n\t\t$result['src_matstage_code'] = array(\n 'type' => 'select',\n 'name' => 'src_matstage_code',\n 'value' => '',\n 'options' => $options['optMatStage'],\n 'ext' => '',\n\t\t\t'style' => 'width:200px;'\n );\n\n return $result;\n }", "private function storeData(Request $request): array\n {\n return [\n \"name\" => $request->post('name'),\n \"description\" => $request->post('description')\n ];\n }", "public function getPosts() {\n return isset($_POST) ? $_POST : array();\n }", "public function toArray($request)\n {\n return [\n 'client' => $this->name ? $this->name : 'no data',\n 'nat' => $this->national_id ? $this->national_id : 'no data',\n 'street' => $this->street_name ? $this->street_name : 'no data',\n 'building' => $this->building_name ? $this->building_name : 'no data',\n 'floor' => $this->floor_number ? $this->floor_number : 'no data',\n 'flat' => $this->flat_number ? $this->flat_number : 'no data',\n 'is_main' => $this->is_main,\n 'action' => '<form method=\"GET\" class=\"d-inline p-2\" action=\"' . url(\"admin/userAddresses\", [$this->id, \"edit\"]) . '\"><input type=\"hidden\" name=\"_token\" value=\"' . csrf_token() . '\"><button type=\"submit\" class=\"d-inline p-2 edit btn btn-primary\">Edit</button></form>' . '<button onclick=\"deleteAddress('.$this->id.')\" class=\"d-inline p-2 del btn btn-danger\">Delete</button>',\n\n ];\n }", "protected function inputs()\n {\n return [];\n }", "public function generate_text_for_edit()\n\t{\n\t\treturn array_merge(parent::generate_text_for_edit(), array(\n\t\t\t'topic_sticky'\t=> $this->topic->topic_sticky,\n\t\t\t'topic_locked'\t=> $this->topic->topic_locked,\n\t\t));\n\t}", "private static function getRawInputs(): array\n {\n $inputParams = [];\n\n if (in_array(self::$__method, ['PUT', 'PATCH', 'DELETE'])) {\n\n $input = file_get_contents('php://input');\n\n if (self::$server->contentType()) {\n switch (self::$server->contentType()) {\n case 'application/x-www-form-urlencoded':\n parse_str($input, $inputParams);\n break;\n case 'application/json':\n $inputParams = json_decode($input);\n break;\n default :\n $inputParams = parse_raw_http_request($input);\n break;\n }\n }\n }\n\n return (array) $inputParams;\n }", "public function toArray(): array\n {\n return [\n 'header' => (array)$this->header(),\n 'content' => (string)$this->getFormValue('content')\n ];\n }", "function to_array() {\r\n\t\t$out = array();\r\n\t\t\r\n\t\tforeach($this->input as $item) {\r\n\t\t\t$out[$item['name']] = $item['value'];\r\n\t\t}\r\n\t\t\r\n\t\treturn $out;\r\n\t}", "protected function append()\n {\n // ln video da el parameter el gwa route el edit\n // el id e3ny bs asmo video b3rf from\n // php artisn route:list\n $array= [ \n 'categories'=>category::get(),\n 'skills'=>skill::get(),\n 'tags'=>tag::get(),\n 'selectedSkills'=>[],\n 'selectedTags'=>[],\n 'comments'=>[],\n\n ];\n\n if( request()->route()->parameter('video'))\n {\n $array['selectedSkills']=$this->model->find(request()->route()->parameter('video'))->skills()->get()->pluck('id')->toArray();\n $array['selectedTags']=$this->model->find(request()->route()->parameter('video'))->tags()->pluck('tags.id')->toArray();\n $array['comments']=$this->model->find(request()->route()->parameter('video'))->comments()->orderBy('id','desc')->get();\n\n } \n return $array;\n\n\n }", "public function toArray()\n {\n return [\n 'id' => $this->id,\n 'options' => $this->options,\n 'value' => $this->value\n ];\n }" ]
[ "0.6936908", "0.68367857", "0.67292047", "0.66244406", "0.66107786", "0.6606725", "0.65764827", "0.6500132", "0.6402416", "0.63992316", "0.6378647", "0.63711", "0.63443154", "0.6340069", "0.6313838", "0.6308942", "0.6292756", "0.62908304", "0.6285934", "0.6269503", "0.6265795", "0.62466806", "0.62368566", "0.6225237", "0.62160426", "0.6168039", "0.615517", "0.6117402", "0.61104804", "0.608933", "0.60718924", "0.60678816", "0.60436845", "0.6041834", "0.60283196", "0.60192287", "0.6014533", "0.60071725", "0.6003795", "0.6001144", "0.59774464", "0.5976166", "0.59648705", "0.59606284", "0.5955739", "0.59523344", "0.5943262", "0.5940839", "0.59297836", "0.5915514", "0.591376", "0.59057665", "0.5863231", "0.5839084", "0.58260155", "0.5823004", "0.5815226", "0.579772", "0.579772", "0.5788772", "0.57884717", "0.5787739", "0.57877105", "0.5780703", "0.57787126", "0.5774234", "0.5758597", "0.57502437", "0.5749146", "0.57382596", "0.57351613", "0.57342094", "0.5726397", "0.5723917", "0.572132", "0.5712419", "0.57112545", "0.57111603", "0.57108927", "0.5710444", "0.5707465", "0.5706964", "0.5703927", "0.57017386", "0.56970954", "0.56896335", "0.5687704", "0.5686178", "0.5683149", "0.56693834", "0.5664009", "0.5658459", "0.5643331", "0.5640191", "0.5638328", "0.5631497", "0.56279284", "0.562211", "0.56217074", "0.5619518", "0.56131005" ]
0.0
-1
Returns the form action value when submitting a new translation.
protected function getFormSubmitActionForNewTranslation(EntityInterface $entity, $langcode) { $entity->addTranslation($langcode, $entity->toArray()); return $this->getFormSubmitAction($entity, $langcode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFormAction(){\n return (\n (\n $this->_action!==NULL &&\n is_string($this->_action) &&\n strlen(trim($this->_action))\n )\n ?$this->_action\n :$this->setFormAction()\n );\n }", "function getFormAction()\n {\n return $this->getAttribute(\"formaction\");\n }", "public function getFormAction() { return $this->_formAction; }", "function getAction () {return $this->getFieldValue ('action');}", "public function FormAction()\n {\n if ($this->formActionPath) {\n return $this->formActionPath;\n }\n\n // Get action from request handler link\n return $this->getRequestHandler()->Link();\n }", "public static function getPostAction(){\n if(isset($_POST['dg_action'])){\n return key($_POST['dg_action']);\n }\n }", "public function getCurrentAction() {\n\t\treturn $this->request->get('action','undefined');\n\t}", "public function action()\n {\n if (!$this->action) {\n return null;\n }\n return $this->action->getValue();\n }", "public function getFormActionUrl()\n {\n if ($this->hasFormActionUrl()) {\n return $this->getData('form_action_url');\n }\n return $this->getUrl('*/socialgift_quote/save');\n }", "public function action()\n {\n return $this->getAttribute('action');\n }", "protected function getActionInput(): string\n\t{\n\t\treturn trim($this->option('action'));\n\t}", "public function get_action() {\n\t\t$action\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= (isset($_GET['action']))? preg_replace('@[^a-zA-Z0-9_]@', '', $_GET['action']) : $this->conf('default_action');\n\t\t\n\t\t# Return the Action\n\t\treturn $action;\n\t}", "public function action() {\n return $this->action;\n }", "protected function getAction(): string\n\t{\n\t\treturn $this->getActionInput() ?: $this->getDefaultAction($this->getNameInput());\n\t}", "public function action()\n {\n return $this->reqaction;\n }", "public function getFormAction()\n {\n\n return $this->getUrl('contact/index/post', ['_secure' => true]);\n }", "public function getFormAction()\n {\n return $this->getUrl('faq/index/email');\n }", "public function getFormAction()\n {\n return $this->getUrl('zirconprocessing/catalogrequest');\n }", "public function get_action() {\r\n\t\treturn $this->action;\r\n\t}", "public function get_action() {\r\n\t\treturn esc_url_raw( $this->action ? $this->action : wp_unslash( $_SERVER['REQUEST_URI'] ) );\r\n\t}", "private function get_action() {\n\t\treturn $this->action;\n\t}", "private function get_action() {\n\t\treturn $this->action;\n\t}", "private function get_action() {\n\t\treturn $this->action;\n\t}", "public function get_action() {\n return $this->_action;\n }", "public function get_action()\n {\n return $this->_action;\n }", "public function action(){\n return $this->action;\n }", "protected function validateAction() {\n\t\tif (isset($_POST['Action']) || isset($_POST['action'])) {\n\t\t\tif (isset($_POST['Action'])) {\n\t\t\t\t$action = htmlspecialchars($_POST['Action']);\n\t\t\t} else {\n\t\t\t\t$action = htmlspecialchars($_POST['action']);\n\t\t\t}\t\n\t\t\treturn strtolower($action);\n\t\t\t\n\t\t} else if (isset($_GET['Action']) || isset($_GET['action'])) {\n\t\t\tif (isset($_GET['Action'])) {\n\t\t\t\t$action = htmlspecialchars($_GET['Action']);\t\n\t\t\t} else {\n\t\t\t\t$action = htmlspecialchars($_GET['action']);\n\t\t\t}\n\t\t\treturn strtolower($action);\n\t\t\t\n\t\t} else {\n\t\t\tif (headers_sent()) {\n\t\t\t\treturn $this->getDefaultActionAfterHeaders();\n\t\t\t} else {\n\t\t\t\theader(\"Location: \".$this->getDefaultAction());\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t}", "public function getFormActionRouteName(): string\n {\n return $this->resource->getRouteName($this->getFormActionRouteSuffix());\n }", "public function getFormAction()\n {\n return $this->is_sandbox ? self::TESTING_URL : self::PRODUCTION_URL;\n }", "public function get_action(): ?string {\n\t\treturn $this->action;\n\t}", "public function getAction()\n\t{\n\t\t$action = strtolower($this->getParam(self::ACTION_PARAM));\n\t\tif ($action === '' or ! preg_match('/^[a-z0-9_-]+$/', $action)) {\n\t\t\treturn Controller::DEFAULT_ACTION;\n\t\t}\n\n\t\treturn $action;\n\t}", "public function setFormAction($value) { $this->_formAction = $value; }", "public function getContactFormAction()\n {\n return $this->getUrl('contacts/index/post');\n }", "public function getConversionAction()\n {\n return isset($this->conversion_action) ? $this->conversion_action : '';\n }", "public function getAction()\n {\n return $this->sAction;\n }", "public function getAction(): string\n {\n return $this->action;\n }", "public function getAction(): string\n {\n return $this->action;\n }", "public function action() {\n\t\tif ( ! isset( $_POST['_wpnonce'] ) || ! isset( $_POST['action'] ) || ! in_array( $_POST['action'], [ 'add-association', 'delete-association' ], true ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$current_action = $_POST['action'];\n\t\t$result = null;\n\n\t\tswitch ( $current_action ) {\n\t\t\tcase 'add-association' :\n\t\t\t\t$result = $this->action_add_association();\n\t\t\t\tbreak;\n\t\t\tcase 'delete-association' :\n\t\t\t\t$result = $this->action_delete_association();\n\t\t\t\tbreak;\n\t\t\tdefault :\n\t\t\t\treturn;\n\t\t}\n\n\t\t$query_args = [\n\t\t\t'performed_action' => $current_action,\n\t\t];\n\n\t\tif ( is_wp_error( $result ) ) {\n\t\t\t$query_args['error'] = $result->get_error_code();\n\t\t} else {\n\t\t\t$query_args['updated'] = 'success';\n\t\t}\n\n\t\twp_safe_redirect( add_query_arg( $query_args, $this->url() ) );\n\t\texit;\n\t}", "public function getSubmitValue(): string\n {\n return $this->submitValue;\n }", "public function getSuggestedAction()\n {\n return $this->singleValue('//i:suggestedAction');\n }", "function _get_action()\n {\n $retval = preg_quote($this->object->param('action'), '/');\n $retval = strtolower(preg_replace(\"/[^\\\\w]/\", '_', $retval));\n return preg_replace(\"/_{2,}/\", \"_\", $retval) . '_action';\n }", "public function getAction() {\n\t\treturn $this->action;\n\t}", "private static function getAction() {\n $action = \"index\";\n if (isset($_GET['action']) && trim($_GET['action']) != \"\") $action = $_GET['action'];\n return $action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction()\n {\n return $this->_action;\n }", "public function getAction()\n {\n return $this->_action;\n }", "public function getAction()\n {\n return $this->m_action;\n }", "public function setFormAction($_action=NULL){\n return $this->_action = (\n (\n $_action!==NULL &&\n is_string($_action) &&\n strlen(trim($_action))\n )\n ?$_action\n :(self::ACTION_DEFAULT)\n );\n }", "private function form_action($matches){\r\n\t\t// $matches[1] holds single or double quote - whichever was used by webmaster\r\n\t\t\r\n\t\t// $matches[2] holds form submit URL - can be empty which in that case should be replaced with current URL\r\n\t\tif(!$matches[2]){\r\n\t\t\t$matches[2] = $this->base_url;\r\n\t\t}\r\n\t\t$new_action = proxify_url($matches[2], $this->base_url);\r\n//\t\tconsole_log('form_action-debug ' . no_encode_proxify_url($matches[2], $this->base_url));\r\n//\t\tconsole_logs('form_action-debug-new_action ' . $new_action);\r\n\r\n\r\n\t\t// what is form method?\r\n\t\t$form_post = preg_match('@method=([\"\\'])post\\1@i', $matches[0]) == 1;\r\n//\t\tconsole_log('$form_post '. $form_post);\r\n\t\t// take entire form string - find real url and replace it with proxified url\r\n\t\t$result = str_replace($matches[2], $new_action, $matches[0]);\r\n\t\t\r\n\t\t// must be converted to POST otherwise GET form would just start appending name=value pairs to your proxy url\r\n\t\tif(!$form_post){\r\n\t\t\r\n\t\t\t// may throw Duplicate Attribute warning but only first method matters\r\n\t\t\t$result = str_replace(\"<form\", '<form method=\"POST\"', $result);\r\n\t\t\t\r\n\t\t\t// got the idea from Glype - insert this input field to notify proxy later that this form must be converted to GET during http\r\n\t\t\t$result .= '<input type=\"hidden\" name=\"convertGET\" value=\"1\">';\r\n//\t\t\tconsole_log('form_action-debug-result ' );\r\n\t\t}\r\n\r\n//\t\tconsole_log('$result '. $result);\r\n\t\treturn $result;\r\n\t}", "public function getAction()\n\t{\n\t\treturn $this->action;\n\t}", "public function getAction()\n\t{\n\t\treturn $this->action;\n\t}", "public function Action()\n {\n return $this->action;\n }", "public function action()\n {\n return isset($this->action) ? $this->action : false;\n }", "public function getAction()\n\t{\n\t\treturn $this->_action;\n\t}", "public function getDefaultAction() {\r\n\t\treturn $this->defaultAction;\r\n\t}", "public function getActionName(){\n\t\tif ( !isset($_GET['action'])){\n\t\t\treturn 'defaultAction';\n\t\t}\n\t\telse{\n\t\t\treturn $_GET['action'];\n\t\t}\n\t}", "public function get_action() {\n\t\treturn $this->action ? $this->action : 'import';\n\t}", "public function getAction() {\n \n return $this->action;\n \n }", "public function getRequestAction()\n {\n return $this->requestAction;\n }", "protected function getFormSubmitAction(EntityInterface $entity, $langcode) {\n return 'Save' . $this->getFormSubmitSuffix($entity, $langcode);\n }", "public function getDefaultAction()\n {\n return $this->_defaultAction;\n }", "public function defaultAction()\n {\n if ($this->hasDefaultAction && $this->actions) {\n return $this->actions->flattenFields()->filterByCallback(function ($field) {\n return $field instanceof FormAction;\n })->first();\n }\n return null;\n }", "public function getAction(){\r\n return $this->sAction;\r\n }", "public static function getAction() {\n\t return self::getPathParams()['action'];\n\t}", "function getAction() {\r\n\t\t\r\n\t\treturn $this->mAction;\r\n\t}", "public function getSubmitVar() { return $this->_submitVar; }", "public function getRequestActionText()\n {\n return t(\"Deletion\");\n }", "public function getPaymentFormActionUrl()\n {\n $keys = self::getKeysInfo();\n if ($keys) {\n return $keys['formUrl'];\n }\n return false;\n }", "public function getAction(): ?string\n {\n return $this->action;\n }", "public function getNavigationActionLabel()\r\n\t{\r\n\t\treturn $this->label;\r\n\t}", "public function getSubmitButton()\n {\n return $this->submitButton;\n }", "public function formAction() {}", "public function getAction() : string{\n return $this->action;\n }", "public function defaultAction()\n {\n if (s('post')->exist('short')) {\n return $this->action('result');\n } else {\n return $this->action('form');\n }\n }", "public function getActionName() {\n\t\treturn $this->action;\n\t}", "public static function getSearchAction()\n {\n return self::$search_action;\n }", "public function getActionName()\n {\n return $this->__get(\"action_name\");\n }", "protected function getCommandControllerActionField() {}", "public function getActionName()\n {\n return $this->_action;\n }", "public function action() {\n $html_allowed = array();\n foreach ($_REQUEST as $key => $value) {\n // ignore config values!\n if (!in_array($key, $html_allowed)) {\n $_REQUEST[$key] = $this->xssPrevent($value);\n }\n }\n\n $action = isset($_REQUEST[self::REQUEST_ACTION]) ? $_REQUEST[self::REQUEST_ACTION] : self::ACTION_DEFAULT;\n\n switch ($action) :\n case self::ACTION_CONFIG:\n $this->show(self::ACTION_CONFIG, $this->dlgConfig());\n break;\n case self::ACTION_ABOUT:\n $this->show(self::ACTION_ABOUT, $this->dlgAbout());\n break;\n case self::ACTION_EDIT:\n $this->show(self::ACTION_EDIT, $this->dlgEdit());\n break;\n case self::ACTION_EDIT_CHECK:\n $this->show(self::ACTION_EDIT, $this->checkEdit());\n break;\n case self::ACTION_PROTOCOL:\n $this->show(self::ACTION_PROTOCOL, $this->dlgProtocol());\n break;\n case self::ACTION_CRONJOBS:\n $this->show(self::ACTION_CRONJOBS, $this->dlgCronjobs());\n break;\n default:\n $this->show(self::ACTION_ABOUT, $this->dlgAbout());\n break;\n endswitch;\n }", "public function getActionName() {\n\n\t\treturn $this->_action;\n\t}" ]
[ "0.760255", "0.73368746", "0.73327214", "0.6914913", "0.678881", "0.6547862", "0.6524198", "0.6453983", "0.6430061", "0.63965803", "0.6353759", "0.63483995", "0.6346935", "0.6328987", "0.6307215", "0.6297129", "0.6291074", "0.6289689", "0.62746817", "0.6239189", "0.62236", "0.62236", "0.62236", "0.6223189", "0.61864805", "0.6179315", "0.61548597", "0.60969394", "0.607394", "0.6064369", "0.6044", "0.6041731", "0.6033244", "0.6011488", "0.5989014", "0.5950558", "0.5950558", "0.5923117", "0.59194523", "0.5916051", "0.5915142", "0.5908216", "0.58981013", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58971494", "0.58910006", "0.5890969", "0.5890969", "0.5890969", "0.5890969", "0.5890969", "0.58844626", "0.58844626", "0.58829045", "0.5870851", "0.58665615", "0.58662367", "0.58662367", "0.58606833", "0.58586997", "0.58431995", "0.5826784", "0.582106", "0.5815616", "0.58130187", "0.58108354", "0.5809982", "0.5800576", "0.57931596", "0.5786023", "0.5784421", "0.5782113", "0.57545894", "0.5746108", "0.57434654", "0.5738543", "0.57101184", "0.5701715", "0.5701301", "0.5698523", "0.56912726", "0.568319", "0.5656386", "0.56524116", "0.5650534", "0.56471837", "0.5629593", "0.5612597" ]
0.0
-1
Returns the form action value to be used to submit the entity form.
protected function getFormSubmitAction(EntityInterface $entity, $langcode) { return 'Save' . $this->getFormSubmitSuffix($entity, $langcode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFormAction()\n {\n return $this->getAttribute(\"formaction\");\n }", "protected function getFormAction(){\n return (\n (\n $this->_action!==NULL &&\n is_string($this->_action) &&\n strlen(trim($this->_action))\n )\n ?$this->_action\n :$this->setFormAction()\n );\n }", "public function getFormAction() { return $this->_formAction; }", "public function FormAction()\n {\n if ($this->formActionPath) {\n return $this->formActionPath;\n }\n\n // Get action from request handler link\n return $this->getRequestHandler()->Link();\n }", "function getAction () {return $this->getFieldValue ('action');}", "public function action()\n {\n return $this->getAttribute('action');\n }", "public function action()\n {\n if (!$this->action) {\n return null;\n }\n return $this->action->getValue();\n }", "public function action() {\n return $this->action;\n }", "public function getFormActionUrl()\n {\n if ($this->hasFormActionUrl()) {\n return $this->getData('form_action_url');\n }\n return $this->getUrl('*/socialgift_quote/save');\n }", "public function action()\n {\n return $this->reqaction;\n }", "public function action(){\n return $this->action;\n }", "public function Action()\n {\n return $this->action;\n }", "protected function getActionInput(): string\n\t{\n\t\treturn trim($this->option('action'));\n\t}", "public function get_action() {\r\n\t\treturn $this->action;\r\n\t}", "public function getFormAction()\n {\n return $this->is_sandbox ? self::TESTING_URL : self::PRODUCTION_URL;\n }", "protected function getAction(): string\n\t{\n\t\treturn $this->getActionInput() ?: $this->getDefaultAction($this->getNameInput());\n\t}", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getAction() {\n return $this->action;\n }", "public function getCurrentAction() {\n\t\treturn $this->request->get('action','undefined');\n\t}", "public function getAction(): string\n {\n return $this->action;\n }", "public function getAction(): string\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction()\n {\n return $this->action;\n }", "public function getAction() {\n \n return $this->action;\n \n }", "public function getAction() {\n\t\treturn $this->action;\n\t}", "public function getFormAction()\n {\n return $this->getUrl('faq/index/email');\n }", "public function get_action() {\n return $this->_action;\n }", "public function getAction()\n {\n return $this->sAction;\n }", "public function getAction()\n {\n return $this->action;\n }", "private function get_action() {\n\t\treturn $this->action;\n\t}", "private function get_action() {\n\t\treturn $this->action;\n\t}", "private function get_action() {\n\t\treturn $this->action;\n\t}", "public function getAction()\n\t{\n\t\treturn $this->action;\n\t}", "public function getAction()\n\t{\n\t\treturn $this->action;\n\t}", "public function get_action() {\r\n\t\treturn esc_url_raw( $this->action ? $this->action : wp_unslash( $_SERVER['REQUEST_URI'] ) );\r\n\t}", "public function get_action()\n {\n return $this->_action;\n }", "public function getAction()\n {\n return $this->_action;\n }", "public function getAction()\n {\n return $this->_action;\n }", "public function getFormAction()\n {\n\n return $this->getUrl('contact/index/post', ['_secure' => true]);\n }", "public function get_action() {\n\t\t$action\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= (isset($_GET['action']))? preg_replace('@[^a-zA-Z0-9_]@', '', $_GET['action']) : $this->conf('default_action');\n\t\t\n\t\t# Return the Action\n\t\treturn $action;\n\t}", "public static function getPostAction(){\n if(isset($_POST['dg_action'])){\n return key($_POST['dg_action']);\n }\n }", "public function action()\n {\n return isset($this->action) ? $this->action : false;\n }", "public function getFormAction()\n {\n return $this->getUrl('zirconprocessing/catalogrequest');\n }", "public function getAction()\n\t{\n\t\treturn $this->_action;\n\t}", "public function getAction()\n {\n return $this->m_action;\n }", "public function getAction()\n\t{\n\t\t$action = strtolower($this->getParam(self::ACTION_PARAM));\n\t\tif ($action === '' or ! preg_match('/^[a-z0-9_-]+$/', $action)) {\n\t\t\treturn Controller::DEFAULT_ACTION;\n\t\t}\n\n\t\treturn $action;\n\t}", "public function getContactFormAction()\n {\n return $this->getUrl('contacts/index/post');\n }", "public function setFormAction($value) { $this->_formAction = $value; }", "public static function getAction() {\n\t return self::getPathParams()['action'];\n\t}", "public function getFormActionRouteName(): string\n {\n return $this->resource->getRouteName($this->getFormActionRouteSuffix());\n }", "public function getAction()\n {\n return $this->joUrl['ACTION'];\n }", "public function getActionName() {\n\t\treturn $this->action;\n\t}", "public function getAction() : string{\n return $this->action;\n }", "public function getFormActionURI ();", "protected function getSiteAction()\n {\n return $this->siteAction;\n }", "function getAction() {\r\n\t\t\r\n\t\treturn $this->mAction;\r\n\t}", "public function get_action(): ?string {\n\t\treturn $this->action;\n\t}", "private static function getAction() {\n $action = \"index\";\n if (isset($_GET['action']) && trim($_GET['action']) != \"\") $action = $_GET['action'];\n return $action;\n }", "public function getActionName() {\n\n\t\treturn $this->_action;\n\t}", "public function getAction(){\r\n return $this->sAction;\r\n }", "public function getActionName()\n {\n return $this->_action;\n }", "public function get_action() {\n\t\treturn $this->action ? $this->action : 'import';\n\t}", "public function getActionName()\n {\n return $this->__get(\"action_name\");\n }", "function _get_action()\n {\n $retval = preg_quote($this->object->param('action'), '/');\n $retval = strtolower(preg_replace(\"/[^\\\\w]/\", '_', $retval));\n return preg_replace(\"/_{2,}/\", \"_\", $retval) . '_action';\n }", "public function getAction()\n {\n if (is_null($this->_action)) {\n $action = $this->getConfiguration()\n ->get('router.action', 'index');\n if (isset($this->_params['action'])) {\n $action = $this->_params['action'];\n }\n $this->_action = $action;\n }\n return $this->_action;\n }", "public function getRequestAction()\n {\n return $this->requestAction;\n }", "public function getActionName() {\n return $this->actionName;\n }", "public function getFormActionUrl()\n {\n return $this->_customerUrl->getLoginPostUrl();\n }", "public function getSuggestedAction()\n {\n return $this->singleValue('//i:suggestedAction');\n }", "public function getAction(): ?string\n {\n return $this->action;\n }", "public function GetControllerAction () {\n\t\treturn $this->controller . ':' . $this->action;\n\t}", "public function getActionName(){\n\t\tif ( !isset($_GET['action'])){\n\t\t\treturn 'defaultAction';\n\t\t}\n\t\telse{\n\t\t\treturn $_GET['action'];\n\t\t}\n\t}", "public function getLoginAction() {\n\t\treturn $this->_loginAction;\n\t}", "public function action()\n {\n return $this->action ?: self::ACTION_CAPTURE;\n }", "public function action(): ?string\n {\n $action = $this->parameters()[2] ?? null;\n\n return in_array($action, Belich::getAllowedActions())\n ? $action\n : null;\n }", "public function getFullActionName()\n\t{\n\t\treturn $this->request->getFullActionName();\n\t}", "public function getFullActionName()\n {\n return $this->request->getFullActionName();\n }", "public function defaultAction()\n {\n if ($this->hasDefaultAction && $this->actions) {\n return $this->actions->flattenFields()->filterByCallback(function ($field) {\n return $field instanceof FormAction;\n })->first();\n }\n return null;\n }", "public function getAction()\n {\n $value = $this->get(self::ACTION);\n return $value === null ? (integer)$value : $value;\n }", "public function getSubmitValue(): string\n {\n return $this->submitValue;\n }", "public function getPaymentFormActionUrl()\n {\n $keys = self::getKeysInfo();\n if ($keys) {\n return $keys['formUrl'];\n }\n return false;\n }", "protected function getCommandControllerActionField() {}", "public function getThisAction()\n {\n return $this->_sThisAction;\n }", "public function setFormAction($_action=NULL){\n return $this->_action = (\n (\n $_action!==NULL &&\n is_string($_action) &&\n strlen(trim($_action))\n )\n ?$_action\n :(self::ACTION_DEFAULT)\n );\n }" ]
[ "0.8299291", "0.8271404", "0.8020893", "0.7756004", "0.7580053", "0.7495279", "0.73152316", "0.7282295", "0.7197104", "0.7164042", "0.70137715", "0.69318104", "0.6919459", "0.6916079", "0.69133043", "0.6876698", "0.6864816", "0.6864816", "0.6864816", "0.6864816", "0.6864816", "0.6859794", "0.6859013", "0.6859013", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.68475753", "0.6833364", "0.68321896", "0.6820614", "0.6820481", "0.6780197", "0.6778339", "0.6768285", "0.6768285", "0.6768285", "0.6766456", "0.6766456", "0.6758385", "0.6742313", "0.6740346", "0.6740346", "0.67358094", "0.67305344", "0.6714558", "0.67077297", "0.6707257", "0.6686421", "0.6659934", "0.6641308", "0.6640244", "0.66371256", "0.6562512", "0.65538996", "0.65414566", "0.65330976", "0.6528839", "0.65181524", "0.65081894", "0.6503739", "0.649023", "0.6466759", "0.6444679", "0.64148706", "0.64111733", "0.6399956", "0.63830006", "0.63764894", "0.63599044", "0.6346958", "0.6326455", "0.63190323", "0.6304437", "0.62978584", "0.62796575", "0.6267541", "0.62608314", "0.6258097", "0.62349325", "0.62300134", "0.62217623", "0.62188077", "0.62103504", "0.61905926", "0.61854297", "0.6152845", "0.6139773", "0.6139597" ]
0.6174326
97
Returns appropriate submit button suffix based on translatability.
protected function getFormSubmitSuffix(EntityInterface $entity, $langcode) { return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSubmitButtonLabel()\n {\n return $GLOBALS['LANG']->getLL('generalMailForm_sendButton');\n }", "public function getFrontendButtonLabel()\n {\n $buttonLabel = __('Proceed to checkout');\n if ($this->isCheckoutDisabled()) {\n $buttonLabel = __('Accept Quotation');\n }\n\n return $buttonLabel;\n }", "function getClickedButton()\n\t{\n\t\tif (!$this->formSubmitted()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Was the main button pressed? Return the label\n\t\tif (isset($_POST['Submit'])) {\n\t\t\treturn $_POST['Submit'];\n\t\t}\n\t\t\n\t\t// Not the main button, one of the extra buttons?\n\t\tif (!empty($this->buttonList)) \n\t\t{\n\t\t\tforeach ($this->buttonList as $buttonName => $buttonText) \n\t\t\t{\n\t\t\t\tif (isset($_POST[$buttonName])) {\n\t\t\t\t\treturn $buttonText;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "function on_submit_button($button, $form) {\n\t\tif ($form['id'] != $this->form_id) {\n\t\t\treturn $button;\n\t\t}\n\t\treturn '';\n\t}", "public function getSubmitButton()\n {\n return $this->submitButton;\n }", "function krnEmit_button_editSubmit($caption, $value) {\n // used twice in set security\n // submit for editing - so all are consistent - (design choices:Edit button - caption - caption button that looks like link)\n //?????????? if report should not be coded as button ??????????????????????\n //$cellClass = empty($cellClass) ? '' : ' class=\"'.$class.'\"';\n return '<button type=\"submit\" class=\"kcmKrn-button-editLink\" name=\"submit\" value=\"'.$value.'\">' . $caption . '</button>';\n}", "public function get_submission_buttons() {\n return array(\n 'save',\n 'savecont',\n 'savenew',\n 'savecontnew',\n 'savenewcont',\n 'cancel'\n );\n }", "function voyage_mikado_comment_form_submit_button() {\n\n $comment_form_button = voyage_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'voyage'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "public static function createButtonLabel()\n {\n return __('Request :resource', ['resource' => static::singularLabel()]);\n }", "function medigroup_mikado_comment_form_submit_button() {\n\n $comment_form_button = medigroup_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'medigroup'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "function form_element_submit( $name, $buttonlabel )\n{\n\treturn sprintf(\"<input type=\\\"submit\\\" name=\\\"%s\\\" value=\\\"%s\\\" />\\n\", $name, $buttonlabel );\n}", "protected function _getButtonName()\n\t{\n\t\treturn $this->buttonPrefix . '-' . $this->renderOrder;\n\t}", "function vals_soc_fix_submit_button($markup, $element) {\n $markup = str_replace('type=\"submit', 'type=\"button', $markup);\n return $markup;\n}", "protected static function getSubmitButtons($args) {\r\n $r = '';\r\n global $indicia_templates;\r\n $r .= '<input type=\"submit\" class=\"' . $indicia_templates['buttonDefaultClass'] . '\" id=\"save-button\" value=\"'.lang::get('Submit').\"\\\" />\\n\";\r\n if (!empty($_GET['location_id'])) {\r\n //Don't display delete if in view only mode\r\n if (empty($_GET['summary_mode']) || $_GET['summary_mode']=='false') {\r\n // use a button here, not input, as Chrome does not post the input value\r\n $r .= '<button type=\"submit\" class=\"' . $indicia_templates['buttonWarningClass'] . '\" id=\"delete-button\" name=\"delete-button\" value=\"delete\" >'.lang::get('Delete').\"</button>\\n\";\r\n data_entry_helper::$javascript .= \"$('#delete-button').click(function(e) {\r\n if (!confirm(\\\"Are you sure you want to delete this location?\\\")) {\r\n e.preventDefault();\r\n return false;\r\n }\r\n });\\n\";\r\n }\r\n }\r\n return $r;\r\n }", "function renderSubmitButtons() {\n\t\t$output = '';\n\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"display:none;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1000\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->showCancelButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitcancel]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_cancel'])).'\" tabindex=\"1030\" />';\n\t\t}\n\t\tif ($this->currentStep > 1 && $this->showPreviousButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitback]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_back'])).'\" tabindex=\"1020\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->currentStep == count($this->steps) && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitsubmit]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_submit'])).'\" tabindex=\"1000\" />';\n\t\t}\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1010\" />';\n\t\t}\n\t\treturn '<div class=\"tx-frontendformslib-submitbuttons\">'.$output.'</div>';\n\t}", "public function getFormActionRouteSuffix(): string\n {\n return $this->getConfig('form_action_route_suffix', $this->getName());\n }", "function parce_media_submit_label($arg) {\n if (get_locale() == 'es_ES') {\n $arg['label_submit'] = 'Responder';\n return $arg;\n } else {\n $arg['label_submit'] = 'Reply';\n return $arg;\n }\n\n}", "function get_submit_button($text = '', $type = 'primary large', $name = 'submit', $wrap = \\true, $other_attributes = '')\n {\n }", "private function _createSubmitButton()\n {\n $submit = new Zend_Form_Element_Submit('submit');\n $submit->setLabel('saveAction');\n\n return $submit;\n }", "function tac_form_submit_button( $button, $form ) {\n\treturn \"<button id='gform_submit_button_{$form['id']}'>Submit form</button>\";\n}", "public function getPaymentSubmitButtonText()\n\t{\n\t\treturn \"Proceed to 2checkout.com to pay\";\n\t}", "private function getQuestionMarkActionLabel()\n\t{\n\t\tif( $this->isQuestionMarked() )\n\t\t{\n\t\t\treturn $this->lng->txt('tst_remove_mark');\n\t\t}\n\n\t\treturn $this->lng->txt('tst_question_mark');\n\t}", "function generate_button_key($action_name,$use_lang=TRUE)\n{\n\tif($use_lang)\n\t{\n\t\tif($action_name=='save')\n\t\t{\n\t\t\t$button_key = '<?php echo $this->lang->line(\\'save_button\\'); ?>';\n\t\t}\n\t\telse if($action_name=='save_change')\n\t\t{\n\t\t\t$button_key = '<?php echo $this->lang->line(\\'save_change_button\\'); ?>';\n\t\t}\n\t\telse if($action_name=='cancel')\n\t\t{\n\t\t\t$button_key = '<?php echo $this->lang->line(\\'cancel_button\\'); ?>';\n\t\t}\n\t}\n\telse\n\t{\n\t\tif($action_name=='save')\n\t\t{\n\t\t\t$button_key = 'Save';\n\t\t}\n\t\telse if($action_name=='save_change')\n\t\t{\n\t\t\t$button_key = 'Save Changes';\n\t\t}\n\t\telse if($action_name=='cancel')\n\t\t{\n\t\t\t$button_key = 'Cancel';\n\t\t}\n\n\t\t$button_key = ucwords($button_key);\n\t}\n\n\treturn $button_key;\n}", "function submit_button($text = \\null, $type = 'primary', $name = 'submit', $wrap = \\true, $other_attributes = \\null)\n {\n }", "public function buildSubmitButton()\n {\n $this->submitButton->setAttributes($this->submitButtonAttr);\n return $this->submitButton->render($this->submitButtonName);\n }", "public function submitButton(){\n\t\t\n\t\t$this->addElement('button', 'bttnsubmit', array (\n\t\t\t\t'class' => 'btn blue ',\n\t\t\t\t'ignore'=>true,\n\t\t\t\t'type'=>'submit',\n \t\t\t\t'label'=>'<i class=\"fa fa-check\"></i> Save',\n\t\t\t\t'escape'=>false\n\t\t));\n\t\t$this->bttnsubmit->setDecorators(array('ViewHelper',array(array('controls' => 'HtmlTag'), array('tag' => 'div', 'class' =>'form-actions text-right'))\t));\n\t\t\n\t}", "protected function getFormSubmitAction(EntityInterface $entity, $langcode) {\n return 'Save' . $this->getFormSubmitSuffix($entity, $langcode);\n }", "function save_button()\n\t\t{\n\t\t\t$output = '<span class=\"ace_style_wrap\"><a href=\"#\" class=\"ace_button ace_button_inactive ace_submit\">Save all changes</a></span>';\n\t\t\treturn $output;\n\t\t}", "public function __toString() {\n if ( ! isset( $this['value'] ) ) {\n $this['value'] = 'Save';\n }\n\n return\n \"<div class=\\\"form-field field-type-submit\\\">\n <input type=\\\"submit\\\" value=\\\"{$this['value']}\\\" />\n </div>\";\n }", "public function getSubmitValue(): string\n {\n return $this->submitValue;\n }", "protected function getButtonSubmitHTML($item){\n\n return '<div class=\"col-12\"><button type=\"submit\" class=\"'.$this->styles['button-classes'].'\">'.$item->title->{$this->language}.'</button></div>';\n\n }", "protected function buttonLabel()\n\t{\n\t\t$s = JString::strtoupper($this->buttonPrefix);\n\t\treturn JText::_('PLG_LIST_' . $s . '_' . $s);\n\t}", "function getButtonText()\r\n\t{\r\n\t\tif ( isset($this->object_it) )\r\n\t\t{\r\n\t\t\treturn translate('Сохранить');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn translate('Создать');\r\n\t\t}\r\n\t}", "private function getCaptionButton()\n\t{\t\t\n\t\t\n\t\t$link = '<input type=\"button\" onclick=\"editCaption(';\n\t\t$link .= $this->aImg['albumId'].', '.$this->aImg['id'].');\" value=\"%s\"/>';\n\t\t\n\t\tif($this->aImg['sCaption'])\n\t\t{\n\t\t\t$link = sprintf(\n\t\t\t\t$link,\t\t\t\t\n\t\t\t\t$this->TXT_LINK_EDIT\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$link = sprintf(\n\t\t\t\t$link,\t\t\t\t\n\t\t\t\t$this->TXT_LINK_ADD\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $link;\n\t}", "protected function getSearchButton()\n {\n $out = $this->getFormTool()->createSubmit(\n $this->getSearcherId().'Search',\n $GLOBALS['LANG']->getLL('label_button_update')\n );\n\n return $out;\n }", "function lbcb_print_option_buttons(){\n?>\n\t<input class=\"button-primary\" type=\"submit\" name=\"lbcb_options[save]\" id=\"lbcb_options[save]\" value=\"<?php _e( 'Save Options', 'lbcb_textdomain' ); ?>\"/>\n\t<input class=\"button-secondary\" type=\"submit\" name=\"lbcb_options[reset]\" id=\"lbcb_options[reset]\" value=\"<?php _e( 'Reset To Defaults', 'lbcb_textdomain' ); ?>\"/>\n\n<?php\n}", "function _renderSubmit($element) {\n $elementClasses = \"btn btn-default \" . $element->getAttribute(\"class\", \"\");\n $element->setAttribute(\"class\", $elementClasses);\n $html = $this->render($element->getName());\n return $html;\n }", "function _field_button($fval)\n {\n $res = \"\";\n if (isset($this->attribs['disable_self_onclick'])) {\n $this->extra_attribs .= 'onclick=\"this.disabled=true; this.value=\\'please wait...\\'\"';\n }\n\n $res .= sprintf(\"<input type=\\\"button\\\" name=\\\"%s\\\" id=\\\"%s\\\" value=\\\"%s\\\" class=\\\"%s\\\" %s />\\n\",\n $this->fname,\n $this->fname,\n $this->_htmlentities($this->descrip),\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n return $res;\n }", "static function pmpro_checkout_default_submit_button($show)\n\t\t{\n\t\t\tglobal $gateway, $pmpro_requirebilling;\n\t\t\t\n\t\t\t//show our submit buttons\n\t\t?>\n\t\t\n\t\t<span id=\"pmpro_fondy_checkout\" <?php if(($gateway != \"fondy\") || !$pmpro_requirebilling) { ?>style=\"display: none;\"<?php } ?>>\n\t\t\t\t<input type=\"hidden\" name=\"submit-checkout\" value=\"1\" />\t\t\n\t\t\t\t<input type=\"submit\" class=\"pmpro_btn pmpro_btn-submit-checkout\" value=\"<?php if($pmpro_requirebilling) { _e('Submit and Check Out', 'pmpro'); } else { _e('Submit and Confirm', 'pmpro');}?> &raquo;\" />\t\n\t\t</span>\n\t\t\t<?php\n\t\t\n\t\t\t//don't show the default\n\t\t\treturn false;\n\t\t}", "function render_submit_button( $form, $args ) {\n $button_attributes = array();\n\n $button_attributes['class'] = 'acf-button af-submit-button';\n\n $button_attributes = apply_filters( 'af/form/button_attributes', $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/id=' . $form['post_id'], $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/key=' . $form['key'], $button_attributes, $form, $args );\n\n echo '<div class=\"af-submit acf-form-submit\">';\n echo sprintf( '<button type=\"submit\" %s>%s</button>', acf_esc_atts( $button_attributes ), $args['submit_text'] );\n echo '<span class=\"acf-spinner af-spinner\"></span>';\n echo '</div>';\n }", "function set_button_text( $is_static, $post ) {\n\treturn $is_static ? get_post_meta( $post->ID, '_button_text', true ) : 'View ' . $post->post_type;\n}", "function _field_submit($fval) \n {\n $res = \"\";\n if (isset($this->attribs['disable_self_onclick'])) {\n $this->extra_attribs .= 'onclick=\"this.disabled=true; this.value=\\'please wait...\\'\"';\n }\n\n if (isset($this->attribs['show_reset_button'])) {\n $res .= sprintf(\"<div style=\\\"float:left\\\"><input type=\\\"reset\\\" name=\\\"reset_op\\\" value=\\\"reset form\\\" class=\\\"%s\\\" /></div>\\n\", \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class);\n }\n $res .= sprintf(\"<input type=\\\"submit\\\" name=\\\"%s\\\" id=\\\"%s\\\" value=\\\"%s\\\" class=\\\"%s\\\" %s />\\n\",\n $this->fname,\n $this->fname,\n $this->_htmlentities($this->descrip),\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n return $res;\n }", "protected function _getButtonClass() {\n $classes = array();\n // Apply the button template\n $classes[] = $this->_getTemplateClass();\n // Position the button\n $classes[] = \"cloudiq-callme-position-\" . strtolower($this->_getFromConfig(\"button_position\"));\n return implode(\" \", $classes);\n }", "function __tinypass_save_buttons( TPPaySettings $ps, $edit = false ) {\n\t?>\n\n\t<p>\n\t\t<input type=\"submit\" name=\"_Submit\" value=\"Save Changes\" tabindex=\"4\" class=\"button-primary\" />\n\t</p>\n\n<?php }", "public function buttons()\n\t{\n\t\t//sufficient authority\n\t\tif ($this->authority === '1')\n\t\t\treturn parent::buttons();\n\n\t\t//insufficient authority\n\t\telse\n\t\t{\n\t\t\t$button = \n\t\t\t\t'<div class=\"view-b\">\n\t\t\t\t\t<button type=\"submit\" name=\"action\" value=\"Edit\" class=\"btn\"\n\t\t\t\t\t\t>View</button>\n\t\t\t\t</div>'\n\t\t\t;\n\n\t\t\treturn $button;\n\n\t\t} //end insufficient authority\n\t\n\t}", "public function getSubmitSelector( $key )\n {\n return '#field-' . $this->formId . '-' . $key . 'Submit';\n }", "function module_specific_buttons($cmid, $cmoptions) {\n global $OUTPUT;\n $params = array(\n 'type' => 'submit',\n 'name' => 'add',\n 'value' => $OUTPUT->larrow() . ' ' . get_string('addtoquiz', 'quiz'),\n );\n $cmoptions->hasattempts = false;\n if ($cmoptions->hasattempts) {// Prior attempts donít matter with IPAL.\n $params['disabled'] = 'disabled';\n }\n return html_writer::empty_tag('input', $params);\n}", "function input_submit($element_name, $label) {\r\n print '<input type=\"submit\" name=\"' . $element_name .'\"id=\"'.$element_name.'\" value=\"';\r\n print htmlentities($label, ENT_NOQUOTES, 'UTF-8') .'\"/>';\r\n}", "function protocol_button($element) {\n if (isset($element['#attributes']['class'])) {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'] . ' ' . $element['#attributes']['class'];\n }\n else {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'];\n }\n\n return '<div class=\"button-wrapper-outer\"><div class=\"button-wrapper\"><input type=\"submit\" ' . (empty($element['#name']) ? '' : 'name=\"' . $element['#name'] . '\" ') . 'id=\"' . $element['#id'] . '\" value=\"' . check_plain($element['#value']) . '\" ' . drupal_attributes($element['#attributes']) . \" /></div></div>\\n\";\n}", "abstract protected function getFormName();", "public function it_can_change_the_submit_button_text()\n {\n // configure\n config(['app_settings.submit_btn_text' => 'Submit']);\n\n // assert\n $this->get('/settings')\n ->assertStatus(200)\n ->assertSee('Submit');\n }", "function give_get_donation_form_submit_button( $form_id, $args = array() ) {\n\n\t$display_label_field = give_get_meta( $form_id, '_give_checkout_label', true );\n $display_label_field = apply_filters( 'give_donation_form_submit_button_text', $display_label_field, $form_id, $args );\n\t$display_label = ( ! empty( $display_label_field ) ? $display_label_field : esc_html__( 'Donate Now', 'give' ) );\n\tob_start();\n\t?>\n\t<div class=\"give-submit-button-wrap give-clearfix\">\n\t\t<input type=\"submit\" class=\"give-submit give-btn\" id=\"give-purchase-button\" name=\"give-purchase\"\n\t\t value=\"<?php echo $display_label; ?>\" data-before-validation-label=\"<?php echo $display_label; ?>\"/>\n\t\t<span class=\"give-loading-animation\"></span>\n\t</div>\n\t<?php\n\treturn apply_filters( 'give_donation_form_submit_button', ob_get_clean(), $form_id, $args );\n}", "protected function getButtons()\t{\n\n\t\t$buttons = array(\n\t\t\t'csh' => '',\n\t\t\t'shortcut' => '',\n\t\t\t'save' => ''\n\t\t);\n\t\t\t// CSH\n\t\t$buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_web_func', '', $GLOBALS['BACK_PATH']);\n\n\t\t\t// SAVE button\n\t\t// $buttons['save'] = '<input type=\"image\" class=\"c-inputButton\" name=\"submit\" value=\"Update\"' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/savedok.gif', '') . ' title=\"' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1) . '\" />';\n\n\n\t\t\t// Shortcut\n\t\tif ($GLOBALS['BE_USER']->mayMakeShortcut())\t{\n\t\t\t$buttons['shortcut'] = $this->doc->makeShortcutIcon('', 'function', $this->MCONF['name']);\n\t\t}\n\n\t\treturn $buttons;\n\t}", "public function modalButton() {\n\n $postID = $this->postID;\n\n $button = false;\n\n\n if ( get_field( 'jumbotron_show_button', $postID ) === false ) {\n return $button;\n }\n\n $button_text = get_field( 'jumbotron_button_text', $postID );\n $target = get_field( 'jumbotron_link_target', $postID );\n\n if ( get_field( 'jumbotron_link_type', $postID ) === 'internal' ) {\n $link = get_field( 'jumbotron_internal_link', $postID );\n } else {\n $link = get_field( 'jumbotron_custom_link', $postID );\n }\n\n $button = sprintf( '<a href=\"%1$s\" class=\"btn btn-primary btn-lg\" target=\"%2$s\">%3$s</a>', $link, $target, $button_text );\n\n return $button;\n\n }", "public function getSaveAsButtonHtml()\n {\n return $this->getChildHtml('save_as_button');\n }", "public function getShowSubmit()\n {\n return $this->showSubmit;\n }", "function submitBack($backbutton = FALSE){\n\t\t$backButtonLabel = is_string($backbutton) ? $backbutton : $this->pi_getLL('backButtonLabel');\n\n\t\t$out .= '<div class=\"tx_td_backbutton\"><a href=\"javascript:history.back()\">'.$backButtonLabel.'</a></div>';\n\t\treturn $out;\n\t}", "function orgnk_jobs_entry_apply_button( $button_text = 'Apply now' ) {\n\n\t$output \t\t\t= NULL;\n\t$application_type\t\t= esc_html( get_post_meta( get_the_ID(), 'job_application_type', true ) );\n\t$application_link\t\t= esc_url( get_post_meta( get_the_ID(), 'job_application_link', true ) );\n\t$application_email\t\t= sanitize_email( get_post_meta( get_the_ID(), 'job_application_email', true ) );\n\n\tif ( $application_type === 'url' && $application_link ) {\n $output .= '<a class=\"primary-button\" href=\"' . $application_link . '\" target=\"_blank\" rel=\"noopener\">' . $button_text . '</a>';\n\t} elseif ( $application_type === 'email' && $application_email ) {\n $output .= '<a class=\"primary-button\" href=\"mailto:' . $application_email . '\" target=\"_blank\" rel=\"noopener\">' . $button_text . '</a>';\n\t}\n\n\treturn $output;\n}", "function jabHtmlSubmitButton($caption, $id, $class=\"\", $name=\"\")\n{\n\tif ($name==\"\")\n\t\t$name=$id;\n\tif ($class!=\"\")\n\t\t$class=\" class=\\\"\".$class.\"\\\"\";\n\techo \"<input type=\\\"submit\\\" id=\\\"$id\\\" name=\\\"$name\\\" value=\\\"$caption\\\"/>\\n\";\n}", "function form_content_buttons()\r\n {\r\n return $this->form_content_buttons_Confirm_Cancel() ;\r\n }", "function hook_bootstrap_iconize_text_alter(array &$texts) {\n // This matches the exact string: \"My Unique Button Text\".\n // Note: the t() function in D8 returns a TranslatableMarkup object.\n // It must be rendered to a string before it can be added as an array key.\n $texts['matches'][t('My Unique Button Text')->render()] = 'heart';\n\n // This would also match the string above, however the class returned would\n // also be the one above; \"matches\" takes precedence over \"contains\".\n $texts['contains'][t('Unique')->render()] = 'bullhorn';\n\n // Remove matching for strings that contain \"filter\":\n unset($texts['contains'][t('Filter')->render()]);\n\n // Change the icon that matches \"Upload\" (originally \"upload\"):\n $texts['contains'][t('Upload')->render()] = 'ok';\n}", "public function get_button_type()\n {\n if ($this->has_publisher_subscription()) {\n $button_type = $this->button_type;\n } else {\n $button_type = self::ONLY_PURCHASE;\n }\n return $button_type;\n }", "function form_button($data = '', $content = '', $extra = '')\n {\n $ci =& get_instance();\n $ci->load->library('user_agent');\n\n $defaults = array('name' => ((! is_array($data)) ? $data : ''), 'type' => 'submit');\n\n if (is_array($data) and isset($data['content'])) {\n $content = $data['content'];\n $data['value'] = $data['content'];\n unset($data['content']); // content is not an attribute\n }\n\n /*\n * if a user has IE 7, we need to show them an input tag instead of a button tag\n * because of the way IE 7 handles submitting multiple buttons (it send the\n * innerHTML instead of the value in the key=>value pair)\n */\n if ($ci->agent->browser() == 'Internet Explorer' && $ci->agent->version() < 8) {\n return \"<input \"._parse_form_attributes($data, $defaults).$extra.\" />\";\n } else {\n return \"<button \"._parse_form_attributes($data, $defaults).$extra.\"><span>\".$content.\"</span></button>\\n\";\n }\n }", "public function getFormName();", "public function getFormName();", "public function getSubmitUrl()\n {\n \treturn $this->getUrl('Purchase/Misc/Savepayment');\n }", "public function isSubmit() {\n return Tools::isSubmit($this->key());\n }", "static function pmpro_checkout_default_submit_button($show)\n\t\t{\n\t\t\tglobal $gateway, $pmpro_requirebilling;\n\n\t\t\t//show our submit buttons\n\t\t\t?>\n\t\t\t<span id=\"pmpro_paypalexpress_checkout\" <?php if(($gateway != \"paypalexpress\" && $gateway != \"paypalstandard\") || !$pmpro_requirebilling) { ?>style=\"display: none;\"<?php } ?>>\n\t\t\t\t<input type=\"hidden\" name=\"submit-checkout\" value=\"1\" />\n\t\t\t\t<input type=\"image\" id=\"pmpro_btn-submit-paypalexpress\" class=\"pmpro_btn-submit-checkout\" value=\"<?php _e('Check Out with PayPal', 'paid-memberships-pro' );?> &raquo;\" src=\"<?php echo apply_filters(\"pmpro_paypal_button_image\", \"https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif\");?>\" />\n\t\t\t</span>\n\n\t\t\t<span id=\"pmpro_submit_span\" <?php if(($gateway == \"paypalexpress\" || $gateway == \"paypalstandard\") && $pmpro_requirebilling) { ?>style=\"display: none;\"<?php } ?>>\n\t\t\t\t<input type=\"hidden\" name=\"submit-checkout\" value=\"1\" />\n\t\t\t\t<input type=\"submit\" id=\"pmpro_btn-submit\" class=\"pmpro_btn pmpro_btn-submit-checkout\" value=\"<?php if($pmpro_requirebilling) { _e('Submit and Check Out', 'paid-memberships-pro' ); } else { _e('Submit and Confirm', 'paid-memberships-pro' );}?> &raquo;\" />\n\t\t\t</span>\n\t\t\t<?php\n\n\t\t\t//don't show the default\n\t\t\treturn false;\n\t\t}", "final public function getFormName(): string\n {\n\n return str_replace('.', '__', $this->getName());\n }", "function convert_wysiwyg_buttons( $content ) {\n\t$contenttt = str_replace(\"btn-\", \"btn btn-\", $content);\n\treturn $contenttt;\n}", "function generate_sys_button($btn_params=array())\n{\n\t$btn_str = \"\";\n\t\n\tif(!empty($btn_params['btnaction']) && empty($btn_params['noloading']))\n\t{\n\t\t$btn_str .= \"<div class='bluronclick'><div style='display:inline-block;'>\";\n\t}\n\telse if(empty($btn_params['btnaction']))\n\t{\n\t\t$btn_params['btnaction'] = '';\n\t}\n\t\n\t$btn_str .= \"<table border='0' cellspacing='0' cellpadding='0' class='btn' onclick=\\\"\".$btn_params['btnaction'].\"\\\">\n <tr>\n <td class='btnleft'><img src='\".base_url().\"images/spacer.gif' width='5' height='5'/></td>\n <td class='btnmiddle' nowrap='nowrap'>\".$btn_params['btntext'].\"</td>\n <td class='btnright'><img src='\".base_url().\"images/spacer.gif' width='5' height='5'/></td>\n </tr>\n </table>\";\n\t\n\tif(!empty($btn_params['btnaction']) && empty($btn_params['noloading']))\n\t{\n\t\t$btn_str .= \"</div></div>\";\n\t}\n\t\t\n\tif(!empty($btn_params['btnid']))\n\t{\t\n \t$btn_value = (!empty($btn_params['btnvalue']))? $btn_params['btnvalue']: 'Submit';\n\t\t$btn_str .= \"<div style='display:none;'>\n <input name='\".$btn_params['btnid'].\"' type='submit' id='\".$btn_params['btnid'].\"' value='\".$btn_value.\"' />\n </div>\";\n\t}\n\t\n\t\n\treturn $btn_str;\n}", "public static function renderSubmit();", "public function getSaveButtonHtml()\n {\n return $this->getChildHtml('save_button');\n }", "public function getSubmitVar() { return $this->_submitVar; }", "protected function getNameFormFileOut()\n {\n return \"Form\" . ucfirst($this->owner->id) . ucfirst($this->owner->action->actionMethod) . 'Out';\n }", "public function form_callback() {\n\t\tif ( isset( $this->btnc ) ) {\n\t\t\treturn $this->btnc;\n\t\t}\n\n\t\t$cmb_config = $this->get_cmb_config();\n\t\t$this->btnc = empty( $cmb_config ) ? $this->args['form_display_callback'] : false;\n\n\t\treturn $this->btnc;\n\t}", "function get_the_wpc_button_label( $args ) {\n\n if ( empty( $args['label'] ) && empty( $args[ $args['link_type'] . '_link' ] ) ) {\n return '';\n }\n\n $href = $args[ $args['link_type'] . '_link' ];\n $label = ! empty ( $args['label'] ) ? $args['label'] : '';\n\n if ( 'link' === $args['link_type'] ) {\n $label = $href['title'];\n }\n\n return $label;\n}", "private function checkRenderSubmitButtonMetadata()\n {\n $metadata = 'submitVisible';\n $renderButton = true;\n if (!empty($this->model)) {\n /** @var Record $model */\n $model = $this->model;\n if (method_exists($model, 'hasWorkflowStatus')) {\n if ($model->hasWorkflowStatus()) {\n $visible = $model->getWorkflowStatus()->getMetadata($metadata);\n if (!empty($visible) && (strtoupper($visible) == 'NO')) {\n $renderButton = false;\n }\n }\n }\n }\n return $renderButton;\n }", "function setSubmitLabel($label)\n\t{\n\t\t// Only update if $label is a valid string, otherwise set default.\n\t\tif ($label)\n\t\t\t$this->submitlabel = $label;\n\t\telse \n\t\t\t$this->submitlabel = \"Update Settings\";\n\t}", "function minorite_button($variables) {\n $element = $variables['element'];\n element_set_attributes($element, array('id', 'name', 'title', 'value'));\n\n if ($element['#type'] == 'submit') {\n $element['#attributes']['type'] = 'submit';\n }\n\n // Adds CSS selector on icon button.\n if (isset($element['#icon'])) {\n $element['#value'] = '<i></i>' . $element['#value'];\n $element['#attributes']['class'][] = $element['#icon'];\n }\n\n return '<button' . drupal_attributes($element['#attributes']) . '>' . $element['#value'] . '</button>';\n}", "function form_content_buttons()\r\n {\r\n return $this->form_content_buttons_Delete_Cancel() ;\r\n }", "protected function search_button_caption() {\n return get_string('search');\n }", "private function submit()\n {\n $element = new Zend_Form_Element_Submit('submit');\n $element->setLabel('Save')\n ->setAttrib('class', 'reg_input_btn');\n\n return $element;\n }", "public function generate_submit_button( $field ) {\n\n\t\tsubmit_button( $field['name'] );\n\t}", "function form_button($buttons = \"\") {\n\t\tif ($this->block == true)\n\t\t\t$buttons = \"fehler\";\n\n\t\t$btn['submit'] = \"<input accesskey='8' value=\\\"OK, Speichern\\\" class=\\\"submitbutton buttons\\\" type=\\\"submit\\\" />\";\n\t\t$btn['reset'] = \"<input accesskey='9' value=\\\"Eingaben l&ouml;schen\\\" class=\\\"resetbutton buttons\\\" type=\\\"reset\\\" />\";\n\t\t$btn['ex'] = \"<input accesskey='7' value=\\\"Beispiel..\\\" type=\\\"button\\\" class=\\\"examplebutton buttons\\\" onClick=\\\"set_examples();\\\" />\";\n\n\t\tswitch ($buttons) {\n\t\t\tdefault :\n\t\t\tcase 'ok_reset' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\tbreak;\n\t\t\tcase 'ex__ok_reset' :\n\t\t\t\t$r = \"<td>\".$btn['ex'].\"</td><td colspan=\\\"2\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\t$this->add_hidden_field(\"hiddenexample\", 0); // for examplebutton\n\t\t\t\t$this->special_form = \"onChange=\\\"document.myform.hiddenexample.value=0\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase 'fehler' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"center\\\" class=\\\"error\\\">Ich konnte notwendige Daten f&uuml;r dieses Formular nicht laden. <br />L&ouml;sung: \".$this->block.\"</td>\";\n\t\t\t\tbreak;\n\t\t}\n\t\treturn \"<tr>\".$r.\"</tr>\";\n\t}", "function sexy_submit_tag($value = 'Save changes', $options = array())\n{\n return sexy_button_to_function( $value, \"var form = this; \".\n \"while(null != (form = form.parentNode)) if( form.nodeName == 'FORM') \".\n \"if( (form.onsubmit && form.onsubmit()) || (!(form.onsubmit)) ) form.submit();\",\n $options );\n}", "function backend_ctr_button($caption, $button_class, $attributes = array(), $ajaxHandler=null, $ajaxParams = null, $formElement = null)\n\t{\n\t\treturn Backend_Html::ctr_button($caption, $button_class, $attributes, $ajaxHandler, $ajaxParams, $formElement);\n\t}", "protected function getFormButtons() : array\n {\n $result = parent::getFormButtons();\n\n $result['submit'] = new Submit(\n [\n AButton::PARAM_LABEL => 'Sign up',\n AButton::PARAM_BTN_TYPE => 'btn regular-main-button submit',\n ]\n );\n\n return $result;\n }", "public function getActionButtonsAttribute()\n {\n return '<div class=\"btn-group action-btn\">\n '.$this->getEditButtonAttribute(\"edit-blogmodel\", \"admin.blogmodels.edit\").'\n '.$this->getDeleteButtonAttribute(\"delete-blogmodel\", \"admin.blogmodels.destroy\").'\n </div>';\n }", "public function checkKey($letter) {\n\n\t\tif(!in_array($letter, $this->phrase->selected)) { //If letter not selected\n\t\t\t$button = '<input class=\"key\" type=\"submit\" id=\"' . $letter . '\" button name=\"key\" value=\"' . $letter . '\">';\t\n\t\t} else { //If letter selected\n\t\t\tif($this->phrase->checkLetter($letter)) { \n\t\t\t\t//If selected letter is correct\n\t\t\t\t$button = '<input class=\"key correct\" type=\"submit\" id=\"' . $letter . '\" button name=\"key\" value=\"' . $letter . '\" disabled>';\n\t\t\t} else { \n\t\t\t\t//Else selected letter is wrong\n\t\t\t\t$button = '<input class=\"key incorrect\" type=\"submit\" id=\"' . $letter . '\" button name=\"key\" value=\"' . $letter . '\" disabled>';\n\t\t\t}\n\t\t}\n\t\treturn $button;\n\n\t}", "function zenCssButton($image = '', $text, $type, $sec_class = '', $parameters = '') {\n global $css_button_text, $css_button_opts, $template, $current_page_base, $language;\n\n $button_name = basename($image, '.gif');\n\n // if no secondary class is set use the image name for the sec_class\n if (empty($sec_class)) $sec_class = $button_name;\n if(!empty($sec_class)) $sec_class = ' ' . $sec_class;\n if(!empty($parameters))$parameters = ' ' . $parameters;\n $mouse_out_class = 'cssButton ' . (($type == 'submit') ? 'submit_button ' : 'normal_button ') . $sec_class;\n $mouse_over_class = 'cssButtonHover ' . (($type == 'button') ? 'normal_button ' : '') . $sec_class . $sec_class . 'Hover';\n // javascript to set different classes on mouseover and mouseout: enables hover effect on the buttons\n // (pure css hovers on non link elements do work work in every browser)\n $css_button_js .= 'onmouseover=\"this.className=\\''. $mouse_over_class . '\\'\" onmouseout=\"this.className=\\'' . $mouse_out_class . '\\'\"';\n\n if (CSS_BUTTON_POPUPS_IS_ARRAY == 'true') {\n $popuptext = (!empty($css_button_text[$button_name])) ? $css_button_text[$button_name] : ($button_name . CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT);\n $tooltip = ' title=\"' . $popuptext . '\"';\n } else {\n $tooltip = '';\n }\n $css_button = '';\n\n if ($type == 'submit'){\n // form input button\n if ($parameters != '') {\n // If the input parameters include a \"name\" attribute, need to emulate an <input type=\"image\" /> return value by adding a _x to the name parameter (creds to paulm)\n if (preg_match('/name=\"([a-zA-Z0-9\\-_]+)\"/', $parameters, $matches)) {\n $parameters = str_replace('name=\"' . $matches[1], 'name=\"' . $matches[1] . '_x', $parameters);\n }\n // If the input parameters include a \"value\" attribute, remove it since that attribute will be set to the input text string.\n if (preg_match('/(value=\"[a-zA-Z0=9\\-_]+\")/', $parameters, $matches)) {\n $parameters = str_replace($matches[1], '', $parameters);\n }\n }\n\n $css_button = '<input class=\"' . $mouse_out_class . '\" ' . $css_button_js . ' type=\"submit\" value=\"' . $text . '\"' . $tooltip . $parameters . ' />';\n }\n\n if ($type=='button'){\n // link button\n $css_button = '<span class=\"' . $mouse_out_class . '\" ' . $css_button_js . $tooltip . $parameters . '>' . $text . '</span>';\n }\n return $css_button;\n }", "public function getInput()\n\t{\n\t\t$this->value = $this->getAttribute('value');\n\n\t\treturn '<button id=\"' . $this->id . '\"'\n\t\t. ' name=\"submit_' . $this->for . '\"'\n\t\t. ' value=\"' . $this->value . '\"'\n\t\t. ' title=\"' . JText::_('JSEARCH_FILTER_SUBMIT') . '\"'\n\t\t. ' class=\"btn\" style=\"margin-top: -10px;\">'\n\t\t. JText::_('JSEARCH_FILTER_SUBMIT')\n\t\t. ' </button>';\n\t}", "public function fetchSubmitMasschange() {\n $hp = Codendi_HTMLPurifier::instance();\n $html = '';\n if ($this->userCanSubmit()) {\n $required = $this->required ? ' <span class=\"highlight\">*</span>' : '';\n $html .= '<div class=\"tracker_artifact_field '. ($this->has_errors ? 'has_errors' : '') .'\">';\n $html .= '<label for=\"tracker_artifact_'. $this->id .'\" title=\"'. $hp->purify($this->description, CODENDI_PURIFIER_CONVERT_HTML) .'\" class=\"tracker_formelement_label\">'. $hp->purify($this->getLabel(), CODENDI_PURIFIER_CONVERT_HTML) . $required .'</label>';\n\n $html .= '<br />';\n $html .= $this->fetchSubmitValueMasschange();\n $html .= $this->fetchSubmitAdditionnalInfo();\n $html .= '</div>';\n }\n return $html;\n }", "public function getActionButtonsAttribute()\n {\n return $this->getEditButtonAttribute(\"business_settings\", \"biller.transactioncategories.edit\").'\n '.$this->getDeleteButtonAttribute(\"business_settings\", \"biller.transactioncategories.destroy\").'\n ';\n }", "function getOperation() {\n\t\tif (isset($_POST['operation'])){\n\t\t\treturn $_POST['operation'];\n\t\t}\n\t\treturn \"index\";\n\t}", "function signup_submitURL() {\n\treturn BASE . 'signup' . DS .'submit';\n}", "public function getManageFormTypeName()\n {\n return 'default';\n }", "function zen_image_submit($image, $alt = '', $parameters = '', $sec_class = '') {\n global $template, $current_page_base, $zco_notifier;\n if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class, $parameters);\n $zco_notifier->notify('PAGE_OUTPUT_IMAGE_SUBMIT');\n\n $image_submit = '<input type=\"image\" src=\"' . zen_output_string($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image) . '\" alt=\"' . zen_output_string($alt) . '\"';\n\n if (zen_not_null($alt)) $image_submit .= ' title=\" ' . zen_output_string($alt) . ' \"';\n\n if (zen_not_null($parameters)) $image_submit .= ' ' . $parameters;\n\n $image_submit .= ' />';\n\n return $image_submit;\n }", "public function filter_registration_button_label( $label ) {\n\t\t$label = 'Finish Checkout via PayPal';\n\n\t\treturn $label;\n\t}", "protected function get_button_text($button_type)\n {\n if ($button_type == self::ONLY_PURCHASE) {\n if (empty($this->purchase_text)) {\n $button_text = parent::get_button_text($button_type);\n } else {\n $button_text = $this->purchase_text;\n }\n } else {\n if (empty($this->subscribe_text)) {\n $button_text = parent::get_button_text($button_type);\n } else {\n $button_text = $this->subscribe_text;\n }\n }\n return $button_text;\n }" ]
[ "0.71179223", "0.6866201", "0.65114206", "0.63008875", "0.6298747", "0.62969935", "0.61547625", "0.61402535", "0.6120337", "0.6113354", "0.60901815", "0.6085413", "0.6082651", "0.6076602", "0.60590523", "0.60359466", "0.6017651", "0.6017638", "0.601427", "0.5927786", "0.5924032", "0.5913162", "0.58653617", "0.5838708", "0.57639307", "0.57295907", "0.5712499", "0.5704279", "0.56643635", "0.5621475", "0.5574347", "0.5572634", "0.55606407", "0.5540972", "0.55309606", "0.55285025", "0.55156505", "0.5503361", "0.5484259", "0.5483446", "0.5478925", "0.5478651", "0.5477788", "0.54427016", "0.5417897", "0.5406873", "0.5392524", "0.5390266", "0.53894705", "0.53889656", "0.53866553", "0.53863996", "0.538374", "0.5374222", "0.53719354", "0.5359724", "0.5353634", "0.5347873", "0.53369665", "0.532301", "0.5312439", "0.53100467", "0.5309622", "0.53059053", "0.53059053", "0.5299785", "0.529191", "0.52799326", "0.52790725", "0.5267119", "0.5264112", "0.52516085", "0.52476996", "0.524457", "0.5240379", "0.52402455", "0.5237882", "0.5233993", "0.52335113", "0.5229627", "0.52240455", "0.5217663", "0.5215676", "0.5214291", "0.520724", "0.51991373", "0.5197486", "0.5195147", "0.5188936", "0.5188135", "0.5187124", "0.5146618", "0.51389134", "0.51230204", "0.51175535", "0.51169777", "0.51066387", "0.50994396", "0.5093659", "0.5092887" ]
0.66701823
2
Returns the translation object to use to retrieve the translated values.
protected function getTranslation(EntityInterface $entity, $langcode) { return $entity->getTranslation($langcode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTranslationObject();", "protected function get_translator()\n\t{\n\t\treturn Translator::get($this->id);\n\t}", "public function getTranslation() {\n\t\treturn $this->translation;\n\t}", "public function getTranslate()\n {\n if (! $this->translate) {\n if (\\Zend_Registry::isRegistered('Zend_Translate')) {\n $translate = \\Zend_Registry::get('Zend_Translate');\n } else {\n // Make sure there always is a translator\n //$translate = new \\MUtil_Translate_Adapter_Potemkin();\n //\\Zend_Registry::set('Zend_Translate', $translate);\n $translate = \\MUtil_Translate_Adapter_Potemkin::create();\n }\n\n $this->setTranslate($translate);\n }\n if (! $this->translateAdapter) {\n $this->translateAdapter = $this->translate->getAdapter();\n }\n\n return $this->translate;\n }", "protected function getTranslation()\n {\n $language = $this->request->getBestLanguage();\n\n // Check if we have a translation file for that lang\n // TODO 处理英文\n if (file_exists(APP_PATH . \"/app/messages/\" . $language . \".php\")) {\n require_once APP_PATH. '/app/messages/'. $language . \".php\";\n } else {\n require_once APP_PATH. '/app/messages/zh-CN.php';\n // Fallback to some default\n// require \"../messages/en.php\";\n }\n\n // Return a translation object\n return new NativeArray(\n array(\n \"content\" => $messages\n )\n );\n }", "public function translation()\n {\n $kirby = $this->model->kirby();\n $lang = $this->model->language();\n return $kirby->translation($lang);\n }", "public static function get_translate(){\n return self::$translate;\n }", "static public function getTranslate()\r\n {\r\n return Warecorp_Translate::getTranslate();\r\n }", "protected function getStringTranslation() {\n if (!$this->stringTranslation) {\n $this->stringTranslation = \\Drupal::service('string_translation');\n }\n\n return $this->stringTranslation;\n }", "public function getTranslator()\n {\n return $this['translator'];\n }", "public function getTranslator()\n {\n return $this->translator;\n }", "public function getTranslator()\n {\n return $this->translator;\n }", "public function getTranslator() {\n\t\treturn $this->translator;\n\t}", "private function getTranslator()\n {\n if (!$this->app->translator instanceof Translator) {\n $this->app->translator = new Translator($this->locale, new MessageSelector());\n $this->app->translator->addLoader('array', new ArrayLoader());\n $this->app->translator->addLoader('xliff', new XliffFileLoader());\n }\n\n return $this->app->translator;\n }", "public function getTranslations()\n {\n return $this->language;\n }", "public function getTranslation($translations)\n {\n return $this->translator->getPreferredTranslation($translations);\n }", "private function getTranslation()\n {\n $filterTranslation = null;\n foreach ($this->entity->getTranslations() as $translation) {\n if ($translation->getLocale() == $this->locale) {\n $filterTranslation = $translation;\n }\n }\n if (!$filterTranslation) {\n $filterTranslation = new FilterTranslation();\n $filterTranslation->setLocale($this->locale);\n $filterTranslation->setFilter($this->entity);\n $this->entity->addTranslation($filterTranslation);\n }\n\n return $filterTranslation;\n }", "protected abstract function getTranslations();", "function &getTranslator()\n {\n return $this->_translator;\n }", "public function getTranslator()\n {\n if (!$this->translator) {\n $this->setTranslator($this->getServiceManager()->get('translator'));\n }\n return $this->translator;\n }", "public static function getTranslations() {\n $settings = self::getSettings();\n return json_decode($settings->translations, true);\n }", "public function getTranslations()\n {\n }", "public function translations() {\n return $this->client->get(self::$apiName, array());\n }", "public function getTranslator() \n {\n if (!$this->translator) {\n //$this->setTranslator($this->getServiceLocator()->get('translator'));\n $this->setTranslator(\\Application\\Module::getService('translator'));\n }\n return $this->translator;\n }", "static function getTranslation($text)\r\n\t{\r\n\t\tglobal $user;\r\n\t\t\r\n\t\tif($user && $user->hasField(\"language\") && $user->language)\r\n\t\t\t$language = $user->language;\r\n\t\telse\r\n\t\t\t$language = Settings::getValue(\"text_lookup\", \"language\");\t\r\n\t\t\r\n\t\tif(!$language || $language == \"English\")\r\n\t\t\treturn $text;\r\n\t\telse\r\n\t\t{\r\n\t\t\t$translations = Query::create(TextTranslation, \"WHERE text_id=:text_id AND language=:language\")\r\n\t\t\t\t->bind(\":text_id\", $text->text_id, \":language\", $language)\r\n\t\t\t\t->execute();\r\n\t\t\t\t\r\n\t\t\tif(count($translations) > 0 && $translations[0]->text)\r\n\t\t\t{\r\n\t\t\t\t$text->text = $translations[0]->text;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\treturn $text;\r\n\t}", "public static function get()\n {\n return new TranslationsService();\n }", "protected function _getTranslator() {\n \tif(null == $this->translator) {\n \t\t$sm = $this->getServiceLocator();\n \t\t$this->translator = \\Application\\Util\\ServicesUtil::getTranslatorService($sm);\n \t}\n \treturn $this->translator;\n }", "public function getGTranslate () {\n $options = \n array(\n 'key' => $this->key,\n 'source' => $this->source, \n 'target' => $this->target);\n \n $t = new gtranslate();\n $t->setOptions($options);\n return $t;\n }", "protected function getTranslations() {\n\t\treturn $this->_viewHelper->getTranslations();\n\t}", "public function getTranslations()\n {\n return $this->translations;\n }", "public function translation(): HasOne\n {\n return $this->hasOne($this->getTranslationModelName())\n ->where($this->getLocaleKey(), $this->locale());\n }", "public function translation($slug = null)\n\t{\n\t\t$languageId = language($slug)->property('id', 1);\n\n\t\treturn $this->hasOne( $this->getTranslatorClassName(), 'original_id')->where( 'language_id', $languageId)->first();\n\t}", "protected function translator()\n {\n if (! $this->translator) {\n $this->translator = Mockery::mock(Translator::class);\n }\n\n return $this->translator;\n }", "public function getTranslation($key = '')\n {\n return self::$translations[$key];\n }", "public function getTranslatedMessage(): string\n\t{\n\t\tif(self::$resolver === null)\n\t\t{\n\t\t\tself::$resolver = new DefaultMessageResolver();\n\t\t}\n\t\t\n\t\treturn self::$resolver->resolveMessage($this->name, $this->key, $this->args);\n\t}", "public function translations()\n\t{\n\t\treturn $this->hasMany($this->getTranslatorClassName(), 'original_id');\n\t}", "public function getTranslationAttribute($value)\n {\n return $this->translation;\n }", "public function translated();", "public function translated();", "protected function getMiconStringTranslation() {\n if (!$this->stringTranslation) {\n $this->stringTranslation = \\Drupal::service('string_translation');\n }\n return $this->stringTranslation;\n }", "public function translator(): Translator;", "public function translations()\n {\n $locales = config('translatable.locales');\n $fallback_locale = config('translatable.fallback_local');\n unset($locales[$fallback_locale]);\n $translations_count = count($locales);\n if ($translations_count === 1) {\n return $this->hasOne(get_class() . 'Translation');\n } else {\n return $this->hasMany(get_class(), 'Translation');\n }\n }", "public static function translate($id)\r\n\t{\r\n\t\t$string = new String(array(\r\n\t\t\t'id' => $id\r\n\t\t));\r\n\t\tif (isset($_SESSION['language'])) {\r\n\t\t\t$language = $_SESSION['language'];\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$language = DEFAULT_LOCALE;\r\n\t\t}\r\n\t\t// echo ' <br/>66: <pre>';\r\n\t\t// var_dump($string->translations);\r\n\t\t// echo '</pre>';\r\n\t\t\r\n\t\treturn $string->translations[$language]->getTranslation();\r\n\t}", "protected function _getLang()\n\t{\n\t\t$lang = new stdClass;\n\t\treturn $lang;\n\t}", "public function val() {\n $translation = $this->translator->getTranslation(ValueUtils::val($this->key), ValueUtils::val($this->parameters));\n if ($translation === null) {\n $translation = '???'.ValueUtils::val($this->key).'???';\n }\n return $translation;\n }", "public function findTranslation($id = null)\n {\n $translation = $this->getTranslationModel();\n return $id?$translation::findOne($id):$translation;\n }", "abstract public function getTranslationIn(string $locale);", "abstract public function getTranslationIn(string $locale);", "abstract public function getTranslationIn(string $locale);", "public function getTranslationManager()\n {\n return $this->getKernel()->getContainer()->get('worldia.textmaster.manager.translation');\n }", "public function getTranslations()\n {\n $query = $this->getBaseQuery();\n $this->setQueryParameters($query);\n\n return $query;\n }", "public function getObject($id)\n {\n $subject = parent::getObject($id);\n\n $subject = $this->modelManager->getDocumentManager()->findTranslation(null, $subject->getPath(), $this->getTranslatableLocale());\n\n return $subject;\n }", "private function getTranslationObject($key, $locale, $domain, $value)\n {\n $object = $this->repository->findValue($key, $locale, $domain);\n if (null === $object) {\n $object = new Translation();\n $object->setScope(Translation::SCOPE_SYSTEM);\n $object->setLocale($locale);\n $object->setDomain($domain);\n $object->setKey($key);\n }\n\n $object->setValue($value);\n\n return $object;\n }", "public function getTranslation($language = null)\n {\n if ($language === null) {\n $language = $this->getLanguage();\n }\n\n if (!isset($this->_models[$language])) {\n $this->_models[$language] = $this->loadTranslation($language);\n }\n\n return $this->_models[$language];\n }", "public function translated()\n {\n if (null === $this->translated) {\n return false;\n }\n\n return $this->translated;\n }", "public static function factory()\n {\n $driver = \"XML\";\n $options = array(\n \"filename\" => Ilib_Countries_Translation::getFilePath(),\n \"save_on_shutdown\" => true\n );\n $translation = Translation2::factory($driver, $options);\n if (PEAR::isError($translation)) {\n throw new Exception($translation->getMessage());\n }\n \n return $translation;\n }", "public function getTranslation($translationId) {\n $row = $this->select(array('translation_id' => (int) $translationId))->current();\n if (!$row) {\n return false;\n }\n\n $translation = new Model\\Translation(array(\n 'translationId' => $row->translation_id,\n 'baseId' => $row->base_id,\n 'locale' => $row->locale,\n 'currentTranslation' => $row->current_translation,\n 'unclearTranslation' => $row->unclear_translation,\n ));\n\n return $translation;\n }", "public function _getServTranslator() {\n if (!$this->_servTranslator) {\n $this->_servTranslator = $this->getServiceLocator()->get('translator');\n }\n return $this->_servTranslator;\n }", "private function extractGettextStrings()\n {\n $translation = null;\n $translationObjects = array();\n $lookupDirectories = array(\n Strata::getVendorPath() . 'strata-mvc' . DIRECTORY_SEPARATOR . 'strata' . DIRECTORY_SEPARATOR . 'src',\n Strata::getSrcPath(),\n Strata::getThemesPath(),\n );\n\n foreach ($lookupDirectories as $directory) {\n $translationObjects = $this->recurseThroughDirectory($directory);\n\n // Merge all translation objects into a bigger one\n foreach ($translationObjects as $t) {\n if (is_null($translation)) {\n $translation = $t;\n } else {\n $translation->mergeWith($t);\n }\n }\n }\n\n return $translation;\n }", "public function _getServTranslator()\n {\n if (!$this->_servTranslator) {\n $this->_servTranslator = $this->getServiceLocator()->get('translator');\n }\n return $this->_servTranslator;\n }", "public function getTranslationTable()\n {\n return $this->getTableSingular().'_translated';\n }", "public function getTranslatable()\n {\n return $this->tpTranslatable;\n }", "public static function get_language_translation( $lang_id ) {\n\n\t\tstatic $translation;\n\n\t\t// from cache (used for multilingual)\n\t\tif ( ! is_null( $translation ) && isset( $translation[ $lang_id ] ) ) {\n\t\t\treturn $translation[ $lang_id ];\n\t\t}\n\n\t\t$languages = publisher_translation()->get_languages();\n\n\t\tif ( ! isset( $languages[ $lang_id ] ) ) {\n\t\t\treturn $translation[ $lang_id ] = array(\n\t\t\t\t'status' => 'error',\n\t\t\t\t'msg' => __( 'Translation for selected language not found!', 'publisher' ),\n\t\t\t);\n\t\t}\n\n\t\t// translation data from core\n\t\tif ( $languages[ $lang_id ]['type'] === 'core' && class_exists( 'BetterFramework_Oculus' ) ) {\n\n\t\t\t$core_translation = BetterFramework_Oculus::request( 'get-translation', array(\n\t\t\t\t'group' => 'translation',\n\t\t\t\t'json_assoc' => true,\n\t\t\t\t'data' => array(\n\t\t\t\t\t'code' => $lang_id\n\t\t\t\t)\n\t\t\t) );\n\n\t\t\tif ( is_wp_error( $core_translation ) ) {\n\t\t\t\treturn $translation[ $lang_id ] = array(\n\t\t\t\t\t'status' => 'Error',\n\t\t\t\t\t'error_code' => $core_translation->get_error_code(),\n\t\t\t\t\t'error_message' => $core_translation->get_error_message(),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( ! empty( $core_translation['success'] ) && ! empty( $core_translation['translation']['translation'] ) ) {\n\t\t\t\treturn $translation[ $lang_id ] = array(\n\t\t\t\t\t'status' => 'success',\n\t\t\t\t\t'translation' => json_decode( $core_translation['translation']['translation'], true ),\n\t\t\t\t);\n\t\t\t}\n\n\t\t}\n\n\t\t// url is not found for online\n\t\tif ( ! isset( $languages[ $lang_id ]['url'] ) ) {\n\t\t\treturn $translation[ $lang_id ] = array(\n\t\t\t\t'status' => 'error',\n\t\t\t\t'msg' => __( 'Translation for selected language not found!', 'publisher' ),\n\t\t\t);\n\t\t}\n\n\n\t\t/**\n\t\t * Filter translation file url\n\t\t *\n\t\t * @since 1.0.0\n\t\t */\n\t\t$translation_url = apply_filters( 'publisher-theme-core/translation/change-translation/file-url', $languages[ $lang_id ]['url'] );\n\n\t\t// Read translation json file\n\t\t$translation_options_data = wp_remote_get( $translation_url );\n\t\tif ( is_wp_error( $translation_options_data ) ) {\n\t\t\treturn $translation[ $lang_id ] = array(\n\t\t\t\t'status' => 'Error',\n\t\t\t\t'error_code' => $translation_options_data->get_error_code(),\n\t\t\t\t'error_message' => $translation_options_data->get_error_message(),\n\t\t\t);\n\t\t}\n\n\t\t// request is not 200\n\t\t$http_code = wp_remote_retrieve_response_code( $translation_options_data );\n\t\tif ( $http_code !== 200 ) {\n\t\t\treturn $translation[ $lang_id ] = array(\n\t\t\t\t'status' => 'error',\n\t\t\t\t'error_code' => 'http-code-error',\n\t\t\t\t'error_message' => sprintf( __( 'Http request code was %s', 'publisher' ), $http_code ),\n\t\t\t);\n\t\t}\n\n\t\t// file body is not valid\n\t\t$translation_options_data = wp_remote_retrieve_body( $translation_options_data );\n\t\tif ( ! $translation_options_data ) {\n\t\t\treturn $translation[ $lang_id ] = array(\n\t\t\t\t'status' => 'error',\n\t\t\t\t'msg' => __( 'Translation file for selected language not found!', 'publisher' ),\n\t\t\t);\n\t\t}\n\n\t\treturn $translation[ $lang_id ] = array(\n\t\t\t'status' => 'success',\n\t\t\t'translation' => json_decode( $translation_options_data, true ),\n\t\t);\n\n\t}", "function &getTranslations(){\n\t\tif ( isset( $this->_cache[__FUNCTION__]) ) return $this->_cache[__FUNCTION__];\n\t\t$tables =& $this->tables();\n\t\t$translations = array();\n\t\tforeach ( array_keys($tables) as $tablename){\n\t\t\t$translations = array_merge($translations, $tables[$tablename]->getTranslations());\n\t\t}\n\t\t$this->_cache[__FUNCTION__] =& $translations;\n\t\treturn $translations;\n\t\t\n\t}", "private function getSystemTranslationObject()\n {\n if(!is_object($this->systemTranslationObj) && !($this->systemTranslationObj instanceof Translations)) {\n $this->systemTranslationObj = GeneralUtility::makeInstance('PITS\\\\Snowbabel\\\\Service\\\\Translations');\n }\n }", "public function __get($name)\n {\n $method = 'get' . ucfirst($name);\n return $this->proxyCurrentLocaleTranslation($method);\n }", "function getTranslation ($languageCode) {\n\t\t$trans = $this->getAllChildTables ('translatedPages', 'language_code', ORDER_ASC, \n\t\t\t\tarray (new WhereClause ('language_code', $languageCode, '=')));\n\t\tif ((count ($trans) >= 1) and (! isError ($trans))) {\n\t\t\t$tPageArray = $trans[0]; /*Normally I should get only one*/\n\t\t\t$creator = &$this->getCreator ();\n\t\t\t$tPage = $creator->newTranslatedPage ();\n\t\t\t$tPage->initFromArray ($tPageArray);\n\t\t\treturn $tPage;\n\t\t}\n\t\n\t\treturn new Error ('PAGE_TRANSLATION_DOESNT_EXIST', $languageCode);\n\t}", "public function getCurrentTranslation(PropelPDO $con = null)\n {\n return $this->getTranslation($this->getLocale(), $con);\n }", "public function getStrings ()\n {\n return $this->translate;\n }", "public function languageObject()\n {\n if (!$this->language)\n {\n $this->language = $this->attribute('language_id') ? eZContentLanguage::fetch( $this->attribute('language_id') ) : false;\n }\n \n return $this->language;\n }", "public function trans()\n {\n $args = func_get_args();\n $numArgs = func_num_args();\n\n switch ($numArgs) {\n case 4:\n return Trans::__($args[0], $args[1], $args[2], $args[3]);\n case 3:\n return Trans::__($args[0], $args[1], $args[2]);\n case 2:\n return Trans::__($args[0], $args[1]);\n case 1:\n return Trans::__($args[0]);\n }\n\n return null;\n }", "public function getCurrentTranslatePjax()\n {\n $this->field = Field::getInstance($this->fieldTemplate->field_template_reference,\n $this->fieldReference, $this->fieldTemplate->program_name);\n\n $this->currentTranslateDb = FieldTranslate::find()\n ->where([\n 'common_fields_represent_id' => $this->field->id,\n 'common_language_id' => $this->language->id\n ])->one();\n\n $this->value = $this->currentTranslateDb->value;\n\n return $this->currentTranslateDb;\n }", "static function get()\n\t{\n\t\treturn self::$lang;\n\t}", "public function getTranslatedLabel()\n {\n return $this->translatedLabel;\n }", "public function getTranslation($lang = false)\n {\n $model = clone $this->model;\n $model->clearFilters();\n\n $id = $this->getTranslationID($lang);\n return $id ? new static($id, $model) : false;\n }", "public function inGerman()\n {\n return $this->getTranslationIn('de');\n }", "public function inEnglish()\n {\n return $this->getTranslationIn('en');\n }", "public function getTranslation($locale = 'fr', PropelPDO $con = null)\n {\n if (!isset($this->currentTranslations[$locale])) {\n if (null !== $this->collEventI18ns) {\n foreach ($this->collEventI18ns as $translation) {\n if ($translation->getLocale() == $locale) {\n $this->currentTranslations[$locale] = $translation;\n\n return $translation;\n }\n }\n }\n if ($this->isNew()) {\n $translation = new EventI18n();\n $translation->setLocale($locale);\n } else {\n $translation = EventI18nQuery::create()\n ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale))\n ->findOneOrCreate($con);\n $this->currentTranslations[$locale] = $translation;\n }\n $this->addEventI18n($translation);\n }\n\n return $this->currentTranslations[$locale];\n }", "public function getTranslationGenerator()\n {\n return $this->getKernel()->getContainer()->get('worldia.textmaster.generator.translation');\n }", "public function sGetTranslation($data, $id, $object, $language = null)\n {\n if (Shopware()->Shop()->get('skipbackend')) {\n return $data;\n }\n $id = (int) $id;\n $language = $language ?: Shopware()->Shop()->getId();\n $fallback = Shopware()->Shop()->get('fallback');\n\n switch ($object) {\n case 'article':\n $map = [\n 'txtshortdescription' => 'description',\n 'txtlangbeschreibung' => 'description_long',\n 'txtshippingtime' => 'shippingtime',\n 'txtArtikel' => 'articleName',\n 'txtzusatztxt' => 'additionaltext',\n 'txtkeywords' => 'keywords',\n 'txtpackunit' => 'packunit',\n ];\n break;\n case 'variant':\n $map = ['txtshippingtime' => 'shippingtime', 'txtzusatztxt' => 'additionaltext', 'txtpackunit' => 'packunit'];\n break;\n case 'link':\n $map = ['linkname' => 'description'];\n break;\n case 'download':\n $map = ['downloadname' => 'description'];\n break;\n case 'configuratoroption':\n $map = [\n 'name' => 'optionname',\n ];\n break;\n case 'configuratorgroup':\n $map = [\n 'description' => 'groupdescription',\n 'name' => 'groupname',\n ];\n break;\n case 'supplier':\n $map = [\n 'meta_title' => 'title',\n 'description' => 'description',\n ];\n break;\n }\n\n $sql = \"\n SELECT objectdata FROM s_core_translations\n WHERE objecttype = '$object'\n AND objectkey = ?\n AND objectlanguage = '$language'\n \";\n $objectData = $this->db->fetchOne($sql, [$id]);\n if (!empty($objectData)) {\n $objectData = unserialize($objectData, ['allowed_classes' => false]);\n } else {\n $objectData = [];\n }\n if (!empty($fallback)) {\n $sql = \"\n SELECT objectdata FROM s_core_translations\n WHERE objecttype = '$object'\n AND objectkey = $id\n AND objectlanguage = '$fallback'\n \";\n $objectFallback = $this->db->fetchOne($sql);\n if (!empty($objectFallback)) {\n $objectFallback = unserialize($objectFallback, ['allowed_classes' => false]);\n $objectData = array_merge($objectFallback, $objectData);\n }\n }\n if (!empty($objectData)) {\n foreach ($objectData as $translateKey => $value) {\n $key = $translateKey;\n if (isset($map[$translateKey])) {\n $key = $map[$translateKey];\n }\n $data[$key] = $value;\n }\n }\n\n return $data;\n }", "public static function get() {\n\t\treturn self::$lang;\n\t}", "public function getI18n()\n {\n return $this->get('i18n');\n }", "public function current() {\n $var = current($this->translations);\n return $var;\n }", "public function transModel()\n {\n return new VendorLang();\n }", "public function translate();", "public function getTranslation(): string\n {\n return CronTranslator::translate($this->expression);\n }", "private function getTrans($key)\n {\n $tr = $this->get('translator');\n\n return $tr->trans($key);\n }", "private function _get_translations_from_file () {\n\n\t\t$lang = file_exists(self::DIR_LANGS . $this->lang . '.php')\n\t\t\t\t\t? $this->lang : $this->_default_lang;\n\n\t\trequire self::DIR_LANGS . $lang . '.php';\n\n\t\treturn $t;\n\n\t}", "private function getSymfonyTranslation(TranslatableMarkup $translated_string) {\n $lang = $this->getLanguageCode($translated_string);\n $string_translation = $this->getStringTranslation($lang, $translated_string->getUntranslatedString(), $translated_string->getOption('context'));\n if (!$string_translation && $this->translator instanceof TranslatorBagInterface) {\n // Configure the translator.\n if ($this->configureTranslator->doesNeedConfiguring($lang)) {\n $this->configureTranslator->configure($lang);\n }\n\n // Try getting the translated string from the cache.\n if($translation = $this->cache->getCachedTranslation($translated_string)) {\n return $translation;\n }\n\n // Cache the translation on the fly if found.\n if ($translation = $this->cache->cacheSymfonyTranslation($translated_string)) {\n return $translation;\n }\n\n }\n\n return NULL;\n }", "public function trans($key)\n {\n $translations = $this->getTranslations($key);\n\n if($translations[$this->getLocale()] ?? false)\n return $translations[$this->getLocale()];\n\n if($translations[$this->getFallbackLocale()] ?? false)\n return $translations[$this->getFallbackLocale()];\n\n foreach ($translations as $locale => $trans) {\n if($trans)\n return $trans;\n }\n }", "protected function _initTranslate()\n {\n $params = array(\n 'scan' => Zend_Translate_Adapter::LOCALE_FILENAME,\n 'logUntranslated' => true\n );\n\n $log = new Zend_Log();\n if( APPLICATION_ENV == 'development' ) {\n $log = new Zend_Log();\n $log->addWriter(new Zend_Log_Writer_Firebug());\n } else {\n $log->addWriter(new Zend_Log_Writer_Null());\n }\n $params['log'] = $log;\n\n $translate = new Zend_Translate(\n 'Csv',\n APPLICATION_PATH.'/install/languages',\n null,\n $params\n );\n\n Zend_Registry::set('Zend_Translate', $translate);\n Zend_Validate_Abstract::setDefaultTranslator($translate);\n Engine_Sanity::setDefaultTranslator($translate);\n\n return $translate;\n }", "protected static function getTranslationModelName()\r\n\t{\r\n\t\treturn Translation::class;\r\n\t}", "public static function getTranslation($text) {\n if (!is_array(self::$cachedTranslations)) {\n self::$cachedTranslations = CachedConferenceApi::getTranslations();\n }\n\n $textMD5 = md5($text);\n if (is_array(self::$cachedTranslations) && isset(self::$cachedTranslations[$textMD5])) {\n return self::$cachedTranslations[$textMD5];\n }\n else {\n return $text;\n }\n }", "function trans($id = null, $parameters = [], $locale = null)\n {\n return app('translator')->trans($id, $parameters, $locale);\n }", "public function translate($path) {\n return Locale::get($path);\n }", "public function getTranslations()\n {\n return $this->hasMany(NewsItemLang::class, ['news_item_id' => 'id']);\n }", "public function getCurrentLocaleEntity();", "public function translationKey(): ?string\n {\n return $this->getAttribute('label_translated');\n }", "public function getTranslationsForKey($key);", "public static function getDefaultTranslator()\n {\n if (null === self::$_translatorDefault) {\n require_once 'Zend/Registry.php';\n if (Zend_Registry::isRegistered('Zend_Translate')) {\n $translator = Zend_Registry::get('Zend_Translate');\n if ($translator instanceof Zend_Translate_Adapter) {\n return $translator;\n } elseif ($translator instanceof Zend_Translate) {\n return $translator->getAdapter();\n }\n }\n }\n return self::$_translatorDefault;\n }", "public function getMultilingual();" ]
[ "0.8065684", "0.790441", "0.7873488", "0.75614995", "0.75245917", "0.74034137", "0.736624", "0.72052974", "0.7179367", "0.7172951", "0.70823777", "0.70823777", "0.6940691", "0.69137985", "0.68620616", "0.6852613", "0.68332654", "0.68308926", "0.6820734", "0.68106514", "0.67649716", "0.6763189", "0.6697586", "0.66632956", "0.66504043", "0.6649079", "0.66134745", "0.65869886", "0.6561925", "0.6561513", "0.6534332", "0.6496261", "0.64829856", "0.6474813", "0.6381439", "0.6379697", "0.63709146", "0.6360232", "0.6360232", "0.6351257", "0.633638", "0.6330644", "0.631332", "0.6307092", "0.62905514", "0.6277512", "0.6265445", "0.6265445", "0.6265445", "0.626461", "0.6259723", "0.62332046", "0.6217984", "0.6212076", "0.62084275", "0.6204348", "0.6192918", "0.6189738", "0.6177063", "0.6165029", "0.61533266", "0.614939", "0.61375403", "0.6127053", "0.6108632", "0.610696", "0.6093969", "0.60795385", "0.6078638", "0.60660857", "0.60321295", "0.60244143", "0.60204625", "0.60079885", "0.6001496", "0.59755653", "0.5972993", "0.5967644", "0.5946995", "0.59337467", "0.5911553", "0.5904947", "0.59022903", "0.5902254", "0.5897375", "0.58966947", "0.5893439", "0.5888202", "0.58839005", "0.5869228", "0.5849834", "0.58420783", "0.58372617", "0.58294946", "0.58148295", "0.5793229", "0.5792546", "0.57925385", "0.57917595", "0.57845044", "0.57609266" ]
0.0
-1
Returns the value for the specified property in the given language.
protected function getValue(EntityInterface $translation, $property, $langcode) { $key = $property == 'user_id' ? 'target_id' : 'value'; return $translation->get($property)->{$key}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __get( $name )\n {\n switch ( $name )\n {\n case 'language':\n if ( isset( $this->properties[$name] ) )\n {\n return $this->properties[$name];\n }\n break;\n\n default:\n throw new ezcBasePropertyNotFoundException( $name );\n }\n }", "public static function getOneValue($language,$setting) {\n return Language::where('name', 'LIKE',$language)->first()->get_one_value($setting)->get(); \n }", "protected function getLanguageParameter() {}", "public function parsedVal()\n {\n if (!isset($this->parsedVal[$this->lang()])) {\n $val = $this->propertyVal();\n\n if ($val === null) {\n return null;\n }\n $val = $this->p()->parseVal($val);\n\n // Could be Translation instance\n // Could be array\n if (isset($val[$this->lang()])) {\n $val = $val[$this->lang()];\n }\n\n // Doing this in the parseVal method of abstract property\n // was causing multiple && l10n properties not to save.\n if (!is_array($val) && $this->p()['multiple']) {\n $val = explode($this->p()->multipleSeparator(), $val);\n }\n\n $this->parsedVal[$this->lang()] = $val;\n }\n return $this->parsedVal[$this->lang()];\n }", "public function getProperty();", "public function getProperty($property = null);", "public function getValue($lang = self::LANGUAGE_DEFAULT)\n {\n if (isset($this->getVal('value')[$lang])) {\n return $this->getVal('value')[$lang];\n }\n else {\n return isset($this->getVal('value')[self::LANGUAGE_DEFAULT]) ? $this->getVal('value')[self::LANGUAGE_DEFAULT] : NULL;\n }\n }", "protected function getPropertyValue() {}", "public function get($language = null) {\n\t\tif ($language !== null) {\n\t\t\treturn $this->_setLanguage($language);\n\t\t}\n\n\t\tif (!$this->_autoLanguage()) {\n\t\t\t$this->_setLanguage();\n\t\t}\n\t\treturn $this->lang;\n\t}", "public function get($property);", "public function getLanguageValue($languageID) {\n\t\tif(is_object($languageID) && $languageID instanceof Language) $languageID = $languageID->id; \n\t\tif(is_string($languageID) && !ctype_digit(\"$languageID\")) $languageID = $this->wire('languages')->get($languageID)->id;\n\t\t$languageID = (int) $languageID; \n\t\treturn isset($this->data[$languageID]) ? $this->data[$languageID] : '';\n\t}", "public function getFromLanguage(): string;", "function readLocaleProperties($language) {\n \t$row = db_execute_one('SELECT subject, body FROM ' . TABLE_PREFIX . 'email_template_translations WHERE name = ? AND module = ? AND locale = ?', $this->getName(), $this->getModule(), $language);\n \tif(is_array($row)) {\n \t $this->subject_values[$language] = $row['subject'];\n \t $this->body_values[$language] = $row['body'];\n \t} else {\n \t return false;\n \t} // if\n }", "function __get($property)\n {\n return $this->value;\n }", "protected function getLang() {\n\t\t$locale = $this->getField()->getLocale();\n\t\tif($this->getField()->getConfig('jslocale')) {\n\t\t\t// Undocumented config property for now, might move to the jQuery view helper\n\t\t\t$lang = $this->getField()->getConfig('jslocale');\n\t\t} else if(array_key_exists($locale, self::$locale_map)) {\n\t\t\t// Specialized mapping for combined lang properties\n\t\t\t$lang = self::$locale_map[$locale];\n\t\t} else {\n\t\t\t// Fall back to default lang (meaning \"en_US\" turns into \"en\")\n\t\t\t$lang = i18n::get_lang_from_locale($locale);\n\t\t}\n\t\t\n\t\treturn $lang;\n\t}", "public function getProperty(): string;", "public function getp($property){\n if(property_exists($this, $property)){\n return $this->$property;\n }\n }", "public function getLangValue($val, $lan){\n $value = json_decode($val);\n if(isset($value->$lan) && $value->$lan != \"\"){\n return $value->$lan;\n } else if(isset($value->en_US)){\n return $value->en_US;\n }\n }", "private function getPropertyValue($property)\n {\n $value = null;\n $getter = 'get' . SimpleDataObjectConverter::snakeCaseToUpperCamelCase($property);\n\n if (method_exists($this, $getter)) {\n $value = $this->{$getter}();\n } elseif ($this->returnAdditionalSetting($property)) {\n $value = $this->returnAdditionalSetting($property);\n }\n\n return $value;\n }", "public function getProperty($property)\n {\n switch($property) {\n case 'record':\n return $this->getRecord();\n case 'entry':\n return $this->getEntry();\n case 'element':\n return $this->getElement();\n default:\n return parent::getProperty($property);\n }\n }", "public function getLanguage() {}", "public function translate_value($p_lc)\n {\n return isys_application::instance()->container->get('language')\n ->get($p_lc);\n }", "public function language(string $language);", "public function getFieldValue($fieldSlug, $locale = null);", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "protected function extractMultilangValue($fieldData, $language = null)\n {\n //====================================================================//\n // Multi-lang Mode is Disabled\n if (self::multiLangMode() == self::$multiLangDisabled) {\n return $fieldData;\n }\n\n //====================================================================//\n // Multi-lang Mode is Simulated\n if (self::multiLangMode() == self::$multiLangSimulated) {\n return $fieldData;\n }\n\n //====================================================================//\n // Wp MultiLang Plugin is Enabled\n if (self::multiLangMode() == self::$multiLangWpmu) {\n return $fieldData;\n }\n\n //====================================================================//\n // Wp Multi-lang Plugin is Enabled\n if (self::multiLangMode() == self::$multiLangWpmu) {\n /** @var array $multilangArray */\n $multilangArray = $this->getWpMuValue($fieldData);\n if (empty($language) && isset($multilangArray[get_locale()])) {\n return $multilangArray[get_locale()];\n }\n if (isset($multilangArray[$language])) {\n return $multilangArray[$language];\n }\n }\n\n return null;\n }", "public function getValue($id, $languageId) {\r\n\t\t$sql = \"Select * From #languages l\r\n\t\t\t\tLeft Outer Join (Select * From #language_values Where language_id = $languageId) v\r\n\t\t\t\tOn l.id = v.item_id\r\n\t\t\t\tWhere l.id = $id\"; \r\n\t\treturn $this->_get($sql);\r\n\t}", "public function getLanguage()\n {\n if (array_key_exists(\"language\", $this->_propDict)) {\n return $this->_propDict[\"language\"];\n } else {\n return null;\n }\n }", "function prop($prop)\n {\n \treturn $this->get_property($prop);\n }", "function language($lang)\n\t{\n\t\treturn lava_instance()->lang->language($lang);\n\t}", "public function getLanguage() {\n return $this->language;\n }", "public function property($name) {\n return $this->properties[$name];\n }", "protected function getFromStorage($property)\n {\n $data = $this->getStorage();\n\n return $data[$property];\n }", "public function getLanguage() {\n return $this->getValueOrDefault('Language');\n }", "public function __get($property)\n {\n try {\n return $this->part->{$property};\n } catch (\\Exception $ex) {\n return;\n }\n }", "public function getUrlLanguage() {\n return $this->storedLanguage;\n }", "public function __get($property) {\n\t\tswitch($property) {\n\t\t\tcase 'ide':\n\t\t\t\treturn $this->ide;\n\n\t\t\tdefault:\n\t\t\t\treturn parent::__get($property);\n\t\t}\n\t}", "public function getLanguage()\n {\n return $this->getParameter('language');\n }", "public static function get() {\n\t\treturn self::$lang;\n\t}", "public function getLang(): string {\n return $this->lang;\n }", "public function __get($property) {\r\n $param = '_' . $property;\r\n return $this->$param;\r\n }", "public function getProperty() {\n return $this->property;\n }", "public function languageObject()\n {\n if (!$this->language)\n {\n $this->language = $this->attribute('language_id') ? eZContentLanguage::fetch( $this->attribute('language_id') ) : false;\n }\n \n return $this->language;\n }", "public function getProperty($propertyName);", "public function getProperty($property)\n {\n return $this->_events->getProperty($property);\n }", "private function getValue(string $fieldName) {\r\n return $this -> translator -> get($fieldName);\r\n }", "protected function getLanguage() {\r\n\t\treturn $this->language;\r\n\t}", "static function getLanguage (){\n return self::$language;\n }", "public function getLanguage()\r\n {\r\n $language = $this->getTransaction()->languageName;\r\n if(empty($language))\r\n {\r\n $language = leaf_get('properties', 'language_code');\r\n }\r\n\t\treturn $language;\r\n\t}", "static function get()\n\t{\n\t\treturn self::$lang;\n\t}", "public function __get($property) {\n if (isset($this->translation[$property])) {\n $property = $this->translation[$property];\n }\n if (!isset($this->_magicProperties[$property])) {\n return $this->loadRelations($property);\n }\n return isset($this->_magicProperties[$property]) ? $this->_magicProperties[$property] : null ;\n }", "public function get_language() {\n return $this->_language;\n }", "public function getLanguage() {\n return $this->_language;\n }", "public function getProperty($field);", "public function getLiteral($resource, $property, $lang = null)\n {\n return $this->get($resource, $property, 'literal', $lang);\n }", "public function get_language() \n {\n return $this->language;\n }", "public function getLang();", "public function __get($property) {\n\t\tswitch($property) {\n\t\t\tcase 'sectionTag':\n\t\t\t\treturn $this->stepSection->tag;\n\n\t\t\tcase 'stepSection':\n\t\t\t\treturn $this->stepSection;\n\n\t\t\tdefault:\n\t\t\t\treturn parent::__get($property);\n\t\t}\n\t}", "public function translate($property, $code = '');", "public function get($prop) {\n\n\t\t\t// Loop through sources to find it\n\t\t\tforeach ($this->_sources as $source) { \n\n\t\t\t\t// Has prop?\n\t\t\t\tif (array_key_exists($prop, $source)) {\n\t\t\t\t\treturn $source[$prop];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Not found\n\t\t\tthrow new \\Exception(\"There is no property '\" . $prop . \"' in this Store\", 1);\t\t\n\n\t\t}", "public function getLanguage()\n {\n return $this->hasOne(Language::className(), ['iso_code'=>'lang']);\n }", "public function getlanguage()\n {\n return $this->language;\n }", "public function __get($property)\n\t{\n\t\treturn Config::get(\"company.$property\");\n\t}", "public function __get($property)\n\t{\n\t\tif (isset($this->fields[$property]))\n\t\t{\n\t\t\treturn $this->fields[$property]->value;\n\t\t}\n\n\t\tif (isset($this->relationHandlers[$property]))\n\t\t{\n\t\t\treturn call_user_func($this->relationHandlers[$property]);\n\t\t}\n\n\t\tthrow new PropertyNotFoundException(\"Unknown property {$property}\");\n\t}", "public function get_language() {\r\n\t\treturn $this->language;\r\n\t}", "public function getLang()\n {\n return $this->lang;\n }", "public function getLang()\n {\n return $this->lang;\n }", "public function getField($property) {\n $result = NULL;\n if (isset($this->callbacks()->onGetFieldForProperty)) {\n $result = $this->callbacks()->onGetFieldForProperty($property);\n }\n if (empty($result) && isset($this->_properties[$property])) {\n return $this->_properties[$property];\n }\n return $result;\n }", "public function GetLanguage()\n {\n return $this->language;\n }", "public static function getLanguageName(){\n if(Cache::isStored('website_lang')) return Cache::get('website_lang'); \n $row = getDatabase()->queryFirstRow(\"SELECT `value` FROM `settings` WHERE `setting` = 'website_lang'\");\n Cache::store('website_lang', $row['value']);\n return $row['value'];\n }", "public function getLanguage(): string\n {\n return $this->language;\n }", "public function getLanguage(): string\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function __get($property)\r\n {\r\n if (property_exists($this, $property)) {\r\n //UTF-8 is recommended for correct JSON serialization\r\n $value = $this->$property;\r\n if (is_string($value) && mb_detect_encoding($value, \"UTF-8\", TRUE) != \"UTF-8\") {\r\n return utf8_encode($value);\r\n }\r\n else {\r\n return $value;\r\n }\r\n }\r\n }", "public function __get($property)\n {\n if (property_exists($this, $property)) {\n //UTF-8 is recommended for correct JSON serialization\n $value = $this->$property;\n if (is_string($value) && mb_detect_encoding($value, \"UTF-8\", TRUE) != \"UTF-8\") {\n return utf8_encode($value);\n }\n else {\n return $value;\n }\n }\n }", "public function getProperty($property)\n {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public static function Get($language_name = '', $param_name = '')\n\t{\n\t\treturn isset(self::$arrLanguageSettings[$language_name][$param_name]) ? self::$arrLanguageSettings[$language_name][$param_name] : '';\n\t}", "public function getLanguage()\n\t{\n\t\treturn $this->languageId;\n\t}", "public function getProperty()\n {\n if (!$this->property) {\n $this->property = Inflector::underscore($this->alias);\n }\n\n return $this->property;\n }", "function getLang() {\n\t\treturn $this->mLang;\n\t}", "public function getLanguage()\n {\n return self::$language;\n }", "public function getProperty($key);", "public function getRuleValue($rule, $property_short)\n\t{\n\t\t// Just for readability\n\t\t$sql_db = $this->config->olp_db;\n\n\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tr.{$rule} AS rule_value\n\t\t\tFROM\n\t\t\t\trules r\n\t\t\t\tINNER JOIN target t ON r.target_id = t.target_id\n\t\t\tWHERE\n\t\t\t\tt.property_short = '{$property_short}'\n\t\t\t\tAND t.deleted = 'FALSE'\n\t\t\t\tAND r.status = 'ACTIVE'\";\n\n\t\ttry\n\t\t{\n\t\t\t$row = $sql_db->Fetch_Array_Row($sql_db->Query($sql_db->db_info['db'], $query));\n\n\t\t\treturn $row['rule_value'];\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$this->config->applog->Write(\"Failed to get the expected rule value for \".$property_short.\"(\".$rule.\")\");\n\n\t\t\tthrow new Blackbox_Exception($e->getMessage());\n\t\t}\n\t}", "public function __get( $property )\n {\n return $this->$property;\n }", "public function getLanguage()\n\t{\n\t\treturn $this->language;\n\t}", "public function getLanguage()\n\t{\n\t\treturn $this->language;\n\t}" ]
[ "0.6631378", "0.6613403", "0.63188887", "0.62802565", "0.6171346", "0.6103426", "0.6052993", "0.60483754", "0.59848934", "0.59744054", "0.59594697", "0.5951993", "0.5931857", "0.5870854", "0.5825411", "0.5817957", "0.58129936", "0.5779499", "0.5766622", "0.57324016", "0.5713804", "0.5713301", "0.57021767", "0.5680035", "0.56762385", "0.56762385", "0.56762385", "0.56762385", "0.56762385", "0.56762385", "0.5671654", "0.5638529", "0.562398", "0.5621154", "0.5618063", "0.5614833", "0.5594496", "0.55940163", "0.55883795", "0.5575869", "0.55746084", "0.557101", "0.5566071", "0.5564603", "0.5558553", "0.5555569", "0.5549967", "0.5547878", "0.5546851", "0.55464625", "0.5543528", "0.55427647", "0.5540862", "0.55362004", "0.55313194", "0.55231756", "0.55178314", "0.5512138", "0.5511846", "0.55029184", "0.5493257", "0.5475423", "0.5471481", "0.54693544", "0.5464652", "0.546385", "0.54628897", "0.5461748", "0.5441174", "0.5428977", "0.5418402", "0.5418402", "0.5417813", "0.54151803", "0.5412677", "0.541094", "0.541094", "0.540463", "0.540463", "0.540463", "0.540463", "0.540463", "0.540463", "0.540463", "0.540463", "0.540463", "0.540463", "0.5403587", "0.53992677", "0.53905016", "0.538938", "0.53889287", "0.53869426", "0.538625", "0.5385504", "0.538487", "0.5383198", "0.53828144", "0.5378856", "0.5378856" ]
0.6962314
0
Returns the name of the field that implements the changed timestamp.
protected function getChangedFieldName($entity) { return $entity->hasField('content_translation_changed') ? 'content_translation_changed' : 'changed'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getName()\n {\n return self::TIMESTAMP;\n }", "public function get_field_name();", "public function getChangedFields() {}", "public function getFieldName() {}", "public function getChangeInternalName()\n {\n \treturn $this->_change_internal_name;\n }", "public function getPreparedTimestampFieldName () {\n return 'preparedts';\n }", "public function getChangedFields()\n {\n return $this->_changedFields;\n }", "function get_fields_name()\n\t{\n\t\treturn $this->db->list_fields( $this->table );\n\t}", "public function getFieldName()\r\n\t{\r\n\t\treturn $this->name;\r\n\t}", "public function getField(): string\n {\n return $this->field;\n }", "public function name($field) {\n\t\treturn $field;\n\t}", "public function getFieldName() {\n return $this->fieldName;\n }", "public function getUuidFieldName() {\n \n return $this->getUuidColumnName();\n }", "public function getFieldName()\n {\n return $this->fieldName;\n }", "public function getFieldName()\n {\n return $this->fieldName;\n }", "public function getFieldName()\n {\n return $this->fieldName;\n }", "public function getField(): string;", "public function getFieldName() {\r\n return $this->_fieldName;\r\n }", "public function timestampFieldIsUpdatedOnPostSave() {}", "public function getName() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getName();\n } else {\n return parent::getName();\n }\n }", "public function getDbFieldName($field_name);", "public function getModifiedStamp();", "public function getName()\n {\n return 'translatable_field';\n }", "public function getFieldName($field) {\n return $field['name'];\n }", "public function getModificationDateColumnName() {}", "public function getName()\n {\n return $this->__get(self::FIELD_NAME);\n }", "public function getModifiedColumn()\n {\n return $this->modifiedColumn;\n }", "public function getDateModified();", "public function getChangedFields()\n {\n\n $fields = [];\n\n if ($this->synchronized || !static::$track) {\n return $fields;\n }\n\n foreach ($this->savedData as $key => $value) {\n\n if ($value != $this->data[$key]) {\n $fields[] = $key;\n }\n }\n\n return $fields;\n\n }", "public function get_field_name($field_name)\n {\n }", "public function getName()\n {\n return 'date';\n }", "public function get_identity_timestamp_option_name()\n {\n }", "public function fieldName()\n\t{\n\t\tif(strpos($this->key, '_id'))\n\t\t{\n\t\t\treturn str_replace('_id', '', $this->key);\n\t\t}\n\n\t\treturn $this->key;\n\t}", "public function hasChanged($fieldName=null) {}", "public function getQualifiedUpdatedAtColumn()\n {\n return $this->qualifyColumn($this->getUpdatedAtColumn());\n }", "public function getSource()\n {\n return 'timestamps';\n }", "public function gettimeModifiedAttribute()\n {\n return Carbon::parse($this->time)->translatedFormat('g:i A');\n }", "public function getTimestamp()\n {\n return $this->readOneof(3);\n }", "public abstract function GetCurrentField();", "public function field_name( $qHanle, $offset )\r\n\t{\r\n\t\treturn $qHanle->Fields( $offset )->Name;\r\n\t}", "function getName () {return $this->getFieldValue ('name');}", "private function updateUpdatedAtField() {\n foreach (static::getFields() as $field_name => $field) {\n if ($field instanceof UpdatedAtField) {\n $this->$field_name = time();\n }\n }\n }", "public function getChangedFields()\n\t{\n\t\t$changed_fields = array();\n\t\tforeach ($this->tracker->getAllChangedProperties() as $prop => $info) {\n\t\t\tswitch ($prop) {\n\t\t\t\tcase 'agent':\n\t\t\t\t\t$changed_fields[] = 'ticket.agent_id';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'agent_team':\n\t\t\t\t\t$changed_fields[] = 'ticket.agent_team_id';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'category':\n\t\t\t\t\t$changed_fields[] = 'ticket.category_id';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'department':\n\t\t\t\t\t$changed_fields[] = 'ticket.department_id';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'priority':\n\t\t\t\t\t$changed_fields[] = 'ticket.priority_id';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'product':\n\t\t\t\t\t$changed_fields[] = 'ticket.product_id';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'workflow':\n\t\t\t\t\t$changed_fields[] = 'ticket.workflow_id';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'status':\n\t\t\t\t\t$changed_fields[] = 'ticket.status';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'is_hold':\n\t\t\t\t\t$changed_fields[] = 'ticket.is_hold';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'hidden_status':\n\t\t\t\t\t$changed_fields[] = 'ticket.hidden_status';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'participants':\n\t\t\t\t\t$changed_fields[] = 'ticket.participants';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'labels':\n\t\t\t\tcase 'label_added':\n\t\t\t\tcase 'label_removed':\n\t\t\t\t\t$changed_fields[] = 'ticket.labels';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t$this->logMessage(\"Raw Changed: \" . implode(', ', array_keys($this->tracker->getAllChangedProperties())));\n\n\t\t$this->logMessage(\"Changed fields: \" . implode(', ', $changed_fields));\n\n\t\treturn $changed_fields;\n\t}", "function getChanged() {\n return $this->changed;\n }", "public function getField()\n {\n return $this->reflectionProperty;\n }", "public function getIdFieldName()\n {\n return $this->prototype->getIdFieldName();\n }", "public function getChanged()\n {\n return $this->changed;\n }", "public function getName(){ return $this->getField('name'); }", "function get_trigger_name() {\n\t\treturn Clean::string( $this->get_meta( 'trigger_name' ) );\n\t}", "public function getFieldName(): float|int|string|null\n {\n return $this->field?->getFieldName();\n }", "public function getAttributeName()\n {\n return 'EventType';\n }", "public function getChanged()\n {\n return $this->_changed;\n }", "function hc_field_name($field){\n\t\techo hc_get_field_name($field);\n\t}", "function getFieldName($n){\n\t\t$field = $this->fields[$n]['Field'];\n\t\treturn $field;\n\t}", "public function getPasswordChangedTime(): int\n {\n return (int) $this->_getEntity()->getPasswordChangedTime();\n }", "public function getName()\n {\n return 'formEvent';\n }", "private function logFieldChanges($strName, $value, $oldval, $oldvalName=\"\")\r\n {\r\n // Log changes\r\n if ($oldval != $value)\r\n {\r\n $oldvalraw = $oldval;\r\n $newvalraw = $value;\r\n\r\n if ($oldvalName)\r\n $oldval = $oldvalName;\r\n\r\n if ($this->getValueNames($strName))\r\n $newval = $this->getValueNames($strName);\r\n else\r\n $newval = $value;\r\n\r\n $this->changelog[$strName] = array(\r\n \"field\"=>$strName,\r\n \"oldval\"=>$oldval,\r\n \"newval\"=>$newval,\r\n \"oldvalraw\"=>$oldvalraw,\r\n \"newvalraw\"=>$newvalraw\r\n );\r\n }\r\n }", "public function getChanged() {\n return $this->changed;\n }", "abstract protected function getOldName();", "public function getOnUpdate(): string;", "public function getNameT()\n {\n return $this->name_t;\n }", "public function getTimestampUpdated()\n {\n return $this->_getData(self::TIMESTAMP_UPDATED);\n }", "public function getDateModified()\n {\n return $this->dateModified;\n }", "public function get_field_label() {\n\t\treturn $this->get_field_attr( 'name' );\n\t}", "public function getName()\n {\n return $this['column_name'];\n }", "protected function getFunction()\n {\n return $this->getStartTime() ? 'fetchDeltaSince' : 'fetchByAccount';\n }", "public abstract function getProjectFieldName();", "function getDateModified() {\n\t\treturn $this->_DateModified;\n\t}", "public function getTimestamp() { \n\t\tif ($this->change) {\n\t\t\t$this->_calc();\n\t\t}\n\t\t\n\t\treturn $this->timestamp; \n\t}", "public function getDateModified()\n {\n return $this->_DateModified;\n }", "public function getPathFieldName()\n {\n return $this->prototype->getPathFieldName();\n }", "public function getFieldBodyModel()\r\n {\r\n return $this->getTimestamp();\r\n }", "function getFieldName(DataProperty &$property)\n {\n if (!is_object($property)) debug($property); // <-- this throws an exception\n // support [database.]table.field syntax\n if (preg_match('/^(.+)\\.(\\w+)$/', $property->source, $matches)) {\n $table = $matches[1];\n $field = $matches[2];\n return $field;\n }\n }", "public function getExtensionName() {\n return $this->forwardCallToReflectionSource( __FUNCTION__ );\n }", "public function getFieldNames() {}", "public function getUpdatedAtColumn()\n {\n return 'updated_at';\n }", "public function getField();", "public function getField();", "public function getField();", "public function getRenamedTable()\n {\n return $this->validationConstructData['new_name'] ?? null;\n }", "public function getFieldBodyModel()\n {\n return $this->getTimestamp();\n }", "public function getTimestamp()\n { return $this->get('timestamp'); }", "function getLastchange() {\n\t\treturn $this->get(\"lastchange\");\n\t}", "public function getChanged()\n {\n return $this->entity->getChanged();\n }", "public function getToField(): string\n {\n return $this->toField;\n }", "public function getIdent()\n {\n\treturn PerfORM::DateField;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "public function getField()\n {\n return $this->_field;\n }", "public function getUpdatedByColumn()\n {\n return Track::UPDATED_BY;\n }", "public function get_fieldName($table = '')\n {\n return 'unit';\n }", "protected function getOldColumn()\n {\n return $this->oldColumn;\n }", "public function getFieldsWithUpdate()\n {\n return array_filter($this->fieldChanges, function ($fieldChange) {\n return $fieldChange->hasChange();\n });\n }", "public static function getMarkUpdated(): string\n {\n return sprintf('// %s::updated', self::class);\n }", "public function getTimestamp()\n\t{\n\t\treturn $this->getValue('timestamp');\n\t}", "public function getDatabaseChangeFilename()\n {\n return $this->_databaseChangeFilename;\n }", "private function getPropertyName(): string\n {\n $name = $this->foreignKey->getLocalTableName();\n if ($this->hasLocalUniqueIndex()) {\n $name = TDBMDaoGenerator::toSingular($name);\n }\n return TDBMDaoGenerator::toCamelCase($name);\n }" ]
[ "0.6899611", "0.66510093", "0.63935363", "0.6330892", "0.6276394", "0.6173465", "0.60872626", "0.60690033", "0.60087603", "0.5966636", "0.59630007", "0.5960776", "0.5940579", "0.5930575", "0.5930575", "0.5930575", "0.5919676", "0.590383", "0.5896583", "0.58921254", "0.58807987", "0.5858223", "0.58347636", "0.58277905", "0.58114934", "0.57136863", "0.5703044", "0.56602466", "0.56503606", "0.5650148", "0.56349605", "0.5630538", "0.5623055", "0.56161714", "0.5603022", "0.559489", "0.5566044", "0.5561971", "0.55597115", "0.55543464", "0.5537465", "0.55317986", "0.55260056", "0.55255085", "0.5515978", "0.5515585", "0.54861414", "0.54815", "0.54790324", "0.54688066", "0.54643553", "0.5461179", "0.5458002", "0.54523176", "0.54418135", "0.54385257", "0.54260594", "0.54252166", "0.5402003", "0.53928185", "0.53894603", "0.5383836", "0.5381179", "0.5375789", "0.53750056", "0.53703487", "0.5367358", "0.53626275", "0.5360565", "0.53540117", "0.53437275", "0.53419423", "0.5341739", "0.5340927", "0.5339929", "0.5338523", "0.5336468", "0.5336468", "0.5336468", "0.5330569", "0.5327874", "0.5314956", "0.5312414", "0.5308328", "0.5308082", "0.53056544", "0.53030384", "0.53030384", "0.53030384", "0.53030384", "0.53017855", "0.52959234", "0.5289738", "0.5278269", "0.5277646", "0.52761984", "0.52691424", "0.52682734", "0.5264165", "0.52639246" ]
0.692234
0
Tests edit content translation.
protected function doTestTranslationEdit() { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $languages = $this->container->get('language_manager')->getLanguages(); foreach ($this->langcodes as $langcode) { // We only want to test the title for non-english translations. if ($langcode != 'en') { $options = ['language' => $languages[$langcode]]; $url = $entity->toUrl('edit-form', $options); $this->drupalGet($url); $this->assertSession()->responseContains($entity->getTranslation($langcode)->label()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function doTestTranslationOverview() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $translate_url = $entity->toUrl('drupal:content-translation-overview');\n $this->drupalGet($translate_url);\n $translate_url->setAbsolute(FALSE);\n\n foreach ($this->langcodes as $langcode) {\n if ($entity->hasTranslation($langcode)) {\n $language = new Language(['id' => $langcode]);\n // Test that label is correctly shown for translation.\n $view_url = $entity->toUrl('canonical', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//a[@href='{$view_url}']\", $entity->getTranslation($langcode)->label() ?? $entity->getTranslation($langcode)->id());\n // Test that edit link is correct for translation.\n $edit_path = $entity->toUrl('edit-form', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//ul[@class='dropbutton']/li/a[@href='{$edit_path}']\", 'Edit');\n }\n }\n }", "public function testEditTemplate()\n {\n\n }", "protected function doTestBasicTranslation() {\n // Create a new test entity with original values in the default language.\n $default_langcode = $this->langcodes[0];\n $values[$default_langcode] = $this->getNewEntityValues($default_langcode);\n // Create the entity with the editor as owner, so that afterwards a new\n // translation is created by the translator and the translation author is\n // tested.\n $this->drupalLogin($this->editor);\n $this->entityId = $this->createEntity($values[$default_langcode], $default_langcode);\n $this->drupalLogin($this->translator);\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertNotEmpty($entity, 'Entity found in the database.');\n $this->drupalGet($entity->toUrl());\n $this->assertSession()->statusCodeEquals(200);\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $this->assertCacheContexts($this->defaultCacheContexts);\n\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n $translation = $this->getTranslation($entity, $default_langcode);\n foreach ($values[$default_langcode] as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $default_langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('@property correctly stored in the default language.', ['@property' => $property]);\n $this->assertEquals($value, $stored_value, $message);\n }\n\n // Add a content translation.\n $langcode = 'it';\n $language = ConfigurableLanguage::load($langcode);\n $values[$langcode] = $this->getNewEntityValues($langcode);\n\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n\n // Assert that HTML is not escaped unexpectedly.\n if ($this->testHTMLEscapeForAllLanguages) {\n $this->assertSession()->responseNotContains('&lt;span class=&quot;translation-entity-all-languages&quot;&gt;(all languages)&lt;/span&gt;');\n $this->assertSession()->responseContains('<span class=\"translation-entity-all-languages\">(all languages)</span>');\n }\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl());\n $this->assertCacheContexts(Cache::mergeContexts(['languages:language_content'], $this->defaultCacheContexts));\n\n // Reset the cache of the entity, so that the new translation gets the\n // updated values.\n $metadata_source_translation = $this->manager->getTranslationMetadata($entity->getTranslation($default_langcode));\n $metadata_target_translation = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));\n\n $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid';\n if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) {\n $this->assertEquals($this->translator->id(), $metadata_target_translation->getAuthor()->id(), new FormattableMarkup('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode]));\n\n $this->assertNotEquals($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(),\n new FormattableMarkup('Author of the target translation @target different from the author of the source translation @source for translatable owner field.',\n ['@target' => $langcode, '@source' => $default_langcode]));\n }\n else {\n $this->assertEquals($this->editor->id(), $metadata_target_translation->getAuthor()->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');\n }\n\n $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created';\n if ($entity->getFieldDefinition($created_field_name)->isTranslatable()) {\n // Verify that the translation creation timestamp of the target\n // translation language is newer than the creation timestamp of the source\n // translation default language for the translatable created field.\n $this->assertGreaterThan($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime());\n }\n else {\n $this->assertEquals($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');\n }\n\n if ($this->testLanguageSelector) {\n // Verify that language selector is correctly disabled on translations.\n $this->assertSession()->fieldNotExists('edit-langcode-0-value');\n }\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n // Switch the source language.\n $langcode = 'fr';\n $language = ConfigurableLanguage::load($langcode);\n $source_langcode = 'it';\n $edit = ['source_langcode[source]' => $source_langcode];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n // This does not save anything, it merely reloads the form and fills in the\n // fields with the values from the different source language.\n $this->drupalGet($add_url);\n $this->submitForm($edit, 'Change');\n $this->assertSession()->fieldValueEquals(\"{$this->fieldName}[0][value]\", $values[$source_langcode][$this->fieldName][0]['value']);\n\n // Add another translation and mark the other ones as outdated.\n $values[$langcode] = $this->getNewEntityValues($langcode);\n $edit = $this->getEditValues($values, $langcode) + ['content_translation[retranslate]' => TRUE];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $source_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextContains('Source language');\n\n // Check that the entered values have been correctly stored.\n foreach ($values as $langcode => $property_values) {\n $translation = $this->getTranslation($entity, $langcode);\n foreach ($property_values as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]);\n $this->assertEquals($value, $stored_value, $message);\n }\n }\n }", "public function testTranslationUI() {\n $this->doTestBasicTranslation();\n $this->doTestTranslationOverview();\n $this->doTestOutdatedStatus();\n $this->doTestPublishedStatus();\n $this->doTestAuthoringInfo();\n $this->doTestTranslationEdit();\n $this->doTestTranslationChanged();\n $this->doTestChangedTimeAfterSaveWithoutChanges();\n $this->doTestTranslationDeletion();\n }", "public function testEdit(): void\n {\n $result = $this->editInPlaceExtension->edit();\n\n $this->assertEquals(0, \\strlen($result));\n\n $this->assertEmpty($result);\n }", "public function testTranslate(): void\n {\n $result = $this->editInPlaceExtension->translate('key', ['key' => 'value'], 'domain');\n\n $this->assertEquals(0, \\strlen($result));\n\n $this->assertEmpty($result);\n }", "public function testEditGlobalTemplate()\n {\n\n }", "public function testEditGet() {\n\t\tRolesControllerTest::login($this);\n\n\t\t$this->testAction(\n\t\t\t'/topics/topic_frame_settings/edit/191',\n\t\t\tarray(\n\t\t\t\t'method' => 'get',\n\t\t\t\t'return' => 'contents'\n\t\t\t)\n\t\t);\n\n\t\t$this->assertTextEquals('edit', $this->controller->view);\n\n\t\tAuthGeneralControllerTest::logout($this);\n\t}", "function testEditpost_template()\n\t{\n\t\tocf_edit_post_template($this->post_id,'Tested Post','Hello','Nothing',1);\n\n\t\t// Test the forum was actually created\n\t\t$this->assertTrue('Tested Post'==$GLOBALS['FORUM_DB']->query_value('f_post_templates','t_title ',array('id'=>$this->post_id)));\n\t}", "public function testSaveExistingRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'Y',\n '_translations' => [\n 'eng' => [\n 'title' => 'First Article1',\n 'body' => 'First Article content has been updated',\n ],\n 'spa' => [\n 'title' => 'Mi nuevo titulo',\n 'body' => 'Contenido Actualizado',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertSame('Mi nuevo titulo', $results['spa']['title']);\n $this->assertSame('Contenido Actualizado', $results['spa']['body']);\n\n $this->assertSame('First Article1', $results['eng']['title']);\n $this->assertSame('Description #1', $results['eng']['description']);\n }", "public function testEdit_redirectText() {\n\t\tstatic $count = 0;\n\t\t$count++;\n\n\t\t// assume NS_HELP defaults to wikitext\n\t\t$name = \"Help:ApiEditPageTest_testEdit_redirectText_$count\";\n\t\t$title = Title::newFromText( $name );\n\t\t$page = WikiPage::factory( $title );\n\n\t\t$rname = \"Help:ApiEditPageTest_testEdit_redirectText_r$count\";\n\t\t$rtitle = Title::newFromText( $rname );\n\t\t$rpage = WikiPage::factory( $rtitle );\n\n\t\t// base edit for content\n\t\t$page->doEditContent( new WikitextContent( \"Foo\" ),\n\t\t\t\"testing 1\", EDIT_NEW, false, self::$users['sysop']->user );\n\t\t$this->forceRevisionDate( $page, '20120101000000' );\n\t\t$baseTime = $page->getRevision()->getTimestamp();\n\n\t\t// base edit for redirect\n\t\t$rpage->doEditContent( new WikitextContent( \"#REDIRECT [[$name]]\" ),\n\t\t\t\"testing 1\", EDIT_NEW, false, self::$users['sysop']->user );\n\t\t$this->forceRevisionDate( $rpage, '20120101000000' );\n\n\t\t// conflicting edit to redirect\n\t\t$rpage->doEditContent( new WikitextContent( \"#REDIRECT [[$name]]\\n\\n[[Category:Test]]\" ),\n\t\t\t\"testing 2\", EDIT_UPDATE, $page->getLatest(), self::$users['uploader']->user );\n\t\t$this->forceRevisionDate( $rpage, '20120101020202' );\n\n\t\t// try to save edit, following the redirect but without creating a section\n\t\ttry {\n\t\t\t$this->doApiRequestWithToken( array(\n\t\t\t\t'action' => 'edit',\n\t\t\t\t'title' => $rname,\n\t\t\t\t'text' => 'nix bar!',\n\t\t\t\t'basetimestamp' => $baseTime,\n\t\t\t\t'redirect' => true,\n\t\t\t), null, self::$users['sysop']->user );\n\n\t\t\t$this->fail( 'redirect-appendonly error expected' );\n\t\t} catch ( UsageException $ex ) {\n\t\t\t$this->assertEquals( 'redirect-appendonly', $ex->getCodeString() );\n\t\t}\n\t}", "public function testEditSnippet()\n {\n\n }", "public function testSaveTranslation(): void\n {\n $data = [];\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n\n $data['topic'] = 'Un sujet intéressant';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->getPhpcrSession()->save();\n\n // Then test we have what we expect in the content repository\n $node_en = $this->session->getNode($this->nodeNameForLocale('en'));\n $node_fr = $this->session->getNode($this->nodeNameForLocale('fr'));\n\n $this->assertTrue($node_en->hasProperty('topic'));\n $this->assertTrue($node_fr->hasProperty('topic'));\n $this->assertTrue($node_en->hasProperty('text'));\n $this->assertTrue($node_fr->hasProperty('text'));\n $this->assertFalse($node_fr->hasProperty('author'));\n $this->assertFalse($node_en->hasProperty('author'));\n\n $this->assertEquals('Some interesting subject', $node_en->getPropertyValue('topic'));\n $this->assertEquals('Un sujet intéressant', $node_fr->getPropertyValue('topic'));\n $this->assertEquals('Lorem ipsum...', $node_en->getPropertyValue('text'));\n $this->assertEquals('Lorem ipsum...', $node_fr->getPropertyValue('text'));\n }", "protected function isContentCorrect() {}", "public static function translationEditor($page) {\n\t\t\n\t\t$include_file = false;\n\t\t$base_path = elgg_get_plugins_path() . 'translation_editor/pages/';\n\t\t\n\t\tswitch ($page[0]) {\n\t\t\tcase 'search':\n\t\t\t\t$include_file = \"{$base_path}search.php\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (empty($page[0])) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// set language\n\t\t\t\tset_input('current_language', $page[0]);\n\t\t\t\t\n\t\t\t\t// set (optional) plugin_id\n\t\t\t\tif (!empty($page[1])) {\n\t\t\t\t\tset_input('plugin', $page[1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$include_file = \"{$base_path}index.php\";\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (!empty($include_file)) {\n\t\t\tinclude($include_file);\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t$current_language = get_current_language();\n\t\tforward(\"translation_editor/{$current_language}\");\n\t\t\n\t\treturn true;\n\t}", "public function testEditGet() {\n\t\tRolesControllerTest::login($this);\n\n\t\t$this->testAction(\n\t\t\t'/rss_readers/rss_readers/edit/181',\n\t\t\tarray(\n\t\t\t\t'method' => 'get',\n\t\t\t\t'return' => 'contents'\n\t\t\t)\n\t\t);\n\t\t$this->assertTextEquals('edit', $this->controller->view);\n\n\t\tAuthGeneralControllerTest::logout($this);\n\t}", "public function edit(Content $content)\n {\n //\n }", "public function edit(Content $content)\n {\n //\n }", "public function testGettingContent()\n {\n $this->assertEquals('foo', $this->revision->getContent());\n }", "public function testSaveNewRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'N',\n '_translations' => [\n 'en' => [\n 'title' => 'Title EN',\n 'body' => 'Body EN',\n ],\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $article = $table->patchEntity($table->newEmptyEntity(), $data);\n $result = $table->save($article);\n\n $this->assertNotFalse($result);\n\n $expected = [\n [\n 'en' => [\n 'title' => 'Title EN',\n 'locale' => 'en',\n ],\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "public function testReplaceFormLines()\n {\n $translator = new Translator();\n $translator->replaceFormLines();\n\n $this->assertSame(__('Reset Password'), 'Set Password');\n }", "public function testEditDescription()\n {\n // create review record for change 1\n $this->createChange();\n Review::createFromChange('1')->save();\n\n $postData = new Parameters(\n array('description' => \" I am a\\r\\nMultiline\\nDescription\\rThat's pretty cool\\r\\r\\neh\\r\\n \")\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_POST)\n ->setPost($postData);\n\n // dispatch\n $this->dispatch('/reviews/2');\n $this->assertRoute('review');\n $this->assertResponseStatusCode(200);\n\n // check resulting change description\n $change = Change::fetch(2, $this->p4);\n $this->assertSame(\n \"I am a\\nMultiline\\nDescription\\nThat's pretty cool\\n\\neh\\n\",\n $change->getDescription()\n );\n }", "public function testUpdateTranslationWithLocaleInEntity(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('_locale', 'fra');\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('First Article', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $table->setLocale('fra');\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n }", "public function testInsertNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('fra');\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertSame('fra', $article->get('_locale'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $article->set('title', 'Un autre titre');\n $article->set('body', 'Le contenu');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame('Un autre titre', $article->get('title'));\n $this->assertSame('Le contenu', $article->get('body'));\n }", "public function testSaveWithCleanFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title']]);\n $table->setEntityClass(TranslateArticle::class);\n I18n::setLocale('fra');\n $article = $table->get(1);\n $article->set('body', 'New Body');\n $table->save($article);\n $result = $table->get(1);\n $this->assertSame('New Body', $result->body);\n $this->assertSame($article->title, $result->title);\n }", "function verifyTextSearchReplaceAll(){\n parent::doExpandAdvanceSection();\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_SEARCH);\n $this->type(TEXT_EDITOR, (TEXT_SAMPLE));\n $this->type(INPUT_SEARCH, (TEXT_SEARCH));\n $this->type(INPUT_REPLACE, (TEXT_REPLACE));\n $this->click(BUTTON_REPLACEALL);\n $this->click(BUTTON_CANCEL);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertEquals((TEXT_REPLACE), $this->getText(TEXT_PREVIEW_TEXT1));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n try {\n $this->assertEquals((TEXT_REPLACE), $this->getText(TEXT_PREVIEW_TEXT2));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n try {\n $this->assertEquals((TEXT_REPLACE), $this->getText(TEXT_PREVIEW_TEXT3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }", "function translateFromEditMode($text) {\n\t\t$text = str_replace('href=\"{[CCM:BASE_URL]}', 'href=\"' . BASE_URL . DIR_REL, $text);\n\t\t$text = str_replace('src=\"{[CCM:REL_DIR_FILES_UPLOADED]}', 'src=\"' . BASE_URL . REL_DIR_FILES_UPLOADED, $text);\n\n\t\t// we have the second one below with the backslash due to a screwup in the\n\t\t// 5.1 release. Can remove in a later version.\n\n\t\t$text = preg_replace(\n\t\t\tarray(\n\t\t\t\t'/{\\[CCM:BASE_URL\\]}/i',\n\t\t\t\t'/{CCM:BASE_URL}/i'),\n\t\t\tarray(\n\t\t\t\tBASE_URL . DIR_REL,\n\t\t\t\tBASE_URL . DIR_REL)\n\t\t\t, $text);\n\t\t\t\n\t\t// now we add in support for the links\n\t\t\n\t\t$text = preg_replace(\n\t\t\t'/{CCM:CID_([0-9]+)}/i',\n\t\t\tBASE_URL . DIR_REL . '/' . DISPATCHER_FILENAME . '?cID=\\\\1',\n\t\t\t$text);\n\n\t\t// now we add in support for the files\n\t\t\n\t\t$text = preg_replace_callback(\n\t\t\t'/{CCM:FID_([0-9]+)}/i',\n\t\t\tarray('[[[GENERATOR_REPLACE_CLASSNAME]]]', 'replaceFileIDInEditMode'),\n\t\t\t$text);\n\t\t\n\n\t\treturn $text;\n\t}", "public function testEditButtonWorkRight()\n {\n $category = $this->makeDataOfEditCategories(1);\n $this->browse(function (Browser $browser) use ($category) {\n $browser->loginAs($this->adminUserToLogin)\n ->visit('/admin/categories')\n ->press('#table-categories #edit-modal1')\n ->pause(1000)\n ->assertSee('Rename Category')\n ->assertInputValue('#id-category', $category[0]->id)\n ->assertInputValue('#name-category', $category[0]->name)\n ->assertSeeIn('.btn-update-name-category', 'Update')\n ->assertSeeIn('.btn-close-update-category', 'Close');\n });\n }", "public function testEdit()\n\t{\n\t\t$client = static::createClient(array(), array(\n\t\t 'PHP_AUTH_USER' => 'jr',\n\t\t 'PHP_AUTH_PW' => 'jr',\n\t\t));\n\t\t$client->followRedirects();\n\n\t\t// On clique sur le lien entreprise de test\n\t\t$crawler = $client->request('GET', '/clients');\n\t\t$link = $crawler->filter('.bloc__title a:contains(\"Entreprise de test\")')->first()->link();\n\t\t$crawler = $client->click($link);\n\t\t//On vérifie qu'on est bien sur la bonne page\n\t\t$this->assertEquals(1, $crawler->filter('h1:contains(\"Entreprise de test\")')->count());\n\n\t\t// On clique sur le bouton modifier\n\t\t$link = $crawler->filter('.btn--edit')->first()->link();\n\t\t$crawler = $client->click($link);\n\t\t//On vérifie qu'on est bien sur la bonne page\n\t\t$this->assertEquals(1, $crawler->filter('.breadcrumb:contains(\"Modifier\")')->count()); \n\n\t\t// On modifie le métier\n\t\t$form = $crawler->selectButton('Enregistrer')->form();\n\t\t$form['flyd_dashboardbundle_client[job]'] \t= 'Job de test modifié ' . rand(1,4);\n\t\t$crawler = $client->submit($form);\t\n\n\n\t\t//On vérifie que ça a marché\n\t\t$this->assertEquals(1, $crawler->filter('html:contains(\"Client bien enregistré.\")')->count());\n\n\t}", "protected function doTestTranslationChanged() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $changed_field_name = $this->getChangedFieldName($entity);\n $definition = $entity->getFieldDefinition($changed_field_name);\n $config = $definition->getConfig($entity->bundle());\n\n foreach ([FALSE, TRUE] as $translatable_changed_field) {\n if ($definition->isTranslatable()) {\n // For entities defining a translatable changed field we want to test\n // the correct behavior of that field even if the translatability is\n // revoked. In that case the changed timestamp should be synchronized\n // across all translations.\n $config->setTranslatable($translatable_changed_field);\n $config->save();\n }\n elseif ($translatable_changed_field) {\n // For entities defining a non-translatable changed field we cannot\n // declare the field as translatable on the fly by modifying its config\n // because the schema doesn't support this.\n break;\n }\n\n foreach ($entity->getTranslationLanguages() as $language) {\n // Ensure different timestamps.\n sleep(1);\n\n $langcode = $language->getId();\n\n $edit = [\n $this->fieldName . '[0][value]' => $this->randomString(),\n ];\n $edit_path = $entity->toUrl('edit-form', ['language' => $language]);\n $this->drupalGet($edit_path);\n $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode));\n\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertEquals(\n $entity->getChangedTimeAcrossTranslations(), $entity->getTranslation($langcode)->getChangedTime(),\n new FormattableMarkup('Changed time for language %language is the latest change over all languages.', ['%language' => $language->getName()])\n );\n }\n\n $timestamps = [];\n foreach ($entity->getTranslationLanguages() as $language) {\n $next_timestamp = $entity->getTranslation($language->getId())->getChangedTime();\n if (!in_array($next_timestamp, $timestamps)) {\n $timestamps[] = $next_timestamp;\n }\n }\n\n if ($translatable_changed_field) {\n $this->assertSameSize($entity->getTranslationLanguages(), $timestamps, 'All timestamps from all languages are different.');\n }\n else {\n $this->assertCount(1, $timestamps, 'All timestamps from all languages are identical.');\n }\n }\n }", "public function testEditarMaterialTextoValido()\n {\n $material = factory(Material::class)->create(['texto'=>'Esse material está sendo criando para teste',]);\n $this->assertDatabaseHas('materials', [\n 'texto' => 'Esse material está sendo criando para teste',]);\n $material->update(['texto'=>'Esse material está sendo atualizado para teste',]);\n $this->assertEquals('Esse material está sendo atualizado para teste',$material->texto);\n \n }", "public function testSaveTranslationDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->hasMany('Comments');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $article = $table->get(1);\n $data = [\n 'title' => 'New title',\n 'body' => 'New body',\n '_translations' => [\n 'es' => [\n 'title' => 'ES title',\n 'body' => 'ES body',\n ],\n ],\n ];\n $article = $table->patchEntity($article, $data);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find('translations')->where(['id' => 1])->first();\n $this->assertSame('New title', $article->get('title'));\n $this->assertSame('New body', $article->get('body'));\n\n $this->assertSame('ES title', $article->_translations['es']->title);\n $this->assertSame('ES body', $article->_translations['es']->body);\n }", "public function testEdit()\n {\n $this->visit('/admin/school/1/edit')\n ->submitForm($this->saveButtonText, $this->school)\n ->seePageIs('/admin/school')\n ;\n\n $this->seeInDatabase('schools', $this->school);\n }", "public function edit($id, $content)\n {\n }", "public function testLoadTranslation(): void\n {\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'English topic';\n $data['text'] = 'English text';\n $data['nullable'] = 'not null';\n $data['settings'] = ['key' => 'value'];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Sujet français';\n $data['text'] = 'Texte français';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n $this->assertEquals('not null', $doc->nullable);\n $this->assertEquals(['key' => 'value'], $doc->getSettings());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->text);\n $this->assertNull($doc->nullable);\n $this->assertEquals([], $doc->getSettings());\n }", "public function testTodoEdit() {\n $data = [\n 'title' => 'new title for todo 2'\n ];\n\n $this->client->request('PUT', '/api/todos/2', [], [], [], json_encode($data));\n $this->assertResponseStatusCodeSame(Response::HTTP_OK);\n\n $json = json_decode($this->client->getResponse()->getContent(), true);\n static::assertArrayHasKey('title', $json);\n static::assertEquals($json['title'], $data['title']);\n }", "public function testEditWithNewTag() {\n $this->markTestIncomplete('Not implemented yet.');\n }", "public function testEdit()\n {\n $city = \\App\\City::first();\n\n $this->actingAs( \\App\\User::first() )\n ->visit('/city/'.$city->id.'/edit')\n ->see('Update City / District Information')\n ->type('Chittagong', 'name')\n ->select(2, 'state_id')\n ->select(true, 'status')\n ->press('Update Now')\n ->seePageIs('/city/'.$city->id.'/edit')\n ->see('Updated!');\n }", "public function testQuestionEditExistingID() {\n $response = $this->get('question/' . $this->question->id . '/edit');\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $this->assertEquals('general.permission', $response->content->view);\n }", "public function testEditFile()\n {\n\n }", "public function testTranslationFieldForOtherFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $expected = 'Articles.foo';\n $field = $table->translationField('foo');\n $this->assertSame($expected, $field);\n }", "public function isTranslatable() {\n $observerWrapper = $this->getMock('\\EntityDrupalWrapper');\n $mockDrupal = $this->getMockDrupalHandlerForConstructor();\n\n $translatable = new ParagraphsTranslatable($observerWrapper, $mockDrupal);\n $this->assertSame(TRUE, $translatable->isTranslatable());\n }", "public function testTranslationFieldForTranslatedFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'en_US',\n ]);\n\n $expectedSameLocale = 'Articles.title';\n $expectedOtherLocale = 'Articles_title_translation.content';\n\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('es_ES');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n I18n::setLocale('en');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->removeBehavior('Translate');\n\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'de_DE',\n ]);\n\n I18n::setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('en_US');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n $table->setLocale('es');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n }", "public function testEditLineItems()\n {\n }", "public function testEditSection() {\n\t\t$name = 'Help:ApiEditPageTest_testEditSection';\n\t\t$page = WikiPage::factory( Title::newFromText( $name ) );\n\t\t$text = \"==section 1==\\ncontent 1\\n==section 2==\\ncontent2\";\n\t\t// Preload the page with some text\n\t\t$page->doEditContent( ContentHandler::makeContent( $text, $page->getTitle() ), 'summary' );\n\n\t\tlist( $re ) = $this->doApiRequestWithToken( array(\n\t\t\t'action' => 'edit',\n\t\t\t'title' => $name,\n\t\t\t'section' => '1',\n\t\t\t'text' => \"==section 1==\\nnew content 1\",\n\t\t) );\n\t\t$this->assertEquals( 'Success', $re['edit']['result'] );\n\t\t$newtext = WikiPage::factory( Title::newFromText( $name ) )\n\t\t\t->getContent( Revision::RAW )\n\t\t\t->getNativeData();\n\t\t$this->assertEquals( \"==section 1==\\nnew content 1\\n\\n==section 2==\\ncontent2\", $newtext );\n\n\t\t// Test that we raise a 'nosuchsection' error\n\t\ttry {\n\t\t\t$this->doApiRequestWithToken( array(\n\t\t\t\t'action' => 'edit',\n\t\t\t\t'title' => $name,\n\t\t\t\t'section' => '9999',\n\t\t\t\t'text' => 'text',\n\t\t\t) );\n\t\t\t$this->fail( \"Should have raised a UsageException\" );\n\t\t} catch ( UsageException $e ) {\n\t\t\t$this->assertEquals( 'nosuchsection', $e->getCodeString() );\n\t\t}\n\t}", "public function testIntegrationEdit()\n {\n $userFaker = factory(Model::class)->create();\n $this->visit('user/' . $userFaker->slug . '/edit')\n ->see('Edit Account');\n $this->assertResponseOk();\n $this->seeInDatabase('users', [\n 'username' => $userFaker->username,\n 'email' => $userFaker->email\n ]);\n $this->assertViewHas('model');\n }", "public function testTokenEditPage()\n {\n $response = $this->actingAsTestingUser()\n ->withEncryptionKey()\n ->get(route('tokens.edit', [$this->token->id_hash]));\n\n $response->assertStatus(200);\n $response->assertViewIs('tokens.form');\n }", "public function Edit($id=null) {\n $content = new CMContent($id);\n $form = new CFormContent($content);\n $status = $form->Check();\n if($status === false) {\n $this->AddMessage('notice', 'The form could not be processed.');\n $this->RedirectToController('edit', $id);\n } else if($status === true) {\n $this->RedirectToController('edit', $content['id']);\n }\n \n $title = isset($id) ? 'Edit' : 'Create';\n $this->views->SetTitle(\"$title content: \".htmlEnt($content['title']))\n ->AddInclude(__DIR__ . '/edit.tpl.php', array(\n 'user'=>$this->user, \n 'content'=>$content, \n 'form'=>$form,\n ));\n }", "public function editRegularContentFromId() {}", "public function testSeeEditPostTest()\n {\n $post = \\App\\Post::firstOrFail();\n $response = $this->actingAs(\\App\\User::firstOrFail())->get('/posts/'.$post->slug.'/edit');\n\n $response->assertStatus(200);\n $response->assertSeeText(config('app.name'));\n }", "public function testSavingWithNonDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n I18n::setLocale('fra');\n $translations = [\n 'fra' => ['title' => 'Un article'],\n 'spa' => ['title' => 'Un artículo'],\n ];\n\n $article = $table->get(1);\n foreach ($translations as $lang => $data) {\n $article->translation($lang)->set($data, ['guard' => false]);\n }\n\n $table->save($article);\n $article = $table->find('translations')->where(['Articles.id' => 1])->first();\n $this->assertSame('Un article', $article->translation('fra')->title);\n $this->assertSame('Un artículo', $article->translation('spa')->title);\n }", "public function testSeeEditCateogryTest()\n {\n $category = \\App\\Category::firstOrFail();\n $response = $this->actingAs(\\App\\User::firstOrFail())->get('/categories/'.$category->slug.'/edit');\n\n $response->assertStatus(200);\n $response->assertSeeText(config('app.name'));\n }", "public function testEditTypeBtn()\n {\n $this->browse(function (Browser $browser) {\n $href = route('type.edit', 3);\n $browser->loginAs(User::find(1))\n ->visit('/tipo')\n ->waitForText('Tipos')\n ->click(\"a[href='$href']\")\n ->waitForText('Modificar Tipo')\n ->assertPathIs('/tipo/3/editar');\n });\n }", "public function testAccessAdminEditPage()\n {\n $user = factory(User::class)->create();\n $project = factory(Project::class)->create();\n $response = $this->actingAs($user)\n ->get(route('admin.project.edit', [$project]));\n\n $response->assertSuccessful();\n\n }", "public function editView() {\n $this->template()->addTplFile('edit.phtml');\n $this->setTinyMCE($this->formEdit->text, 'advanced');\n $this->setTinyMCE($this->formEdit->textPanel, 'advanced', array('height' => 300));\n if(isset($this->formEdit->textFooter)){\n $this->setTinyMCE($this->formEdit->textFooter, 'advanced', array('height' => 300));\n }\n Template_Module::setEdit(true);\n }", "public function testUnitEdit()\n {\n $model = Mockery::mock('Suitcoda\\Model\\User');\n $model->shouldReceive('findOrFailByUrlKey')->andReturn($model);\n $user = new UserController($model);\n $this->assertInstanceOf('Illuminate\\View\\View', $user->edit(1));\n }", "public function testSaveDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->hasMany('Comments');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $article = $table->get(1);\n $data = [\n 'title' => 'New title',\n 'body' => 'New body',\n ];\n $article = $table->patchEntity($article, $data);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->get(1);\n $this->assertSame('New title', $article->get('title'));\n $this->assertSame('New body', $article->get('body'));\n }", "public function testEdit() {\n\t\t$result = $this->CreditNote->edit('creditnote-1', null);\n\n\t\t$expected = $this->CreditNote->read(null, 'creditnote-1');\n\t\t$this->assertEqual($result['CreditNote'], $expected['CreditNote']);\n\n\t\t// put invalidated data here\n\t\t$data = $this->record;\n\t\t//$data['CreditNote']['title'] = null;\n\n\t\t$result = $this->CreditNote->edit('creditnote-1', $data);\n\t\t$this->assertEqual($result, $data);\n\n\t\t$data = $this->record;\n\n\t\t$result = $this->CreditNote->edit('creditnote-1', $data);\n\t\t$this->assertTrue($result);\n\n\t\t$result = $this->CreditNote->read(null, 'creditnote-1');\n\n\t\t// put record specific asserts here for example\n\t\t// $this->assertEqual($result['CreditNote']['title'], $data['CreditNote']['title']);\n\n\t\ttry {\n\t\t\t$this->CreditNote->edit('wrong_id', $data);\n\t\t\t$this->fail('No exception');\n\t\t} catch (OutOfBoundsException $e) {\n\t\t\t$this->pass('Correct exception thrown');\n\t\t}\n\t}", "function edit_do($id, $title, $pages, $content, $state, $advanced = FALSE, $options = array(), $head = ''){\r\n $access = $this->reg->db->GetCol('SELECT id\r\n FROM system__content\r\n WHERE user_id = ?\r\n AND id = ?', array($_SESSION['SYSTEM']['USER_ID'], $id[0]));\r\n\r\n // check that the user has access to the content\r\n if(count($access)){\r\n if($advanced[0]){\r\n // insert content\r\n $content = $this->reg->db->Execute('UPDATE system__content\r\n SET title = ?,\r\n url_slug = ?,\r\n content = ?,\r\n state = ?,\r\n advanced = ?,\r\n show_title = ?,\r\n show_date = ?,\r\n head = ?\r\n WHERE id = ?', array(trim($title[0]),\r\n $this->generate_url_slug($title[0]),\r\n $content[0],\r\n (($state[0] == '1') ? 'published' : 'draft'),\r\n 1,\r\n (in_array('show_title', $options)?1:0),\r\n (in_array('show_date', $options)?1:0),\r\n $head[0],\r\n $id[0]));\r\n }else{\r\n // insert content\r\n $content = $this->reg->db->Execute('UPDATE system__content\r\n SET title = ?,\r\n url_slug = ?,\r\n content = ?,\r\n state = ?,\r\n show_title = ?,\r\n show_date = ?\r\n WHERE id = ?', array(trim($title[0]),\r\n $this->generate_url_slug($title[0]),\r\n $content[0],\r\n (($state[0] == '1') ? 'published' : 'draft'),\r\n (($this->reg->config->is_set('post_show_title') && $this->reg->config->get('post_show_title'))?1:0),\r\n (($this->reg->config->is_set('post_show_date') && $this->reg->config->get('post_show_date'))?1:0),\r\n $id[0]));\r\n }\r\n\r\n // check that pages were passed\r\n if(count($pages)){\r\n // delete all pages to a navigation item\r\n $this->reg->db->Execute('DELETE FROM system__intersect__navigation_content\r\n WHERE content_id = ?', array($id[0]));\r\n\r\n // insert the pages/navigation intersects\r\n $content = array();\r\n $page = 'INSERT INTO system__intersect__navigation_content\r\n\t\t\t\t\t\t\t(content_id, navigation_id) VALUES ';\r\n\r\n // loop through all unique organizations and add them to the query\r\n $i = 1;\r\n $used_ids = array();\r\n foreach($pages as $value){\r\n if($value != '' && !in_array($value, $used_ids)){\r\n $used_ids[] = $value;\r\n if($i != 1){\r\n $page .= ', ';\r\n }\r\n $page .= '(?, ?)';\r\n $content[] = $id[0];\r\n $content[] = $value;\r\n $i++;\r\n }\r\n }\r\n\r\n // run query to add users posts to navigation item\r\n if(count($content)){\r\n $page = $this->reg->db->Execute($page, $content);\r\n }else{\r\n $page = TRUE;\r\n }\r\n }\r\n\r\n // return message of whether or not the edit was successful\r\n if(!$content && (isset($page) && !$page)){\r\n $_SESSION['SYSTEM']['MESSAGES']['error'][] = '<p>The content was not edited successfully. Please try again.</p>';\r\n }else{\r\n $_SESSION['SYSTEM']['MESSAGES']['success'][] = '<p>The content was edited successfully.</p>';\r\n }\r\n\r\n return TRUE;\r\n }else{\r\n $_SESSION['SYSTEM']['MESSAGES']['error'][] = '<p>You are not allowed to edit this content.</p>';\r\n return FALSE;\r\n }\r\n }", "function verifyTextSearchReplaceNext(){\n parent::doExpandAdvanceSection();\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_SEARCH);\n $this->type(TEXT_EDITOR, (TEXT_SAMPLE));\n $this->type(INPUT_SEARCH, (TEXT_SEARCH));\n $this->type(INPUT_REPLACE, (TEXT_REPLACE));\n $this->click(BUTTON_REPLACENEXT);\n $this->click(BUTTON_REPLACENEXT);\n $this->click(BUTTON_CANCEL);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertEquals((TEXT_REPLACE), $this->getText(TEXT_PREVIEW_TEXT1));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n try {\n $this->assertEquals((TEXT_REPLACE), $this->getText(TEXT_PREVIEW_TEXT2));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n try {\n $this->assertEquals((TEXT_SEARCH), $this->getText(TEXT_PREVIEW_TEXT3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }", "function is_translatable()\n {\n }", "public function isTranslated();", "protected function editar()\n {\n }", "public function testUpdateTask()\n {\n $this->addTestFixtures();\n $this->logInAsUser();\n $id = $this->task->getId();\n\n $crawler = $this->client->request('GET', '/tasks/'.$id.'/edit');\n\n $form = $crawler->selectButton('Modifier')->form();\n $form['task[title]'] = 'Titre';\n $form['task[content]'] = 'Contenu de test pour la création d\\'une tâche';\n $this->client->submit($form);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertContains('Superbe! La tâche a bien été modifiée.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function testModificarCorrecto(){\n $user=User::find(1);\n $this->actingAs($user)\n ->visit('administracion/usuarios/modificar/2')\n ->type(\"prueba\",\"nombre\")\n ->select(1,'tipoUsuario')\n ->press('Modificar')\n ->see(\"El usuario ha sido modificado\");\n }", "public function testEditPost() {\n\t\tRolesControllerTest::login($this);\n\n\t\t$this->testAction(\n\t\t\t'/topics/topic_frame_settings/edit/191',\n\t\t\tarray(\n\t\t\t\t'method' => 'post',\n\t\t\t\t'data' => array(\n\t\t\t\t\t'TopicFrameSetting' => array(\n\t\t\t\t\t\t'id' => 1,\n\t\t\t\t\t\t'frame_id' => 191,\n\t\t\t\t\t\t'key' => 'key',\n\t\t\t\t\t\t'created' => '2015-08-05 12:38:49',\n\t\t\t\t\t\t'created_user' => '1',\n\t\t\t\t\t\t'modified' => '2015-08-05 12:38:49',\n\t\t\t\t\t\t'modified_user' => '1',\n\t\t\t\t\t\t'unit_type' => '0',\n\t\t\t\t\t\t'display_days' => '0',\n\t\t\t\t\t\t'select_room' => '0',\n\t\t\t\t\t\t'show_my_room' => '0',\n\t\t\t\t\t\t'display_title' => '1',\n\t\t\t\t\t\t'display_description' => '1',\n\t\t\t\t\t\t'display_room_name' => '0',\n\t\t\t\t\t\t'display_plugin_name' => '1',\n\t\t\t\t\t\t'display_created_user' => '0',\n\t\t\t\t\t\t'display_created' => '1',\n\t\t\t\t\t),\n\t\t\t\t\t'TopicSelectedRoom' => array(\n\t\t\t\t\t\t'room_id' => ''\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'return' => 'contents'\n\t\t\t)\n\t\t);\n\t\t$this->assertTextEquals('edit', $this->controller->view);\n\n\t\tAuthGeneralControllerTest::logout($this);\n\t}", "function editting()\n\t{\n\t\tglobal $template, $mod_loader, $security, $errors, $lang_loader;\n\t\t\n\t\t// which is chosen\n\t\t$b = ( isset( $_GET[ 'pag' ] ) ) ? str_replace( '%20', ' ', strval( $_GET[ 'pag' ] ) ) : '';\n\t\t\n\t\t// create the list\n\t\t$list = '<select onchange=\"window.location.href = this.value\">';\n\t\t$list .= ( empty( $b ) ) ? '<option selected value=\"\"> </option>' : '<option value=\"\"> </option>';\n\t\tif ( is_array( $this->pages_array ) )\n\t\t{\n\t\t\tforeach ( $this->pages_array as $lang => $pags )\n\t\t\t{\n\t\t\t\tforeach ( $pags as $name => $pag )\n\t\t\t\t{\n\t\t\t\t\t$list .= ( $b == $lang . '-' . $name ) ? '<option selected ' : '<option ';\n\t\t\t\t\t$list .= 'value=\"' . $security->append_sid( '?' . MODE_URL . '=ACP&' . SUBMODE_URL . '=ACP_pages&s=edit&pag=' . $lang . '-' . $name ) . '\">' . $lang . ' :: ' . $name . '</option>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$list .= '</select>';\n\t\t\n\t\t// determine the content of the editee\n\t\tif ( !empty( $b ) )\n\t\t{\n\t\t\t// get the content\n\t\t\t$content = explode( '-', $b );\n\t\t\t$title = $content[ 1 ];\n\t\t\t$language = $content[ 0 ];\n\t\t\t$auth = $this->pages_array[ $content[ 0 ] ][ $content[ 1 ] ][ 'auth' ];\n\t\t\t$content = $this->pages_array[ $content[ 0 ] ][ $content[ 1 ] ][ 'content' ];\n\t\t}else\n\t\t{\n\t\t\t$content = '';\n\t\t\t$title = '';\n\t\t\t$language = '';\n\t\t\t$auth = '';\n\t\t}\n\t\t\n\t\t// get the editor\n\t\t$mods = $mod_loader->getmodule( 'editor', MOD_FETCH_NAME, NOT_ESSENTIAL );\n\t\t$mod_loader->port_vars( array( 'name' => 'editor1', 'quickpost' => FALSE, 'def_text' => stripslashes( $content ) ) );\n\t\t$mod_loader->execute_modules( 0, 'show_editor' );\n\t\t$page = $mod_loader->get_vars( array( 'editor_HTML', 'editor_WYSIWYG' ) );\n\t\t\n\t\tif ( !$page[ 'editor_WYSIWYG' ] )\n\t\t{ // make it so that newlines are actually newlines in the textarea\n\t\t\t$htm = $page[ 'editor_HTML' ];\n\t\t\t$htm = str_replace( '<textarea name=\"editor1\" id=\"editor1\" style=\"width: 100%; height: 78%\">' . htmlspecialchars( $content ) . '</textarea>', '<textarea name=\"editor1\" id=\"editor1\" style=\"width: 100%; height: 78%\">' . htmlspecialchars( str_replace( '<br />', \"\\r\\n\", $content ) ) . '</textarea>', $htm );\n\t\t\t$page[ 'editor_HTML' ] = $htm;\n\t\t}\n\t\t\n\t\t// construct the language selection list\n\t\t$langl = $lang_loader->get_langlist();\n\t\t$langs = '<select name=\"language\">';\n\t\tfor ( $i = 0; $i < count( $langl ); $i++ )\n\t\t{\n\t\t\t$langs .= ( $langl[ $i ] == $language ) ? '<option selected>' . $langl[ $i ] . '</option>' : '<option>' . $langl[ $i ] . '</option>';\n\t\t}\n\t\t$langs .= '</select>';\n\t\t\n\t\t// construct the auth selection list :)\n\t\t$auth2 = '<select name=\"auth\">';\n\t\t$s[ 0 ] = ( $auth == GUEST ) ? 'selected' : '';\n\t\t$s[ 1 ] = ( $auth == INACTIVE ) ? 'selected' : '';\n\t\t$s[ 2 ] = ( $auth == ADMIN ) ? 'selected' : '';\n\t\t$s[ 3 ] = ( $auth == SUPER_MOD ) ? 'selected' : '';\n\t\t$s[ 4 ] = ( $auth == MOD ) ? 'selected' : '';\n\t\t$s[ 5 ] = ( $auth == USER ) ? 'selected' : '';\n\t\t$auth2 .= '<option value=\"' . GUEST . '\" ' . $s[ 0 ] . '>' . $this->lang[ 'Guest' ] . '</option>';\n\t\t$auth2 .= '<option value=\"' . INACTIVE . '\" ' . $s[ 1 ] . '>' . $this->lang[ 'Inactive' ] . '</option>';\n\t\t$auth2 .= '<option value=\"' . ADMIN . '\" ' . $s[ 2 ] . '>' . $this->lang[ 'Admin' ] . '</option>';\n\t\t$auth2 .= '<option value=\"' . SUPER_MOD . '\" ' . $s[ 3 ] . '>' . $this->lang[ 'Super_mod' ] . '</option>';\n\t\t$auth2 .= '<option value=\"' . MOD . '\" ' . $s[ 4 ] . '>' . $this->lang[ 'Mod' ] . '</option>';\n\t\t$auth2 .= '<option value=\"' . USER . '\" ' . $s[ 5 ] . '>' . $this->lang[ 'User' ] . '</option>';\n\t\t$auth2 .= '</select>';\n\t\t\n\t\t// the template stuff eh\n\t\t$template->assign_block_vars( 'edit', '', array(\n\t\t\t'S_FORM_ACTION' => $security->append_sid( '?' . MODE_URL . '=ACP&' . SUBMODE_URL . '=ACP_pages&s=add_bar' ),\n\t\t\t'S_PAGE' => $page[ 'editor_HTML' ],\n\t\t\t'S_TITLE' => $title,\n\t\t\t'S_CONTENT' => htmlentities( $content ),\n\t\t\t'S_SELECT' => $list,\n\t\t\t'S_LANGS' => $langs,\n\t\t\t'S_MODE' => 'edit',\n\t\t\t'S_AUTH' => $auth,\n\t\t\t'S_AUTH2' => $auth2,\n\t\t\t\n\t\t\t'L_TITLE' => $this->lang[ 'Edit_title' ],\n\t\t\t'L_EXPLAIN' => $this->lang[ 'Edit_explain' ],\n\t\t\t'L_TITLE2' => $this->lang[ 'Edit_title2' ],\n\t\t\t'L_LANGUAGE' => $this->lang[ 'Edit_language' ],\n\t\t\t'L_SELECT' => $this->lang[ 'Edit_select' ],\n\t\t\t'L_AUTH' => $this->lang[ 'Edit_auth' ],\n\t\t\t'L_REMOVE' => $this->lang[ 'Edit_remove' ],\n\t\t) );\n\t\t\n\t\t// woot visible\n\t\t$template->assign_switch( 'edit', TRUE );\n\t}", "public function testSaveMultipleTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n }", "function do_Edit ($lang)\n {\n global $vnT, $func, $DB, $conf;\n $id = (int) $vnT->input['id'];\n if ($vnT->input['do_submit']) {\n $data = $_POST;\n $name = $vnT->input['name'];\n // Check for Error\n $query = $DB->query(\"SELECT name FROM ad_pos WHERE name='{$name}' and id<>$id \");\n if ($check = $DB->fetch_row($query))\n $err = $func->html_err(\"Name existed\");\n\n if(empty($_POST['csrf_token']) || ($_POST['csrf_token'] != $_SESSION['vnt_csrf_token']) ) {\n $err = $func->html_err($vnT->lang['err_csrf_token']) ;\n }\n\n if (empty($err)) {\n $cot['name'] = trim($data['name']);\n $cot['title'] = $func->txt_HTML($data['title']);\n $cot['width'] = $data['width'];\n $cot['height'] = $data['height'];\n $cot['align'] = $data['align'];\n $cot['type_show'] = $data['type_show'];\n $kq = $DB->do_update(\"ad_pos\", $cot, \"id=$id\");\n if ($kq) {\n unset($_SESSION['vnt_csrf_token']);\n //xoa cache\n $func->clear_cache();\n //insert adminlog\n $func->insertlog(\"Edit\", $_GET['act'], $id);\n $err = $vnT->lang[\"edit_success\"];\n $url = $this->linkUrl . \"&sub=edit&id=$id\";\n $func->html_redirect($url, $err);\n } else\n $err = $func->html_err($vnT->lang[\"edit_failt\"] . $DB->debug());\n }\n }\n $query = $DB->query(\"SELECT * FROM ad_pos WHERE id=$id\");\n if ($data = $DB->fetch_row($query)) {\n $data['title'] = $func->txt_unHTML($data[\"title\"]);\n } else {\n $mess = $vnT->lang['not_found'] . \" ID : \" . $id;\n $url = $this->linkUrl;\n $func->html_redirect($url, $mess);\n }\n $data['list_align'] = $this->listAlign($data['align']);\n $data['list_type_show'] = $this->List_Type_Show($data['type_show']);\n $data['readonly'] = 'readonly=\"ReadOnly\"';\n if (! isset($_SESSION['vnt_csrf_token'])) {\n $_SESSION['vnt_csrf_token'] = md5(uniqid(rand(), TRUE)) ;\n }\n $data['csrf_token'] = $_SESSION['vnt_csrf_token'] ;\n $data['err'] = $err;\n $data['link_action'] = $this->linkUrl . \"&sub=edit&id=$id\";\n /*assign the array to a template variable*/\n $this->skin->assign('data', $data);\n $this->skin->parse(\"edit\");\n return $this->skin->text(\"edit\");\n }", "public function testEdit()\n {\n $response = $this->action('GET', '\\Modules\\Admin\\Http\\Controllers\\FaqCategoryController@edit', ['id' => '1']);\n $this->assertResponseStatus(200, $response->status());\n $this->assertInstanceOf('Illuminate\\Http\\JsonResponse', $response);\n }", "public function testSaveMultipleNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $translations['spa'] = new Entity(['title' => 'Titulo']);\n $translations['fre'] = new Entity(['title' => 'Titre']);\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n $this->assertSame('Titulo', $translations['spa']->get('title'));\n $this->assertSame('Titre', $translations['fre']->get('title'));\n }", "public function testEditPost() {\n\t\tRolesControllerTest::login($this);\n\n\t\t//データ生成\n\t\t$frameId = '181';\n\t\t$blockId = '181';\n\t\t$blockKey = 'block_' . $blockId;\n\t\t$roomId = '1';\n\n\t\t//データ生成\n\t\t$data = array(\n\t\t\t'Frame' => array('id' => $frameId),\n\t\t\t'Block' => array('id' => $blockId, 'key' => $blockKey, 'room_id' => $roomId),\n\t\t\t'RssReader' => array(\n\t\t\t\t'key' => 'rss_reader_1',\n\t\t\t\t'url' => APP . 'Plugin' . DS . 'RssReaders' . DS . 'Test' . DS . 'Fixture' . DS . 'rss_v1.xml',\n\t\t\t\t'title' => 'Edit title',\n\t\t\t\t'summary' => 'Edit summary',\n\t\t\t\t'link' => 'http://example.com',\n\t\t\t),\n\t\t\t'Comment' => array('comment' => 'Edit comment'),\n\t\t\tsprintf('save_%s', NetCommonsBlockComponent::STATUS_PUBLISHED) => '',\n\t\t);\n\n\t\t//テスト実行\n\t\t$this->testAction(\n\t\t\t'/rss_readers/rss_readers/edit/' . $frameId,\n\t\t\tarray(\n\t\t\t\t'method' => 'post',\n\t\t\t\t'data' => $data,\n\t\t\t\t'return' => 'contents'\n\t\t\t)\n\t\t);\n\t\t$this->assertTextEquals('edit', $this->controller->view);\n\n\t\tAuthGeneralControllerTest::logout($this);\n\t}", "public function testEditTagAdmin(): void\n {\n // given\n $expectedStatusCode = 200;\n $adminUser = $this->createUser([User::ROLE_USER, User::ROLE_ADMIN]);\n $this->logIn($adminUser);\n\n $expectedTag = new Tag();\n $expectedTag->setName('Test Tag');\n $tagRepository = self::$container->get(TagRepository::class);\n $tagRepository->save($expectedTag);\n\n // when\n $crawler = $this->httpClient->request('GET', '/tag/'.$expectedTag->getId().'/edit');\n $resultStatusCode = $this->httpClient->getResponse()->getStatusCode();\n $form = $crawler->selectButton('zapisz')->form();\n $this->httpClient->submit($form);\n $this->httpClient->followRedirect();\n\n // then\n $this->assertEquals($expectedStatusCode, $resultStatusCode);\n $this->assertStringContainsString('Aktualizacja powiodła się', $this->httpClient->getResponse()->getContent());\n }", "public function testLanguageStringSelector() {\n // Add another language.\n $edit = ['predefined_langcode' => 'es'];\n $this->drupalGet('admin/config/regional/language/add');\n $this->submitForm($edit, 'Add language');\n\n // Translate the string English in Spanish (Inglés). Override config entity.\n $name_translation = 'Inglés';\n \\Drupal::languageManager()\n ->getLanguageConfigOverride('es', 'language.entity.en')\n ->set('label', $name_translation)\n ->save();\n\n // Check content translation overview selector.\n $path = 'es/admin/config/regional/content-language';\n $this->drupalGet($path);\n\n // Get en language from selector.\n $option = $this->assertSession()->optionExists('edit-settings-user-user-settings-language-langcode', 'en');\n\n // Check that the language text is translated.\n $this->assertSame($name_translation, $option->getText());\n }", "public function testEdit_redirect() {\n\t\tstatic $count = 0;\n\t\t$count++;\n\n\t\t// assume NS_HELP defaults to wikitext\n\t\t$name = \"Help:ApiEditPageTest_testEdit_redirect_$count\";\n\t\t$title = Title::newFromText( $name );\n\t\t$page = WikiPage::factory( $title );\n\n\t\t$rname = \"Help:ApiEditPageTest_testEdit_redirect_r$count\";\n\t\t$rtitle = Title::newFromText( $rname );\n\t\t$rpage = WikiPage::factory( $rtitle );\n\n\t\t// base edit for content\n\t\t$page->doEditContent( new WikitextContent( \"Foo\" ),\n\t\t\t\"testing 1\", EDIT_NEW, false, self::$users['sysop']->user );\n\t\t$this->forceRevisionDate( $page, '20120101000000' );\n\t\t$baseTime = $page->getRevision()->getTimestamp();\n\n\t\t// base edit for redirect\n\t\t$rpage->doEditContent( new WikitextContent( \"#REDIRECT [[$name]]\" ),\n\t\t\t\"testing 1\", EDIT_NEW, false, self::$users['sysop']->user );\n\t\t$this->forceRevisionDate( $rpage, '20120101000000' );\n\n\t\t// conflicting edit to redirect\n\t\t$rpage->doEditContent( new WikitextContent( \"#REDIRECT [[$name]]\\n\\n[[Category:Test]]\" ),\n\t\t\t\"testing 2\", EDIT_UPDATE, $page->getLatest(), self::$users['uploader']->user );\n\t\t$this->forceRevisionDate( $rpage, '20120101020202' );\n\n\t\t// try to save edit, following the redirect\n\t\tlist( $re, , ) = $this->doApiRequestWithToken( array(\n\t\t\t'action' => 'edit',\n\t\t\t'title' => $rname,\n\t\t\t'text' => 'nix bar!',\n\t\t\t'basetimestamp' => $baseTime,\n\t\t\t'section' => 'new',\n\t\t\t'redirect' => true,\n\t\t), null, self::$users['sysop']->user );\n\n\t\t$this->assertEquals( 'Success', $re['edit']['result'],\n\t\t\t\"no problems expected when following redirect\" );\n\t}", "function _EDIT( $cur_template, $publish ) {\n\t\tglobal $id;\n\n\t\tmosMenuBar::startTable();\n\t\t?>\n\t\t\t<td>\n\t\t\t\t<a class=\"toolbar\" href=\"#\" onClick=\"if (typeof document.adminForm.content == 'undefined') { alert('Вы можете просмотреть только -Новый- модуль.'); } else { var content = document.adminForm.content.value; content = content.replace('#', ''); var title = document.adminForm.title.value; title = title.replace('#', ''); window.open('popups/modulewindow.php?title=' + title + '&content=' + content + '&t=<?php echo $cur_template; ?>', 'win1', 'status=no,toolbar=no,scrollbars=auto,titlebar=no,menubar=no,resizable=yes,width=200,height=400,directories=no,location=no'); }\" >\n\t\t\t\t\t<img src=\"images/preview_f2.png\" alt=\"Просмотр\" border=\"0\" name=\"preview\" align=\"middle\">\n\t\t\t\t\tПросмотр</a>\n\t\t\t</td>\n\t\t<?php\n\t\tmosMenuBar::spacer();\n\t\tmosMenuBar::save();\n\t\tmosMenuBar::spacer();\n\t\tmosMenuBar::apply();\n\t\tmosMenuBar::spacer();\n\t\tif ( $id ) {\n\t\t\t// for existing content items the button is renamed `close`\n\t\t\tmosMenuBar::cancel( 'cancel', 'Закрыть' );\n\t\t} else {\n\t\t\tmosMenuBar::cancel();\n\t\t}\n\t\tmosMenuBar::spacer();\n\t\tmosMenuBar::help( 'screen.modules.edit' );\n\t\tmosMenuBar::endTable();\n\t}", "public function testEditNewSection() {\n\t\t$name = 'Help:ApiEditPageTest_testEditNewSection';\n\n\t\t// Test on a page that does not already exist\n\t\t$this->assertFalse( Title::newFromText( $name )->exists() );\n\t\tlist( $re ) = $this->doApiRequestWithToken( array(\n\t\t\t'action' => 'edit',\n\t\t\t'title' => $name,\n\t\t\t'section' => 'new',\n\t\t\t'text' => 'test',\n\t\t\t'summary' => 'header',\n\t\t));\n\n\t\t$this->assertEquals( 'Success', $re['edit']['result'] );\n\t\t// Check the page text is correct\n\t\t$text = WikiPage::factory( Title::newFromText( $name ) )\n\t\t\t->getContent( Revision::RAW )\n\t\t\t->getNativeData();\n\t\t$this->assertEquals( \"== header ==\\n\\ntest\", $text );\n\n\t\t// Now on one that does\n\t\t$this->assertTrue( Title::newFromText( $name )->exists() );\n\t\tlist( $re2 ) = $this->doApiRequestWithToken( array(\n\t\t\t'action' => 'edit',\n\t\t\t'title' => $name,\n\t\t\t'section' => 'new',\n\t\t\t'text' => 'test',\n\t\t\t'summary' => 'header',\n\t\t));\n\n\t\t$this->assertEquals( 'Success', $re2['edit']['result'] );\n\t\t$text = WikiPage::factory( Title::newFromText( $name ) )\n\t\t\t->getContent( Revision::RAW )\n\t\t\t->getNativeData();\n\t\t$this->assertEquals( \"== header ==\\n\\ntest\\n\\n== header ==\\n\\ntest\", $text );\n\t}", "public static function text_change_check()\n {\n }", "public function edit(Test $test)\n {\n //\n }", "function test_editor_and_externaledits(){\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); // need $INFO set correctly for addLogEntry()\n\n global $INFO;\n $INFO = $info;\n\n // add an editor for the current version of $ID\n addLogEntry($rev, $ID);\n\n $info['meta'] = p_get_metadata($ID);\n $info['editor'] = $_SERVER['REMOTE_USER'];\n $info['user'] = $_SERVER['REMOTE_USER'];\n $info['ip'] = $_SERVER['REMOTE_ADDR'];\n $info['sum'] = '';\n\n // with an editor ...\n $this->assertEquals($info, pageinfo());\n\n // clear the meta['last_change'] value, pageinfo should restore it\n p_set_metadata($ID,array('last_change' => false));\n\n $this->assertEquals($info, pageinfo());\n $this->assertEquals($info['meta']['last_change'], p_get_metadata($ID,'last_change'));\n\n // fake an external edit, pageinfo should clear the last change from meta data\n // and not return any editor data\n $now = time()+10;\n touch($filename,$now);\n\n $info['lastmod'] = $now;\n $info['currentrev'] = $now;\n $info['meta']['last_change'] = false;\n $info['ip'] = null;\n $info['user'] = null;\n $info['sum'] = null;\n $info['editor'] = null;\n\n $this->assertEquals($info, pageinfo());\n $this->assertEquals($info['meta'], p_get_metadata($ID)); // check metadata has been updated correctly\n }", "public function testSaveExistingRecordOnlyTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n '_translations' => [\n 'es' => [\n 'title' => 'Spanish Translation',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertArrayHasKey('es', $results, 'New translation added');\n $this->assertArrayHasKey('eng', $results, 'Old translations present');\n $this->assertSame('Spanish Translation', $results['es']['title']);\n }", "protected function canEdit() {}", "public function testRevisionTranslation() {\n ConfigurableLanguage::createFromLangcode('fr')->save();\n\n /** @var \\Drupal\\node\\NodeInterface $node */\n $node = Node::create([\n 'type' => $this->createContentType()->id(),\n 'title' => 'Default 1',\n ]);\n $node->addTranslation('fr', [\n 'title' => 'French 1',\n ]);\n $node->save();\n $node->setNewRevision();\n $node->setTitle('Default 2');\n $node->getTranslation('fr')->setTitle('French 2');\n $node->save();\n\n $migration = [\n 'source' => [\n 'plugin' => 'embedded_data',\n 'data_rows' => [\n [\n 'nid' => $node->id(),\n 'vid' => $node->getRevisionId(),\n 'langcode' => 'fr',\n 'title' => 'Titre nouveau, tabarnak!',\n ],\n ],\n 'ids' => [\n 'nid' => [\n 'type' => 'integer',\n ],\n 'vid' => [\n 'type' => 'integer',\n ],\n 'langcode' => [\n 'type' => 'string',\n ],\n ],\n ],\n 'process' => [\n 'nid' => 'nid',\n 'vid' => 'vid',\n 'langcode' => 'langcode',\n 'title' => 'title',\n ],\n 'destination' => [\n 'plugin' => 'entity_revision:node',\n 'translations' => TRUE,\n ],\n ];\n\n /** @var \\Drupal\\migrate\\Plugin\\MigrationInterface $migration */\n $migration = $this->container\n ->get('plugin.manager.migration')\n ->createStubMigration($migration);\n\n $this->executeMigration($migration);\n\n // The entity_revision destination uses the revision ID and langcode as its\n // keys (the langcode is only used if the destination is configured for\n // translation), so we should be able to look up the source IDs by revision\n // ID and langcode.\n $source_ids = $migration->getIdMap()->lookupSourceID([\n 'vid' => $node->getRevisionId(),\n 'langcode' => 'fr',\n ]);\n $this->assertNotEmpty($source_ids);\n $this->assertSame($node->id(), $source_ids['nid']);\n $this->assertSame($node->getRevisionId(), $source_ids['vid']);\n $this->assertSame('fr', $source_ids['langcode']);\n\n // Confirm the french revision was used in the migration, instead of the\n // default revision.\n /** @var \\Drupal\\Core\\Entity\\EntityTypeManagerInterface $entity_type_manager */\n $entity_type_manager = \\Drupal::entityTypeManager();\n $revision = $entity_type_manager->getStorage('node')->loadRevision(1);\n $this->assertSame('Default 1', $revision->label());\n $this->assertSame('French 1', $revision->getTranslation('fr')->label());\n $revision = $entity_type_manager->getStorage('node')->loadRevision(2);\n $this->assertSame('Default 2', $revision->label());\n $this->assertSame('Titre nouveau, tabarnak!', $revision->getTranslation('fr')->label());\n }", "public function testEditAction()\n {\n // create review record for change 1\n $this->createChange();\n Review::createFromChange('1')->save();\n\n $postData = new Parameters(array('state' => 'approved', 'testStatus' => 'pass'));\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_POST)\n ->setPost($postData);\n\n // dispatch and check output\n $this->dispatch('/reviews/2');\n $result = $this->getResult();\n $review = $result->getVariable('review');\n $this->assertRoute('review');\n $this->assertResponseStatusCode(200);\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $this->assertSame(true, $result->getVariable('isValid'));\n $this->assertSame('approved', $review['state']);\n $this->assertSame('pass', $review['testStatus']);\n }", "public function edit(Transaksi $transaksi)\n {\n //\n }", "protected function doTestOutdatedStatus() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $langcode = 'fr';\n $languages = \\Drupal::languageManager()->getLanguages();\n\n // Mark translations as outdated.\n $edit = ['content_translation[retranslate]' => TRUE];\n $edit_path = $entity->toUrl('edit-form', ['language' => $languages[$langcode]]);\n $this->drupalGet($edit_path);\n $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode));\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n\n // Check that every translation has the correct \"outdated\" status, and that\n // the Translation fieldset is open if the translation is \"outdated\".\n foreach ($this->langcodes as $added_langcode) {\n $url = $entity->toUrl('edit-form', ['language' => ConfigurableLanguage::load($added_langcode)]);\n $this->drupalGet($url);\n if ($added_langcode == $langcode) {\n // Verify that the retranslate flag is not checked by default.\n $this->assertSession()->fieldValueEquals('content_translation[retranslate]', FALSE);\n $this->assertEmpty($this->xpath('//details[@id=\"edit-content-translation\" and @open=\"open\"]'), 'The translation tab should be collapsed by default.');\n }\n else {\n // Verify that the translate flag is checked by default.\n $this->assertSession()->fieldValueEquals('content_translation[outdated]', TRUE);\n $this->assertNotEmpty($this->xpath('//details[@id=\"edit-content-translation\" and @open=\"open\"]'), 'The translation tab is correctly expanded when the translation is outdated.');\n $edit = ['content_translation[outdated]' => FALSE];\n $this->drupalGet($url);\n $this->submitForm($edit, $this->getFormSubmitAction($entity, $added_langcode));\n $this->drupalGet($url);\n // Verify that retranslate flag is now shown.\n $this->assertSession()->fieldValueEquals('content_translation[retranslate]', FALSE);\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertFalse($this->manager->getTranslationMetadata($entity->getTranslation($added_langcode))->isOutdated(), 'The \"outdated\" status has been correctly stored.');\n }\n }\n }", "public function testUpdatingLanguage()\n {\n $manager = $this->getModelManager();\n\n // Get the first tutor\n $tutor = $manager->findById(1);\n\n // Set the Language on his first competency, to the START tag\n /** @var TutorLanguage $tutorLanguage */\n $tutorLanguage = $tutor->getTutorLanguages()->first();\n $tutorLanguage->getLanguage()->setName(TestSlug::START_1);\n\n $manager->saveEntity($tutor);\n $manager->reloadEntity($tutor);\n $this->assertEquals(TestSlug::START_1, $tutor->getTutorLanguages()->first()->getLanguage()->getName());\n\n $originalId = $tutor->getTutorLanguages()->first()->getLanguage()->getId();\n\n $this->performMockedUpdate($tutor, $tutorLanguage, 'tutor-language');\n\n $manager->reloadEntity($tutor);\n $this->assertEquals(TestSlug::END_1, $tutor->getTutorLanguages()->first()->getLanguage()->getName());\n\n // now change it back, but by ID\n $this->performMockedUpdate($tutor, $tutorLanguage, 'tutor-language', $originalId);\n\n $manager->saveEntity($tutor);\n $manager->reloadEntity($tutor);\n $this->assertEquals(TestSlug::START_1, $tutor->getTutorLanguages()->first()->getLanguage()->getName());\n }", "public function edit(pregunta_test $pregunta_test)\n {\n //\n }", "public function edit(test $test)\n {\n //\n }", "public function testAdminEditFeature()\n {\n $client = static::createClient([], self::SERVER);\n\n $feature = $client->getContainer()->get('doctrine')\n ->getRepository(Feature::class)\n ->findOneBy([\n 'name' => self::FEATURE,\n ])->getId();\n\n $crawler = $client->request('GET', '/en/admin/feature/'.$feature.'/edit');\n\n $form = $crawler->selectButton('Save changes')->form([\n 'feature[name]' => self::EDITED,\n ]);\n\n $client->submit($form);\n $this->assertSame(Response::HTTP_FOUND, $client->getResponse()->getStatusCode());\n\n $editedFeature = $client->getContainer()->get('doctrine')\n ->getRepository(Feature::class)->findOneBy([\n 'id' => $feature,\n ]);\n\n $this->assertSame(self::EDITED, $editedFeature->getName());\n }", "abstract protected function renderEdit();", "public function testactualizar_aprendiz()\n {\n $this->visit('editar/1')\n ->see('actualizar aprendiz')\n ->type('juan','Nombre')\n ->type('','Apellido')\n ->type('','Identificacion')\n ->type('','Telefono')\n ->type('','Correo')\n ->type('','Direccion')\n ->type('','Genero')\n\n ->press('actualizar aprendiz');\n }", "function edit( $id, $language_id ) {\n\n\t\t// breadcrumb urls\n\t\t$language_list = get_msg('list_lang_label');\n\t\t$this->data['action_title'] = array( \n\t\t\tarray( 'url' => '/index/', 'label' => get_msg('list_lang_str_label'), 'mod_name' => 'language_strings','special_mod_name' => 'Languages', 'special_mod_url' => $language_list),\n\t\t\tarray( 'label' => get_msg( 'lang_str_edit' ))\n\t\t\t\n\t\t);\n\n\t\t// load user\n\t\t$this->data['langstr'] = $this->Language_string->get_one( $id );\n\n\t\t$this->data['language_id'] = $language_id;\n\n\t\t// call the parent edit logic\n\t\tparent::string_edit( $id, $language_id );\n\t}", "public function testEditFormIsDisplayed(): void\n {\n $items = Category::factory()->count(1)->create();\n\n Livewire::test(CategoriesTable::class, ['items' => $items])\n ->emit('edit', $items[0]->id)\n ->assertSet('isEditing', $items[0]->id)\n ->assertSeeHtml('name=\"name\" value=\"'.$items[0]->name.'\"');\n }", "public function testBlockEditAction()\n {\n $view = $this->getTestBlockViewEditObject();\n $view->controller->runAction('edit');\n $url = $view->action('get_control');\n\n $this->assertEquals('http://www.dummyco.com/path/to/server/index.php/ccm/system/block/action/edit/50/Second%20Column/1184/get_control', (string)$url);\n\n $url = $view->controller->getActionURL('get_control', 4, 5, 6);\n\n $this->assertEquals('http://www.dummyco.com/path/to/server/index.php/ccm/system/block/action/edit/50/Second%20Column/1184/get_control/4/5/6', (string)$url);\n }", "public function editAction() {\n if($this->_getParam('id',false)) {\n $form = new ContentForm();\n $form->submit->setLabel('Submit changes');\n $form->author->setValue($this->getIdentityForForms());\n $this->view->form = $form;\n if($this->getRequest()->isPost() \n && $form->isValid($this->_request->getPost())){\n if ($form->isValid($form->getValues())) {\n $updateData = $form->getValues();\n $where = array();\n $where[] = $this->_content->getAdapter()\n ->quoteInto('id = ?', $this->_getParam('id'));\n $oldData = $this->_content->fetchRow($this->_content\n ->select()->where('id= ?' , \n (int)$this->_getParam('id')))->toArray();\n $this->_helper->audit($updateData, $oldData, 'ContentAudit', \n $this->_getParam('id'), $this->_getParam('id'));\n $this->_content->update($updateData, $where);\n $this->_helper->solrUpdater->update('beocontent', \n $this->_getParam('id'), 'content'); \n $this->getFlash()->addMessage('You updated: <em>' \n . $form->getValue('title') \n . '</em> successfully. It is now available for use.');\n $this->getCache()->clean(Zend_Cache::CLEANING_MODE_ALL);\n $this->_redirect('admin/content/');\n } else {\n $form->populate($this->_request->getPost());\n }\n } else {\n // find id is expected in $params['id']\n $id = (int)$this->_request->getParam('id', 0);\n if ($id > 0) {\n $content = $this->_content->fetchRow('id=' . (int)$id)->toArray();\n if($content) {\n $form->populate($content);\n } else {\n throw new Pas_Exception_Param($this->_nothingFound);\n }\n }\n }\n } else {\n throw new Pas_Exception_Param($this->_missingParameter, 500);\n }\n }", "public function testQuestionEditPostWithValidData() {\n //Select catalogs\n $catalog = $this->course->catalog()->first();\n $subcatalogs = $catalog->children()->get();\n $ids = array();\n \n foreach ($subcatalogs as $c) {\n $ids[] = $c->id;\n }\n\n\n $post_data = array(\n 'course' => $this->course->id,\n 'id' => $this->question->id,\n 'type' => 'Question z',\n 'question' => 'Question z',\n 'answer' => 'Question z',\n 'catalogs' => $ids\n );\n $response = $this->post('question/edit', $post_data);\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $this->assertEquals('general.permission', $response->content->view);\n }", "private function isPageEditedAfterGetText(): bool\n {\n $updatedPage = $this->wiki->newPageGetter()->getFromTitle($this->title);\n $updatedLastRevision = $updatedPage->getRevisions()->getLatest();\n // Non-strict object equality comparison\n /** @noinspection PhpNonStrictObjectEqualityInspection */\n return !($updatedLastRevision && $updatedLastRevision == $this->lastTextRevision);\n }", "public function test_edit_valid()\n {\n $company = $this->qComp();\n\n $user = User::first(); // Get admin user to use in request\n\n $companyData = ['name' => 'editTitle', 'email' => '[email protected]', 'website'=>'http://website.com'];\n\n $response = $this->actingAs($user) // send as admin\n ->from(\"/companies/$company->id/edit\") // send from edit page\n ->patch(\"/companies/$company->id/\",$companyData); // send patch request with data defined above\n \n $this->assertDatabaseHas('companies', $companyData); // check data was changed in database\n }", "function edithistory_edit_page()\n{\n\tglobal $db, $lang, $mybb, $post, $templates, $post_errors, $reason, $postreason;\n\t$lang->load(\"edithistory\");\n\n\tif($mybb->input['previewpost'] || $post_errors)\n\t{\n\t\t$postreason = htmlspecialchars_uni($mybb->input['reason']);\n\t}\n\telse\n\t{\n\t\t$postreason = htmlspecialchars_uni($post['reason']);\n\t}\n\n\teval(\"\\$reason = \\\"\".$templates->get(\"editpost_reason\").\"\\\";\");\n}" ]
[ "0.69493926", "0.69435126", "0.69262534", "0.6828421", "0.6741234", "0.6685142", "0.6490897", "0.64174837", "0.6345519", "0.6238969", "0.62094104", "0.61885744", "0.61714715", "0.61700386", "0.6157993", "0.6133213", "0.6129099", "0.6129099", "0.6124241", "0.612052", "0.6076311", "0.6050472", "0.60182625", "0.5987409", "0.5957698", "0.59359694", "0.5927399", "0.59195745", "0.591751", "0.58954227", "0.5890509", "0.58899844", "0.58781266", "0.5874688", "0.5860316", "0.584206", "0.5837154", "0.5825308", "0.58179235", "0.5812705", "0.5804319", "0.5797789", "0.57953995", "0.5792937", "0.5783974", "0.57806647", "0.5761725", "0.5719348", "0.5705404", "0.57032657", "0.5702239", "0.57015884", "0.5693337", "0.56890076", "0.56887656", "0.5682917", "0.567992", "0.5677851", "0.5646016", "0.5643747", "0.564172", "0.5627164", "0.5621585", "0.56152505", "0.5613094", "0.56044614", "0.5603453", "0.5602303", "0.5593928", "0.5580839", "0.5580102", "0.5572759", "0.5552505", "0.55465704", "0.55451345", "0.55376726", "0.5536178", "0.5534892", "0.553479", "0.553475", "0.5531506", "0.5527923", "0.55224645", "0.5517478", "0.5516745", "0.55084187", "0.5503618", "0.5501807", "0.54970175", "0.5496847", "0.54959023", "0.5490788", "0.5488306", "0.54802644", "0.5477501", "0.54703134", "0.5468006", "0.5466951", "0.5465906", "0.546213" ]
0.8468501
0
Tests the basic translation workflow.
protected function doTestTranslationChanged() { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $changed_field_name = $this->getChangedFieldName($entity); $definition = $entity->getFieldDefinition($changed_field_name); $config = $definition->getConfig($entity->bundle()); foreach ([FALSE, TRUE] as $translatable_changed_field) { if ($definition->isTranslatable()) { // For entities defining a translatable changed field we want to test // the correct behavior of that field even if the translatability is // revoked. In that case the changed timestamp should be synchronized // across all translations. $config->setTranslatable($translatable_changed_field); $config->save(); } elseif ($translatable_changed_field) { // For entities defining a non-translatable changed field we cannot // declare the field as translatable on the fly by modifying its config // because the schema doesn't support this. break; } foreach ($entity->getTranslationLanguages() as $language) { // Ensure different timestamps. sleep(1); $langcode = $language->getId(); $edit = [ $this->fieldName . '[0][value]' => $this->randomString(), ]; $edit_path = $entity->toUrl('edit-form', ['language' => $language]); $this->drupalGet($edit_path); $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode)); $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->assertEquals( $entity->getChangedTimeAcrossTranslations(), $entity->getTranslation($langcode)->getChangedTime(), new FormattableMarkup('Changed time for language %language is the latest change over all languages.', ['%language' => $language->getName()]) ); } $timestamps = []; foreach ($entity->getTranslationLanguages() as $language) { $next_timestamp = $entity->getTranslation($language->getId())->getChangedTime(); if (!in_array($next_timestamp, $timestamps)) { $timestamps[] = $next_timestamp; } } if ($translatable_changed_field) { $this->assertSameSize($entity->getTranslationLanguages(), $timestamps, 'All timestamps from all languages are different.'); } else { $this->assertCount(1, $timestamps, 'All timestamps from all languages are identical.'); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTranslationUI() {\n $this->doTestBasicTranslation();\n $this->doTestTranslationOverview();\n $this->doTestOutdatedStatus();\n $this->doTestPublishedStatus();\n $this->doTestAuthoringInfo();\n $this->doTestTranslationEdit();\n $this->doTestTranslationChanged();\n $this->doTestChangedTimeAfterSaveWithoutChanges();\n $this->doTestTranslationDeletion();\n }", "protected function doTestBasicTranslation() {\n // Create a new test entity with original values in the default language.\n $default_langcode = $this->langcodes[0];\n $values[$default_langcode] = $this->getNewEntityValues($default_langcode);\n // Create the entity with the editor as owner, so that afterwards a new\n // translation is created by the translator and the translation author is\n // tested.\n $this->drupalLogin($this->editor);\n $this->entityId = $this->createEntity($values[$default_langcode], $default_langcode);\n $this->drupalLogin($this->translator);\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertNotEmpty($entity, 'Entity found in the database.');\n $this->drupalGet($entity->toUrl());\n $this->assertSession()->statusCodeEquals(200);\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $this->assertCacheContexts($this->defaultCacheContexts);\n\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n $translation = $this->getTranslation($entity, $default_langcode);\n foreach ($values[$default_langcode] as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $default_langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('@property correctly stored in the default language.', ['@property' => $property]);\n $this->assertEquals($value, $stored_value, $message);\n }\n\n // Add a content translation.\n $langcode = 'it';\n $language = ConfigurableLanguage::load($langcode);\n $values[$langcode] = $this->getNewEntityValues($langcode);\n\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n\n // Assert that HTML is not escaped unexpectedly.\n if ($this->testHTMLEscapeForAllLanguages) {\n $this->assertSession()->responseNotContains('&lt;span class=&quot;translation-entity-all-languages&quot;&gt;(all languages)&lt;/span&gt;');\n $this->assertSession()->responseContains('<span class=\"translation-entity-all-languages\">(all languages)</span>');\n }\n\n // Ensure that the content language cache context is not yet added to the\n // page.\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl());\n $this->assertCacheContexts(Cache::mergeContexts(['languages:language_content'], $this->defaultCacheContexts));\n\n // Reset the cache of the entity, so that the new translation gets the\n // updated values.\n $metadata_source_translation = $this->manager->getTranslationMetadata($entity->getTranslation($default_langcode));\n $metadata_target_translation = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));\n\n $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid';\n if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) {\n $this->assertEquals($this->translator->id(), $metadata_target_translation->getAuthor()->id(), new FormattableMarkup('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode]));\n\n $this->assertNotEquals($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(),\n new FormattableMarkup('Author of the target translation @target different from the author of the source translation @source for translatable owner field.',\n ['@target' => $langcode, '@source' => $default_langcode]));\n }\n else {\n $this->assertEquals($this->editor->id(), $metadata_target_translation->getAuthor()->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');\n }\n\n $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created';\n if ($entity->getFieldDefinition($created_field_name)->isTranslatable()) {\n // Verify that the translation creation timestamp of the target\n // translation language is newer than the creation timestamp of the source\n // translation default language for the translatable created field.\n $this->assertGreaterThan($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime());\n }\n else {\n $this->assertEquals($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');\n }\n\n if ($this->testLanguageSelector) {\n // Verify that language selector is correctly disabled on translations.\n $this->assertSession()->fieldNotExists('edit-langcode-0-value');\n }\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextNotContains('Source language');\n\n // Switch the source language.\n $langcode = 'fr';\n $language = ConfigurableLanguage::load($langcode);\n $source_langcode = 'it';\n $edit = ['source_langcode[source]' => $source_langcode];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $default_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n // This does not save anything, it merely reloads the form and fills in the\n // fields with the values from the different source language.\n $this->drupalGet($add_url);\n $this->submitForm($edit, 'Change');\n $this->assertSession()->fieldValueEquals(\"{$this->fieldName}[0][value]\", $values[$source_langcode][$this->fieldName][0]['value']);\n\n // Add another translation and mark the other ones as outdated.\n $values[$langcode] = $this->getNewEntityValues($langcode);\n $edit = $this->getEditValues($values, $langcode) + ['content_translation[retranslate]' => TRUE];\n $entity_type_id = $entity->getEntityTypeId();\n $add_url = Url::fromRoute(\"entity.$entity_type_id.content_translation_add\", [\n $entity->getEntityTypeId() => $entity->id(),\n 'source' => $source_langcode,\n 'target' => $langcode,\n ], ['language' => $language]);\n $this->drupalGet($add_url);\n $this->submitForm($edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->drupalGet($entity->toUrl('drupal:content-translation-overview'));\n $this->assertSession()->pageTextContains('Source language');\n\n // Check that the entered values have been correctly stored.\n foreach ($values as $langcode => $property_values) {\n $translation = $this->getTranslation($entity, $langcode);\n foreach ($property_values as $property => $value) {\n $stored_value = $this->getValue($translation, $property, $langcode);\n $value = is_array($value) ? $value[0]['value'] : $value;\n $message = new FormattableMarkup('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]);\n $this->assertEquals($value, $stored_value, $message);\n }\n }\n }", "public function testTranslate(): void\n {\n $result = $this->editInPlaceExtension->translate('key', ['key' => 'value'], 'domain');\n\n $this->assertEquals(0, \\strlen($result));\n\n $this->assertEmpty($result);\n }", "public function testSimpleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $value = $this->translator->translate('hi', 'fr', 'en');\n\n // Then\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }", "public function testTranslation(): void\n {\n $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR);\n $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Día Nacional de la Memoria por la Verdad y la Justicia']);\n }", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2019),\n [self::LOCALE => '体育の日']\n );\n }", "public function testPlainTextTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => \"J'ai\"]]]]\n ));\n\n // When\n $value = $this->translator->translate('I have', 'fr', 'en', true);\n\n // Then\n $this->assertEquals($value, \"J'ai\", 'Should return \"J\\'ai\"');\n }", "public function testSaveTranslation(): void\n {\n $data = [];\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n\n $data['topic'] = 'Un sujet intéressant';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->getPhpcrSession()->save();\n\n // Then test we have what we expect in the content repository\n $node_en = $this->session->getNode($this->nodeNameForLocale('en'));\n $node_fr = $this->session->getNode($this->nodeNameForLocale('fr'));\n\n $this->assertTrue($node_en->hasProperty('topic'));\n $this->assertTrue($node_fr->hasProperty('topic'));\n $this->assertTrue($node_en->hasProperty('text'));\n $this->assertTrue($node_fr->hasProperty('text'));\n $this->assertFalse($node_fr->hasProperty('author'));\n $this->assertFalse($node_en->hasProperty('author'));\n\n $this->assertEquals('Some interesting subject', $node_en->getPropertyValue('topic'));\n $this->assertEquals('Un sujet intéressant', $node_fr->getPropertyValue('topic'));\n $this->assertEquals('Lorem ipsum...', $node_en->getPropertyValue('text'));\n $this->assertEquals('Lorem ipsum...', $node_fr->getPropertyValue('text'));\n }", "public function testTranslation(): void\n {\n $this->assertTranslatedHolidayName(\n self::REGION,\n self::HOLIDAY,\n $this->generateRandomYear(self::ESTABLISHMENT_YEAR),\n [self::LOCALE => 'Canada Day']\n );\n }", "public function testLoadTranslation(): void\n {\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'English topic';\n $data['text'] = 'English text';\n $data['nullable'] = 'not null';\n $data['settings'] = ['key' => 'value'];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Sujet français';\n $data['text'] = 'Texte français';\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n $this->assertEquals('not null', $doc->nullable);\n $this->assertEquals(['key' => 'value'], $doc->getSettings());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->text);\n $this->assertNull($doc->nullable);\n $this->assertEquals([], $doc->getSettings());\n }", "protected function doTestTranslationOverview() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $translate_url = $entity->toUrl('drupal:content-translation-overview');\n $this->drupalGet($translate_url);\n $translate_url->setAbsolute(FALSE);\n\n foreach ($this->langcodes as $langcode) {\n if ($entity->hasTranslation($langcode)) {\n $language = new Language(['id' => $langcode]);\n // Test that label is correctly shown for translation.\n $view_url = $entity->toUrl('canonical', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//a[@href='{$view_url}']\", $entity->getTranslation($langcode)->label() ?? $entity->getTranslation($langcode)->id());\n // Test that edit link is correct for translation.\n $edit_path = $entity->toUrl('edit-form', ['language' => $language])->toString();\n $this->assertSession()->elementTextEquals('xpath', \"//table//ul[@class='dropbutton']/li/a[@href='{$edit_path}']\", 'Edit');\n }\n }\n }", "public function testCanGetMessageByKeyFromTranslator()\n {\n $this->translator->load();\n $message = $this->translator->get('test_message');\n $this->assertEquals('file has been loaded', $message);\n }", "public function practice3()\n {\n $translator = new Parser();\n $translation = $translator->translate('Hello World');\n dump($translation);\n }", "protected function doTestTranslationEdit() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $languages = $this->container->get('language_manager')->getLanguages();\n\n foreach ($this->langcodes as $langcode) {\n // We only want to test the title for non-english translations.\n if ($langcode != 'en') {\n $options = ['language' => $languages[$langcode]];\n $url = $entity->toUrl('edit-form', $options);\n $this->drupalGet($url);\n\n $this->assertSession()->responseContains($entity->getTranslation($langcode)->label());\n }\n }\n }", "public function testTranslationOfStores()\n {\n // set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'orderId' => '1',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/loadStores?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n $data = $responseJSON['data'];\n\n // Test for fallback value\n $this->assertElementWithKeyValuePairExists('SEPA', 'description', 6, $data['payments']);\n\n // Test for translation\n $this->assertElementWithKeyValuePairExists('Invoice', 'description', 4, $data['payments']);\n\n $this->assertElementWithKeyValuePairExists('Standard delivery', 'name', 9, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Express Delivery', 'name', 14, $data['dispatches']);\n $this->assertElementWithKeyValuePairExists('Standard international delivery', 'name', 16, $data['dispatches']);\n\n $this->assertElementWithKeyValuePairExists('Invoice', 'name', 1, $data['documentTypes']);\n $this->assertElementWithKeyValuePairExists('Credit', 'name', 3, $data['documentTypes']);\n }", "protected function setUp()\n {\n parent::setUp();\n $this->getTranslator()->setLanguage(1);\n }", "public function test_transform_all() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'repository' => \"slack\",\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'url' => 'http://svn.example.com/wsvn/main/?op=revision&rev=126299',\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, '[slack] <http://svn.example.com/wsvn/main/?op=revision&amp;rev=126299|r126299>: ph - commit message');\n\t\t}", "public function testTranslationOfOrderList()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n Shopware()->Container()->reset('translation');\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost(\n [\n 'username' => 'demo',\n 'password' => 'demo',\n ]\n );\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Order/getList?' . $getString);\n\n // Remove 'new Date(...)' strings from json\n $responseStr = preg_replace('/(new Date\\([-0-9]+\\))/', '\"$1\"', $response->getBody());\n\n $responseJSON = json_decode($responseStr, true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $dataElement) {\n switch ($dataElement['payment']['id']) {\n case 2:\n static::assertEquals(\n 'Debit',\n $dataElement['payment']['description']\n );\n break;\n case 3:\n static::assertEquals(\n 'Cash on delivery',\n $dataElement['payment']['description']\n );\n break;\n case 4:\n static::assertEquals(\n 'Invoice',\n $dataElement['payment']['description']\n );\n break;\n case 5:\n static::assertEquals(\n 'Paid in advance',\n $dataElement['payment']['description']\n );\n break;\n case 6:\n static::assertEquals(\n 'SEPA',\n $dataElement['payment']['description']\n );\n break;\n }\n }\n }", "public function testItWorksWithError()\n {\n // It allows us to stay in sync with T.io while being compatible with previous PHP-VCR tests\n // ---\n // If one day gettext/languages is updated, please use another more stable language than French\n // and edit the plural rules in the pre-recorded PHP-VCR YAML files so that both regular composer\n // and `--prefer-lowest` pass\n app()['config']->set('translation.target_locales', ['fr-BE']);\n app()['config']->set('translation.key', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');\n app()['config']->set('translation.gettext_parse_paths', ['tests/fixtures/gettext']);\n\n $this->addTranslationFixture('fr-BE', [], 'auth', [\n 'fields' => [\n 'first_name' => 'Prénom'\n ]\n ]);\n\n $this->cassette('integration/init_with_bad_api_key.yml');\n\n try {\n $this->artisan('translation:init');\n }\n catch(\\Throwable $e) {\n $this->assertEquals(\"Could not find any *active* project with this API key.\", $e->getMessage());\n }\n }", "public function isTranslatable() {\n $observerWrapper = $this->getMock('\\EntityDrupalWrapper');\n $mockDrupal = $this->getMockDrupalHandlerForConstructor();\n\n $translatable = new ParagraphsTranslatable($observerWrapper, $mockDrupal);\n $this->assertSame(TRUE, $translatable->isTranslatable());\n }", "public function testLongTranslate()\n {\n // Build a long input text, so that the translate method will split it up in two.\n $text = 'hi. ';\n $multiplier = 1.5 * Translator::MAXIMUM_TEXT_SIZE / strlen($text);\n $textInEn = str_repeat('hi. ', $multiplier);\n $textInFr = str_repeat('salut. ', $multiplier);\n $textInFrPart1 = substr($textInFr, 0, strlen($textInFr) / 2);\n $textInFrPart2 = substr($textInFr, strlen($textInFrPart1));\n\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->onConsecutiveCalls(\n ['data' => ['translations' => [['translatedText' => $textInFrPart1]]]],\n ['data' => ['translations' => [['translatedText' => $textInFrPart2]]]]\n ));\n\n // When\n $value = $this->translator->translate($textInEn, 'en');\n\n // Then\n $this->assertEquals($value, $textInFr, 'Should return \"'.$textInFr.'\"');\n }", "public function test_transform_minimal() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, 'r126299: ph - commit message');\n\t\t}", "public function testTranslateNoProxy()\n {\n $translator = new \\Magento\\Framework\\Translate\\Adapter();\n $this->assertEquals('test string', $translator->translate('test string'));\n }", "public function testTranslateUsingDetector()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'comment allez-vous ?']]]]\n ));\n\n // When\n $value = $this->translator->translate('how are you?', 'fr');\n\n // Then\n $this->assertEquals($value, 'comment allez-vous ?', 'Should return \"comment allez-vous ?\"');\n }", "public function setUp(): void\n {\n $this->translator = new Translator(new DictionaryStub());\n }", "public function testMultipleTranslate()\n {\n // Given\n $this->responseMock->expects($this->any())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en');\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "abstract protected function translator();", "public function testPassDoesNothingIfTranslatorIsNotAvailable()\n {\n $this->setExpectedException(null);\n $this->container->compile();\n }", "public function translate();", "public function testMultipleEconomicTranslate()\n {\n // Given\n $this->responseMock->expects($this->once())->method('json')->will($this->returnValue(\n ['data' => ['translations' => [['translatedText' => 'salut # salut']]]]\n ));\n\n // When\n $values = $this->translator->translate(['hi', 'hi'], 'fr', 'en', true);\n\n // Then\n $this->assertCount(2, $values, 'Should return an array with 2 elements');\n\n foreach ($values as $value) {\n $this->assertEquals($value, 'salut', 'Should return \"salut\"');\n }\n }", "public function translated();", "public function translated();", "public function translationStart()\n {\n }", "private static function translator()\n {\n $files = ['Lang', 'Smiley'];\n $folder = static::$root.'Translator'.'/';\n\n self::call($files, $folder);\n\n $files = ['LanguageKeyNotFoundException', 'LanguageNotSupportedException'];\n $folder = static::$root.'Translator/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "public function testVariableSubstitutionInStringUkranian()\n {\n $this->specify(\n \"Translator does not translate to Ukranian correctly with passed params\",\n function () {\n $translator = new Gettext(\n [\n 'locale' => 'uk_UA.utf8',\n 'defaultDomain' => 'messages',\n 'directory' => PATH_DATA . 'translation/gettext'\n ]\n );\n\n expect($translator->_(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n expect($translator->t(\"Amazing %name%!\", ['name' => 'Phalcon']))->equals('Чудовий Phalcon!');\n }\n );\n }", "private function mockTranslations(): void\n {\n $languages = [/*'en_EN',*/\n 'fr_FR', 'de_DE', ];\n $i18nItems = I18nItem::where('status', I18nItem::STATUS_DRAFT)->get();\n\n foreach ($languages as $language) {\n $faker = \\Faker\\Factory::create($language);\n\n foreach ($i18nItems as $i18nItem) {\n $charCount = round(strlen($i18nItem->value) * 1.5);\n $mockValue = $faker->realText($charCount > 10 ? $charCount : 10);\n $short = strlen($mockValue) < 256;\n\n I18nTranslation::create([\n 'i18n_item_id' => $i18nItem->id,\n 'language' => substr($language, 0, 2),\n 'short_value' => $short ? $mockValue : null,\n 'long_value' => ! $short ? $mockValue : null,\n ]);\n }\n }\n }", "public function testInsertNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('fra');\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertSame('fra', $article->get('_locale'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $article->set('title', 'Un autre titre');\n $article->set('body', 'Le contenu');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame('Un autre titre', $article->get('title'));\n $this->assertSame('Le contenu', $article->get('body'));\n }", "public function testUnderscoresTranslation()\n {\n $this->markTestIncomplete('MAGETWO-1012: i18n Improvements - Localization/Translations');\n }", "protected function setUp() {\n parent::setUp();\n\n $translator = new MessageTranslator();\n $translator->setReader(new PhpReader());\n\n $this->object = Registry::factory('Titon\\G11n\\G11n');\n $this->object->addLocale(new Locale('en'));\n $this->object->useLocale('en');\n $this->object->setTranslator($translator);\n }", "public function testInternationalization(): void\n {\n $properCased = 'Iñtërnâtiônàlizætiøn';\n $this->assertEquals($properCased, Formatter::nameCase(mb_strtolower($properCased)));\n }", "public function testTranslationFieldForTranslatedFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'en_US',\n ]);\n\n $expectedSameLocale = 'Articles.title';\n $expectedOtherLocale = 'Articles_title_translation.content';\n\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('es_ES');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n I18n::setLocale('en');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->removeBehavior('Translate');\n\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'defaultLocale' => 'de_DE',\n ]);\n\n I18n::setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n I18n::setLocale('en_US');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n\n $table->setLocale('de_DE');\n $field = $table->translationField('title');\n $this->assertSame($expectedSameLocale, $field);\n\n $table->setLocale('es');\n $field = $table->translationField('title');\n $this->assertSame($expectedOtherLocale, $field);\n }", "public function testTranslationNullProperties(): void\n {\n $node = $this->fillTranslations();\n\n // Then try to read it's translation\n $doc = new Article();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n\n // And check the translatable properties have the correct value\n $this->assertEquals('English topic', $doc->topic);\n $this->assertEquals('English text', $doc->getText());\n\n // Load another language and test the document has been updated\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n\n $this->assertEquals('Sujet français', $doc->topic);\n $this->assertEquals('Texte français', $doc->getText());\n }", "public function testEmptyTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body', 'description'],\n 'allowEmptyTranslations' => false,\n ]);\n $table->setLocale('spa');\n $result = $table->find()->first();\n $this->assertNull($result->description);\n }", "public function testSystemLocalization()\n {\n foreach ($this->testLocales as $locale) {\n Localization::changeLocale($locale);\n\n foreach ($this->testAddresses as $data) {\n $country = $this->getCountryNameWithLocale(\n $data['source']['country'],\n $locale\n );\n $expected = $this->getExpectedFormatWithLocale(\n $data,\n 'text',\n $locale\n );\n\n $formatted = $this->addressFormat->format(\n $data['source'],\n 'text'\n );\n\n $this->assertEquals($expected, $formatted);\n }\n }\n\n Localization::changeLocale(Localization::BASE_LOCALE);\n }", "public function testTransliterate() {\n $this->assertEquals('Ingles', Inflector::transliterate('Inglés'));\n $this->assertEquals('Uber', Inflector::transliterate('Über'));\n }", "public function testSaveNewRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'N',\n '_translations' => [\n 'en' => [\n 'title' => 'Title EN',\n 'body' => 'Body EN',\n ],\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $article = $table->patchEntity($table->newEmptyEntity(), $data);\n $result = $table->save($article);\n\n $this->assertNotFalse($result);\n\n $expected = [\n [\n 'en' => [\n 'title' => 'Title EN',\n 'locale' => 'en',\n ],\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "public function test_all() {\n $obj = new My_task;\n \n echo \"Start test_reverse() <br>\";\n $obj->test_reverse();\n echo \"<br><br>\";\n \n echo \"Start test_is_palindrome() <br>\";\n $obj->test_is_palindrome();\n echo \"<br><br>\";\n \n echo \"Start test_encryption() <br>\";\n $obj->test_encryption(); \n echo \"<br><br>\";\n }", "public function testCurrentLanguage() {\n\t\t$router = $this->getRouter('/en/test', array());\n\t\t$this->assertEquals('en', $router->getLanguage());\n\n\t\t$router = $this->getRouter('/test', array());\n\t\t$this->assertEquals($this->defaultLanguage, $router->getLanguage());\n\n\t\t$router = $this->getRouter('/de/test', array());\n\t\t$this->assertEquals('de', $router->getLanguage());\n\t}", "public function testLanguageConsistency(): void\n\t{\n\t\tstatic::assertEquals('en', app()->getLocale());\n\t\tstatic::assertEquals('OK', __('lychee.SUCCESS'));\n\n\t\t$msgSection = (new ConsoleOutput())->section();\n\n\t\t$englishDictionary = include base_path('lang/en/lychee.php');\n\t\t$availableDictionaries = config('app.supported_locale');\n\t\t$failed = false;\n\n\t\tforeach ($availableDictionaries as $locale) {\n\t\t\t$dictionary = include base_path('lang/' . $locale . '/lychee.php');\n\t\t\t$missingKeys = array_diff_key($englishDictionary, $dictionary);\n\t\t\tforeach ($missingKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s misses the following key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\n\t\t\t$extraKeys = array_diff_key($dictionary, $englishDictionary);\n\t\t\tforeach ($extraKeys as $key => $value) {\n\t\t\t\t$msgSection->writeln(sprintf('<comment>Error:</comment> Locale %s has the following extra key: %s', str_pad($locale, 8), $key));\n\t\t\t\t$failed = true;\n\t\t\t}\n\t\t}\n\t\tstatic::assertFalse($failed);\n\t}", "public function testParseLanguage(): void\n {\n $result = Parser::parseLanguage('en');\n $this->assertEquals('en', $result);\n\n $result = Parser::parseLanguage('fr');\n $this->assertEquals('fr', $result);\n\n $result = Parser::parseLanguage('english');\n $this->assertEquals('en', $result);\n\n $result = Parser::parseLanguage('français');\n $this->assertEquals('fr', $result);\n\n $result = Parser::parseLanguage('eng');\n $this->assertEquals('en', $result);\n\n $result = Parser::parseLanguage('fra');\n $this->assertEquals('fr', $result);\n\n $this->assertNull(Parser::parseLanguage('banana'));\n }", "public function isTranslated();", "public function testTranslationArrayProperties(): void\n {\n // First save some translations\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data['topic'] = 'Un sujet intéressant';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ];\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ], $doc->getSettings());\n\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ], $doc->getSettings());\n }", "public function testBuildMarshalMapTranslationsOn(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $marshaller = $table->marshaller();\n $translate = $table->behaviors()->get('Translate');\n\n $result = $translate->buildMarshalMap($marshaller, [], ['translations' => true]);\n $this->assertArrayHasKey('_translations', $result);\n $this->assertInstanceOf('Closure', $result['_translations']);\n\n $result = $translate->buildMarshalMap($marshaller, [], []);\n $this->assertArrayHasKey('_translations', $result);\n $this->assertInstanceOf('Closure', $result['_translations']);\n }", "public function testExample()\n {\n // can pass optional arguments: $langFrom, $langTo, API $url\n $client = new \\Errogaht\\YandexOCR\\Client();\n\n //tell path to recognizing file\n $client->setFilePath(__DIR__ . DIRECTORY_SEPARATOR . '1e741d3b-ba67-42e5-8229-f07a72072c96.png');\n\n //get response from Yandex translate\n $response = $client->request();\n $this->assertNotEmpty($response);\n\n //convert response to plain text\n $texter = new \\Errogaht\\YandexOCR\\Response2Text($response);\n $text = $texter->getText();\n $this->assertNotEmpty($text);\n\n //ensure that recognize pass\n $this->assertNotFalse(strpos($text, 'написано'));\n\n }", "function langonet_tester_definition() {\n\t// Commenter ou decommenter les lignes suivantes pour tester les differents cas de verification\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items du module Langonet, ne sont pas definis dans langonet-tests_fr.php\n\t$essai = _T('langonet-tests:test_item_non_defini_1');\n\t$essai = _T('langonet-tests:test_item_non_defini_2');\n\n\t// VERIFICATION DEFINITION : Erreurs\n\t// -- Les items suivants, utilises comme des items de modules differents de Langonet, ne sont pas definis dans leur fichier\n\t// de langue respectif (spip, ecrire ou public.php pour le premier, cfg_fr pour le second)\n\t$essai = _T('test_item_non_defini_3');\n\t$essai = _T('cfg:test_item_non_defini_4');\n\t$essai = _T('cfg:bouton_valider');\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants n'appartiennent pas au module Langonet, sont utilises dans Langonet mais bien definis dans leur \n\t// fichier de langue respectif\n\t$essai = array(0 => _T('date_jour_1'));\n\t$essai = array_push(_T('cfg:bouton_effacer'));\n\n\t// VERIFICATION DEFINITION : Avertissements\n\t// -- Les items suivants sont utilises dans un contexte complexe. Ce sont des items de Langonet ou pas\n\t$essai = _T('langonet-tests:test_item_1_'.$variable);\n\t$essai = _T('test_item_2_'.$variable);\n\t$essai = _T(\"langonet-tests:$arg1\");\n\t$essai = _T('langonet-tests:' . $arg2);\n\t$essai = _T(\"langonet-tests:\".$arg3);\n\n\t// VERIFICATION _L() : Erreurs\n\t$essai = _L('Test 1 _L() de langonet');\n\t$essai = _L(\"Test 2 _L() de langonet\");\n\t$essai = _L(\"Test 3 _L()\", $arg4);\n\t$essai = _L('Test 4 _L()' . $arg5);\n\t$essai = _L(\"Test 5 _L()$arg6\");\n\t$essai = _L(\"Test 6 _L()${arg7}\");\n\t$essai = _L(\"Test 7 _L()\");\n\t$essai = _L (\"TEST 7 _L()\");\n\t$essai = _L\t\t(\"Test 7 _L()\");\n\t$essai = _L(\"T1234567890123456789012345678901abcdef\");\n}", "public function testSaveTranslationDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->hasMany('Comments');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $article = $table->get(1);\n $data = [\n 'title' => 'New title',\n 'body' => 'New body',\n '_translations' => [\n 'es' => [\n 'title' => 'ES title',\n 'body' => 'ES body',\n ],\n ],\n ];\n $article = $table->patchEntity($article, $data);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find('translations')->where(['id' => 1])->first();\n $this->assertSame('New title', $article->get('title'));\n $this->assertSame('New body', $article->get('body'));\n\n $this->assertSame('ES title', $article->_translations['es']->title);\n $this->assertSame('ES body', $article->_translations['es']->body);\n }", "public function setUp(): void\n {\n parent::setUp();\n\n $this->translator = $this->app->make('translator');\n }", "public function testCanGetTranslationById()\n {\n // Call the service requesting translation #1\n $responseTranslation = $this->translationService->getTranslationById(1);\n\n // Check the response is a translation entity\n $this->assertInstanceOf('Jobs\\Entity\\Translation', $responseTranslation);\n $this->assertInstanceOf('Jobs\\Entity\\Language', $responseTranslation->getLanguage());\n $this->assertInstanceOf('Jobs\\Entity\\Job', $responseTranslation->getJob());\n\n // Check that the returned entity is our dummy translation\n $this->assertEquals(1, $responseTranslation->getId());\n $this->assertEquals('English name', $responseTranslation->getName());\n $this->assertEquals('English description', $responseTranslation->getDescription());\n $this->assertEquals(1, $responseTranslation->getLanguage()->getId());\n $this->assertEquals('en', $responseTranslation->getLanguage()->getName());\n $this->assertEquals(1, $responseTranslation->getJob()->getId());\n $this->assertEquals(1, $responseTranslation->getJob()->getDepartment()->getId());\n $this->assertEquals('It Department', $responseTranslation->getJob()->getDepartment()->getName());\n }", "public function test()\r\n {\r\n $this->db->trans_begin(); // Inicio una transaccion\r\n $this->test_register_item();\r\n $this->test_get_items();\r\n $this->test_item_exists();\r\n $this->test_get_amount_category_by_item();\r\n $this->test_get_letters_item();\r\n $this->db->trans_rollback(); // Rollback para no afectar los datos en la DB\r\n\r\n echo $this->unit->report();\r\n }", "public function testSaveExistingRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'Y',\n '_translations' => [\n 'eng' => [\n 'title' => 'First Article1',\n 'body' => 'First Article content has been updated',\n ],\n 'spa' => [\n 'title' => 'Mi nuevo titulo',\n 'body' => 'Contenido Actualizado',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertSame('Mi nuevo titulo', $results['spa']['title']);\n $this->assertSame('Contenido Actualizado', $results['spa']['body']);\n\n $this->assertSame('First Article1', $results['eng']['title']);\n $this->assertSame('Description #1', $results['eng']['description']);\n }", "protected function setUp(): void\n {\n $this->booleanUtils = $this->createPartialMock(BooleanUtils::class, ['toBoolean']);\n $this->booleanUtils->expects(\n $this->any()\n )->method(\n 'toBoolean'\n )->willReturnMap(\n [['true', true], ['false', false]]\n );\n $this->model = new BaseStringUtils($this->booleanUtils);\n /** @var RendererInterface|\\PHPUnit\\Framework\\MockObject\\MockObject $translateRenderer */\n $translateRenderer = $this->getMockBuilder(RendererInterface::class)\n ->setMethods(['render'])\n ->getMockForAbstractClass();\n $translateRenderer->expects(self::never())->method('render');\n \\Magento\\Framework\\Phrase::setRenderer($translateRenderer);\n }", "function testLanguage()\r\n {\r\n\t\tglobal $webUrl, $SERVER, $DATABASE;\r\n\r\n // Locate the list page of language.\r\n\t\t$this->assertTrue($this->get(\"$webUrl/languages.php\", array(\r\n\t\t\t 'server' => $SERVER,\r\n\t\t\t\t\t\t'database' => $DATABASE,\r\n\t\t\t\t\t\t'subject' => 'database'))\r\n\t\t\t\t\t);\r\n\r\n $this->assertWantedPattern('/sql/');\r\n\r\n return TRUE;\r\n }", "function is_translatable()\n {\n }", "abstract public function translate($sentence);", "protected function setUp() {\n\t$this->object = new Translator;\n }", "public function getTranslationByEcom()\n {\n if ($this->getTimeoutDetected()) {\n return;\n }\n $this->unitSetup();\n $methods = $this->TEST->ECOM->getPaymentMethods();\n\n if (count($methods) < 4) {\n static::markTestSkipped('Test can not perform with missing payment methods (this account is missing some).');\n return;\n }\n\n $partPayment = $this->TEST->ECOM->getMethodTranslation('PARTPAYMENT', 'sv');\n $revolving = $this->TEST->ECOM->getMethodTranslation('REVOLVING_CREDIT', 'sv');\n $swish = $this->TEST->ECOM->getMethodTranslation('SWISH', 'sv');\n $newCard = $this->TEST->ECOM->getMethodTranslation('NEWCARD', 'sv');\n\n static::assertTrue(\n count($methods) &&\n !empty($partPayment['title']) &&\n $revolving['info'] === 'Se alla dina köp i Resurs Banks app' &&\n (isset($swish['mobileText']) && $swish['mobileText'] === 'Ditt mobilnummer: {{mobileNumber}}') &&\n $newCard['title'] === 'Betala hela eller dela beloppet'\n );\n }", "public function _before()\n {\n parent::_before();\n\n if (!extension_loaded('gettext')) {\n $this->markTestSkipped('Warning: gettext extension is not loaded');\n }\n }", "public function test_transform_no_url() {\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'repository' => \"slack\",\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, '[slack] r126299: ph - commit message');\n\t\t}", "public function testIndexLocalized()\n {\n $classFqn = 'stdClass';\n $count = 100;\n $providerName = 'provider';\n $batch = \\array_fill(0, 2, new \\stdClass());\n\n $this->resumeManager->getUnfinishedProviders()->willReturn([]);\n $this->providerRegistry->getProviders()->willReturn([\n $providerName => $this->localizedProvider1->reveal(),\n ]);\n $this->localizedProvider1->getClassFqns()->willReturn([$classFqn]);\n $this->localizedProvider1->getCount('stdClass')->willReturn($count);\n $this->localizedProvider1->provide('stdClass', 0, 50)->willReturn($batch);\n $this->localizedProvider1->provide('stdClass', 50, 50)->willReturn([]);\n $this->localizedProvider1->cleanUp('stdClass')->shouldBeCalledTimes(2);\n\n foreach ($batch as $object) {\n $this->localizedProvider1->getLocalesForObject($object)->willReturn(['de', 'fr']);\n $this->localizedProvider1->translateObject($object, 'de')\n ->shouldBeCalled()\n ->willReturn($object);\n $this->localizedProvider1->translateObject($object, 'fr')\n ->shouldBeCalled()\n ->willReturn($object);\n }\n\n $this->resumeManager->getCheckpoint($providerName, $classFqn)->willReturn(null);\n $this->resumeManager->setCheckpoint($providerName, $classFqn, 50)->shouldBeCalled();\n $this->resumeManager->setCheckpoint($providerName, $classFqn, 100)->shouldBeCalled();\n $this->resumeManager->removeCheckpoints($providerName)->shouldBeCalled();\n\n $tester = $this->execute('prod', []);\n\n $this->assertStringContainsString(\n 'reindexing \"100\" instances of \"stdClass\"',\n $tester->getDisplay()\n );\n }", "public function testInit()\n {\n $deDir = $this->localeDir . 'de_DE' . DS;\n if (!is_dir($deDir)) {\n mkdir($deDir, 0770, true);\n }\n file_put_contents($this->localeDir . 'default.pot', 'Testing POT file.');\n file_put_contents($this->localeDir . 'cake.pot', 'Testing POT file.');\n if (file_exists($deDir . 'default.po')) {\n unlink($deDir . 'default.po');\n }\n if (file_exists($deDir . 'default.po')) {\n unlink($deDir . 'cake.po');\n }\n\n $this->shell->getIo()->expects($this->at(0))\n ->method('ask')\n ->will($this->returnValue('de_DE'));\n $this->shell->getIo()->expects($this->at(1))\n ->method('ask')\n ->will($this->returnValue($this->localeDir));\n\n $this->shell->params['verbose'] = true;\n $this->shell->init();\n\n $this->assertFileExists($deDir . 'default.po');\n $this->assertFileExists($deDir . 'cake.po');\n }", "public function getTargetEntityFromStaticCache() {\n $targetLang = 'de';\n $expectedEntity = 'expected entity wrapper';\n $targetEntities = array($targetLang => $expectedEntity);\n\n $translatable = new MockParagraphsTranslatable();\n $translatable->setTargetEntities($targetEntities);\n $this->assertEquals($expectedEntity, $translatable->getTargetEntity($targetLang));\n }", "public function testInstallerTranslationFiles() {\n // Different translation files would be found depending on which language\n // we are looking for.\n $expected_translation_files = [\n NULL => ['drupal-8.0.0-beta2.hu.po', 'drupal-8.0.0.de.po', 'drupal-8.0.x.fr-CA.po'],\n 'de' => ['drupal-8.0.0.de.po'],\n 'fr-CA' => ['drupal-8.0.x.fr-CA.po'],\n 'hu' => ['drupal-8.0.0-beta2.hu.po'],\n 'it' => [],\n ];\n\n // Hardcode the fixtures location as we don't yet know where it is.\n // @todo Remove as part of https://www.drupal.org/node/2186491\n $file_translation = new FileTranslation('core/tests/fixtures/files/translations', $this->container->get('file_system'));\n foreach ($expected_translation_files as $langcode => $files_expected) {\n $files_found = $file_translation->findTranslationFiles($langcode);\n $this->assertSameSize($files_expected, $files_found, new FormattableMarkup('@count installer languages found.', ['@count' => count($files_expected)]));\n foreach ($files_found as $file) {\n $this->assertContains($file->filename, $files_expected, new FormattableMarkup('@file found.', ['@file' => $file->filename]));\n }\n }\n }", "public function loadMainTrans()\n {\n $translationPath = $this->_getTransPath();\n require $translationPath.\"/main.php\";\n\n //Return a translation object\n $mainTranslate = new Phalcon\\Translate\\Adapter\\NativeArray(array(\n \"content\" => $messages\n ));\n\n //Set $mt as main translation object\n $this->view->setVar(\"mt\", $mainTranslate);\n }", "public function testLanguageOption()\n {\n $expected = 'tesseract image.png stdout -l deu';\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->lang('deu')\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "public function testSavingWithNonDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n I18n::setLocale('fra');\n $translations = [\n 'fra' => ['title' => 'Un article'],\n 'spa' => ['title' => 'Un artículo'],\n ];\n\n $article = $table->get(1);\n foreach ($translations as $lang => $data) {\n $article->translation($lang)->set($data, ['guard' => false]);\n }\n\n $table->save($article);\n $article = $table->find('translations')->where(['Articles.id' => 1])->first();\n $this->assertSame('Un article', $article->translation('fra')->title);\n $this->assertSame('Un artículo', $article->translation('spa')->title);\n }", "private function dummyMethodToIncludeTranslatableString(){\n return;\n /** @var TranslatorInterface $translator */\n $translator = $this->container->get('translator');\n if ($translator !== null) {\n $translator->trans('hasFacebook', array(), 'advertise');\n $translator->trans('hasTwitter', array(), 'advertise');\n $translator->trans('hasInstagram', array(), 'advertise');\n }\n unset($translator);\n }", "public function test_transform_no_repository() {\n\n\t\t\t$text = $this->instance->transform(array(\n\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t'url' => 'http://svn.example.com/wsvn/main/?op=revision&rev=126299',\n\t\t\t\t'author' => 'ph',\n\t\t\t\t'log' => 'commit message',\n\t\t\t));\n\n\t\t\t$this->assertEquals($text, '<http://svn.example.com/wsvn/main/?op=revision&amp;rev=126299|r126299>: ph - commit message');\n\t\t}", "protected function getTranslateTools() {}", "public function testComAdobeGraniteTranslationCoreImplTranslationManagerImpl()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.granite.translation.core.impl.TranslationManagerImpl';\n\n $crawler = $client->request('POST', $path);\n }", "public function testEmailUkTranslate()\n {\n $this->getEmailWithLocal('uk');\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_HELLO_UK);\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_THANKS_UK);\n }", "public function testAddLangStrEx() {\n\n try {\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('addLangStr')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->addLangStr(new LanguageLabelString());\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "public function testIfPDFDocumentsListIncludesTranslation()\n {\n // Set up\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth(false);\n Shopware()->Plugins()->Backend()->Auth()->setNoAcl();\n\n // Login\n $this->Request()->setMethod('POST');\n $this->Request()->setPost([\n 'username' => 'demo',\n 'password' => 'demo',\n ]);\n $this->dispatch('backend/Login/login');\n\n $getParams = [\n '_repositoryClass' => 'document',\n '_dc' => '1234567890',\n 'page' => '1',\n 'start' => '0',\n 'limit' => '20',\n ];\n\n $this->reset();\n\n // Check if German values are still the same\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n static::assertEquals($documentType['name'], $documentType['description']);\n }\n\n $this->reset();\n Shopware()->Container()->reset('translation');\n\n // Check for English translations\n $user = Shopware()->Container()->get('auth')->getIdentity();\n $user->locale = Shopware()->Models()->getRepository(\n Locale::class\n )->find(2);\n\n $this->Request()->setMethod('GET');\n $getString = http_build_query($getParams);\n $response = $this->dispatch('backend/Config/getList?' . $getString);\n\n $responseJSON = json_decode($response->getBody(), true);\n static::assertEquals(true, $responseJSON['success']);\n\n foreach ($responseJSON['data'] as $documentType) {\n switch ($documentType['id']) {\n case 1:\n static::assertEquals('Invoice', $documentType['description']);\n break;\n case 2:\n static::assertEquals('Notice of delivery', $documentType['description']);\n break;\n case 3:\n static::assertEquals('Credit', $documentType['description']);\n break;\n case 4:\n static::assertEquals('Cancellation', $documentType['description']);\n break;\n }\n }\n }", "public function testGetDefaultLanguageLocaleCodeViaGetterMethod()\n {\n $this->assertEquals('en', $this->translator->getLocale());\n }", "public function setUp ()\n {\n $this->tran = new Noherczeg\\Breadcrumb\\Translator;\n }", "public function testFilterUntranslated(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n 'onlyTranslated' => true,\n ]);\n $table->setLocale('eng');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(1, $results);\n\n $table->setLocale('fr');\n $results = $table->find()->where(['Articles.id' => 1])->all();\n $this->assertCount(0, $results);\n }", "public function testSaveMultipleTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n }", "public function testSaveMultipleNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $translations['spa'] = new Entity(['title' => 'Titulo']);\n $translations['fre'] = new Entity(['title' => 'Titre']);\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n $this->assertSame('Titulo', $translations['spa']->get('title'));\n $this->assertSame('Titre', $translations['fre']->get('title'));\n }", "public function testFindTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table->find('translations');\n $expected = [\n [\n 'eng' => ['title' => 'Title #1', 'body' => 'Content #1', 'description' => 'Description #1', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #1', 'body' => 'Inhalt #1', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #1', 'body' => 'Obsah #1', 'locale' => 'cze'],\n 'spa' => ['body' => 'Contenido #1', 'locale' => 'spa', 'description' => ''],\n ],\n [\n 'eng' => ['title' => 'Title #2', 'body' => 'Content #2', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #2', 'body' => 'Inhalt #2', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #2', 'body' => 'Obsah #2', 'locale' => 'cze'],\n ],\n [\n 'eng' => ['title' => 'Title #3', 'body' => 'Content #3', 'locale' => 'eng'],\n 'deu' => ['title' => 'Titel #3', 'body' => 'Inhalt #3', 'locale' => 'deu'],\n 'cze' => ['title' => 'Titulek #3', 'body' => 'Obsah #3', 'locale' => 'cze'],\n ],\n ];\n\n $translations = $this->_extractTranslations($results);\n $this->assertEquals($expected, $translations->toArray());\n $expected = [\n 1 => ['First Article' => 'First Article Body'],\n 2 => ['Second Article' => 'Second Article Body'],\n 3 => ['Third Article' => 'Third Article Body'],\n ];\n\n $grouped = $results->all()->combine('title', 'body', 'id');\n $this->assertEquals($expected, $grouped->toArray());\n }", "public function testCanLoadLanguageFilesFromSpecifiedPath()\n {\n $this->translator->load();\n $messages = $this->translator->all();\n $this->assertArrayHasKey('test_message', $messages);\n }", "public function testTranslationFieldForOtherFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $expected = 'Articles.foo';\n $field = $table->translationField('foo');\n $this->assertSame($expected, $field);\n }", "public function testLanguageOptionForMultipleLanguages()\n {\n $expected = 'tesseract image.png stdout -l eng+deu+jpn';\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->lang('eng', 'deu', 'jpn')\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "public function test_mixed_lang_rendering() {\n $dd = test_question_maker::make_question('ddimageortext', 'mixedlang');\n $dd->shufflechoices = false;\n $this->start_attempt_at_question($dd, 'interactive', 1);\n\n // Check the initial state.\n $this->check_current_state(question_state::$todo);\n $this->check_current_mark(null);\n $this->check_current_output(\n new question_pattern_expectation('~<div class=\"group1 draghome choice1\"><span lang=\"fr\">la</span></div>~'),\n new question_pattern_expectation('~<div class=\"group1 draghome choice2\"><span lang=\"fr\">ma</span></div>~')\n );\n }", "public function test_request(){\n\n return $this->send_request( 'en', 'es', array( 'about' ) );\n\n }", "public function testCustomTranslationTable(): void\n {\n ConnectionManager::setConfig('custom_i18n_datasource', ['url' => getenv('DB_URL')]);\n\n $table = $this->getTableLocator()->get('Articles');\n\n $table->addBehavior('Translate', [\n 'translationTable' => CustomI18nTable::class,\n 'fields' => ['title', 'body'],\n ]);\n\n $items = $table->associations();\n $i18n = $items->getByProperty('_i18n');\n\n $this->assertSame('CustomI18n', $i18n->getName());\n $this->assertInstanceOf(CustomI18nTable::class, $i18n->getTarget());\n $this->assertSame('custom_i18n_datasource', $i18n->getTarget()->getConnection()->configName());\n $this->assertSame('custom_i18n_table', $i18n->getTarget()->getTable());\n\n ConnectionManager::drop('custom_i18n_datasource');\n }", "protected abstract function getTranslations();", "public function testAddLangStr() {\n\n foreach ($this->testCases['LanguageLabelString'] as $key => $testCase) {\n $langStr = new LanguageLabelString();\n $langStr->setLanguageLabelStringId($testCase['language_label_string_id']);\n $langStr->setLabelId($testCase['label_id']);\n $langStr->setLanguageId($testCase['language_id']);\n $langStr->setLanguageLabelString($testCase['language_label_string']);\n $langStr->setLanguageLabelStringStatus($testCase['language_label_string_status']);\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('addLangStr')\n ->will($this->returnValue($langStr));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->addLangStr($langStr);\n $this->assertTrue($result instanceof LanguageLabelString);\n $this->assertEquals($langStr, $result);\n }\n }", "public function testFindTranslationsList(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table\n ->find(\n 'list',\n keyField: 'title',\n valueField: '_translations.deu.title',\n groupField: 'id',\n )\n ->find('translations', locales: ['deu']);\n\n $expected = [\n 1 => ['First Article' => 'Titel #1'],\n 2 => ['Second Article' => 'Titel #2'],\n 3 => ['Third Article' => 'Titel #3'],\n ];\n $this->assertEquals($expected, $results->toArray());\n }", "public function translate($text);", "protected function setUp()\n\t{\n\t\t$this->object = new \\Aimeos\\MW\\Translation\\None( 'ru_XX' );\n\t}", "public function testTranslateOperator()\n {\n $dataSourceElement = new Field(\n 'test_data_source_element_name',\n '',\n '',\n new StringDataType()\n );\n\n $dataSource = $this->getMock('Netdudes\\DataSourceryBundle\\DataSource\\DataSourceInterface');\n $dataSource->expects($this->any())\n ->method('getFields')\n ->will($this->returnValue([$dataSourceElement]));\n\n $extensionContainer = $this->getMockBuilder('Netdudes\\DataSourceryBundle\\Extension\\TableBundleExtensionContainer')\n ->disableOriginalConstructor()\n ->getMock();\n $interpreterFactory = new InterpreterFactory($extensionContainer);\n $interpreter = $interpreterFactory->create($dataSource);\n\n // LIKE is valid for String type, should return LIKE\n $this->assertEquals(FilterCondition::METHOD_STRING_LIKE, $interpreter->translateOperator('T_OP_LIKE', $dataSourceElement), 'Failed to translate T_OP_LIKE into STRING_LIKE for type String');\n\n // EQ is valid for String, and should choose STRING_EQ as it's the default for the type\n $this->assertEquals(FilterCondition::METHOD_STRING_EQ, $interpreter->translateOperator('T_OP_EQ', $dataSourceElement), 'Failed to translate T_OP_EQ into STRING_EQ for type String');\n }", "public function testSaveNewRecordWithOnlyTranslationsNotDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Sections');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n\n $data = [\n '_translations' => [\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $group = $table->newEntity($data);\n $result = $table->save($group);\n $this->assertNotFalse($result, 'Record should save.');\n\n $expected = [\n [\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }" ]
[ "0.8284054", "0.7219463", "0.7071227", "0.7071022", "0.6685348", "0.6681617", "0.66433495", "0.6642468", "0.6639676", "0.66346496", "0.6608294", "0.65313935", "0.6522165", "0.6508544", "0.6507085", "0.6491973", "0.6476521", "0.64555407", "0.64275545", "0.64121616", "0.6385944", "0.6365847", "0.63573736", "0.63007617", "0.62210715", "0.619194", "0.618645", "0.6137103", "0.6136246", "0.61332977", "0.61219275", "0.61219275", "0.61107534", "0.60953486", "0.6088812", "0.60841906", "0.6072604", "0.60683656", "0.6048538", "0.6039745", "0.6018438", "0.59807146", "0.59756744", "0.596156", "0.5956321", "0.59518266", "0.5915185", "0.589122", "0.58554", "0.58163226", "0.5789282", "0.57604045", "0.5755176", "0.5750432", "0.57452995", "0.57410616", "0.5738152", "0.57345736", "0.5728011", "0.5727901", "0.5727788", "0.57153696", "0.57035357", "0.56953025", "0.56839836", "0.5675379", "0.5674736", "0.5671359", "0.5649458", "0.5644849", "0.56349623", "0.56297237", "0.5624418", "0.5614827", "0.5609647", "0.5607213", "0.5604827", "0.5579022", "0.55789626", "0.5575769", "0.55643475", "0.5563604", "0.55600655", "0.5554829", "0.5545625", "0.5544802", "0.5536226", "0.55355525", "0.5532023", "0.5529811", "0.5529276", "0.5522423", "0.5499038", "0.5498106", "0.54973996", "0.5492606", "0.5471464", "0.54693204", "0.54642844", "0.5462437", "0.54611397" ]
0.0
-1
Tests the changed time after API and FORM save without changes.
public function doTestChangedTimeAfterSaveWithoutChanges() { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); // Test only entities, which implement the EntityChangedInterface. if ($entity instanceof EntityChangedInterface) { $changed_timestamp = $entity->getChangedTime(); $entity->save(); $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->assertEquals($changed_timestamp, $entity->getChangedTime(), 'The entity\'s changed time wasn\'t updated after API save without changes.'); // Ensure different save timestamps. sleep(1); // Save the entity on the regular edit form. $language = $entity->language(); $edit_path = $entity->toUrl('edit-form', ['language' => $language]); $this->drupalGet($edit_path); $this->submitForm([], $this->getFormSubmitAction($entity, $language->getId())); $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); $this->assertNotEquals($changed_timestamp, $entity->getChangedTime(), 'The entity\'s changed time was updated after form save without changes.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateTimesheet()\n {\n }", "public function assertUpdateDefaults() {\n\t\t\t$this->set('lastModified', 'NOW()', false);\n\t\t\t$this->enclose('lastModified', false);\n\t\t}", "public function testSaveShouldWorkAndBumpTimestampAndTheDirtyFlagShouldWork()\n\t{\n\t\t$result = cms_orm('test_orm_table')->find();\n\t\t$old_timestamp = $result->modified_date->timestamp();\n\t\t$result->save();\n\t\t$result = cms_orm('test_orm_table')->find();\n\t\t$this->assertEqual($old_timestamp, $result->modified_date->timestamp());\n\t\t\n\t\t#Once with\n\t\t$old_timestamp = $result->modified_date->timestamp();\n\t\t$result->test_field = 'test10';\n\t\t$result->save();\n\t\t$result = cms_orm('test_orm_table')->find();\n\t\t$this->assertNotEqual($old_timestamp, $result->modified_date->timestamp());\n\t\t$this->assertEqual('test10', $result->test_field);\n\t}", "public function test_get_pw_changed_time__0() {\n\t\t$actual = self::$lss->get_pw_changed_time($this->user->ID);\n\t\t$this->assertSame(0, $actual);\n\t}", "public function testUpdateLastClick() {\n\t\t$result = $this->Model->updateLastClick();\n\t\t$this->assertFalse((bool)$result);\n\n\t\t$expected = '0000-00-00 00:00:00';\n\t\t$result = $this->Model->field('last_click', array(\n\t\t\t'User.id' => 1\n\t\t));\n\t\t$this->assertEquals($expected, $result);\n\n\t\tCakeSession::write('Auth.User.id', 1);\n\t\t$result = $this->Model->updateLastClick();\n\t\t$this->assertTrue($result);\n\n\t\t$expected = date('Y-m-d H:i:s');\n\t\t$result = $this->Model->field('last_click', array(\n\t\t\t'User.id' => 1\n\t\t));\n\t\t$this->assertEquals(strtotime($expected), strtotime($result), null, 2);\n\n\t\t$expected = '2010-02-04 16:54:48';\n\t\t$result = $this->Model->field('modified', array(\n\t\t\t'User.id' => 1\n\t\t));\n\t\t$this->assertEquals($expected, $result);\n\t}", "public function testUpdatedAt()\n {\n $value = date('Y-m-d H:i:s');\n\n $model = $this->getOfferModel();\n\n $model->setUpdatedAt($value);\n\n $this->assertEquals($value, $model->getUpdatedAt());\n }", "public function beforeValidation() {\n\t\t$this->modified = new RawValue('now()');\n\t}", "public function changelastseentime() {\n // Fetch the request data in JSON format and convert it into object\n $request_data = $this->request->input('json_decode');\n switch (true) {\n // When request is not made using POST method\n case!$this->request->isPost() :\n $success = false;\n $status = BAD_REQUEST;\n $message = 'Wrong request method.';\n break;\n // Request is valid and phone no and name are present\n case!empty($request_data) && !empty($request_data->phone_no) && !empty($request_data->user_token):\n\n // Check if phone no exists\n $data = $this->User->findUser($request_data->phone_no);\n\n // Check if record exists\n if (count($data) != 0) {\n // Check uuid entered is valid\n if ($data[0]['User']['verified'] === false) {\n $success = false;\n $status = UNAUTHORISED;\n $message = 'User not verified';\n } elseif ($request_data->user_token != $data[0]['User']['user_token']) { // User Token is not valid\n $success = false;\n $status = UNAUTHORISED;\n $message = 'User Token is invalid';\n } else {\n\n $dataArray = array();\n $dataArray['User']['_id'] = $data[0]['User']['_id'];\n // when user will logout then we will get this variable for reset device details.\n if (isset($request_data->reset_device) && $request_data->reset_device == 'yes') {\n $dataArray['User']['device_type'] = '';\n $dataArray['User']['device_token'] = '';\n }\n $dataArray['User']['last_seen_time'] = new MongoDate();\n\n if ($this->User->save($dataArray)) {\n $success = true;\n $status = SUCCESS;\n $message = 'Last seen time has been saved.';\n } else {\n $success = false;\n $status = ERROR;\n $message = 'There was a problem in processing your request';\n }\n }\n }\n // Return false if record not found\n else {\n $success = false;\n $status = UNAUTHORISED;\n $message = 'Phone no. not registered.';\n }\n break;\n // User Token blank in request\n case!empty($request_data) && empty($request_data->user_token):\n $success = false;\n $status = BAD_REQUEST;\n $message = 'User Token cannot be blank.';\n break;\n // Phone no. blank in request\n case!empty($request_data) && empty($request_data->phone_no):\n $success = false;\n $status = BAD_REQUEST;\n $message = 'Phone no. cannot be blank.';\n break;\n // Parameters not found in request\n case empty($request_data):\n $success = false;\n $status = BAD_REQUEST;\n $message = 'Request cannot be empty.';\n break;\n }\n\n $out = array(\n \"success\" => $success,\n \"message\" => $message\n );\n\n return new CakeResponse(array('status' => $status, 'body' => json_encode($out), 'type' => 'json'));\n }", "protected function updateRequestTime()\n {\n $this->requestTimestamp = microtime(true);\n }", "public function beforeUpdate()\n {\n\t\t// Asignar fecha y hora de ultima actualizacion\n// $this->updatedon = time();\n }", "public function timestampFieldIsUpdatedOnPostSave() {}", "public function testNothingModifiedLastRunSet()\n {\n $this->_cs->updateLastRun($this->_name);\n sleep(2);\n\n $check = $this->_cs->checkEntitiesChanged($this->_name, array(self::ENTITY_NAME));\n $this->assertFalse($check);\n }", "function testTimestamps() {\n // Use the default timestamps.\n $edit = array(\n 'uid' => $this->webUser->id(),\n 'support_ticket_type' => 'ticket',\n 'title' => $this->randomMachineName(8),\n );\n\n entity_create('support_ticket', $edit)->save();\n $support_ticket = $this->supportTicketGetTicketByTitle($edit['title']);\n $this->assertEqual($support_ticket->getCreatedTime(), REQUEST_TIME, 'Creating a support_ticket sets default \"created\" timestamp.');\n $this->assertEqual($support_ticket->getChangedTime(), REQUEST_TIME, 'Creating a support_ticket sets default \"changed\" timestamp.');\n\n // Store the timestamps.\n $created = $support_ticket->getCreatedTime();\n\n $support_ticket->save();\n $support_ticket = $this->supportTicketGetTicketByTitle($edit['title'], TRUE);\n $this->assertEqual($support_ticket->getCreatedTime(), $created, 'Updating a support_ticket preserves \"created\" timestamp.');\n\n // Programmatically set the timestamps using hook_ENTITY_TYPE_presave().\n $support_ticket->title = 'testing_support_ticket_presave';\n\n $support_ticket->save();\n $support_ticket = $this->supportTicketGetTicketByTitle('testing_support_ticket_presave', TRUE);\n $this->assertEqual($support_ticket->getCreatedTime(), 280299600, 'Saving a support_ticket uses \"created\" timestamp set in presave hook.');\n $this->assertEqual($support_ticket->getChangedTime(), 979534800, 'Saving a support_ticket uses \"changed\" timestamp set in presave hook.');\n\n // Programmatically set the timestamps on the support_ticket.\n $edit = array(\n 'uid' => $this->webUser->id(),\n 'support_ticket_type' => 'ticket',\n 'title' => $this->randomMachineName(8),\n 'created' => 280299600, // Sun, 19 Nov 1978 05:00:00 GMT\n 'changed' => 979534800, // Drupal 1.0 release.\n );\n\n entity_create('support_ticket', $edit)->save();\n $support_ticket = $this->supportTicketGetTicketByTitle($edit['title']);\n $this->assertEqual($support_ticket->getCreatedTime(), 280299600, 'Creating a support_ticket programmatically uses programmatically set \"created\" timestamp.');\n $this->assertEqual($support_ticket->getChangedTime(), 979534800, 'Creating a support_ticket programmatically uses programmatically set \"changed\" timestamp.');\n\n // Update the timestamps.\n $support_ticket->setCreatedTime(979534800);\n $support_ticket->changed = 280299600;\n\n $support_ticket->save();\n $support_ticket = $this->supportTicketGetTicketByTitle($edit['title'], TRUE);\n $this->assertEqual($support_ticket->getCreatedTime(), 979534800, 'Updating a support_ticket uses user-set \"created\" timestamp.');\n // Allowing setting changed timestamps is required, see\n // Drupal\\ticket_translation\\ContentTranslationMetadataWrapper::setChangedTime($timestamp)\n // for example.\n $this->assertEqual($support_ticket->getChangedTime(), 280299600, 'Updating a support_ticket uses user-set \"changed\" timestamp.');\n }", "function setPasswordUpdatedTime(){\n\t\t$this->setPasswordUpdated(time());\n\t}", "public function test_accepts_dev_updates()\n {\n }", "function preSaveCheck($request) {\n\t\t$convertAll = false;\n\t\t$convertTS = false;\n\t\t$convertTE = false;\n\t\tif (empty($request['stop_watch'])) {\n\t\t\tif($request['action'] == 'TimecontrolAjax'){\n\t\t\t\tswitch ($request['fldName']) {\n\t\t\t\t\tcase 'time_start':\n\t\t\t\t\t\t$convertTS = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'time_end':\n\t\t\t\t\t\t$convertTE = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$convertAll = true;\n\t\t\t}\n\t\t\tif (($convertAll || $convertTS) && (!empty($this->column_fields['date_start']) and !empty($this->column_fields['time_start']))) {\n\t\t\t\t$dt = new DateTimeField($this->column_fields['date_start']);\n\t\t\t\t$fmtdt = $dt->convertToDBFormat($this->column_fields['date_start']);\n\t\t\t\t$time_start = DateTimeField::convertToDBTimeZone($fmtdt.' '.$this->column_fields['time_start']);\n\t\t\t\t$this->column_fields['date_start'] = $time_start->format('Y-m-d');\n\t\t\t\t$ts = $time_start->format('H:i:s');\n\t\t\t\t$this->column_fields['time_start'] = $ts;\n\t\t\t}\n\t\t\tif (($convertAll || $convertTE) && (!empty($this->column_fields['date_end']) and !empty($this->column_fields['time_end']))) {\n\t\t\t\t$dt = new DateTimeField($this->column_fields['date_end']);\n\t\t\t\t$fmtdt = $dt->convertToDBFormat($this->column_fields['date_end']);\n\t\t\t\t$time_end = DateTimeField::convertToDBTimeZone($fmtdt.' '.$this->column_fields['time_end']);\n\t\t\t\t$this->column_fields['date_end'] = $time_end->format('Y-m-d');\n\t\t\t\t$te = $time_end->format('H:i:s');\n\t\t\t\t$this->column_fields['time_end'] = $te;\n\t\t\t}\n\t\t}\n\t}", "public function test_if_failed_update()\n {\n }", "public function changetimeframe() {\n $sessionstaff = $this->Session->read('staff');\n if ($_POST['tier_timeframe'] == '') {\n $_POST['tier_timeframe'] = 0;\n }\n $this->AccessStaff->query('update access_staffs set tier_timeframe=' . $_POST['tier_timeframe'] . ' where clinic_id=' . $sessionstaff['clinic_id']);\n $this->Session->write('staff.staffaccess.AccessStaff.tier_timeframe', $_POST['tier_timeframe']);\n echo 1;\n\n die;\n }", "public function testSendDefaultTime(): void\n {\n // Testing default value of a $now variable. Asserted below with generous\n // delta.\n $expectedDate = new DateTime('now');\n\n $activityData = new ActivityDataStub();\n\n $activityPersister = new ActivityPersisterStub();\n $activityPersister->setNextSequence(5);\n $dispatcher = new EventDispatcherStub();\n $payloadManager = new PayloadManagerStub();\n $payloadManager->addPayload(['payload' => 'wot']);\n\n $manager = $this->getManager(\n $dispatcher,\n $payloadManager,\n $activityPersister\n );\n\n $manager->send(new Provider('provider', 'Test Provider Inc.'), $activityData);\n\n $saved = $activityPersister->getSaved();\n $activity = \\reset($saved);\n\n self::assertArrayHasKey('occurredAt', $activity);\n\n // Asserts the expected date is within 10 seconds of the generated now inside the\n // service.\n self::assertEqualsWithDelta($expectedDate, $activity['occurredAt'], 10);\n }", "public function beforeValidationOnUpdate()\n {\n // Timestamp on the update\n $this->modifyAt = time();\n }", "public function getProvioulsyUpdatedTimestamp()\n {\n $currentTimestamp = time();\n $this->sessionEntity->updateTimestamp();\n $this->assertTrue(is_int($this->sessionEntity->getTimestamp()));\n $this->assertTrue($currentTimestamp <= $this->sessionEntity->getTimestamp());\n }", "function set_timemodified() {\n $this->timemodified = time();\n return true;\n }", "public function setSysLastChanged() {}", "public function update_requests() {\n\t\tif (!isset($_POST['time']) || !isset($_POST['hash'])) exit('0');\n\n\t\t// If the response is invalid return a zero response\n\t\t$received = $_POST['time'] . '|' . $_POST['hash'];\n\t\t$expected = $this->time_marker(hash('crc32', $this->required_delay), $_POST['time']);\n\t\tif ($received !== $expected) exit('0');\n\n\t\t// If response if premature return a zero response\n\t\t$now = time();\n\t\t$earliest = absint($_POST['time']) + $this->required_delay;\n\t\tif ($now < $earliest) exit('0');\n\n\t\t// Seems ok ... respond with new hash\n\t\t$response = hash('md5', $_POST['hash'] . $this->base_key);\n\t\texit($response);\n\t}", "function save_test_completed_date()\n\t{\n\t\t$this->load->model('frontendmodel');\n\n\t\t$this->frontendmodel->update_test_completed_date();\n\t}", "public function testSave()\n {\n $change = Change::fetch('default');\n $change->setDescription('Test submit')\n ->save();\n }", "function preUpdate(){\n $this->alteradoEm = new \\DateTime('now');\n $this->alteradoEm->setTimezone(new \\DateTimeZone('America/Sao_Paulo'));\n }", "public function testSaveValue()\n {\n $faker = Factory::create();\n $data = [\n $faker->unixTime => $faker->sentence,\n ];\n $response = $this->json('POST', '/api/values', $data);\n $response\n ->assertStatus(201)\n ->assertJson($data);\n }", "public function testWebinarPollUpdate()\n {\n }", "public function testHandleSaveTimeReportValid() {\n $timeReportStub = $this->getMockBuilder(TimeReport::class)\n ->disableOriginalConstructor()\n ->setMethods(['isValid', 'save'])\n ->getMock();\n\n $timeReportStub->method('isValid')\n ->willReturn(true);\n\n $timeReportStub->expects($this->once())\n ->method('save');\n\n $this->service->handleSaveTimeReport($timeReportStub);\n }", "function test()\n {\n $this->updated = '2010-01-18 11:39';\n $this->created = '2010-01-18 08:48';\n }", "public function testCheckExpiredRequest2(): void\n {\n $user = new User();\n\n $userChange = new UserChanges();\n $userChange->setExpiresAt(new \\DateTimeImmutable(\\sprintf('+%d seconds', -100)));\n\n $this->userChangeRep\n ->method('findOneBy')\n ->willReturn($userChange);\n\n $result = $this->changeMailHelper->checkExpiredRequest($user);\n $this->assertTrue($result);\n }", "public function testPostUpdate()\n {\n $this->getEmailWithLocal('uk');\n /** check email with ticket pdf file */\n $this->findEmailWithText('ticket-php-day-2017.pdf');\n /** check email with string */\n $this->findEmailWithText('Шановний учасник, в вкладенні Ваш вхідний квиток. Покажіть його з екрану телефону або роздрукуйте на папері.');\n }", "public function test() {\r\n $this->vkdata = date(\"Y-m-d H:i:s\");\r\n\r\n }", "public function testUpdated()\n {\n \t$game_factory = factory(Game::class)->create();\n \t$game_factory->game_hash_file = sha1(microtime());\n\n $this->assertTrue($game_factory->save());\n }", "public function testSaveNewMatch() {\n\t\t$this->refreshApplication();\n\t\t$this->match->match_date = '28 February 2014';\n\t\t$this->match->save();\n\t}", "public function test_save_2() {\n global $DB;\n $times = array(\n mktime(9, 0, 0, 11, 5, 2013),\n );\n $course = $this->getDataGenerator()->create_course();\n $module = $this->getDataGenerator()->create_module('talkpoint', array(\n 'course' => $course->id,\n ));\n $this->loadDataSet($this->createArrayDataSet(array(\n 'talkpoint_talkpoint' => array(\n array('id', 'instanceid', 'userid', 'title', 'uploadedfile', 'nimbbguid', 'mediatype', 'closed', 'timecreated', 'timemodified'),\n array(1, $module->id, 2, 'Talkpoint 004', 'foo.mp4', null, 'file', 0, $times[0], $times[0]),\n ),\n )));\n $data = array(\n 'instanceid' => $module->id,\n 'id' => 1,\n 'userid' => 2,\n 'title' => 'Talkpoint 004a',\n 'uploadedfile' => 'bar.mp4',\n 'nimbbguid' => '',\n 'mediatype' => 'file',\n 'closed' => 0,\n );\n $data = $this->_cut->save($data, time());\n $this->assertGreaterThan($times[0], (integer)$DB->get_field('talkpoint_talkpoint', 'timemodified', array('id' => $data['id'])));\n $this->assertEquals('bar.mp4', $DB->get_field('talkpoint_talkpoint', 'uploadedfile', array('id' => 1)));\n }", "function _wp_rest_api_force_autosave_difference($prepared_post, $request)\n {\n }", "public function testSetTime() {\n $time = new \\DateTime();\n $this->order->setTime($time);\n $this->assertEquals($time, $this->order->getTime());\n }", "protected function _syncModDate() {}", "public function save() {\n $this->lastModified = new \\DateTime();\n parent::save();\n }", "protected function doTestTranslationChanged() {\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $changed_field_name = $this->getChangedFieldName($entity);\n $definition = $entity->getFieldDefinition($changed_field_name);\n $config = $definition->getConfig($entity->bundle());\n\n foreach ([FALSE, TRUE] as $translatable_changed_field) {\n if ($definition->isTranslatable()) {\n // For entities defining a translatable changed field we want to test\n // the correct behavior of that field even if the translatability is\n // revoked. In that case the changed timestamp should be synchronized\n // across all translations.\n $config->setTranslatable($translatable_changed_field);\n $config->save();\n }\n elseif ($translatable_changed_field) {\n // For entities defining a non-translatable changed field we cannot\n // declare the field as translatable on the fly by modifying its config\n // because the schema doesn't support this.\n break;\n }\n\n foreach ($entity->getTranslationLanguages() as $language) {\n // Ensure different timestamps.\n sleep(1);\n\n $langcode = $language->getId();\n\n $edit = [\n $this->fieldName . '[0][value]' => $this->randomString(),\n ];\n $edit_path = $entity->toUrl('edit-form', ['language' => $language]);\n $this->drupalGet($edit_path);\n $this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode));\n\n $storage = $this->container->get('entity_type.manager')\n ->getStorage($this->entityTypeId);\n $storage->resetCache([$this->entityId]);\n $entity = $storage->load($this->entityId);\n $this->assertEquals(\n $entity->getChangedTimeAcrossTranslations(), $entity->getTranslation($langcode)->getChangedTime(),\n new FormattableMarkup('Changed time for language %language is the latest change over all languages.', ['%language' => $language->getName()])\n );\n }\n\n $timestamps = [];\n foreach ($entity->getTranslationLanguages() as $language) {\n $next_timestamp = $entity->getTranslation($language->getId())->getChangedTime();\n if (!in_array($next_timestamp, $timestamps)) {\n $timestamps[] = $next_timestamp;\n }\n }\n\n if ($translatable_changed_field) {\n $this->assertSameSize($entity->getTranslationLanguages(), $timestamps, 'All timestamps from all languages are different.');\n }\n else {\n $this->assertCount(1, $timestamps, 'All timestamps from all languages are identical.');\n }\n }\n }", "public function updatedStateEmployee(){\n $this->clearTime();\n }", "public function testWebinarUpdate()\n {\n }", "public function beforeSave(){\n //$this->updated = date('Y-m-d H:i:s');\n return parent::beforeSave();\n }", "public function onPreUpdate()\n {\n $this->fechaUltimaModificacion = new \\DateTime(\"now\");\n }", "public function test_accepts_minor_updates()\n {\n }", "public function preUpdate()\n {\n $this->updated = new \\DateTime();\n }", "public function testIsNewerThanFalse() {\n\t\t\t$time = time();\n\t\t\t$lastRefresh = date('Y-m-d H:i:s', $time - 10);\n\t\t\t$userData = ['id' => 1, 'last_refresh' => $lastRefresh];\n\t\t\t$this->CurrentUser->setSettings($userData);\n\n\t\t\t$this->assertFalse($this->LastRefresh->isNewerThan($time));\n\t\t\t$this->assertFalse($this->LastRefresh->isNewerThan(date('Y-m-d H:i:s', $time)));\n\t\t}", "public function testCheckExpiredRequest1(): void\n {\n $user = new User();\n\n $userChange = new UserChanges();\n $userChange->setExpiresAt(new \\DateTimeImmutable(\\sprintf('+%d seconds', 100)));\n\n $this->userChangeRep\n ->method('findOneBy')\n ->willReturn($userChange);\n\n $result = $this->changeMailHelper->checkExpiredRequest($user);\n $this->assertFalse($result);\n }", "protected static function setSyncLastTime()\n {\n DB::update(\"UPDATE `sync_last_time` SET timestamp = ? WHERE id=?\", [time(), 1]);\n }", "public function after_update() {}", "public function test_now_vs_then(){\n\t\n\t\t$listotron = new Listotron();\n\t\t$now = $listotron->getNOW();\n\t\tusleep(300);\n\t\t$listotron->updateNOW();\n\t\t$then = $listotron->getNOW();\n\n\t\t$this->assertNotEqual($now, $then);\n\t}", "public function preUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "public function preUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "public function beforeUpdate()\n {\n $this->modified_in = date('Y-m-d H:i:s');\n }", "public function preUpdate()\n {\n \t$this->dateFound = new \\DateTime(\"now\");\n }", "public function testTime()\n {\n $this->assertEquals(self::$cache->time('Toaster'), '');\n\n //Standard function test\n self::$cache->set('Toaster', 'Test', 5);\n\n $this->assertEquals(self::$cache->time('Toaster'), time());\n }", "public function updateQueryTime()\n\t{\n\t\t$this->setLastQueryTime(time());\n\t\t$this->save();\n\t}", "public function testIsNewerThanTrue() {\n\t\t\t$time = time();\n\t\t\t$lastRefresh = date('Y-m-d H:i:s', $time + 10);\n\t\t\t$userData = ['id' => 1, 'last_refresh' => $lastRefresh];\n\t\t\t$this->CurrentUser->setSettings($userData);\n\n\t\t\t$this->assertTrue($this->LastRefresh->isNewerThan($time));\n\t\t\t$this->assertTrue($this->LastRefresh->isNewerThan(date('Y-m-d H:i:s', $time)));\n\t\t}", "public function setSyncTime(): void\n {\n }", "public function testUpdatedPostAndSignupWithReview()\n {\n // Create a signup and a post, and associate them to each other.\n $post = factory(Post::class)->create();\n\n // And then later on, we'll make a review...\n $this->mockTime('8/3/2017 16:55:00');\n\n // Review the post.\n $northstarId = $this->faker->northstar_id;\n $this->withAccessToken($northstarId, 'admin')->postJson('api/v3/posts/' . $post->id . '/reviews', [\n 'status' => 'accepted',\n ]);\n\n // Make sure the post's updated_at matches the review time.\n $this->assertEquals('2017-08-03 16:55:00', (string) $post->fresh()->updated_at);\n }", "public function refreshUpdated() {\n $this->setUpdated(new \\DateTime(\"now\"));\n}", "public function checkTimestamps()\n {\n return false;\n }", "protected function beforeSave() {\n if (parent::beforeSave()) {\n $this->create_time = time();\n return true;\n }\n }", "function testValidTimeFieldExpectsCallbackCalledOnce() {\n\t\t// arrange\n\t\t$stub = $this->getMockBuilder('Callbacks')\n\t\t\t\t\t->setMethods(array('date'))\n\t\t\t\t\t->getMock();\n\n\t\t$stub->expects( $this->once() )\n\t\t\t ->method( 'date' )\n\t\t\t ->with( $this->anything(), $this->anything(), $this->anything() );\n\n\t\t// $stub->expects( $this->once() )\n\t\t// \t->method( 'method' );\n\n\t\t$form = new TestValidDateField();\n\t\t$form->fields['category']['type'] = 'time';\n\t\t$form->set_callbacks($stub);\n\t\t$term = \\WP_Mock::wpFunction( 'wp_get_post_terms' ); \n\t\t$_POST = array(\n\t\t\t'post_ID' => 1,\n\t\t\t'category_hour' => array('9') ,\n\t\t\t'category_minute' => array('30'),\n\t\t\t'category_ampm' => array('am'),\n\t\t\t'category_timezone' => array('America/New_York'),\n\t\t\t);\n\t\t$anything = $this->anything();\n\n\t\t// act\n\t\t$form->validate_datetime($_POST['post_ID'], $form->fields['category'], $anything);\n\t}", "public function beforeUpdate()\n {\n $this->update_at=time();\n }", "public function preUpdate()\n {\n $this->dateModification = new \\DateTime();\n }", "public function onPreUpdate()\n {\n $this->modified_at = new \\DateTime(\"now\");\n }", "public function update_availability()\n\t{\n\t\tdate_default_timezone_set(\"Asia/Kolkata\");\n\t\t$res=date('Y-m-d H:i', time());\n\t\techo $res;\n\t\t$data=$this->Setting_model->check_end(); \n\t\tforeach($data as $key)\n\t\t{ $id=$key->id;\n\t\t\t$user_id= $key->user_id;\n\t\t\t//echo $id; echo $user_id;\n\t\t\t$date_time=$key->dates .' '.$key->end_time;\n\t\t\tif($res==$date_time)\n\t\t\t{\n\t\t\t\t//echo \"yess\";\n\t\t\t \t$this->Setting_model->update_time($id,$user_id);\n\t\t\t}\n\t\t}\n\t}", "function getModificationTime() ;", "public function testUpdated()\n {\n \t$player_factory = factory(KillingMode::class)->create();\n \t$player_factory->mode = sprintf('Randon mode %s', microtime());\n\n $this->assertTrue($player_factory->save());\n }", "public function test_ouwiki_get_last_modified() {\n global $DB;\n $this->resetAfterTest(true);\n $this->setAdminUser();\n $user = $this->get_new_user();\n $user2 = $this->get_new_user('testouwikiuser2');\n $course = $this->get_new_course();\n $ouwiki = $this->get_new_ouwiki($course->id, OUWIKI_SUBWIKIS_SINGLE);\n $cm = get_coursemodule_from_instance('ouwiki', $ouwiki->id);\n $context = context_module::instance($cm->id);\n\n $result = ouwiki_get_last_modified($cm, $course);\n $this->assertEmpty($result);\n\n // Create page + test last modified returns something.\n $subwiki = ouwiki_get_subwiki($course, $ouwiki, $cm, $context, 0, $user2->id, true);\n $page = ouwiki_get_current_page($subwiki, 'startpage', OUWIKI_GETPAGE_CREATE);\n ouwiki_save_new_version($course, $cm, $ouwiki, $subwiki, 'startpage', 'content', -1, -1, -1);\n\n $result = ouwiki_get_last_modified($cm, $course, $user2->id);\n $this->assertNotEmpty($result);\n // Check other user gets a time.\n $result2 = ouwiki_get_last_modified($cm, $course, $user->id);\n $this->assertNotEmpty($result2);\n $this->assertEquals($result, $result2);\n // Check admin gets cached.\n $result = ouwiki_get_last_modified($cm, $course);\n $this->assertEmpty($result);\n }", "protected function saveUpdate()\n {\n }", "public function setServerTime();", "public function testBackup_now() {\n\t\t$this->backup->backup_now();\n\t\t$schedule = wp_next_scheduled( 'execute_instant_drobox_backup' );\n\t\t$this->assertEquals( time(), $schedule );\n\t}", "public function editassigntimeAction()\n {\n $prevurl = getenv(\"HTTP_REFERER\");\n $user_params=$this->_request->getParams();\n $ftvrequest_obj = new Ep_Ftv_FtvRequests();\n $ftvpausetime_obj = new Ep_Ftv_FtvPauseTime();\n $requestId = $user_params['requestId'];\n $requestsdetail = $ftvrequest_obj->getRequestsDetails($requestId);\n\n ($user_params['editftvspentdays'] == '') ? $days=0 : $days=$user_params['editftvspentdays'];\n ($user_params['editftvspenthours'] == '') ? $hours=0 : $hours=$user_params['editftvspenthours'];\n ($user_params['editftvspentminutes'] == '') ? $minutes=0 : $minutes=$user_params['editftvspentminutes'];\n ($user_params['editftvspentseconds'] == '') ? $seconds=0 : $seconds=$user_params['editftvspentseconds'];\n\n /*if($user_params['addasigntime'] == 'addasigntime') ///when time changes in mail content in publish ao popup//\n {\n /*$editdate = date('Y-m-d', strtotime($user_params['editftvassigndate']));\n $edittime = date('H:i:s', strtotime($user_params['editftvassigntime']));\n $editdatetime =$editdate.\" \".$edittime;\n $data = array(\"assigned_at\"=>$editdatetime);////////updating\n $query = \"identifier= '\".$user_params['requestId'].\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $parameters['ftvType'] = \"chaine\";\n // $newseconds = $this->allToSeconds($user_params['editftvspentdays'],$user_params['editftvspenthours'],$user_params['editftvspentminutes'],$user_params['editftvspentseconds']);\n echo \"<br>\".$format = \"P\".$days.\"DT\".$hours.\"H\".$minutes.\"M\".$seconds.\"S\";\n echo \"<br>\".$requestsdetail[0]['assigned_at'];\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->sub(new DateInterval($format));\n echo \"<br>\".$assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n echo $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }\n elseif($user_params['subasigntime'] == 'subasigntime')\n {\n $format = \"P\".$days.\"DT\".$hours.\"H\".$minutes.\"M\".$seconds.\"S\";\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->add(new DateInterval($format));\n $assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }*/\n $inpause = $ftvpausetime_obj->inPause($requestId);\n $requestsdetail[0]['inpause'] = $inpause;\n $ptimes = $ftvpausetime_obj->getPauseDuration($requestId);\n $assigntime = $requestsdetail[0]['assigned_at'];\n //echo $requestId; echo $requestsdetail[0]['assigned_at'];\n\n if(($requestsdetail[0]['status'] == 'done' || $inpause == 'yes') && $requestsdetail[0]['assigned_at'] != null)\n {\n if($requestsdetail[0]['status'] == \"closed\")\n $time1 = ($requestsdetail[0]['cancelled_at']); /// created time\n elseif ($requestsdetail[0]['status'] == \"done\")\n $time1 = ($requestsdetail[0]['closed_at']); /// created time\n else{\n if($inpause == 'yes') {\n $time1 = ($requestsdetail[0]['pause_at']);\n }else {\n $time1 = (date('Y-m-d H:i:s'));///curent time\n }\n }\n $pausedrequests = $ftvpausetime_obj->pausedRequest($requestId);\n if($pausedrequests == 'yes')\n {\n $time2 = $this->subDiffFromDate($requestId, $requestsdetail[0]['assigned_at']);\n }else{\n $time2 = $requestsdetail[0]['assigned_at'];\n }\n $difference = $this->timeDifference($time1, $time2);\n\n }elseif($requestsdetail[0]['assigned_at'] != null){\n $time1 = (date('Y-m-d H:i:s'));///curent time\n\n $pausedrequests = $ftvpausetime_obj->pausedRequest($requestId);\n if($pausedrequests == 'yes')\n {\n $updatedassigntime = $this->subDiffFromDate($requestId, $requestsdetail[0]['assigned_at']);\n }else{\n $updatedassigntime = $requestsdetail[0]['assigned_at'];\n }\n $time2 = $updatedassigntime;\n $difference = $this->timeDifference($time1, $time2);\n }\n ////when user trying to edit the time spent///\n if($user_params['editftvassignsubmit'] == 'editftvassignsubmit') ///when button submitted in popup//\n {\n $newseconds = $this->allToSeconds($days,$hours,$minutes,$seconds);\n $previousseconds = $this->allToSeconds($difference['days'],$difference['hours'],$difference['minutes'],$difference['seconds']);\n if($newseconds > $previousseconds){\n $diffseconds = $newseconds-$previousseconds;\n $difftime = $this->secondsTodayshours($diffseconds);\n $format = \"P\".$difftime['days'].\"DT\".$difftime['hours'].\"H\".$difftime['minutes'].\"M\".$difftime['seconds'].\"S\";\n $requestsdetail[0]['assigned_at'];\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->sub(new DateInterval($format));\n $assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }elseif($newseconds < $previousseconds){\n $diffseconds = $previousseconds-$newseconds;\n $difftime = $this->secondsTodayshours($diffseconds);\n $format = \"P\".$difftime['days'].\"DT\".$difftime['hours'].\"H\".$difftime['minutes'].\"M\".$difftime['seconds'].\"S\";\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->add(new DateInterval($format));\n $assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }else\n $this->_redirect($prevurl);\n }\n /*$this->_view->reqasgndate = date(\"d-m-Y\", strtotime($reqdetails[0]['assigned_at']));\n $this->_view->reqasgntime = date(\"g:i A\", strtotime($reqdetails[0]['assigned_at']));*/\n $this->_view->days = $difference['days'];\n $this->_view->hours = $difference['hours'];\n $this->_view->minutes = $difference['minutes'];\n $this->_view->seconds = $difference['seconds'];\n $this->_view->requestId = $user_params['requestId'];\n $this->_view->requestobject = $requestsdetail[0]['request_object'];\n $this->_view->current_duration= $difference['days'].\"j \".$difference['hours'].\"h \".$difference['minutes'].\"m \".$difference['seconds'].\"s \";\n\n $this->_view->extendparttime = 'no';\n $this->_view->extendcrtparttime = 'no';\n $this->_view->editftvassigntime = 'yes';\n $this->_view->nores = 'true';\n $this->_view->render(\"ongoing_extendtime_writer_popup\");\n\n }", "public function testSaveTimesheet() {\n\n $timesheet = TestDataService::fetchObject('Timesheet', 1);\n\n $timesheet->setState(\"SUBMITTED\");\n\n $this->timesheetDao->saveTimesheet($timesheet);\n $savedTimesheet = TestDataService::fetchObject(\"Timesheet\", $timesheet->getTimesheetId());\n\n $this->assertEquals($timesheet->getState(), $savedTimesheet->getState());\n $this->assertEquals($timesheet->getStartDate(), $savedTimesheet->getStartDate());\n $this->assertEquals($timesheet->getEmployeeId(), $savedTimesheet->getEmployeeId());\n }", "function after_update() {}", "private function saveData(): void\n {\n $this->tab_chat_call->call_update = gmdate(\"Y-m-d H:i:s\"); //data e hora UTC\n $result = $this->tab_chat_call->save();\n\n if ($result) {\n $this->Result = true;\n $this->Error = [];\n $this->Error['msg'] = \"Sucesso!\";\n $this->Error['data']['call'] = $this->tab_chat_call->call_id;\n } else {\n $this->Result = false;\n $this->Error = [];\n $this->Error['msg'] = $this->tab_chat_call->fail()->getMessage();\n $this->Error['data'] = null;\n }\n }", "public function setModifiedValue()\n {\n $this->setModified(new \\DateTime());\n }", "public function test_update() {\n global $DB;\n\n self::setAdminUser();\n $this->resetAfterTest(true);\n\n // Save new outage.\n $now = time();\n $outage = new outage([\n 'autostart' => false,\n 'warntime' => $now - 60,\n 'starttime' => 60,\n 'stoptime' => 120,\n 'title' => 'Title',\n 'description' => 'Description',\n ]);\n $outage->id = outagedb::save($outage);\n self::$outage = $outage;\n\n self::$outage->starttime += 10;\n outagedb::save(self::$outage);\n\n // Should still exist.\n $event = $DB->get_record_select(\n 'event',\n \"(eventtype = 'auth_outage' AND instance = :idoutage)\",\n ['idoutage' => self::$outage->id],\n 'id',\n IGNORE_MISSING\n );\n self::assertTrue(is_object($event));\n self::assertSame(self::$event->id, $event->id);\n self::$event = $event;\n }", "public function testSaveUpdate()\n {\n $user = User::findOne(1002);\n $version = Version::findOne(1001);\n\n $this->specify('Error update attempt', function () use ($user, $version) {\n $data = [\n 'scenario' => VersionForm::SCENARIO_UPDATE,\n 'title' => 'Some very long title...Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dignissim, lorem in bibendum.',\n 'type' => Version::TYPE_TABLET,\n 'subtype' => 31,\n 'retinaScale' => false,\n 'autoScale' => 'invalid_value',\n ];\n $model = new VersionForm($user, $data);\n\n $result = $model->save($version);\n $version->refresh();\n\n verify('Model should not succeed', $result)->null();\n verify('Model should have errors', $model->errors)->notEmpty();\n verify('Title error message should be set', $model->errors)->hasKey('title');\n verify('ProjectId error message should not be set', $model->errors)->hasntKey('projectId');\n verify('Type error message should not be set', $model->errors)->hasntKey('type');\n verify('Subtype error message should be set', $model->errors)->hasKey('subtype');\n verify('AutoScale error message should be set', $model->errors)->hasKey('autoScale');\n verify('RetinaScale error message should not be set', $model->errors)->hasntKey('retinaScale');\n verify('Version title should not change', $version->title)->notEquals($data['title']);\n verify('Version type should not be changed', $version->type)->notEquals($data['type']);\n verify('Version subtype should not be changed', $version->subtype)->notEquals($data['subtype']);\n });\n\n $this->specify('Success update attempt', function () use ($user, $version) {\n $data = [\n 'scenario' => VersionForm::SCENARIO_UPDATE,\n 'projectId' => 1003, // should be ignored\n 'title' => 'My new test version title',\n 'type' => Version::TYPE_MOBILE,\n 'subtype' => 31,\n 'retinaScale' => true,\n 'autoScale' => true,\n ];\n $model = new VersionForm($user, $data);\n\n $result = $model->save($version);\n\n verify('Model should succeed and return an instance of Version', $result)->isInstanceOf(Version::className());\n verify('Model should not has any errors', $model->errors)->isEmpty();\n verify('The returned Version should be the same as the updated one', $result->id)->equals($version->id);\n verify('Version projectId should not change', $result->projectId)->notEquals($data['projectId']);\n verify('Version title should match', $result->title)->equals($data['title']);\n verify('Version type should match', $result->type)->equals($data['type']);\n verify('Version subtype should match', $result->subtype)->equals($data['subtype']);\n verify('Version scaleFactor should match', $result->scaleFactor)->equals(Version::AUTO_SCALE_FACTOR);\n });\n }", "public function UpdateClockOutTime(){\n\t\t $input_data \t\t= \t$this->GetDecryptedData(Input::get()['request']);\n\t\t $rules = array(\n\t\t 'user_id' \t\t\t=> 'required',\n\t\t //'device_id' \t\t=> 'required',\n\t\t 'platform_type' => 'required',\n\t\t 'latitude' \t\t=> 'required',\n\t\t 'longitude' \t\t=> 'required',\n\t\t 'clinic_id' \t\t=> 'required',\n\t\t );\n\t\t $validator = Validator::make($input_data,$rules);\n\t\t if ($validator->fails()){\n\t\t\t $messages = $validator->messages();\n\t\t\t return $this->encrypt(json_encode(array('status' => 'error', 'message' => $validator->errors()->all())));\n\t\t }else{\n\t\t\t$update = ClinicStatusModel::UpdateClockOut($input_data['clinic_id'],$input_data['user_id']);\n\t\t\tif($update){\n\t\t\t\t// process to insert provider timesheet record starts here//\n\t\t\t\t$clinic_data = ClinicsModel::where('id',$input_data['clinic_id'])->first();\n\t\t\t\t$clinic_date_time \t\t= $clinic_data->date.' '.$clinic_data->time;\n\t\t\t\t\n\t\t\t\t$clinics_status_record = ClinicStatusModel::where('clinic_id',$input_data['clinic_id'])->where('provider_id',$input_data['user_id'])->first();\n\n\t\t\t\t$user_current_time \t\t= date('Y-m-d H:i:s');\n\t\t\t\t$clockin_user_time \t\t= $clinics_status_record->clock_in;\n\t\t\t\t\n\t\t\t\t$user_record = DB::table('users')->select('hourly_rate')->where('id',$input_data['user_id'])->first();\n\t\t\t\t// saving user lat long geo location at clock_out time //\n\t\t\t\t$save_record = GeoLocationModel::insert(['user_id' \t=> $input_data['user_id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'clinic_id' => $input_data['clinic_id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'latitude' \t=> $input_data['latitude'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'longitude' => $input_data['longitude'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'created_at' => date('Y-m-d H:i:s'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]);\n\t\t\t\t\n\t\t\t\t$count = TimesheetRecords::where('clinic_id',$input_data['clinic_id'])->where('provider_id',$input_data['user_id'])->count();\n\t\t\t\tif($count == 0){\n\t\t\t\t\t$spend_time\t\t\t\t\t= round((strtotime($user_current_time)-strtotime($clockin_user_time))/60);\n\t\t\t\t\t$model\t\t\t \t\t\t= new TimesheetRecords;\n\t\t\t\t\t$model->clinic_id \t\t= $input_data['clinic_id'];\n\t\t\t\t\t$model->provider_id \t\t= $input_data['user_id'];\n\t\t\t\t\t$model->clinic_date \t\t= $clinic_date_time;\n\t\t\t\t\t$model->clinic_location \t= $clinic_data->location_name;\n\t\t\t\t\t$model->clinic_latitude \t= $clinic_data->latitude;\n\t\t\t\t\t$model->clinic_longitude \t= $clinic_data->longitude;\n\t\t\t\t\t$model->clock_in \t\t\t= $clockin_user_time;\n\t\t\t\t\t$model->clock_out \t\t= $user_current_time;\n\t\t\t\t\t$model->clinic_spend_time \t= $spend_time;\n\t\t\t\t\t$model->mileage \t\t\t= null;\n\t\t\t\t\t$model->drive_time \t\t= null;\n\t\t\t\t\t$model->hourly_rate \t\t= $user_record->hourly_rate;\n\t\t\t\t\t$model->income \t\t\t= ($spend_time/60)*$user_record->hourly_rate;\n\t\t\t\t\t$save_model = $model->save();\n\t\t\t\t}\n\n\t\t\t\t// process to insert provider timesheet record starts here//\n\t\t\t\n\t\t\t\treturn $this->encrypt(json_encode(array('status'=>'success','message'=>'Successfully clocked out.')));\n\t\t\t}else{\n\t\t\t\treturn $this->encrypt(json_encode(array('status'=>'success','message'=>'Technical error.')));\n\t\t\t}\n\t\t }\n\t }", "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime();\n }", "public function getModificationTime() {}", "public function test_it_update_database_from_api()\n {\n\n $this->json('GET', 'api/v1/update')->assertJsonFragment(\n [\n 'success' => 1\n ]\n );\n\n\n // second assertion , check that database is not empty , so we know that data has been updated after being truncate\n\n $beers = Beer::get();\n $this->assertEquals(false, $beers->isEmpty());\n }", "public function getModificationTime() {}", "public function test_updating() {\n\t\t$key = rand_str();\n\n\t\t// Setting temporary should be true.\n\t\t$this->assertTrue( WP_Temporary::set_site( $key, 'value1', 5 ) );\n\n\t\t// Direct retrieval of temporary value should return set value.\n\t\t$this->assertEquals( get_site_option( '_site_temporary_' . $key ), 'value1' );\n\n\t\t// Direct retrieval of temporary timeout should be integer and greater than current time.\n\t\t$raw_key1_timeout_before_sleep = get_site_option( '_site_temporary_timeout_' . $key );\n\t\t$this->assertTrue( is_int( $raw_key1_timeout_before_sleep ) );\n\t\t$this->assertGreaterThan( time(), $raw_key1_timeout_before_sleep );\n\n\t\t// Getting of temporary should return set value.\n\t\t$this->assertEquals( WP_Temporary::get_site( $key ), 'value1' );\n\n\t\t// Updating temporary should be true.\n\t\t$this->assertTrue( WP_Temporary::update_site( $key, 'value1-update1', 5 ) );\n\n\t\t// Getting of temporary should return updated value.\n\t\t$this->assertEquals( WP_Temporary::get_site( $key ), 'value1-update1' );\n\n\t\t// Timeout should be unchanged.\n\t\t$this->assertEquals( $raw_key1_timeout_before_sleep, get_site_option( '_site_temporary_timeout_' . $key ) );\n\n\t\t// Sleep for two minutes.\n\t\tsleep( 2 * MINUTE_IN_SECONDS );\n\n\t\t// Updating temporary should be true.\n\t\t$this->assertTrue( WP_Temporary::update_site( $key, 'value1-update2', 5 ) );\n\n\t\t// Getting of temporary should return updated value.\n\t\t$this->assertEquals( WP_Temporary::get_site( $key ), 'value1-update2' );\n\n\t\t// Direct retrieval of temporary timeout should be integer, and greater than current time or timeout before sleep.\n\t\t$raw_key1_timeout_after_sleep = get_site_option( '_site_temporary_timeout_' . $key );\n\t\t$this->assertTrue( is_int( $raw_key1_timeout_after_sleep ) );\n\t\t$this->assertGreaterThan( time(), $raw_key1_timeout_after_sleep );\n\t\t$this->assertGreaterThan( $raw_key1_timeout_before_sleep, $raw_key1_timeout_after_sleep );\n\t}", "public function testCurrentTime0()\n{\n\n $actual = $this->systemTimeProvider->currentTime();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function save()\n {\n return $this->service->saveTimeEntry($this);\n }", "public function testGetLastUseDate()\n {\n $this->assertEquals($this->attributes->{'last use date'}, \n $this->user->getLastUseDate());\n }", "public function onPreUpdate(): void\n {\n $this->updated = new DateTime(\"now\", new DateTimeZone(\"UTC\"));\n }", "public function onPreUpdate(): void\n {\n $this->updated = new DateTime(\"now\", new DateTimeZone(\"UTC\"));\n }", "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "public function save_update_timecard()\n\t{\n\t\t$this->load->model('timecard_model', '', TRUE);\n\t\t$user_request_time = $this->user_local_request_time();\n\n\t\t$timecard = $this->timecard_model->get_timecard($this->input->post('tcid'));\n\n\t\tif ( ! $timecard ){\n\t\t\tlog_message('debug', '---------------------> save_update_timecard FALSE' );\n\n\t\t\t$this->json_response(['error' => 'Error no timecard found']);\n\t\t}\n\n\t\t$this->load->library('cfpslack_library');\n\n\t\t//Check if a note has been made for this WO\n\t\ttry {\n\n\t\t\t$hasNotes = $this->cfpslack_library->check_wo_notes(\n\t\t\t\t$timecard->workorder_id,\n\t\t\t\tself::BF_COMMENTS_CLOSE_TIMECARD\n\t\t\t);\n\n\t\t\tif ($hasNotes) {\n\n\t\t\t\t//call update timesheets table\n\t\t\t\t$this->timecard_model->timecard_update(\n\t\t\t\t\t$timecard->id,\n\t\t\t\t\t$user_request_time->format('h'),\n\t\t\t\t\t$user_request_time->format('i'),\n\t\t\t\t\t$user_request_time->format('A'),\n\t\t\t\t\t$this->session->tc_user_id\n\t\t\t\t);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$bluefolderUrl = 'https://cfp.bluefolder.com/classic/service/sr.aspx?srid=' . $timecard->workorder_id;\n\t\t\t$error = 'You must update your Blue Folder <a target=\"_blank\" href=\"'.$bluefolderUrl.'\">Work Order</a>';\n\t\t\t$error .= ' and leave a note before you clock out.';\n\n\t\t\t$this->json_response([ 'error' => $error ]);\n\n\n\t\t} catch (Exception $e) {\n\n\t\t\tlog_message('debug', '---------------------> save_update_timecard WO note check request failed' );\n\t\t\t$this->json_response([\n\t\t\t\t'error' => 'Request failed. Please try again, and contact support if the challenge persists.'\n\t\t\t]);\n\n\t\t}\n\t}", "function CheckDataUpdate($action){\n $new_value = date(\"y-m-d H:i:s\"); //Ngày cập nhật là ngày hiện tại\n $action->set_value(\"bannerSlide_update_date\",$new_value);\n\t\t\t\n $action->set_value(\"bannerSlide_by\",$_COOKIE['login_fullname']);//người cập nhật \n\t}", "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime;\n }", "public function testServeChanges()\n {\n }", "protected function afterUpdating()\n {\n }" ]
[ "0.6488095", "0.64706755", "0.6312677", "0.6309495", "0.6254951", "0.61593914", "0.61274993", "0.6083935", "0.60320985", "0.5889214", "0.58547103", "0.5814933", "0.5803211", "0.5793049", "0.5791037", "0.57892597", "0.5785161", "0.57849276", "0.57795423", "0.57532334", "0.5743058", "0.5738957", "0.57210666", "0.57069635", "0.57039565", "0.57038677", "0.566911", "0.56559443", "0.56540334", "0.5653712", "0.56299937", "0.5627178", "0.56133217", "0.5608684", "0.5606117", "0.55994815", "0.55933297", "0.5591141", "0.55855626", "0.5559686", "0.5558823", "0.55524254", "0.55516756", "0.55505955", "0.55417407", "0.55386335", "0.55367136", "0.553329", "0.55219686", "0.5515309", "0.5514097", "0.55105674", "0.55098313", "0.5504695", "0.5504695", "0.54973376", "0.5485493", "0.5475439", "0.5471001", "0.54679865", "0.5467955", "0.5450951", "0.5450058", "0.5449176", "0.5427139", "0.54269004", "0.54213953", "0.5420853", "0.5399538", "0.5396918", "0.5394925", "0.5391709", "0.53912044", "0.53896034", "0.5388775", "0.538549", "0.5382608", "0.5380379", "0.5375946", "0.5370474", "0.53696823", "0.53657657", "0.536293", "0.5361309", "0.5360954", "0.5358802", "0.53568256", "0.5356448", "0.5354009", "0.5340793", "0.5340407", "0.5338954", "0.533478", "0.533478", "0.53321975", "0.53258467", "0.53208673", "0.532025", "0.5318684", "0.5317277" ]
0.7559328
0
Determine whether the user can view the model.
public function view(User $autenticadoUser, User $user) { return $autenticadoUser->id === $user->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isViewAllowed()\n {\n return $this->isAllowedAction('view');\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n if ($this->isEdit() && !is_null($this->model)) {\n if (!user()->hasPermissionTo('Administrations::admin.user') && $this->model->id != user()->id) {\n return false;\n }\n }\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function canView()\n {\n return !$this->is_private ||\n ( Auth::user() && ( $this->sender_id === Auth::id() || $this->recipient_id === Auth::id() ) );\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "private function canView(): bool\n {\n return true;\n }", "public function authorize()\n {\n return $this->user()->can('view', Assignment::class);\n }", "public function canView()\n {\n return true;\n }", "public function view(User $user, User $model): bool\n {\n return $user->isRole('admin') || (\n $user->is($model) &&\n $user->tokenCan('users:view')\n );\n }", "public function authorize()\n {\n switch (true) {\n case $this->wantsToList():\n case $this->wantsToShow():\n if ($this->hasRoles(['owner', 'administrator'])) {\n return true;\n }\n break;\n case $this->wantsToStore():\n case $this->wantsToUpdate():\n case $this->wantsToDestroy():\n if ($this->hasRoles(['owner'])) {\n return true;\n }\n break;\n }\n\n return false;\n }", "public function isViewable(): bool\n\t{\n\t\treturn self::STATUS_ACTIVE === $this->get('status') && self::USER_VISIBLE === $this->get('visible');\n\t}", "public function authorize()\n {\n $model = $this->resource()::$model;\n\n return $this->authorizeIfPolicyExists('viewAny', $model);\n }", "public function authorize()\n {\n return $this->route('address')->userCanView($this->user());\n }", "private function canDisplay()\n {\n //Checks roles allowed\n $roles = array(\n 'ROLE_MANAGER',\n 'ROLE_ADMIN',\n );\n\n foreach ($roles as $role) {\n if ($this->security->isGranted($role)) {\n return true;\n }\n }\n\n return false;\n }", "public function authorize()\n {\n return $this->user() != null;\n }", "public function canUserManageUsage()\n {\n return $this->getUser()->hasAccess('manage', 'newsUsage');\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "function userCanViewPage()\n\t{\n\t\t// use Yawp::authUsername() instead of $this->username because\n\t\t// we need to know if the user is authenticated or not.\n\t\treturn $this->acl->pageView(Yawp::authUsername(), $this->area, \n\t\t\t$this->page);\n\t}", "protected function requireViewableModel($model)\n {\n if (!$model->password) {\n return true;\n }\n\n if ($this->user && $model->userId) {\n if ($this->user->userId == $model->userId) {\n return true;\n }\n }\n\n if ($this->request->has('password')) {\n $passwordHasher = \\App::make('PasswordHasher');\n if ($passwordHasher->verify($this->request->input('password'), $model, 'password')) {\n return true;\n }\n }\n\n throw new HttpException(403, \"You don't have permission to view that.\");\n }", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function canEdit()\n {\n if(!Auth::check())\n {\n return false;\n }\n //If the user is active/logged in, return true so that we can display user's specific objects\n if(Auth::user()->id===$this->user_id)\n {\n return true;\n }\n //By default\n return false;\n }", "public function authorize()\n {\n $project = \\App\\Project::find($this->request->get('project'));\n return $project && $project->isManager($this->user()->name);\n }", "public function authorize()\n {\n if ( ! $this->getRelease()->belongsToYou()) {\n return false;\n }\n return true;\n }", "public function view($user, $model)\n {\n if( $user->hasPermissionTo('view ' . static::$key) ) {\n return true;\n }\n\n return $user->id == $model->user_id;\n }", "public function canView()\n\t{\n\t\treturn \\IPS\\Member::loggedIn()->hasAcpRestriction( 'nexus' , 'transactions', 'transactions_manage' );\n\t}", "public function view(User $user, User $model)\n {\n return $user->is($model) || $user->hasPermissionTo('view users');\n }", "public function authorize()\n {\n return request()->user() != null;\n }", "public function view(User $user, User $model)\n {\n return $user->hasPermissionTo('user.view');\n }", "public function authorize()\n\t{\n\t\t// if user is updating his profile or a user is an admin\n\t\tif( $this->user()->isSuperAdmin() || !$this->route('user') ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n if ($this->user && ($this->user->hasPermission('manage_pages_contents') ) ) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n $person = $this->findFromUrl('person');\n\n return $this->user()->can('update', $person);\n }", "public function authorize()\n {\n return !is_null($this->user());\n }", "public function authorize()\n {\n return $this->user()->can('manage-routes');\n }", "public function authorize()\n {\n return $this->user()->can('manage-routes');\n }", "public function isViewable()\n\t{\n\t\treturn true;\n\t}", "public function authorize()\n {\n $resource = Resource::find($this->route('id'));\n\n if (!$resource) {\n return true;\n }\n\n return $resource && $this->user()->can('access', $resource);\n }", "public function authorize()\n {\n if(session('contact_key'))\n return true;\n\n if (! $this->user()->hasFeature(FEATURE_DOCUMENTS))\n return false;\n\n \n if ($this->invoice && $this->user()->cannot('edit', $this->invoice))\n return false;\n\n\n if ($this->expense && $this->user()->cannot('edit', $this->expense))\n return false;\n\n\n if($this->ticket && $this->user()->cannot('edit', $this->ticket))\n return false;\n\n\n return true;\n //return $this->user()->can('create');\n }", "public function authorize()\n {\n\n return true;\n\n if ($this->route('self_report')) { // If ID we must be changing an existing record\n return Auth::user()->can('self_report update');\n } else { // If not we must be adding one\n return Auth::user()->can('self_report add');\n }\n\n }", "public function authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }", "public function canEdit()\n {\n if (!$this->site) {\n return false;\n }\n\n if (!$this->current_user) {\n return false;\n }\n\n if ($this->site->userIsVerified($this->current_user)) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n return (Auth::user()->type === User::VENDEDOR);\n }", "public function getUserCanEditAttribute()\n {\n return AccessControl::check($this, 'edit_post', false);\n }", "function canView($user) {\n if($this->isOwner()) {\n return true;\n } // if\n \n return in_array($this->getId(), $user->visibleCompanyIds());\n }", "public function authorize()\n {\n $user = auth('web')->user();\n if ($user && $user->active) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function authorize()\n {\n $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorize()\n {\n $article = Article::find($this->route('article'));\n return $article && $this->user()->can('update', $article);\n }", "public function isViewable()\n {\n return ($this->isPublished() && $this->isActive());\n }", "public function authorize()\n {\n return $this->user()->can('create', MarEntry::class);\n }", "public function canBeViewed() {}", "public function views(User $user)\n {\n \n //Check at the table level\n if(!$this->perm->can($user,'table',$this->tableSourceId,'read')){\n return false;\n }\n\n //Check at the model level\n if(!$this->modelCheckHelper($user,'read')){\n return false;\n }\n \n return true;\n }", "protected function _isAllowed()\n {\n switch ($this->getRequest()->getActionName()) {\n case 'new':\n case 'save':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserSaveVersion();\n break;\n case 'delete':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteVersion();\n break;\n case 'massDeleteRevisions':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteRevision();\n break;\n default:\n return Mage::getSingleton('admin/session')->isAllowed('cms/page');\n break;\n }\n }", "public function canUserManageAreaOfApplication()\n {\n return $this->getUser()->hasAccess('manage', 'newsAreaOfApplication');\n }", "public function authorize() {\n\t\t$this->competitor = $this->route('competitor');\n\t\treturn $this->user()->can('update', $this->competitor);\n\t}", "public static function currentUserHasAccess() {\n return current_user_can('admin_access');\n }", "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed(\\Eadesigndev\\Pdfgenerator\\Controller\\Adminhtml\\Templates::ADMIN_RESOURCE_VIEW);\n }", "public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }", "public function authorize()\n {\n $user = Auth::user();\n $lecture = Lecture::findOrFail($this->route('lecture'));\n return $user->can('lecture-update') || $user->id == $lecture->user_id;\n }", "public function authorize()\n {\n if ($this->method() === 'POST') {\n return $this->user()->can('create', Template::class);\n }\n\n return $this->user()->can('update', Template::class);\n }", "public function authorize()\n {\n /**\n * @var User $user\n * @var Document $document\n */\n $user = Auth::user();\n $document = $this->route('document');\n\n return (int)$user->id === (int)$document->user_id;\n }", "public function view(Admin $admin, User $model)\n {\n return $admin->hasAccess(['users.view']);\n }", "public function authorize(): bool\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\n }", "public static function canDisplayUsersMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_USER);\n\t}", "public function authorize()\n {\n //Get the 'mark' id\n switch ((int) request()->segment(6)) {\n case 0:\n return access()->allow('deactivate-users');\n break;\n\n case 1:\n return access()->allow('reactivate-users');\n break;\n }\n\n return false;\n }", "public function authorize() {\n\t\t$this->workplace = $this->route('workplace');\n\t\t$this->workFunction = $this->route('workFunction');\n\t\treturn $this->user()->can('update', $this->workplace) && $this->user()->can('update', $this->workFunction);\n\t}", "public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}", "public function authorize()\n {\n $this->validate($this->rules());\n $user = auth()->user()->first();\n $type = ImageType::findOrFail($this->input('image_type_id'));\n $owner = $type->owner($this->owner_id)->first();\n\n return $user->can('view', $type) && $user->can('update', $owner);\n }", "public function canViewProfile() {\n\t\treturn (!$this->protectedProfile || WCF::getUser()->userID == $this->userID || UserProfile::isBuddy($this->userID) || WCF::getUser()->getPermission('admin.general.canViewPrivateUserOptions'));\n\t}", "public function authorize() {\n\t\t$user = \\Auth::user();\n\n\t\tif ( $user->isAdmin() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function authorize()\n {\n $organizationId = (string) $this->route('id');\n\n $this->organization = Organization::findByUuidOrFail($organizationId);\n\n return $this->user()->can('show', [Organization::class, $this->organization]);\n }", "public function authorize()\n {\n return $this->user()->can('manage-drafts');\n }", "public function authorize()\n {\n return access()->hasPermissions(['view-backend', 'view-referral', 'manage-referral'], true);\n }", "public function authorize()\n {\n return access()->hasPermissions(['view-backend', 'view-inventory', 'manage-inventory'], true);\n }", "public function authorize(): bool\n {\n return Auth::check() &&\n $this->user()->tokenCan('view:store');\n }", "public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }", "public function canView($member = null) {\n\t\treturn Permission::check('CMS_ACCESS_CMSMain');\n\t}", "public function authorize()\n {\n $id = $this->route('id');\n if ($id) {\n $giftList = GiftList::find($id);\n if (!$giftList || $giftList->user->id != Auth::user()->id) {\n return false;\n }\n }\n return true;\n }", "public function authorize()\n {\n if (Auth::user()->can('update-assignment')) return true;\n if (Auth::user()->hasRole('student'))\n if ($this->owns('assignment')) return true;\n return false;\n }", "public function authorize()\n {\n return $this->permissionGuard()->allowsCreate($this->newModelInstance());\n }", "public function can_read($model)\n {\n return true;\n }", "public function authorize()\n {\n if(Auth::check())\n {\n return (Auth::user()->has_world_admin_access);\n }\n return false;\n }", "public function authorize()\n {\n // User system not implemented\n return true;\n }", "public function authorize()\n {\n return auth()->user()->can('manage-users');\n }", "public function authorize()\n {\n $tag = $this->route()->parameter('tag');\n return Auth::user()->can('view', [Tag::class, $tag]);\n }", "public function authorize()\n {\n\t\treturn $this->user()->can('create', Collection::class);\n }", "public function canView($member = null) \n {\n return true;\n }", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n {\n return $this->user()->can('update', $this->route('user'));\n }", "public function hasAccess(CharacterModel $characterModel){\n return true;\n }", "public function isViewer()\n\t{\n\t\treturn ($this->role == self::ROLE_VIEWER);\n\t}", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin'])) {\n return true;\n } else {\n return false;\n }\n }", "public function check_access() {\n\n\t\tif (isset($this->current_entity_allowed)) {\n\t\t\treturn apply_filters('minerva_restrict_access_allowed', $this->current_entity_allowed);\n\t\t}\n\n\t\t$this->current_entity_allowed = MKB_Options::option('restrict_on') ?\n\t\t\t(bool) $this->check_entity_access($this->get_current_entity()) :\n\t\t\ttrue; // always allowed if restriction is off\n\n\t\treturn apply_filters('minerva_restrict_access_allowed', $this->current_entity_allowed);\n\t}", "function rordb_can_user_view_items(){\n return current_user_can('rordb_view_items');\n}", "public function shouldBeDisplayed()\n {\n return Auth::user()->can('browse', app(Property::class));\n }", "private function _validate_user() {\n\t\treturn (current_user_can(\"edit_posts\") && current_user_can(\"edit_pages\") && !empty($this->buttons));\n\t}", "public function view(User $user, User $model)\n {\n return $user->hasPermissionTo('benutzer-bearbeiten');\n }", "public function canView($member = null)\n {\n return (Security::getCurrentUser() !== null);\n }", "public function canView($member = null)\n {\n return (Security::getCurrentUser() !== null);\n }" ]
[ "0.74192244", "0.73926866", "0.73587644", "0.731265", "0.72216856", "0.72160876", "0.70797694", "0.70411503", "0.7034548", "0.6997131", "0.69464743", "0.68929696", "0.68870556", "0.6883539", "0.68338764", "0.68131477", "0.68131477", "0.6810962", "0.6809471", "0.68050355", "0.6778675", "0.6776682", "0.6769641", "0.6751002", "0.67459744", "0.6738256", "0.671839", "0.6715497", "0.6679256", "0.66769505", "0.6670623", "0.6669917", "0.6667145", "0.6667145", "0.66543984", "0.6650639", "0.664146", "0.6638868", "0.6627918", "0.6627863", "0.6613269", "0.6606334", "0.659827", "0.65866125", "0.658308", "0.65741354", "0.6573719", "0.65722454", "0.65690523", "0.6563277", "0.655688", "0.6552189", "0.6551965", "0.6547505", "0.65462095", "0.65334296", "0.65296036", "0.6526925", "0.65232396", "0.6521328", "0.6520021", "0.651323", "0.6511277", "0.6506836", "0.65053463", "0.6502409", "0.6501675", "0.65014297", "0.6500006", "0.6496442", "0.64907825", "0.6488437", "0.64826775", "0.64823425", "0.64817977", "0.6478919", "0.6477755", "0.6470501", "0.6464584", "0.6463797", "0.6461785", "0.6457558", "0.6451995", "0.6445705", "0.64404637", "0.64335376", "0.6431448", "0.6430977", "0.6428819", "0.6428819", "0.6428517", "0.6414907", "0.6411258", "0.6410245", "0.6409887", "0.64035416", "0.6402577", "0.6399193", "0.6394172", "0.6393471", "0.6393471" ]
0.0
-1
Determine whether the user can update the model.
public function update(User $autenticadoUser, User $user) { return $autenticadoUser->id === $user->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(): bool\n {\n return $this->isAllowed(self::UPDATE);\n }", "public function authorize()\n {\n if (auth()->user()->can('update')) {\n return true;\n }\n\t\t\n\t\treturn false;\n }", "function updatesAllowed() {\n\t\treturn $this->getupdatable() == 1 ? true : false;\n\t}", "protected function canUpdate()\n {\n return $this->hasStrategy(self::STRATEGY_UPDATE);\n }", "public function authorize()\n {\n return $this->user()->can('update', $this->user());\n }", "public function authorize()\n {\n return $this->user()->can('update_users');\n }", "public function authorize()\n {\n return $this->user()->canUpdateSecurity();\n }", "public function authorize()\n {\n $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorizePatch()\n {\n return $this->user()->can('acme.update');\n }", "public function authorize()\n {\n return $this->user()->can('update', $this->route('user'));\n }", "public function isUpdateRequired();", "static function canUpdate() {\n // as users can update their onw items\n return Session::haveRightsOr(self::$rightname, [\n CREATE,\n UPDATE,\n self::MANAGE_BG_EVENTS\n ]);\n }", "protected function _isAllowed()\r\n {\r\n return $this->_authorization->isAllowed('AAllen_PriceUpdate::update');\r\n }", "function check_user() {\n\treturn false; // update allowed\n\treturn true; //no update allowed\n}", "public function authorize()\n {\n $person = $this->findFromUrl('person');\n\n return $this->user()->can('update', $person);\n }", "protected function canUpdate(){\n $emptyComment = $this->getEmptyComment();\n\n return $this->canUserModify() &&\n ($this->isActive() || $this->isPending() ||\n ($this->isSuspended() && parent::can(PERM_SOCIALQUESTIONCOMMENT_UPDATE_STATUS, $emptyComment))) &&\n !$this->isDeleted() &&\n $this->isQuestionActive() &&\n $this->socialQuestion->SocialPermissions->isUnlockedOrUserCanChangeLockStatus() &&\n parent::can(PERM_SOCIALQUESTIONCOMMENT_UPDATE, $emptyComment);\n }", "public function authorize()\n {\n return $this->user()->can('update', \\App\\Models\\Member::withTrashed()->find($this->id));\n }", "public function authorize()\n {\n $user = \\Auth::user();\n \n if($user->can('update', \\App\\Product::class)){\n return true;\n }\n \n return false;\n }", "public function update($user, $model)\n {\n if( $user->hasPermissionTo('update ' . static::$key) ) {\n return true;\n }\n\n return false;\n }", "public function isUpdateSecurityRelevant() {}", "public function canBeUpdated()\n {\n return $this->isNotYetSubmitted();\n }", "public function update(User $user)\n {\n if ($user->can('update_permission') || $user->can('manage_permissions')) {\n return true;\n }\n\n return false;\n }", "public function authorize(): bool\n {\n return Gate::allows('update', $this->product);\n }", "public function authorize()\n {\n $article = Article::find($this->route('article'));\n return $article && $this->user()->can('update', $article);\n }", "public function update(User $user, User $model): bool\n {\n return $user->isRole('admin') || (\n $user->is($model) &&\n $user->tokenCan('users:update')\n );\n }", "public function canEdit()\n {\n if (!$this->site) {\n return false;\n }\n\n if (!$this->current_user) {\n return false;\n }\n\n if ($this->site->userIsVerified($this->current_user)) {\n return true;\n }\n\n return false;\n }", "public function authorize() {\n\t\t$this->competitor = $this->route('competitor');\n\t\treturn $this->user()->can('update', $this->competitor);\n\t}", "public function authorize()\n {\n // who can update ??\n // 1- admin\n if (auth()->user()->isAdmin()) {\n return true;\n }\n\n // 2- creator\n if ($this->offerItem->created_by == auth()->user()->id) {\n return true;\n }\n\n return false;\n }", "private function validateUpdate() {\n\t\t$this->context->checkPermission(\\Scrivo\\AccessController::WRITE_ACCESS);\n\t}", "public function canEdit()\n {\n return $this->is_locked == 0;\n }", "public function authorize() {\n\t\t$this->workplace = $this->route('workplace');\n\t\t$this->workFunction = $this->route('workFunction');\n\t\treturn $this->user()->can('update', $this->workplace) && $this->user()->can('update', $this->workFunction);\n\t}", "protected function canUpdateStatus() {\n return $this->canUpdate() &&\n parent::can(PERM_SOCIALQUESTIONCOMMENT_UPDATE_STATUS, $this->getEmptyComment());\n }", "protected function modelIsWritable() {\n\t\t// Check if model has method dbUpdate\n\t\t$model = $this->model;\n\t\treturn method_exists($model, \"dbUpdate\");\n\t}", "function canUpdateUser($userid){\r\n\t\t$permissions = new dkpUserPermissions();\r\n\t\t$permissions->loadUserPermissions($userid);\r\n\r\n\t\t//make sure we are trying to edit a user who really belongs to our guild\r\n\t\tif($permissions->guildid != $this->guild->id || !$this->HasPermission(\"AccountSecondaryUsers\"))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public function update(Admin $admin, User $model)\n {\n return $admin->hasAccess(['users.update']);\n\n }", "public function update(Request $request, object $model): bool;", "public function authorize(): bool\n {\n // only allow updates if the user is logged in\n return Auth::check();\n }", "public function authorize()\n {\n $user = Auth::user();\n\n if(!$user->can('update-role')) {\n return false;\n }\n\n return true;\n }", "abstract public function isUpdatableByUser(User $user);", "public function authorize(): bool\n {\n return $this->user()->can('update_contact');\n }", "public function canEdit()\n {\n if(!Auth::check())\n {\n return false;\n }\n //If the user is active/logged in, return true so that we can display user's specific objects\n if(Auth::user()->id===$this->user_id)\n {\n return true;\n }\n //By default\n return false;\n }", "public function update(User $user)\n {\n return $user->can('update_customer');\n }", "public function update(User $current, User $toUpdate = null)\n {\n if ($current->hasPermission('users.update')) return true;\n\n //no permissions and not trying to update his own model\n if ( ! $toUpdate || ($current->id !== $toUpdate->id)) return false;\n\n //user should not be able to change his own permissions or roles\n if ($this->request->get('permissions') || $this->request->get('roles')) {\n return false;\n }\n\n return true;\n }", "public function getUserCanEditAttribute()\n {\n return AccessControl::check($this, 'edit_post', false);\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize(): bool\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return \\Auth::check();\n }", "public function authorize()\n {\n // only allow updates if the user is logged in\n return \\Auth::check();\n }", "function allowUpdate($allow){\n\t\t$this->canUpdate=$allow;\n\t}", "public function update(User $user, User $model)\n {\n $userAbility =\n auth()->user()->can(['user-update','user-manage'])&&\n auth()->user()->cannot(['user-manageBan']);\n\n return $userAbility;\n }", "public function update(User $user): bool\n {\n return $user->can('Update Role');\n }", "public function update(Authenticatable $user, Model $model)\n {\n return !!$user;\n }", "public function update(User $user)\n {\n\t\treturn in_array('update', $user->permissibles('vip'));\n }", "public function update(User $user, Llamado $model)\n {\n return $user->hasPermissionTo('update llamados');\n }", "public function authorize()\n {\n return auth()->user()->can('update', [Category::class, request('category')]);\n }", "public function authorize()\n {\n return $this->user()->hasPermission('update-title');\n }", "public function can_edit() {\n return true;\n }", "public function canEdit()\n {\n return true;\n }", "function canEdit() {\r\n\t\tif($this->owner->ID == Member::currentUserID())\r\n\t\t\treturn true;\r\n\r\n\t\t$member = Member::currentUser();\r\n\t\tif($member)\r\n\t\t\treturn $member->isAdmin();\r\n\r\n\t\treturn false;\r\n\t}", "public function update(User $user, User $model)\n {\n return $user->isOwnerOrAdmin($model->id);\n }", "public function isEditable()\n\t{\n\t\tif(Auth::check())\n\t\t{\n\t\t\tif(Auth::user()->id == $this->author_id)\n\t\t\t{\n\t\t\t\tif ($this->created_at->diffInMinutes(Carbon::now()) < 30)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(Auth::user()->hasRole(['moderator', 'administrator', 'super user'])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public function isUpdatable(): bool\n {\n return true;\n }", "public function update($model) :bool;", "public function isUpdateResource();", "public function update(User $user, User $model)\n {\n if ($model->hasRole(AuthServiceProvider::SUPER)) return false;\n if ($user->hasRole(AuthServiceProvider::ADMIN)) return true;\n if ($user->hasPermissionTo('benutzer-bearbeiten')) {\n foreach ($model->homeCities as $city) {\n if ($city->administeredBy($user)) return true;\n }\n }\n return false;\n }", "protected function canEdit(Model $model)\n {\n return true;\n }", "function canUpdateItem() {\n\n $ticket = new Ticket();\n if (!$ticket->getFromDB($this->fields['tickets_id'])) {\n return false;\n }\n\n // you can't change if your answer > 12h\n if (!is_null($this->fields['date_answered'])\n && ((strtotime(\"now\") - strtotime($this->fields['date_answered'])) > (12*HOUR_TIMESTAMP))) {\n return false;\n }\n\n if ($ticket->isUser(CommonITILActor::REQUESTER, Session::getLoginUserID())\n || ($ticket->fields[\"users_id_recipient\"] === Session::getLoginUserID() && Session::haveRight('ticket', Ticket::SURVEY))\n || (isset($_SESSION[\"glpigroups\"])\n && $ticket->haveAGroup(CommonITILActor::REQUESTER, $_SESSION[\"glpigroups\"]))) {\n return true;\n }\n return false;\n }", "public function update(User $user, ApplicationForm $applicationForm)\n {\n return $user->can('update-application-forms');\n }", "public function canUpdate($identifier = null);", "public function authorize()\n {\n $authorized = auth()->check();\n if ($authorized) {\n $this->rules = $this->getRulesForAction(CrudAction::update());\n }\n return $authorized;\n }", "private function _update(){\n\t\tif($this->dao->update($this->user->getID(), $this->ident, $this->datahandler)){\n\t\t\t$this->read();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function canEdit() {\n\t\treturn $this->_perms->checkModuleItem ( $this->_tbl_module, 'edit' );\n\t}", "public function isUpdateRequest()\n {\n return $this->isMethod('put') || $this->isMethod('patch');\n }", "protected function onUpdating()\n {\n return $this->isDataOnUpdateValid();\n }", "protected function canEdit() {}", "public function authorize()\n {\n return auth()->user()->can('update online assessment');\n }", "public function update(?User $user, User $model)\n {\n return true;\n }", "public function update(User $user)\n {\n return $user->hasPermissionTo('experience_edit');\n }", "public function update(User $user, $model)\n {\n return false;\n }", "public function getCanModifyAttribute()\n {\n // Checks if there are any shared user permissions for this user, if not returnes false\n // If they do have permissions, it will return there modify attribute\n return (count($this->auth_user_share)) ? (bool)($this->auth_user_share[0]->pivot->modify) : false;\n }", "public function can_edit() {\n\t\t$can_edit = false;\n\t\t\n\t\t// is the user the owner of the package and the package is in edit mode?\n\t\tif ( ($this->get_user_id() == get_current_user_id()) && ($this->status == 1) ) {\n\t\t\t$can_edit = true;\n\t\t} else {\n\t\t\t// is the user an admin (has the right to edit all packages)\n\t\t\tif ( current_user_can( 'pvm_edit_other_packages' ) ) {\n\t\t\t\t$can_edit = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $can_edit;\n\t}", "public function update(User $user, Sale $model)\n {\n return $user->hasPermissionTo('update sales');\n }", "function update_access_allowed() {\n global $update_free_access, $user;\n\n // Allow the global variable in settings.php to override the access check.\n if (!empty($update_free_access)) {\n return TRUE;\n }\n // Calls to user_access() might fail during the Drupal 6 to 7 update process,\n // so we fall back on requiring that the user be logged in as user #1.\n try {\n require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'user') . '/user.module';\n return user_access('administer software updates');\n }\n catch (Exception $e) {\n return ($user->uid == 1);\n }\n}", "function update_access_allowed() {\n global $update_free_access, $user;\n\n // Allow the global variable in settings.php to override the access check.\n if (!empty($update_free_access)) {\n return TRUE;\n }\n // Calls to user_access() might fail during the Drupal 6 to 7 update process,\n // so we fall back on requiring that the user be logged in as user #1.\n try {\n require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'user') . '/user.module';\n return user_access('administer software updates');\n }\n catch (Exception $e) {\n return ($user->uid == 1);\n }\n}", "public function update(User $user)\n {\n if ($this->role($user)){\n return $user->hasDirectPermission($this->permission_list['update']);\n }\n }", "public function executeUpdate(): bool\n {\n $this->updateDaysallowedField();\n return true;\n }", "public function updatePolicy(User $user)\n {\n return $user->may(static::PERMISSION_UPDATE);\n }", "public function update(User $user)\n {\n if($user->can('carts-update') || $user->can('cart-update')) {\n return true;\n }\n return false;\n }", "protected function check_update_permission($post)\n {\n }", "protected function check_update_permission($post)\n {\n }", "public function authorize()\n {\n if ($this->route()->getName() === 'home.update') {\n $post = Post::findOrFail($this->id);\n return Auth::check() && Auth::user()->isAdminOrOwner($post->user_id);\n }\n return Auth::check();\n }", "public function user_can_edit() {\n if (has_capability('mod/swipe:manage', $this->context)) {\n return true;\n }\n }", "function isSaveAllowed() {\n\t\t\treturn $this->isAllowedAction( 'save' );\n\t\t}" ]
[ "0.8117686", "0.78116655", "0.7761959", "0.77571154", "0.77429295", "0.76466244", "0.76086044", "0.75788623", "0.7541773", "0.7502781", "0.7474463", "0.7416289", "0.73970205", "0.73549694", "0.73455596", "0.7310464", "0.7290454", "0.7230238", "0.72002774", "0.7172181", "0.71515703", "0.71331334", "0.712377", "0.7093508", "0.7091866", "0.70637685", "0.70530015", "0.70512867", "0.7045235", "0.7008133", "0.7005514", "0.6975709", "0.69386715", "0.6936283", "0.6903529", "0.688628", "0.6854441", "0.68471193", "0.68431574", "0.68403715", "0.68330264", "0.6813423", "0.6795731", "0.678779", "0.6764631", "0.6764631", "0.6764631", "0.6764631", "0.6764631", "0.6764631", "0.6764631", "0.6764631", "0.6764631", "0.6736867", "0.6724745", "0.6724745", "0.6693002", "0.6668508", "0.6668091", "0.66679764", "0.6652742", "0.6651318", "0.66473603", "0.6639688", "0.66232395", "0.66185147", "0.6616985", "0.6615168", "0.6611696", "0.6598351", "0.6596529", "0.65796363", "0.65794486", "0.6575198", "0.6573263", "0.65379757", "0.6536611", "0.65260893", "0.65201205", "0.65116304", "0.6509539", "0.6508138", "0.65078133", "0.6502577", "0.64977723", "0.6477724", "0.64572835", "0.64517725", "0.6450891", "0.6449491", "0.64457303", "0.64457303", "0.6440174", "0.643448", "0.6418603", "0.64129496", "0.64114785", "0.64114785", "0.64090794", "0.64000314", "0.6397722" ]
0.0
-1
Determine whether the user can delete the model.
public function delete(User $autenticadoUser, User $user) { /*obtenemos el token, obtenemos el cliente, personal access cliente es verdadero cuando ese cliente puede crear token personales*/ return $autenticadoUser->id === $user->id && $autenticadoUser->token()->client->personal_access_client; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canDelete()\n {\n $exist = $this->getModelObj('permission')->where(['resource_code' => $this->code, 'app' => $this->app])->first();\n if ($exist) {\n return false;\n }\n return true;\n }", "public function can_delete () {\r\n\r\n return $this->permissions[\"D\"] ? true : false;\r\n\r\n }", "public function canDelete()\n {\n return $this->canGet();\n }", "public function delete(): bool\n {\n return $this->isAllowed(self::DELETE);\n }", "function canDelete() {\n return true;\n }", "public function canDelete()\n {\n return 1;\n }", "public function canDelete()\n {\n return Auth::user() && ( $this->sender_id === Auth::id() || $this->recipient_id === Auth::id() );\n }", "public function canDelete()\n {\n return in_array('delete', $this->actions);\n }", "public function authorize()\n {\n return $this->can('delete');\n }", "function canDelete($user) {\n if($this->getId() == $user->getId()) {\n return false; // user cannot delete himself\n } // if\n\n if($this->isAdministrator() && !$user->isAdministrator()) {\n return false; // only administrators can delete administrators\n } // if\n\n return $user->isPeopleManager();\n }", "function canDelete(User $user) {\n return $user->canManageTrash();\n }", "public function isDeleteGranted($entity): bool;", "private function canDelete()\n {\n //Checks roles allowed\n $roles = array(\n 'ROLE_MANAGER',\n 'ROLE_ADMIN',\n );\n\n foreach ($roles as $role) {\n if ($this->security->isGranted($role)) {\n return true;\n }\n }\n\n return false;\n }", "protected function canDelete($record) { return false; }", "public function canDelete()\n {\n $user = $this->getUser();\n\n if ($user->getData('role') == 'Admin' && $this->getData('status') != Service\\BalanceWithdrawals::STATUS_PENDING) {\n return true;\n }\n\n return false;\n }", "function CanDelete()\n\t{\treturn !count($this->subpages) && $this->CanAdminUserDelete();\n\t}", "public function delete($user, $model)\n {\n if( $user->hasPermissionTo('delete ' . static::$key) ) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n $represent = $this->getRepresent();\n\n return $represent->can('delete')\n && $represent->exists($this->route('id'));\n }", "public function getCanDeleteAttribute()\n {\n // Are you the owner if the note?\n return Auth::id() == $this->user_id;\n }", "protected function canDelete() {\n return $this->canUpdate() &&\n parent::can(PERM_SOCIALQUESTIONCOMMENT_UPDATE_STATUS_DELETE, $this->getEmptyComment());\n }", "public function delete(User $user, User $model): bool\n {\n return $user->isRole('admin') || (\n $user->is($model) &&\n $user->tokenCan('users:delete')\n );\n }", "public function allowDeletion()\n {\n return $this->allowDeletion;\n }", "function canDelete(User $user) {\n return $user->isFinancialManager();\n }", "protected function canDelete($record)\n {\n return true;\n }", "public function authorize(): bool\n {\n return Gate::allows('admin.genero.delete', $this->genero);\n }", "function canDelete($user) {\n if($this->isOwner() || $user->getCompanyId() == $this->getId()) {\n return false; // Owner company cannot be deleted. Also, user cannot delete company he belongs to\n } // if\n return $user->isPeopleManager();\n }", "public function authorize()\n {\n $this->translation = Translation::findByUuidOrFail($this->route('id'));\n\n return $this->user()->can('delete', [Translation::class, $this->translation->node->project]);\n }", "protected function hasActiveUserDeletePermissionForThisUser()\n {\n if (true === $this->bAllowEditByAll) {\n return true;\n }\n if (true === $this->IsOwner()) {\n return false;\n }\n /** @var SecurityHelperAccess $securityHelper */\n $securityHelper = ServiceLocator::get(SecurityHelperAccess::class);\n\n if (false === $securityHelper->isGranted(CmsPermissionAttributeConstants::TABLE_EDITOR_DELETE, $this->oTableConf->fieldName)) {\n return false;\n }\n\n if (true === $securityHelper->isGranted(CmsUserRoleConstants::CMS_ADMIN)) {\n return true;\n }\n\n if ($this->sId === $securityHelper->getUser()?->getId()) {\n // you cannot delete yourself.\n return false;\n }\n\n $oTargetUser = TdbCmsUser::GetNewInstance($this->sId);\n\n // Also, the user may only delete users that have at least one portal in common.\n $userPortals = $securityHelper->getUser()?->getPortals();\n if (null === $userPortals) {\n $userPortals = [];\n }\n $allowedPortals = array_keys($userPortals);\n $portalsOfTargetUser = $oTargetUser->GetFieldCmsPortalIdList();\n\n return 0 === \\count($portalsOfTargetUser) ||\n \\count(array_intersect($allowedPortals, $portalsOfTargetUser)) > 0;\n }", "public function delete(User $user)\n {\n if ($user->can('delete_permission') || $user->can('manage_permissions')) {\n return true;\n }\n\n return false;\n }", "public function deleting(User $model)\n {\n return ($model->id !== \\Auth::user()->id);\n }", "public function isDeleteable()\n {\n return $this->_isDeleteable;\n }", "public function isDelete();", "public function canDelete()\n {\n if ( !SimpleForumTools::checkAccess($this->forumNode(), 'topic', 'remove') )\n {\n \treturn false;\n }\n \t\n return true;\n }", "function CanDelete()\n\t{\t\n\t\t\n\t\tif ($this->id && !$this->GetLocations() && $this->CanAdminUserDelete())\n\t\t{\n\t\t\t// courses\n\t\t\t$sql = \"SELECT cid FROM courses WHERE city=\" . (int)$this->id;\n\t\t\tif ($result = $this->db->Query($sql))\n\t\t\t{\tif ($this->db->NumRows($result))\n\t\t\t\t{\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public function delete(Admin $admin, User $model)\n {\n return $admin->hasAccess(['users.delete']);\n\n }", "public function authorizedToDelete(Request $request)\n {\n return false;\n }", "public function authorize()\n {\n $this->reusablePayment = FetchReusablePayment::run([\n 'encoded_id' => $this->encoded_id,\n ]);\n\n return $this->user()->can('delete', $this->reusablePayment);\n }", "protected function canDelete($record)\n\t{\n\t\tif(!empty($record->id))\n\t\t{\n\t\t return Factory::getUser()->authorise(\n\t\t\t\t\"core.delete\",\n\t\t\t\t\"com_dinning_philosophers.dinning_philosophers.\".$record->id\n\t\t\t);\n\t\t}\n\t}", "public function delete()\n {\n // Check P_DELETE\n if (!wcmSession::getInstance()->isAllowed($this, wcmPermission::P_DELETE))\n {\n $this->lastErrorMsg = _INSUFFICIENT_PRIVILEGES;\n return false;\n }\n\n if (!parent::delete())\n return false;\n \n // Erase permissions\n $project = wcmProject::getInstance();\n $sql = 'DELETE FROM #__permission WHERE target=?';\n $params = array($this->getPermissionTarget());\n $project->database->executeStatement($sql, $params);\n \n return true;\n\n }", "public function forceDelete(User $user, User $model): bool\n {\n return $user->isRole('admin') || (\n $user->is($model) &&\n $user->tokenCan('users:forceDelete')\n );\n }", "public function isDeleteResource();", "protected function canDelete($record)\n\t{\n\t\tif(!empty($record->id))\n\t\t{\n\t\t\treturn Factory::getUser()->authorise(\"core.delete\", \"com_bookingmanager.customer.\" . $record->id);\n\t\t}\n\t}", "public function delete(User $user, User $model)\n {\n $userAbility =\n auth()->user()->can(['user-delete','user-manage'])&&\n auth()->user()->cannot(['user-manageBan']);\n\n return $userAbility;\n }", "abstract function allowDeleteAction();", "public function forceDelete($user, $model)\n {\n if( $user->hasPermissionTo('forceDelete ' . static::$key) ) {\n return true;\n }\n\n return false;\n }", "public function delete($model)\n\t{\n\t\treturn ($model->delete()) ? true : false;\n\t}", "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Training_Vendor::main_index_delete');\n }", "function permissions_delete()\n{\n // Deletion not allowed\n return false;\n}", "public function canDelete($item)\n {\n return false;\n }", "public function canDelete($item)\n {\n return false;\n }", "public function delete(): bool\n {\n return $this->actionHandler->delete();\n }", "public function testAllowDelete()\n {\n $this->logOut();\n $deleteFalse = LogEntry::create()->canDelete(null);\n $this->assertFalse($deleteFalse);\n\n $this->logInWithPermission('ADMIN');\n $deleteTrue = LogEntry::create()->canDelete();\n $this->assertTrue($deleteTrue);\n }", "public function delete(User $user)\n {\n return $user->can('delete_customer');\n }", "public function isDelete(): bool {}", "public function canDelete()\n\t{\n\t\tif ( $this->deleteOrMoveQueued() === TRUE )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\tif( static::restrictionCheck( 'delete' ) )\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\tif( static::$ownerTypes['member'] !== NULL )\n\t\t{\n\t\t\t$column\t= static::$ownerTypes['member'];\n\n\t\t\tif( $this->$column == \\IPS\\Member::loggedIn()->member_id )\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif( static::$ownerTypes['group'] !== NULL )\n\t\t{\n\t\t\t$column\t= static::$ownerTypes['group']['ids'];\n\n\t\t\t$value = $this->$column;\n\t\t\tif( count( array_intersect( explode( \",\", $value ), \\IPS\\Member::loggedIn()->groups ) ) )\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\n\t\treturn FALSE;\n\t}", "public function getCanDeleteProperty()\n {\n return $this->deleteConfirm === $this->staff->email;\n }", "public function authorize()\n {\n if (env('APP_ENV') == 'testing') {\n return true;\n }\n\n return tenant(auth()->user()->id)->hasPermissionTo('delete fixed asset');\n }", "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Webiators_DeleteOrdersFromAdmin::delete_order');\n }", "public function canDelete()\n {\n if ( null === $this->_canDelete )\n {\n $model = new Application_Model_AudioJobMapper();\n $results = $model->fetchAll( 'service_id = ' . $this->id );\n $this->_canDelete = !(bool) count( $results );\n }\n return $this->_canDelete;\n }", "public function isDeletable(\\Illuminate\\Database\\Eloquent\\Model $model)\n {\n// else return false;\n return true;\n }", "public function delete(User $user): bool\n {\n return $user->can('Delete Role');\n }", "public function canDelete($identifier = null);", "public function isDelete() {\n if($this->method === 'DELETE') {\n return true;\n } else {\n return false;\n }\n }", "public function delete(User $user)\n {\n return $user->role->can_delete_post == 1;\n }", "public function authorize()\n {\n $name = $this->relatedResource()->name();\n $model = $this->resource()->getModel();\n $relatedModel = $this->relationship()->getRelated();\n\n return parent::authorize()\n && $this->authorizeIfPolicyExists(\"detach$name\", $model, $relatedModel);\n }", "protected function canDelete($record)\n\t{\n\t\tif (!empty($record->id))\n\t\t{\n\t\t\tif ($record->state != -2)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t$user = JFactory::getUser();\n\t\t\t\n\t\t\treturn $user->authorise('core.delete', 'com_cooltouraman.course.' . (int) $record->id);\n\t\t}\n\n\t\treturn false;\n\t}", "public function canDelete($member = null) {\n\t\treturn ($this->Code == 'DEFAULT') ? false : Permission::check('Product_CANCRUD');\n\t}", "public function delete(Authenticatable $user, Model $model)\n {\n return $user->id === $model->user_id;\n }", "protected function canDelete()\n {\n if (!Validate::isLoadedObject($this)) {\n return true;\n }\n\n /** @var Gamifications $module */\n $module = Module::getInstanceByName('gamifications');\n $em = $module->getEntityManager();\n\n /** @var GamificationsRewardRepository $rewardRepository */\n $rewardRepository = $em->getRepository(__CLASS__);\n $isInUse = $rewardRepository->isRewardInUse($this->id);\n\n return !$isInUse;\n }", "public function delete() {\n $stmt = $this->pro->prepare('delete from user where id = :id');\n $stmt->bindValue(':id', $this->id);\n return $stmt->execute() == 1;\n }", "public function delete(User $user, $model)\n {\n return $user->hasPermission('delete_settings');\n }", "protected function CanDelete(Site $site)\n {\n return self::Guard()->Allow(BackendAction::Delete(), $site);\n }", "public function beforeDelete() {\n // Console doesn't have Yii::$app->user, so we skip it for console\n if (php_sapi_name() != 'cli') {\n // Don't let delete yourself\n if (Yii::$app->user->id == $this->id) {\n return false;\n }\n\n // Don't let non-superadmin delete superadmin\n if (!Yii::$app->user->isSuperadmin AND $this->superadmin == 1) {\n return false;\n }\n }\n\n return parent::beforeDelete();\n }", "public function delete(User $user)\n {\n return $user->hasPermission('user-delete');\n }", "public function authorize(): bool\n {\n if (Auth::user()->hasPermissionTo('delete thread')) {\n return true;\n }\n\n $thread = $this->run(GetThreadJob::class, [\n 'thread_id' => $this->request->all()['thread_id']\n ]);\n\n if ($thread != null && $thread->user_id === Auth::user()->id && Auth::user()->hasPermissionTo('delete own thread')) {\n return true;\n }\n\n return false;\n }", "public function isDelete() {\n return $this->method == 'DELETE';\n }", "public function forceDelete(Admin $admin, User $model)\n {\n return $admin->hasAccess(['users.forceDelete']);\n\n }", "public function delete(Model $model): ?bool;", "public function isDelete() {\n return $this->method == self::METHOD_DELETE;\n }", "public function deleteByModel(Model $model): bool;", "public function canDelete($member = null) {\n\t\treturn Permission::check('CMS_ACCESS_CMSMain');\n\t}", "protected function canDelete($record)\n\t{\n\t\t$user = JFactory::getUser();\n\n\t\tif (JFactory::getApplication()->isAdmin())\n\t\t{\n\t\t\treturn $user->authorise('core.delete', 'com_solidres.tariff.'.(int) $record->id);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tableRoomType = $this->getTable('RoomType');\n\t\t\t$tableRoomType->load($record->room_type_id);\n\t\t\treturn SRUtilities::isAssetPartner($user->get('id'), $tableRoomType->reservation_asset_id);\n\t\t}\n\t}", "public function canDELETE($collection = null) {\r\n $rights = $this->getRights($collection, 'delete');\r\n return is_bool($rights) ? $rights : true;\r\n }", "public function isDelete()\n {\n return $this->method === self::METHOD_DELETE;\n }", "public function isDelete()\n\t{\n\t\treturn $this->httpMethod() == self::MethodDelete;\n\t}", "public function isDelete(): bool\n {\n return $this->getMethod() === self::METHOD_DELETE;\n }", "protected function _can_delete($delete_id) {\r\n return true;\r\n }", "public function isDelete()\n {\n return ($this->getMethod() == 'DELETE') ? true : false;\n }", "protected function canDelete($record)\n\t{\n\t\t$user = JFactory::getUser();\n\n\t\tif (JFactory::getApplication()->isAdmin())\n\t\t{\n\t\t\treturn $user->authorise('core.delete', 'com_solidres.reservationasset.'.(int) $record->id);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn SRUtilities::isAssetPartner($user->get('id'), $record->id);\n\t\t}\n\t}", "abstract public function shouldIDelete();", "protected function isDeleting()\n {\n return $this->option('delete') == 'true';\n }", "public function delete(User $user, Llamado $model)\n {\n return $user->hasPermissionTo('delete llamados');\n }", "function userCanDeleteUser( $sessionID, $username ) {\r\n\t\treturn $this->getAccessLevel() > 9;\r\n\t}", "public function isDelete()\n {\n return $this->getMethod() === 'DELETE';\n }", "public function canDelete($userId = \"\")\n {\n\n if ($userId == \"\")\n $userId = Yii::$app->user->id;\n\n if ($this->user_id == $userId)\n return true;\n\n if (Yii::$app->user->isAdmin()) {\n return true;\n }\n\n if ($this->container instanceof Space && $this->container->isAdmin($userId)) {\n return true;\n }\n\n return false;\n }", "public function delete(CharacterModel $characterModel){\n return ($this->valid() && $this->hasAccess($characterModel)) ? $this->erase() : false;\n }", "public function deleted(User $model)\n {\n // If the User is deleted, delete your image\n \\File::delete(base_path($model->img_url));\n return true;\n }", "function canDelete(&$msg, $oid = NULL) {\n\t\t//$tables[] = array( 'label' => 'Users', 'name' => 'users', 'idfield' => 'user_id', 'joinfield' => 'user_company' );\n\t\t//return CDpObject::canDelete( $msg, $oid, $tables );\n\t\treturn true;\n\t}", "public function forceDelete(User $user, User $model)\n {\n $userAbility =\n auth()->user()->can(['user-edit','user-forceDelete'])&&\n auth()->user()->cannot(['user-manageBan']);\n\n return $userAbility;\n }", "function canDelete($member = NULL)\n\t{\n\t\treturn true;\n\t}", "public function delete(User $user, Sale $model)\n {\n return $user->hasPermissionTo('delete sales');\n }" ]
[ "0.78115165", "0.7799225", "0.77931285", "0.7774248", "0.7762861", "0.772955", "0.7658145", "0.76024574", "0.75723165", "0.7447689", "0.741027", "0.7360865", "0.7339668", "0.73045045", "0.7292303", "0.7275476", "0.72221464", "0.7194365", "0.7111255", "0.710949", "0.70957327", "0.70905155", "0.70816475", "0.7057204", "0.70228994", "0.6998384", "0.6988895", "0.6960694", "0.69604415", "0.69319093", "0.69051796", "0.68898606", "0.68765044", "0.6872876", "0.68701386", "0.686875", "0.68448377", "0.6810136", "0.6808629", "0.6756576", "0.67509776", "0.6747834", "0.6743452", "0.6743086", "0.6714124", "0.6704544", "0.6704343", "0.6690488", "0.6685831", "0.6685831", "0.66777956", "0.6669061", "0.66610193", "0.6652245", "0.6636485", "0.66340065", "0.66326934", "0.66306835", "0.66222423", "0.6606447", "0.6600937", "0.66007864", "0.6582779", "0.6582121", "0.6577704", "0.65619755", "0.65582716", "0.65506357", "0.6547446", "0.65449697", "0.65422934", "0.65251994", "0.65138054", "0.6509449", "0.65044236", "0.649814", "0.6491175", "0.64782643", "0.6475672", "0.6469378", "0.6464958", "0.64570254", "0.64550143", "0.6448656", "0.6440046", "0.6438612", "0.64293796", "0.6427633", "0.64271456", "0.6423097", "0.64222425", "0.6421015", "0.6412136", "0.64061886", "0.6398719", "0.6398478", "0.6397069", "0.6377073", "0.63767767", "0.63748664", "0.6368726" ]
0.0
-1
Test creation with only the mandatory values.
public function testCreate() { $token = new JavascriptWebToken('CREDENTIALS', 'PROVIDER'); $this->assertEquals('CREDENTIALS', $token->getCredentials()); $this->assertEquals('PROVIDER', $token->getProviderKey()); $this->assertEquals('anon.', $token->getUsername()); $this->assertEmpty($token->getRoles()); $this->assertFalse($token->isAuthenticated()); $token->eraseCredentials(); $this->assertNull($token->getCredentials()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateWithOnlyRequiredFields(): void\n {\n $this->doTestCreate('createWithOnlyRequiredFields.json');\n }", "public function testCreateWithoutRequiredFields(): void\n {\n $requiredFields = static::getRequiredFields();\n\n if(count($requiredFields) > 0) {\n foreach ($requiredFields as $key => $value) {\n\n if(is_int($key)) {\n $requiredField = $value;\n $errorMessage = 'core.error.'.static::getDataClassShortName().\".{$requiredField}.required\";\n } else {\n $requiredField = $key;\n $errorMessage = $value;\n }\n\n $data = $this->getDataSent('createWithAllFields.json', 'Create');\n unset($data[$requiredField]);\n\n $apiOutput = self::httpPost(['name' => static::getCreateRouteName()], $data);\n\n $result = $apiOutput->getData();\n static::assertEquals(Response::HTTP_UNPROCESSABLE_ENTITY, $apiOutput->getStatusCode());\n static::assertEquals(['errors' => [$errorMessage]], $result);\n }\n } else {\n self::markTestSkipped('Cannot be tested : no required fields defined, please set static var requiredFields with required fields if necessary.');\n }\n }", "public function testCreateWithEmptyParams()\n {\n $client = factory(Client::class)->create();\n $token = factory(Token::class)->create([\n 'client_id' => $client->id,\n ]);\n\n $this->post(\"/api/{$this->apiVersion}/{$this->endpoint}/\", [],\n $this->getHeaders($token->token))\n ->seeJson([\n 'first_name' => ['The first name field is required.'],\n 'last_name' => ['The last name field is required.'],\n 'email' => ['The email field is required.'],\n ]);\n }", "public function test_calledCreateMethod_withValidParameters_argumentsHasBeenSetted()\n {\n $dataContainerMock = $this->getDataConteinerMock();\n\n $sut = DataWrapper::create(\n 200,\n \"Ok\",\n \"copyright\",\n \"attribution text\",\n \"attribution HTML\",\n $dataContainerMock,\n \"etag\"\n );\n\n $this->assertEquals(200, $sut->getCode());\n $this->assertEquals(\"Ok\", $sut->getStatus());\n $this->assertEquals(\"copyright\", $sut->getCopyright());\n $this->assertEquals(\"attribution text\", $sut->getAttributionText());\n $this->assertEquals(\"attribution HTML\", $sut->getAttributionHTML());\n $this->assertEquals(\"etag\", $sut->getEtag());\n }", "public function testQuarantineCreate()\n {\n\n }", "public function testCardCreationFieldsAreRequired()\n {\n $user = factory('App\\User')->create();\n\n $response = $this->actingAs($user, 'api')\n ->withHeader('Accept', 'application/json')\n ->post(route('api.cards.store'), []);\n\n $response->assertJsonValidationErrors(['name', 'currency', 'type']);\n }", "public function testConstructor()\n\t{\n\t\t$modes = [false,\n\t\t true];\n\t\t$types = [\n\t\t\tBuilder::TYPE_COMPANY,\n\t\t\tBuilder::TYPE_COMPANY,\n\t\t];\n\t\tforeach ($modes as $mode) {\n\t\t\tforeach ($types as $type) {\n\t\t\t\t$builder = new Builder($type, $mode);\n\t\t\t\t$this->assertEquals($type, $this->getProtectedMember($builder, 'recipient_type'));\n\t\t\t\t$this->assertEquals($mode, $this->getProtectedMember($builder, 'strict_mode'));\n\t\t\t}\n\t\t}\n\t}", "public function testCreate()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function testCreateWithAllFields(): void\n {\n $this->doTestCreate('createWithAllFields.json');\n }", "public function testRequiredKeys()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Cannot create a SmartwaiverSignatures with missing field: waiverId');\n\n $signatures = SmartwaiverTypes::createSignatures();\n unset($signatures['waiverId']);\n\n $swSignatures = new SmartwaiverSignatures($signatures);\n }", "public function testCreateSuperfund()\n {\n }", "public function test_create()\n\t{\n\t\tlist($id, $affected) = $this->model->create(array(\n\t\t\t'user_id' => '1',\n\t\t\t'role_id' => '1'\n\t\t));\n\n\t\t$this->assertSame(0, $id); // No primary key...\n\t\t$this->assertSame(1, $affected);\n\t}", "public function testCreateClientWithEmptyFields() {\n\n $this->withoutMiddleware();\n\n // Generate user\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->post('/clients/create')\n ->seeJson(['success' => false]);\n\n }", "abstract public function testConstructorAndProperties(): void;", "function _civicrm_api3_custom_value_create_spec(&$params) {\n $params['entity_id']['api.required'] = 1;\n}", "function testCreate() {\n # fails due to not verified...\n $this->aRequest['email'] = '[email protected]';\n $this->assertFalse($this->oObject->create());\n\n # but verified users works\n $this->aRequest['email'] = '[email protected]';\n $this->assertTrue($this->oObject->create());\n $this->oObject->destroy(session_id());\n }", "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['locked']);\r\n unset($data['ref_artifact_id']);\r\n unset($data['deliverable_id']);\r\n unset($data['content']);\r\n unset($data['stamp']);\r\n $artifact = $this->Solids->newEntity($data);\r\n $this->assertEmpty($artifact->errors());\r\n }", "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['name']);\r\n unset($data['locked']);\r\n unset($data['ref_artifact_id']);\r\n unset($data['status']);\r\n $artifact = $this->Artifacts->newEntity($data);\r\n $this->assertEmpty($artifact->errors());\r\n }", "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['event_id']);\r\n unset($data['gmt_created']);\r\n unset($data['message']);\r\n $oddit = $this->Oddits->newEntity($data);\r\n $this->assertEmpty($oddit->errors());\r\n }", "public function testExample()\n {\n\n $attributes = [\n 'name' => $this->faker->name,\n 'email' => $this->faker->email,\n 'password' => $this->faker->password,\n ];\n\n\n\n $this->assertTrue(true);\n }", "public function testIfCreationIsCorrect(){ \n \n $this->assertEquals(-1, $this->status->getStatusId()); \n $this->assertEquals('default_status', $this->status->getStatusName());\n \n }", "public function an_user_makes_a_successfull_data_creation()\n {\n $data = factory(Data::class)->create();\n $this->assertDatabaseHas('data', $data->toArray());\n }", "public function canCreate();", "public function canCreate();", "public function testCreateNotaEspelhoPatrimonio()\n {\n }", "public function testAllowCreate()\n {\n $createFalse = LogEntry::create()->canCreate(null);\n $this->assertFalse($createFalse);\n $this->logInWithPermission('ADMIN');\n $createFalse = LogEntry::create()->canCreate();\n $this->assertFalse($createFalse);\n }", "public function authorizeShouldCreateMetadata(): void\n {\n $metadata = new Metadata();\n $metadata->setShopType('Shopware');\n $metadata->setShopVersion('5.12');\n $metadata->addMetadata('ModuleType', 'Shopware 5');\n $metadata->addMetadata('ModuleVersion', '18.3.12');\n $this->assertEmpty($metadata->getId());\n\n $paypal = $this->heidelpay->createPaymentType(new Paypal());\n $this->heidelpay->authorize(1.23, 'EUR', $paypal, 'https://heidelpay.com', null, null, $metadata);\n $this->assertNotEmpty($metadata->getId());\n }", "public function testRequiredFieldsForCreateRecipe()\n {\n $this->json('POST', 'api/recipes', ['Accept' => 'application/json'])\n ->assertStatus(422)\n ->assertJsonStructure([\n \"message\",\n \"errors\" => [\n \"name\",\n \"description\",\n \"ingredients\"\n ]\n ]);\n \n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInstanceOf('Dhii\\\\SimpleTest\\\\Locator\\\\ResultSetInterface', $subject, 'Subject is not a valid locator result set');\n $this->assertInstanceOf('Dhii\\\\SimpleTest\\\\Test\\\\SourceInterface', $subject, 'Subject is not a valid test source');\n }", "public function testCreatePatrimonio()\n {\n }", "protected function canCreate() {}", "public function testCreateExpedicao()\n {\n }", "public function createObjectCanDoConstructorInjectionWithBooleanValuesAndObjects() {\n\t\t$firstValue = TRUE;\n\t\t$thirdValue = new \\ArrayObject(array('foo' => 'bar'));\n\t\t$objectConfiguration = new \\F3\\FLOW3\\Object\\Configuration\\Configuration('F3\\FLOW3\\Tests\\Object\\Fixture\\ClassWithOptionalArguments');\n\t\t$objectConfiguration->setArguments(array(\n\t\t\tnew \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument(1, $firstValue, \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE),\n\t\t\tnew \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument(3, $thirdValue, \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE)\n\t\t));\n\n\t\t$object = $this->objectBuilder->createObject('F3\\FLOW3\\Tests\\Object\\Fixture\\ClassWithOptionalArguments', $objectConfiguration);\n\t\t$this->assertEquals($firstValue, $object->argument1, 'The first value (boolean) has not been constructor-injected although it should have been.');\n\t\t$this->assertEquals($thirdValue, $object->argument3, 'The third argument (an object) has not been constructor-injected although it should have been.');\n\t}", "public function testCreatePerson()\n {\n }", "public function create(array $fields = []): bool;", "public function testCreateSurvey0()\n {\n }", "public function testCreateSurvey0()\n {\n }", "public function create()\n\t{\n\t\treturn $this->fail(lang('RESTful.notImplemented', ['create']), 501);\n\t}", "public function test___construct() {\n\t\t}", "public function test___construct() {\n\t\t}", "public function canSetCreatable();", "public function testRequiredFieldsForCreateBoxes()\n {\n $this->json('POST', 'api/boxes', ['Accept' => 'application/json'])\n ->assertStatus(422)\n ->assertJsonStructure([\n \"message\",\n \"errors\" => [\n \"delivery_date\",\n \"recipe_ids\",\n \"customer_id\",\n ]\n ]);\n }", "public function test_create__invalid_class()\n {\n\n (new ElementFactory())->create(['attributes' => ['type' => ElementFactory::class, 'name' => '']]);\n }", "public function testValidation()\n\t{\n\n\t\t// $this->assertInstanceOf('Model', $depot);\n\n\t\t// $this->specify('\\'depot_id and\\' \\'factory_type_id\\' is required', function() {\n\t\t// \t$factory->depot_id = null;\n\t\t// \t$factory->factory_type_id = null;\n // verify($factory->validate(['depot_id', 'factory_type_id'])->false());\n\t\t// });\n\n\t\t// $this->specify('factory', function() {\n\t\t// \t$factory->depot_id = $this->depot->depot_id;\n\t\t// \t$factory->factory_type_id = $this->factoryType->factory_type_id;\n\t\t// \tverify($factory->validate()->true());\n\t\t// });\n\t}", "public function testCanBeCreated()\n {\n $subject = $this->createInstance(['_getArgsForDefinition']);\n\n $this->assertInstanceOf(\n static::TEST_SUBJECT_CLASSNAME,\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCreate() \n\t{\n\t\t$spot=$this->createSpot(\"Too many characters in this message, haha it's gonna be hard to exceed it because I don't have a whole lot of things to type lol! Anyway I should probably go now\");\n\t\t$this->assertFalse($spot);\n\n\t\t$spot=$this->createSpot();\n\t\t$this->assertObjectHasAttribute('id', $spot, 'Spot not created properly');\n\t}", "public function it_cannot_reject_empty_values_through_constructor()\n {\n $object = new Testee('');\n $this->assertTrue($object->isEmpty());\n }", "public function test_can_create_user() {\n\n $data = [\n 'name' => $this->faker->name,\n 'position' => $this->faker->randomElement(['Developer', 'FullStack', 'Manager']),\n 'department' => $this->faker->randomElement(['Backend', 'Frontend', 'Accounts', 'HR', 'Design']),\n 'active' => $this->faker->randomElement([1, 0]),\n ];\n\n $this->post(route('user.store'), $data)\n ->assertStatus(201)\n ->assertJson($data, false);\n }", "public function test_create_item() {}", "public function test_create_item() {}", "public function testCreate() {\n $provider = new Provider();\n $provider\n ->set(null, 'required')\n ->set(null, 'nonType')\n ->set(true, 'boolean')\n ->set(2, 'integer')\n ->set('some string', 'string')\n ->set([], 'array')\n ->set(new stdClass(), 'withoutDefault');\n\n $creator = $this->_createCreator($provider);\n\n $this->assertInstanceOf(stdClass::class, $creator->create(stdClass::class));\n $this->assertInstanceOf(ArrayObject::class, $creator->create(ArrayObject::class));\n $this->assertInstanceOf(ConstructTest\\BasicParameters::class, $creator->create(ConstructTest\\BasicParameters::class));\n $this->assertInstanceOf(ConstructTest\\BasicWithDefaults::class, $creator->create(ConstructTest\\BasicWithDefaults::class));\n $this->assertInstanceOf(ConstructTest\\SimpleClass::class, $creator->create(ConstructTest\\SimpleClass::class));\n $this->assertInstanceOf(ConstructTest\\WithDependencies::class, $creator->create(ConstructTest\\WithDependencies::class));\n $this->assertInstanceOf(ConstructTest\\WithoutConstruct::class, $creator->create(ConstructTest\\WithoutConstruct::class));\n\n $this->assertInstanceOf(SingletonTest\\BasicParameters::class, $creator->create(SingletonTest\\BasicParameters::class));\n $this->assertInstanceOf(SingletonTest\\BasicWithDefaults::class, $creator->create(SingletonTest\\BasicWithDefaults::class));\n $this->assertInstanceOf(SingletonTest\\SimpleClass::class, $creator->create(SingletonTest\\SimpleClass::class));\n $this->assertInstanceOf(SingletonTest\\WithDependencies::class, $creator->create(SingletonTest\\WithDependencies::class));\n $this->assertInstanceOf(SingletonTest\\ProtectedSingleton::class, $creator->create(SingletonTest\\ProtectedSingleton::class));\n $this->assertInstanceOf(SingletonTest\\NonSingleton::class, $creator->create(SingletonTest\\NonSingleton::class));\n }", "public function testRegistrationExtraFields(): void { }", "public function testGetValues()\n {\n $this->todo('stub');\n }", "public function testRegistrationFieldsMissing(): void { }", "public function testNotAllRequiredParamsGiven()\n {\n $this->testedDao->fetchFivehundredsForAlertWidget();\n }", "public function it_can_allow_empty_values_through_constructor()\n {\n $object = new Testee('', Value::CAN_BE_EMPTY);\n $this->assertTrue($object->isEmpty());\n }", "public function testCreate()\n {\n $model = $this->makeFactory();\n \n $this->json('POST', static::ROUTE, $model->toArray(), [\n 'Authorization' => 'Token ' . self::getToken()\n ])\n ->seeStatusCode(JsonResponse::HTTP_CREATED) \n ->seeJson($model->toArray());\n }", "public function test_create__unknown_type()\n {\n\n (new ElementFactory())->create(['attributes' => ['type' => 'i am an unknown type', 'name' => '']]);\n }", "public function testCreate()\n\t{\n\t\tRoute::enableFilters();\n\t\tEvaluationTest::adminLogin();\n\t\t$response = $this->call('GET', '/evaluation/create');\n\t\t\n\t\t$this->assertResponseOk();\n\n\t\tSentry::logout();\n\t\t\n\t\t//tesing that a normal user can't retrieve a form to create \n\t\t//an evaluation and that a page displays a message as to why they can't\n\t\tEvaluationTest::userLogin();\n\t\t$crawler = $this->client->request('GET', '/evaluation/create');\n\t\t$message = $crawler->filter('body')->text();\n\n\t\t$this->assertFalse($this->client->getResponse()->isOk());\n\t\t$this->assertEquals(\"Access Forbidden! You do not have permissions to access this page!\", $message);\n\n\t\tSentry::logout();\n\t}", "function testAllowSimulatedFields() {\n\t\t$TestModel =& new ValidationTest();\n\n\t\t$TestModel->create(array('title' => 'foo', 'bar' => 'baz'));\n\t\t$expected = array('ValidationTest' => array('title' => 'foo', 'bar' => 'baz'));\n\t\t$this->assertEqual($TestModel->data, $expected);\n\t}", "public function isCreatable();", "public function testItCreatesANewUserWithValidData()\n {\n $data = factory(User::class)->make([\n \"tenant_id\" => $this->user->tenant->id,\n \"address\" => [\n \"city\" => \"springfield\",\n \"country\" => \"united states of america\",\n \"state\" => \"missouri\",\n \"street\" => \"1742 evergreen terrace\",\n ]\n ]);\n\n $response = $this->actingAs($this->user)\n ->postJson(\n \"api/v1/users/\",\n $data->only([\n \"address\",\n \"email\",\n \"firstname\",\n \"lastname\",\n \"tenant_id\",\n ])\n )->assertOk();\n \n $user = User::all()->last();\n\n $response\n ->assertJson([\n \"id\" => $user->id,\n \"firstname\" => $user->firstname,\n \"lastname\" => $user->lastname,\n ]);\n }", "public static function validateCreateRequest() {\n $errors = array();\n $data = array();\n self::checkTitle($errors, $data);\n self::checkDescription($errors, $data);\n self::checkGoal($errors, $data);\n self::checkStartDate($errors, $data);\n self::checkDuration($errors, $data);\n self::checkCategories($errors, $data);\n if (count($errors) > 0 && count($data) > 0) {\n redirect(url(['_page' => 'create_project']));\n } else if (count($errors) == 0){\n return $data;\n }\n return null;\n }", "public function create( $data = array() );", "public function test__construct() {\n\n $obj = new ParamEtiquettes();\n\n $this->assertNull($obj->getAvecCodeBarre());\n $this->assertNull($obj->getAvecPrixVente());\n $this->assertNull($obj->getCodeModele());\n $this->assertNull($obj->getEtiqDeFront());\n $this->assertNull($obj->getEtiqMasque());\n $this->assertNull($obj->getEtiqPlus());\n $this->assertNull($obj->getImprimante());\n $this->assertNull($obj->getInitChamp());\n $this->assertNull($obj->getInitTable());\n $this->assertNull($obj->getInitValeur());\n $this->assertNull($obj->getLgZone());\n $this->assertNull($obj->getLibZone());\n $this->assertNull($obj->getLibelle());\n $this->assertNull($obj->getNumeroLigne());\n $this->assertNull($obj->getQteEnt());\n $this->assertNull($obj->getType());\n }", "public function testExcepcionSiSeCreaEmpleadoConDniVacio(){\n\t\t\t$this->expectException(\\Exception::class);\n\t\t\t$emp= $this-> crear(null, null,$dni=\"\");\n\t\t}", "public function testConstruct()\n {\n $this->assertAttributeEquals($this->modelMock, 'recordModel',\n $this->testObj);\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInternalType(\n 'object',\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInternalType(\n 'object',\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInternalType(\n 'object',\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCarPlateNull()\n {\n $owner = Owner::all()->random();\n $type = Type::all()->random();\n $response = $this->json('POST', '/cars', [\"brand\" => \"Mazda\", \"type\" => $type->id, \"owner\" => $owner->id]);\n $response->assertStatus(422);\n $response->assertJsonFragment(['plate' => [ __(\"validation.required\", [\"attribute\" => \"plate\"]) ]]);\n }", "function testRequired(){\n\t\t#mdx:required\n\t\tParam::get('name')\n\t\t\t->context(['name'=>''])\n\t\t\t->filters()\n\t\t\t\t->required(\"Cannot be empty\");\n\n\t\t$error = Param::get('name')->process()->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Cannot be empty\", $error);\n\t}", "public function testRequired()\n {\n $this->setExpectedException('Symfony\\Component\\Form\\Exception\\CreationException');\n $form = $this->factory->create('ckeditor', null, array('required' => true));\n }", "public function testLocationCreationValidParameters()\n {\n $user = User::all()->random();\n\n $this->actingAs($user, 'api')\n ->post(\"api/location\", [\n 'branch' => 'Twofold Asperger-Academy',\n 'room' => '431',\n 'shelf' => '3',\n 'compartment' => '4',\n 'description' => 'This is a description where the location is.'\n ]);\n $this->seeStatusCode(200);\n }", "public function testInstanceHasRequiredProperties()\n {\n $module = new CWBlockStores();\n foreach (self::REQUIRED_PROPERTIES as $prop) {\n $this->assertNotNull($module->$prop);\n }\n }", "public function testConstruct()\n {\n $this->assertFalse(\n Property::get($this->abstract, 'nullable'),\n 'The default \"nullable\" value should be false.'\n );\n\n $abstract = $this->getMockForAbstractClass(\n 'Phine\\\\Accessor\\\\Type\\\\AbstractNullableType',\n array(true)\n );\n\n $this->assertTrue(\n Property::get($abstract, 'nullable'),\n 'The \"nullable\" value should be true.'\n );\n }", "public function it_can_identify_valid_values()\n {\n $this->assertTrue(Testee::isValid(self::TEST_NULL_VALUE));\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testProfilePrototypeCreateQuarantines()\n {\n\n }", "public function testGenerateWithoutArguments()\n {\n $key = Keys::Generate();\n\n $this->assertNotEquals(FALSE, $key);\n }", "public function create(array $data): bool\n {\n }", "public function create(array $data): bool\n {\n }", "public function create(array $data): bool\n {\n }", "public function testIsValid() {\n\n\n\n }", "function a_user_can_be_created(){\n\n $profession = factory(Profession::class)->create([\n 'title' => 'Web Developer'\n ]);\n $skillA = factory(Skill::class)->create([\n 'description' => 'CSS'\n ]);\n $skillB = factory(Skill::class)->create([\n 'description' => 'HTML'\n ]);\n\n $this->browse(function(Browser $browser) use ($profession,$skillA,$skillB){\n $browser->visit('users/create')\n ->assertSeeIn('h5','Create User')\n ->type('name','Yariel Gordillo')\n ->type('email','[email protected]')\n ->type('password','secret')\n ->type('bio','This a small bio')\n ->select('profession_id',$profession->id)\n ->type('twitter' ,'https://twitter.com/yariko')\n ->check(\"skills[{$skillA->id}]\")\n ->check(\"skills[{$skillB->id}]\")\n ->radio('role', 'user')\n ->press('Create User')\n ->assertPathIs('/users')\n ->assertSee('Yariel Gordillo')\n ->assertSee('[email protected]');\n });\n\n }", "public function testCreateModel0()\n{\n\n $actual = $this->eloquentUserProvider->createModel();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function test_canCreate_Returns_True_If_Personnel_Have_No_Access() {\n\n\t\t$check_returns_false = $this->authorization_service4->canCreate(2,2);\n\n\t\t$this->assertFalse($check_returns_false);\n\t}", "public function testValidationDefaultCorrect()\r\n {\r\n $data = $this->getCorrectData();\r\n $artifact = $this->Artifacts->newEntity($data);\r\n $this->assertEmpty($artifact->errors());\r\n }", "public function test_calledCreateMethod_withValidParameters_DataWrapperInstanceIsReturned()\n {\n $dataContainerMock = $this->getDataConteinerMock();\n\n $sut = DataWrapper::create(\n 200,\n \"Ok\",\n \"copyright\",\n \"attribution text\",\n \"attribution HTML\",\n $dataContainerMock,\n \"etag\"\n );\n\n $this->assertInstanceOf('Octante\\MarvelAPIBundle\\Model\\ValueObjects\\DataWrapper', $sut);\n }", "public function testConstruct()\n {\n $data_from_collection = $this->data['monthly_collection'];\n $this->assertEquals(\n $data_from_collection['attributes']['plan_name'],\n $this->makePlan($data_from_collection)->get('plan_name')\n );\n\n $data_from_site = $this->data['monthly_site'];\n $this->assertEquals($data_from_site['name'], $this->makePlan($data_from_site)->get('name'));\n }", "public function createObjectCanDoConstructorInjectionWithDifficultArguments() {\n\t\t$firstValue = \"Hir hier deser d'Sonn am, fu dem Ierd d'Liewen, ze schéinste Kirmesdag hannendrun déi.\";\n\t\t$secondValue = 'Oho ha halo\\' maksimume, \"io fari jeso naŭ plue\" om backslash (\\\\)nea komo triliono postpostmorgaŭ.';\n\n\t\t$objectConfiguration = new \\F3\\FLOW3\\Object\\Configuration\\Configuration('F3\\FLOW3\\Tests\\Object\\Fixture\\ClassWithOptionalArguments');\n\t\t$objectConfiguration->setArguments(array(\n\t\t\tnew \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument(1, $firstValue, \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE),\n\t\t\tnew \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument(2, $secondValue, \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE)\n\t\t));\n\n\t\t$object = $this->objectBuilder->createObject('F3\\FLOW3\\Tests\\Object\\Fixture\\ClassWithOptionalArguments', $objectConfiguration);\n\t\t$this->assertEquals($firstValue, $object->argument1, 'The first value (string with quotes) has not been constructor-injected although it should have been.');\n\t\t$this->assertEquals($secondValue, $object->argument2, 'The second value (string with double quotes and backslashes) has not been constructor-injected although it should have been.');\n\t}", "public function a_user_can_create_a_project()\n {\n $attributes = [\n \n 'title' => $this->fake->sentence,\n\n ];\n\n }", "public function testCreateUser()\n {\n $num = rand(10, 1000);\n $userData = [\n \"name\" => \"John Doe $num\",\n \"email\" => \"[email protected]\",\n \"password\" => \"demo12345\",\n \"org_id\" => 1\n ];\n $this->json('POST', 'api/user/create', $userData, ['Accept' => 'application/json'])\n ->assertStatus(200)\n ->assertJsonStructure([\n \"action\",\n \"data\" => [],\n \"status\"\n ]);\n }", "public function testCreate()\n {\n \t$player_factory = factory(KillingMode::class)->create();\n\n $this->assertTrue($player_factory->wasRecentlyCreated);\n }", "public function testCreateMetadata()\n {\n }", "public function testProfileCreate()\n {\n\n }", "public function testPeopleRequirementsCreate($model)\n { \n // $randomId = self::$f1->randomId('person');\n // $model['peopleRequirement']['person']['@id'] = $randomId['person'];\n // $model['peopleRequirement']['requirement']['@id'] = \"\";//$requirement['@id'];\n // $model['peopleRequirement']['requirementStatus']['@id'] = \"1\";\n // $model['peopleRequirement']['requirementDate'] = \"\";\n // $model['peopleRequirement']['staffPerson']['@id'] = \"\";//\"40919398\";\n // $model['peopleRequirement']['backgroundCheck']['backgroundCheckStatus']['@id'] = \"1\";\n // $r = self::$f1->post($model, '/v1/people/'.$randomId['person'].'/requirements.json');\n // $this->assertEquals('201', $r['http_code']);\n // $this->assertNotEmpty($r['body'], \"No Response Body\");\n // return $peopleRequirement = $r['body']['requirement'];\n }", "public function testFillable()\n {\n $author = new Author(['name'=>'Karin Slaughter']);\n $this->assertEquals('Karin Slaughter', $author->name);\n }", "public function testValidationDefaultCorrect()\r\n {\r\n $data = $this->getCorrectData();\r\n $oddit = $this->Oddits->newEntity($data);\r\n $this->assertEmpty($oddit->errors());\r\n }", "protected function setUp()\n {\n// $this->validOptions = array(\n// 'checksum' => true,\n// 'delete'\n// );\n }" ]
[ "0.7499421", "0.6942836", "0.67695814", "0.6755818", "0.67443407", "0.67061716", "0.64404064", "0.6395215", "0.63654554", "0.6353564", "0.6323331", "0.62996006", "0.62746745", "0.6231337", "0.6206988", "0.61956215", "0.61879426", "0.6187674", "0.61740625", "0.61731875", "0.61686337", "0.61669856", "0.61597025", "0.61597025", "0.61571985", "0.6150389", "0.6141996", "0.613893", "0.61381805", "0.6130509", "0.61245465", "0.60969734", "0.6084976", "0.60834974", "0.60824317", "0.6081792", "0.6081792", "0.6073561", "0.60567856", "0.60567856", "0.605506", "0.605034", "0.6035476", "0.6033953", "0.6030547", "0.60290325", "0.6025992", "0.6020871", "0.6014768", "0.6014768", "0.60147643", "0.5997054", "0.59883505", "0.597658", "0.59675837", "0.59625626", "0.5961099", "0.59559876", "0.5953214", "0.5945126", "0.59449655", "0.5937175", "0.5930762", "0.5930623", "0.59222174", "0.59205425", "0.5912594", "0.5905467", "0.5905467", "0.5905467", "0.59049076", "0.5902661", "0.5891624", "0.5888161", "0.5887867", "0.5884003", "0.5875249", "0.58735186", "0.58735186", "0.58723027", "0.58680457", "0.5867025", "0.5867025", "0.5867025", "0.58630866", "0.58575386", "0.58574003", "0.5856751", "0.58524626", "0.584619", "0.58446175", "0.5841762", "0.5838724", "0.5836467", "0.58357155", "0.5833543", "0.5825524", "0.58241135", "0.5823102", "0.5817401", "0.5816717" ]
0.0
-1
Test creation with an empty provider key raises an exception.
public function testCreateWithEmptyProviderKeyBails() { new JavascriptWebToken('CREDENTIALS', ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testValidationCaseForInvalidTypeOfKeyExpansionServicePassedOnInitialization()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\RuntimeException::class);\n\n $protocol = new KeyExchange(null);\n } else {\n $hasThrown = null;\n\n try {\n $protocol = new KeyExchange(null);\n } catch (\\RuntimeException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testCredentialsApiEmptyArgumentException()\n {\n \n new \\PrintNode\\Credentials\\ApiKey('');\n \n }", "public function testGenerateWithoutArguments()\n {\n $key = Keys::Generate();\n\n $this->assertNotEquals(FALSE, $key);\n }", "public function testRequiredKeys()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Cannot create a SmartwaiverSignatures with missing field: waiverId');\n\n $signatures = SmartwaiverTypes::createSignatures();\n unset($signatures['waiverId']);\n\n $swSignatures = new SmartwaiverSignatures($signatures);\n }", "public function testSetKeyPairInvalidArgumentEmptyKey(): void\n {\n $key = ' ';\n $value = 'Test Value';\n $this->expectException(\\InvalidArgumentException::class);\n $this->testNotStrict->set($key, $value);\n }", "public function testCredentialsApiMissingArgumentException()\n {\n \n new \\PrintNode\\Credentials\\ApiKey();\n \n }", "public function testGetKeyUriWithEmptySecret() {\n // throw the empty secret exception message\n GoogleAuthenticator::getKeyUri('hotp', '[email protected]', '');\n }", "public function testTestBindingsEmptyProvider(): void\n {\n $testCase = new LaravelServiceProviderTestCaseStub(\n [],\n EmptyServiceProviderStub::class\n );\n\n $testCase->testBindings();\n\n // If no exceptions occurred we're great.\n $this->addToAssertionCount(1);\n }", "public function testCreate() {\n $provider = new Provider();\n $provider\n ->set(null, 'required')\n ->set(null, 'nonType')\n ->set(true, 'boolean')\n ->set(2, 'integer')\n ->set('some string', 'string')\n ->set([], 'array')\n ->set(new stdClass(), 'withoutDefault');\n\n $creator = $this->_createCreator($provider);\n\n $this->assertInstanceOf(stdClass::class, $creator->create(stdClass::class));\n $this->assertInstanceOf(ArrayObject::class, $creator->create(ArrayObject::class));\n $this->assertInstanceOf(ConstructTest\\BasicParameters::class, $creator->create(ConstructTest\\BasicParameters::class));\n $this->assertInstanceOf(ConstructTest\\BasicWithDefaults::class, $creator->create(ConstructTest\\BasicWithDefaults::class));\n $this->assertInstanceOf(ConstructTest\\SimpleClass::class, $creator->create(ConstructTest\\SimpleClass::class));\n $this->assertInstanceOf(ConstructTest\\WithDependencies::class, $creator->create(ConstructTest\\WithDependencies::class));\n $this->assertInstanceOf(ConstructTest\\WithoutConstruct::class, $creator->create(ConstructTest\\WithoutConstruct::class));\n\n $this->assertInstanceOf(SingletonTest\\BasicParameters::class, $creator->create(SingletonTest\\BasicParameters::class));\n $this->assertInstanceOf(SingletonTest\\BasicWithDefaults::class, $creator->create(SingletonTest\\BasicWithDefaults::class));\n $this->assertInstanceOf(SingletonTest\\SimpleClass::class, $creator->create(SingletonTest\\SimpleClass::class));\n $this->assertInstanceOf(SingletonTest\\WithDependencies::class, $creator->create(SingletonTest\\WithDependencies::class));\n $this->assertInstanceOf(SingletonTest\\ProtectedSingleton::class, $creator->create(SingletonTest\\ProtectedSingleton::class));\n $this->assertInstanceOf(SingletonTest\\NonSingleton::class, $creator->create(SingletonTest\\NonSingleton::class));\n }", "public function testGetKeyUriWithEmptyLabel() {\n // throw the empty label exception message\n GoogleAuthenticator::getKeyUri('hotp', '', 'secret');\n }", "public function emptyMetaDataShouldLeadToError(): void\n {\n $metadata = new Metadata();\n $this->expectException(HeidelpayApiException::class);\n $this->expectExceptionCode(ApiResponseCodes::API_ERROR_REQUEST_DATA_IS_INVALID);\n $this->heidelpay->createMetadata($metadata);\n }", "public function testKeyNotFound()\n {\n $headers = [\n 'Content-Type' => 'text/plain',\n 'X-Authorization-Timestamp' => time(),\n 'Authorization' => 'acquia-http-hmac realm=\"Pipet service\",'\n . 'id=\"bad-id\",'\n . 'nonce=\"d1954337-5319-4821-8427-115542e08d10\",'\n . 'version=\"2.0\",'\n . 'headers=\"\",'\n . 'signature=\"MRlPr/Z1WQY2sMthcaEqETRMw4gPYXlPcTpaLWS2gcc=\"',\n ];\n $request = new Request('GET', 'https://example.com/test', $headers);\n\n $this->expectException(KeyNotFoundException::class);\n\n $authenticator = new RequestAuthenticator(new MockKeyLoader($this->keys));\n $authenticator->authenticate($request);\n }", "public function testValidationCaseForInvalidAsymmetricKeyPairAlgorithmType()\n {\n $generator = $this->getTokenGeneratorForTesting();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $generator->getAsymmetricKeyPair(512, ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n $generator->getAsymmetricKeyPair(512, ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testEmptyApiKeyException(): void\n {\n $this->expectException(UnableToEncodeApiTokenException::class);\n\n (new ApiKeyAsBasicAuthUsernameEncoder())->encode(new ApiKeyApiToken(''));\n }", "public function testCreatingContactWithEmptyTokenIdFails(): void\n {\n // Creates expectation.\n $this->expectException(\\InvalidArgumentException::class);\n\n // Create random attributes.\n $attributes = [\n 'user_id' => $this->faker->numberBetween(),\n 'token_id' => ' ',\n 'revoked' => $this->faker->boolean,\n 'expires_at' => $this->faker->dateTimeBetween('+10 days', '+20 days')->format('Y-m-d H:i:s'),\n ];\n\n // Performs test.\n new AccessToken($attributes);\n }", "public function testCredentialsApiInvalidArgumentException()\n {\n \n new \\PrintNode\\Credentials\\ApiKey(new \\stdClass());\n \n }", "public function test_generate_key_random()\n {\n $key1 = GuestToken::generate_key();\n $key2 = GuestToken::generate_key();\n $this->assertNotEquals($key1, $key2);\n }", "public function test_invalid_auth_key(): void\n {\n $this->expectException(VkException::class);\n $this->expectExceptionCode(VkException::BANNED_EXCEPTION);\n $this->client->getUsers([]);\n }", "public function testCorruptProviderIgnored(): void {\n $body = <<<END\n[\n {\n \"provider_name\": \"YouTube\",\n \"provider_url\": \"https:\\/\\/www.youtube.com\\/\",\n \"endpoints\": [\n {\n \"schemes\": [\n \"https:\\/\\/*.youtube.com\\/watch*\",\n \"https:\\/\\/*.youtube.com\\/v\\/*\"\n ],\n \"url\": \"https:\\/\\/www.youtube.com\\/oembed\",\n \"discovery\": true\n }\n ]\n },\n {\n \"provider_name\": \"Uncle Rico's football videos\",\n \"provider_url\": \"not a real url\",\n \"endpoints\": []\n }\n]\nEND;\n $response = new Response(200, [], $body);\n $this->responses->append($response);\n\n // The corrupt provider should cause a warning to be logged.\n $this->logger->log(\n RfcLogLevel::WARNING,\n \"Provider Uncle Rico's football videos does not define a valid external URL.\",\n Argument::type('array')\n )->shouldBeCalled();\n\n $youtube = $this->repository->get('YouTube');\n // The corrupt provider should not be stored.\n $stored_data = [\n 'data' => [\n 'YouTube' => $youtube,\n ],\n 'expires' => $this->currentTime + 604800,\n ];\n $this->assertSame($stored_data, $this->keyValue->get('oembed_providers'));\n\n $this->expectException('InvalidArgumentException');\n $this->repository->get(\"Uncle Rico's football videos\");\n }", "public function testNonExistentKey() {\n $source = [\n ['bar' => 'foo'],\n ];\n $this->expectException(MigrateException::class);\n $this->expectExceptionMessage(\"The key 'foo' does not exist\");\n $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destination_property');\n }", "public function testExecuteLocalProviderNotFound(): void\n {\n $authenticateApi = $this->createAuthenticationAPI();\n $authenticateApiRequest = new AuthenticateApiRequest('admin', 'centreon');\n $authenticateApiResponse = new AuthenticateApiResponse();\n\n $this->authenticationService\n ->expects($this->once())\n ->method('deleteExpiredSecurityTokens');\n\n $this->providerFactory\n ->expects($this->once())\n ->method('create')\n ->with(Provider::LOCAL)\n ->willThrowException(ProviderException::providerConfigurationNotFound(Provider::LOCAL));\n\n $this->expectException(ProviderException::class);\n $this->expectExceptionMessage('Provider configuration (local) not found');\n\n $authenticateApi->execute($authenticateApiRequest, $authenticateApiResponse);\n }", "public function testRequestException(): void {\n $provider = $this->prophesize('\\Drupal\\media\\OEmbed\\Provider')\n ->reveal();\n\n // This data is expired (stale), but it should be returned anyway.\n $this->keyValue->set('oembed_providers', [\n 'data' => [\n 'YouTube' => $provider,\n ],\n 'expires' => $this->currentTime - 86400,\n ]);\n\n $response = new Response(503);\n $this->responses->append($response, $response);\n $this->assertSame($provider, $this->repository->get('YouTube'));\n\n // When there is no stored data, we should get an exception.\n $this->keyValue->delete('oembed_providers');\n $this->expectException(ProviderException::class);\n $this->repository->get('YouTube');\n }", "public function testShouldFailIFARegistrationIsCreatedWithoutSource() {\n $this->expectException(\\PDOException::class);\n \n $entity = new Registration;\n $entity->registrant_id = $this->getRegistrant()->id;\n $entity->type = 'PLAYER' ;\n $entity->league = 'league';\n $entity->org_name = 'Oranization...';\n $entity->org_state = 'NY';\n $entity->season = '2017';\n $entity->external_id = 'myexternalid';\n $entity->right_to_market = true;\n $entity->team_gender = 'Male';\n $entity->team_name = 'A-Team';\n $entity->school_district = 'school district';\n $entity->school_state = 'school sate';\n $entity->first_name = 'Firt name';\n $entity->middle_name = 'Middle name';\n $entity->last_name = 'Last Name';\n $entity->email = '[email protected]';\n $entity->gender = 'Male';\n $entity->city = 'California';\n $entity->zip_code = '234141234123';\n $entity->birth_date = '11/27/1984';\n $entity->phone_number = '1234567890';\n $entity->game_type = 'SOME';\n $entity->level = 'LEVEL';\n $entity->state = 'CALIFORNIA';\n $entity->address_first_line = 'An Address 1234';\n $entity->county = 'A county';\n\n $entity->save();\n }", "public function testGetKeyUriWithHotpHasNullCounter() {\n // throw the hotp having null counter exception message\n GoogleAuthenticator::getKeyUri('hotp', '[email protected]', 'secret');\n }", "public function testGetCustomerIDWithNoArg(): void {\n $this->expectException(Exception::class);\n $this->object->initCustomerId();\n }", "public function testInvalidValuesServiceProvider()\n {\n $app = new Application();\n $provider = array(\n 'class' => 'MJanssen\\Provider\\ServiceProviderFoo',\n 'values' => ''\n );\n $serviceRegisterProvider = new ServiceRegisterProvider();\n $serviceRegisterProvider->registerServiceProvider($app, $provider);\n }", "public function testValidationCaseForInvalidAsymmetricKeyPairSize()\n {\n $generator = $this->getTokenGeneratorForTesting();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $generator->getAsymmetricKeyPair(['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n $generator->getAsymmetricKeyPair(['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testCacheKeyInvalidTypeNull(): void\n {\n $value = '99 bottles of beer on the wall';\n $key = null;\n $this->expectException(\\TypeError::class);\n $this->testNotStrict->set($key, $value);\n }", "public function testValidationCaseForNonStringSecretKeyPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testValidationCaseForTooSmallAsymmetricKeyPairSize()\n {\n $generator = $this->getTokenGeneratorForTesting();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $generator->getAsymmetricKeyPair(128);\n } else {\n $hasThrown = null;\n\n try {\n $generator->getAsymmetricKeyPair(128);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testCreateGrantExceptions()\n {\n $throws_missing_client_id_exception = false;\n try {\n self::$api->create('', self::$apiIdentifier, []);\n } catch (CoreException $e) {\n $throws_missing_client_id_exception = $this->errorHasString($e, 'Empty or invalid \"client_id\" parameter');\n }\n\n $this->assertTrue($throws_missing_client_id_exception);\n\n $throws_missing_audience_exception = false;\n try {\n self::$api->create(self::$env['APP_CLIENT_ID'], '', []);\n } catch (CoreException $e) {\n $throws_missing_audience_exception = $this->errorHasString($e, 'Empty or invalid \"audience\" parameter');\n }\n\n $this->assertTrue($throws_missing_audience_exception);\n }", "public function testGetKey()\n {\n }", "public function providerTestWillNeverRun(): array {\n return [\n ['this_will_never_run'],\n ];\n }", "public function testDriverNotExisting()\n\t{\n\t\t$this->setExpectedException( 'InvalidArgumentException' );\t\t\n\t\t$config = CCConfig::create( null, 'beep' );\n\t}", "public function testGetKeyUriWithInvalidType() {\n // throw the invalid type exception message\n GoogleAuthenticator::getKeyUri('error_type', '[email protected]', 'secret');\n }", "public function testIs20200519CustomerCreatableThrowInvalidArgumentException()\n {\n $this->expectException(\\Xendit\\Exceptions\\InvalidArgumentException::class);\n $params = [\n 'reference_id' => self::REFERENCE_ID\n ];\n\n Customers::createCustomer($params);\n }", "public function testGetEmptyKey()\n {\n $data = [\n '' => 'some value'\n ];\n $result = Hash::get($data, '');\n $this->assertSame($data[''], $result);\n }", "public function testIsValidKeyNotFound()\n {\n $this->assertFalse($this->helper->isValid('blabla', 12.93));\n }", "public function testNoKey()\n\t{\n\t\tputenv('OPENFDA_API_KEY=');\n\n\t\t$client = new FDAClient();\n\n\t\t$this->assertNotContains('api_key', $client->formatUrl([]));\n\t}", "public function testGetNull()\n {\n $holder = new KeyBag();\n\n $this->assertNull($holder->get('ns', 'test'));\n }", "public function testGetNonExistentService()\n {\n $kraken = new Kraken(self::$tokenProvider);\n $nonExistentService = $kraken->nonExistentService;\n\n $this->assertNull($nonExistentService);\n }", "public function testIs20201031CustomerCreatableThrowInvalidArgumentException()\n {\n $this->expectException(\\Xendit\\Exceptions\\InvalidArgumentException::class);\n $params = [\n 'reference_id' => self::REFERENCE_ID,\n 'api-version' => '2020-10-31'\n ];\n\n Customers::createCustomer($params);\n }", "public function createProvider();", "public function testGetByTokenFailsWithEmptyTokenId(): void\n {\n // Creates expectation.\n $this->expectException(\\InvalidArgumentException::class);\n\n // Performs test.\n $this->repository->getByToken('');\n }", "public function ensureDefaultKeys() {}", "public function testAccessTokenCannotBeCreatedWithAnExistentToken(): void\n {\n // Creates expectation.\n $this->expectException(QueryException::class);\n\n // Get a random AccessToken.\n $accessToken = $this->model->newQuery()->inRandomOrder()->first();\n\n // Perform test.\n $this->repository->create(\n new AccessToken([\n 'token_id' => $accessToken->token_id,\n 'user_id' => $accessToken->user_id,\n 'expires_at' => $this->faker->dateTimeBetween('+10 days', '+20 days')->format('Y-m-d H:i:s')\n ])\n );\n }", "public function testCreateFailPrivateConstructor() {\n $this->expectException(Exception::class);\n $this->_createCreator()->create(ConstructTest\\PrivateConstruct::class);\n }", "public function testValidationCaseForSettingAnInvalidKeyPairSizeForTheKeyExchangeGeneration()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->setKeyExchangeSize(200);\n } else {\n $hasThrown = null;\n\n try {\n $protocol->setKeyExchangeSize(200);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function test_generate_key()\n {\n $key = GuestToken::generate_key();\n $this->assertGreaterThan(10, strlen($key));\n }", "public function testValidationCaseForTooBigAsymmetricKeyPairSize()\n {\n $generator = $this->getTokenGeneratorForTesting();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $generator->getAsymmetricKeyPair(30000);\n } else {\n $hasThrown = null;\n\n try {\n $generator->getAsymmetricKeyPair(30000);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testValidationCaseForSettingWrongFormattedStringForPublicKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testKeyGeneratorWithNoCookie()\n {\n $localisationCookieIdGenerator = new LocalisationCookieIdGenerator();\n\n $request = new Request();\n\n $id = $localisationCookieIdGenerator->generate($request);\n $this->assertEquals('', $id);\n }", "public function testShouldFailIFARegistrationIsCreatedWithoutRegistrant() {\n $this->expectException(\\PDOException::class);\n\n $entity = new Registration;\n $entity->source_id = $this->getSource()->id;\n $entity->type = 'PLAYER' ;\n $entity->league = 'league';\n $entity->org_name = 'Oranization...';\n $entity->org_state = 'NY';\n $entity->season = '2017';\n $entity->external_id = 'myexternalid';\n $entity->right_to_market = true;\n $entity->team_gender = 'Male';\n $entity->team_name = 'A-Team';\n $entity->school_district = 'school district';\n $entity->school_state = 'school sate';\n $entity->first_name = 'Firt name';\n $entity->middle_name = 'Middle name';\n $entity->last_name = 'Last Name';\n $entity->email = '[email protected]';\n $entity->gender = 'Male';\n $entity->city = 'California';\n $entity->zip_code = '234141234123';\n $entity->birth_date = '11/27/1984';\n $entity->phone_number = '1234567890';\n $entity->game_type = 'SOME';\n $entity->level = 'LEVEL';\n $entity->state = 'CALIFORNIA';\n $entity->address_first_line = 'An Address 1234';\n $entity->county = 'A county';\n\n $entity->save();\n }", "public function createNewKeyPair() {}", "public function createNewKeyPair() {}", "public function testBuildException()\n {\n $this->paymentTokenBuilder->build(['payment' => null]);\n }", "public function testMissingCredentialsApiKey() {\n $api = new PingdomApi('username', 'password', null);\n }", "public function testCollectionsAreCheckedForProviderMatches(): void\n {\n $entityManager = $this->getEntityManager();\n\n // Create two providers\n $provider1 = $this->createProvider('provider1');\n $provider2 = $this->createProvider('provider2');\n\n // Create subscriber and bind to event manager\n $instance = $this->createInstance($provider1);\n $entityManager->getEventManager()->addEventSubscriber($instance);\n\n // Create two entities with different providers\n $entity1 = new EntityHasProviderStub('entity1', 'Acme Corp');\n $entity1->setProvider($provider1);\n $entityManager->persist($entity1);\n $entity2 = new EntityHasProviderStub('entity2', 'Acme Corp');\n $entity2->setProvider($provider2);\n $entity1->getOwned()->add($entity2);\n\n // Set expectation\n $this->expectException(InvalidEntityOwnershipException::class);\n\n // Flush should throw exception\n $entityManager->flush();\n }", "public function testNoArgInitialization()\n {\n// $piece = $this->pieceRecords[0];\n// $art = $this->artRecord[0];\n// $notEntityObj = new \\stdClass();\n\n $this->expectExceptionMessageRegExp('/the name of the expected entity/');\n $layer = new Layer([], null);\n }", "public function testCreateWithEmptyParams()\n {\n $client = factory(Client::class)->create();\n $token = factory(Token::class)->create([\n 'client_id' => $client->id,\n ]);\n\n $this->post(\"/api/{$this->apiVersion}/{$this->endpoint}/\", [],\n $this->getHeaders($token->token))\n ->seeJson([\n 'first_name' => ['The first name field is required.'],\n 'last_name' => ['The last name field is required.'],\n 'email' => ['The email field is required.'],\n ]);\n }", "public function testSetKeyPairInvalidArgumentKeyContainsLeftCurly(): void\n {\n $key = 'key{key';\n $value = 'Test Value';\n $this->expectException(\\InvalidArgumentException::class);\n $this->testNotStrict->set($key, $value);\n }", "public function testCreateNotaEspelhoPatrimonio()\n {\n }", "public function testInvalidNetworkProviderName(): void\n {\n $this->expectException(StopException::class);\n $name = 'invalid-provider';\n try {\n $this->Task->main('twitter', $name);\n } catch (StopException $e) {\n $this->assertEquals(\"`{$name}` is not a valid social provider.\", $e->getMessage());\n\n throw $e;\n }\n }", "public function testInvalidSigningAlgorithm()\n {\n $this->expectException(\\UnexpectedValueException::class);\n $this->jsc->setSigningAlgorithm(\"none\");\n }", "public function testCreateWithInvalidPromotorToken()\n {\n // Populate data\n $promotorID = $this->_populatePromotor();\n \n // Create token\n $token = str_random(5);\n $encryptedToken = $this->token->encode($promotorID, $token);\n \n // Do request\n $this->_request('POST', '/api/1.5.0/news-create', ['token' => '1234', 'title' => 'news', 'content' => 'content'])\n ->_result(['error' => 'no-auth']);\n }", "public function testDeleteKey()\n {\n }", "public function testDoesNotCreateClassWithIncorrectParameter() : void\n {\n $this->assertNull(EventProcessorFactory::create(\"hockey\", $this->eventStorage));\n }", "public function it_throws_exception_if_we_dont_have_such_card()\n {\n $this->beConstructedWith(\n ['WrongName'],\n $this->cardFactory\n );\n $this->shouldThrow('\\Exception')->duringInstantiation();\n }", "public function testEmptyFactoryPathsException(): void\n {\n $this->expectException(InvalidArgumentException::class);\n\n new EntityFactoryManager($this->getEntityManager(), []);\n }", "public function testTypekeyPublicKeysFileUrlMissing()\n {\n $options = new ezcAuthenticationTypekeyOptions();\n\n $headers = @get_headers( self::$keysFileUrlMissing );\n if ( $headers !== false && count( $headers ) > 0 )\n {\n $this->markTestSkipped( \"This test works only if the web server (Apache, etc.) at 'localhost' is stopped.\" );\n }\n else\n {\n $this->missingFileTest( $options, 'keysFile', self::$keysFileUrlMissing );\n }\n }", "public function canGetExtensionKey() {\n\t\t$provider = $this->getConfigurationProviderInstance();\n\t\t$record = $this->getBasicRecord();\n\t\t$extensionKey = $provider->getExtensionKey($record);\n\t\t$this->assertNull($extensionKey);\n\t}", "public function testIsApplicable(): void\n {\n $this->assertTrue($this->createProvider(false)->isApplicable());\n }", "public function testValidationCaseForInvalidRemotePublicKeyUsedForComputingOfSharedKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\RuntimeException::class);\n\n $protocol->computeSharedSecret($exchangeInformation->private, $exchangeInformation->private);\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret($exchangeInformation->private, $exchangeInformation->private);\n } catch (\\RuntimeException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "protected function checkKeyExists()\n {\n if (empty($this->key)) {\n throw new InvalidArgumentException('Please set the primary key using key() method.');\n }\n }", "public function testCreatedException()\n {\n $this->expectException(DomainException::class);\n County::create('County One',0, 200);\n }", "public function testMakeAuthWithMissingConfig()\n {\n $this->expectException(BasicAuthException::class);\n $factory = new Factory([]);\n $basicAuth = $factory->makeAuth();\n }", "public function testValidationCaseForInvalidPrimeNumberForKeyExchangeGeneration()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->generateExchangeResponseInformation(['wrong'], bin2hex(decbin(2)));\n } else {\n $hasThrown = null;\n\n try {\n $protocol->generateExchangeResponseInformation(['wrong'], bin2hex(decbin(2)));\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function create(Provider $provider)\n {\n\t if (Auth::guard('provider-web')->user()->id == $provider->id) return true;\n\t return false;\n }", "public function testGetStreamKeyFailure()\n {\n $this->expectException(\\RuntimeException::class);\n $this->expectExceptionMessage(\n sprintf(\n 'The \"%s::getStream\" expect a file array key to build an instance of FileInfoStreamAdapter',\n FileInfoStreamFactory::class\n )\n );\n\n $object = new \\stdClass();\n $instance = new FileInfoStreamFactory();\n $instance->getStream(['key' => $object]);\n }", "public function testExcepcionSiSeCreaEmpleadoConDniQueContengaLetras(){\n\t\t\t$this->expectException(\\Exception::class);\n\t\t\t$emp= $this-> crear(null, null, \"4kh123l\");\n\t\t}", "public function testSetKeyPairInvalidArgumentKeyContainsAtmark(): void\n {\n $key = 'key@key';\n $value = 'Test Value';\n $this->expectException(\\InvalidArgumentException::class);\n $this->testNotStrict->set($key, $value);\n }", "public function testGetMultipleInvalidTypeNull(): void\n {\n $keyValuePairs = null;\n $this->expectException(\\TypeError::class);\n $this->testNotStrict->getMultiple($keyValuePairs);\n }", "public function testInvalidApiKeyThrowsException(): void\n {\n $accessToken = $this->createValidFakeAccessToken();\n $this->expectException(InvalidApiKeyException::class);\n $this->tryTestWithCredentials('', $accessToken);\n }", "public function testInvalidTokenToConstruct()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $slackAPIObject = new Webhook(null);\n }", "public function testFailNoCustomerNoForAccountCreate()\n {\n $card = new Card();\n $card->setToken('test-token');\n\n $config = new SinglePayConfig();\n $config->setServiceConfig(self::$testConfig);\n\n $data = new SinglePayData();\n\n $data->setCard($card)\n ->setExtras(array(\n 'method' => 'update'\n ));\n\n $transactionSetup = ExpressFactory::buildTransactionSetup($config, $data);\n }", "public function testNonStrings($key)\n {\n $store = new \\Loom\\Settable();\n $this->assertNull($store->set($key, \"myvalue\"));\n $this->assertEmpty($store->get());\n }", "public function testGenerateThrowsException()\n {\n $data = [];\n $generator = new PatternGenerator('Signifyd Case %1 has been created for order.', ['caseId']);\n $generator->generate($data);\n }", "public function testExceptionIsThrownWhenRegisteringServiceProviderWithInvalidType()\n {\n $this->setExpectedException('InvalidArgumentException');\n\n $c = new Container;\n\n $c->addServiceProvider(new \\stdClass);\n }", "public function testValidationCaseForNonStringSecretKeyPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testGetOAuthClientEmptyClientIdThrowsException()\n {\n $this->setExpectedException('InvalidArgumentException', 'Invalid clientId');\n $personaClient = $this->newOAuthClients(\n [\n 'userAgent' => 'unittest',\n 'persona_host' => 'localhost',\n 'cacheBackend' => $this->cacheBackend,\n ]\n );\n $personaClient->getOAuthClient('', '');\n }", "public function testNoSchema()\n {\n $obj_ex = null;\n try {\n new \\GDS\\Store();\n } catch (\\Exception $obj_ex) {}\n $this->assertEquals($obj_ex, new \\Exception('You must provide a Schema or Kind. Alternatively, you can extend GDS\\Store and implement the buildSchema() method.'));\n }", "public function testConstructNullContainer()\n {\n $this->expectException(\\InvalidArgumentException::class);\n new CustomNotAllowedHandler(null);\n }", "public function testCreateModel0()\n{\n\n $actual = $this->eloquentUserProvider->createModel();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testOffsetGetMissingKey()\n {\n self::assertNull($this->container->offsetGet('this key does not exist in the container'));\n }", "public function testEmptyParameter ()\n {\n $length = 8;\n $minPasswordRequirements = [];\n // Helper\n $securityHelper = new SecurityHelper(new Security()); // Empty security (it does not matter)\n // Check password correctness\n $ok = true;\n for ($i = 0; $i < self::ITERATIONS; $i++) {\n $password = $securityHelper->generatePassword($length, $minPasswordRequirements);\n $result = preg_match('/\\A[0-9a-zA-Z!#$%&*+,-.:;<=>?@_~]{8,}\\z/', $password);\n if ($result === 0) {\n $ok = false;\n break;\n }\n }\n $this->assertTrue($ok);\n }", "public function testValidationCaseForSettingWrongFormattedStringForPrivateKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->computeSharedSecret($exchangeInformation->public, 'яяяя');\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret($exchangeInformation->public, 'яяяя');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testSetKeyPairInvalidArgumentKeyContainsLeftParenthesis(): void\n {\n $key = 'key(key';\n $value = 'Test Value';\n $this->expectException(\\InvalidArgumentException::class);\n $this->testNotStrict->set($key, $value);\n }", "public function testApikeyCreateObjectV2()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testUnknownConfigurationKeyForSet()\n {\n AbstractConfigurationInstance::$allowedKeys = ['asemoqTU'];\n (new AbstractConfigurationInstance())->set('JDsUJLrq', '84VUPgAS2i');\n }", "public function testThrowingExceptionOnCreateFromJsonCaseIpMissing()\n {\n $this->expectException(Exception::class);\n $this->expectExceptionMessageMatches('/Provided JSON does not contain \\'clientAddress\\' attribute./');\n\n GeoData::createFromJson('{}');\n }" ]
[ "0.67588204", "0.67027736", "0.668399", "0.6524192", "0.64295864", "0.635062", "0.62926936", "0.627621", "0.6231925", "0.6185014", "0.6111316", "0.6110822", "0.60911405", "0.60582674", "0.6039716", "0.60265285", "0.5996526", "0.5967178", "0.5964531", "0.59418994", "0.5939724", "0.5932234", "0.5927523", "0.5912605", "0.58951116", "0.58923596", "0.58905035", "0.58816975", "0.58730966", "0.586692", "0.58566797", "0.5852745", "0.5812512", "0.57923317", "0.5787821", "0.5786882", "0.578071", "0.5779921", "0.57786393", "0.5766292", "0.57584685", "0.57355666", "0.5734832", "0.5731188", "0.5716748", "0.5715925", "0.57054335", "0.5702628", "0.5695801", "0.56945705", "0.56832665", "0.5657408", "0.5632887", "0.56255054", "0.56248367", "0.5614427", "0.56115735", "0.56052697", "0.56046546", "0.55951303", "0.55936384", "0.5592282", "0.5589627", "0.5587409", "0.5586123", "0.55771714", "0.5570383", "0.55590934", "0.5551724", "0.5550266", "0.5549984", "0.55474", "0.55473536", "0.5529639", "0.55287904", "0.55272436", "0.55193985", "0.551592", "0.5506544", "0.5500614", "0.5492511", "0.5487493", "0.54825085", "0.54671764", "0.5462338", "0.54599833", "0.54543495", "0.5449863", "0.54491025", "0.5448847", "0.5448213", "0.544804", "0.5438093", "0.5436313", "0.5429929", "0.5426985", "0.5425852", "0.5424592", "0.54244506", "0.5423381" ]
0.7031421
0
Test creation with all values.
public function testCreateWithRolesIsAuthenticated() { $token = new JavascriptWebToken('CREDENTIALS', 'PROVIDER', 'username', ['ROLE_1', 'ROLE_2']); $this->assertEquals('CREDENTIALS', $token->getCredentials()); $this->assertEquals('PROVIDER', $token->getProviderKey()); $this->assertEquals('username', $token->getUsername()); /** @var Role[] $roles */ $roles = $token->getRoles(); $this->assertEquals(2, count($roles)); $this->assertInstanceOf(Role::class, $roles[0]); $this->assertEquals('ROLE_1', $roles[0]->getRole()); $this->assertInstanceOf(Role::class, $roles[1]); $this->assertEquals('ROLE_2', $roles[1]->getRole()); $this->assertTrue($token->isAuthenticated()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function an_user_makes_a_successfull_data_creation()\n {\n $data = factory(Data::class)->create();\n $this->assertDatabaseHas('data', $data->toArray());\n }", "public function testCreateWithAllFields(): void\n {\n $this->doTestCreate('createWithAllFields.json');\n }", "public function testGetValues()\n {\n $this->todo('stub');\n }", "public function testQuarantineCreate()\n {\n\n }", "public function testAllCreate($name)\n {\n $arguments = $this->getRequiredArguments($name);\n self::executeMethod($name, $arguments)->getResponse();\n }", "public function testConstructor()\n\t{\n\t\t$modes = [false,\n\t\t true];\n\t\t$types = [\n\t\t\tBuilder::TYPE_COMPANY,\n\t\t\tBuilder::TYPE_COMPANY,\n\t\t];\n\t\tforeach ($modes as $mode) {\n\t\t\tforeach ($types as $type) {\n\t\t\t\t$builder = new Builder($type, $mode);\n\t\t\t\t$this->assertEquals($type, $this->getProtectedMember($builder, 'recipient_type'));\n\t\t\t\t$this->assertEquals($mode, $this->getProtectedMember($builder, 'strict_mode'));\n\t\t\t}\n\t\t}\n\t}", "abstract public function testConstructorAndProperties(): void;", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInstanceOf('Dhii\\\\SimpleTest\\\\Locator\\\\ResultSetInterface', $subject, 'Subject is not a valid locator result set');\n $this->assertInstanceOf('Dhii\\\\SimpleTest\\\\Test\\\\SourceInterface', $subject, 'Subject is not a valid test source');\n }", "public function testGetAll() {\n\t\t$class = get_class($this->entity);\n\t\t$array = $this->entity->toArray(true);\n\t\t$filled = $this->fillArray($array);\n\t\t$entity = new $class($filled);\n\t\t\n\t\t$result = array();\n\t\tforeach ($filled as $attr => $val){\n\t\t\t$entity->{'set' . $attr}($val);\n\t\t\t$result[$attr] = $entity->{'get' . $attr}();\n\t\t}\n\t\t\n\t\t$this->assertEquals($filled, $result);\n\t}", "public function testGetValues()\n {\n $values = new \\models\\Cards\\Values();\n $values = $values->getValues();\n $count = count($values);\n // number of values should be 13\n $this->assertEquals($count, 13);\n }", "public function testGenerateMultipleDuplicateValues()\n {\n $registeredValue = new \\stdClass();\n $this->generator->registerValue($registeredValue);\n\n $values = iterator_to_array($this->generator->generateMultiple(10));\n\n $this->assertCount(10, $values);\n foreach ($values as $value)\n {\n $this->assertEquals($value, $registeredValue);\n }\n }", "public function test_calledCreateMethod_withValidParameters_argumentsHasBeenSetted()\n {\n $dataContainerMock = $this->getDataConteinerMock();\n\n $sut = DataWrapper::create(\n 200,\n \"Ok\",\n \"copyright\",\n \"attribution text\",\n \"attribution HTML\",\n $dataContainerMock,\n \"etag\"\n );\n\n $this->assertEquals(200, $sut->getCode());\n $this->assertEquals(\"Ok\", $sut->getStatus());\n $this->assertEquals(\"copyright\", $sut->getCopyright());\n $this->assertEquals(\"attribution text\", $sut->getAttributionText());\n $this->assertEquals(\"attribution HTML\", $sut->getAttributionHTML());\n $this->assertEquals(\"etag\", $sut->getEtag());\n }", "public function test___construct() {\n\t\t}", "public function test___construct() {\n\t\t}", "public function setTestValues()\r\n {\r\n $fname = array(\"Jesper\", \"Nicolai\", \"Alex\", \"Stefan\", \"Helmut\", \"Elvis\");\r\n $lname = array(\"Gødvad\", \"Lundgaard\", \"Killing\", \"Meyer\", \"Schottmüller\", \"Presly\");\r\n $city = array(\"Copenhagen\", \"Århus\", \"Collonge\", \"Bremen\", \"SecretPlace\" );\r\n $country = array(\"Denmark\", \"Germany\", \"France\", \"Ümlaudia\", \"Graceland\");\r\n $road = array(\" Straße\", \" Road\", \"vej\", \" Boulevard\");\r\n \r\n $this->number = rand(1000,1010);\r\n $this->name = $fname[rand(0,5)] . \" \" . $lname[rand(0,5)];\r\n $this->email = \"[email protected]\";\r\n $this->address= \"Ilias\" . $road[rand(0,3)] .\" \" . rand(1,100);\r\n $this->postalcode = rand(2000,7000);\r\n $this->city = $city[rand(0,3)];\r\n $this->country = $country[rand(0,4)];\r\n $this->phone = \"+\" . rand(1,45) . \" \" . rand(100,999) . \" \" . rand(1000, 9999);\r\n $this->ean = 0;\r\n $this->website = ilERPDebtor::website; \r\n }", "public function create(array $data): bool\n {\n }", "public function create(array $data): bool\n {\n }", "public function create(array $data): bool\n {\n }", "public function test_create()\n\t{\n\t\tlist($id, $affected) = $this->model->create(array(\n\t\t\t'user_id' => '1',\n\t\t\t'role_id' => '1'\n\t\t));\n\n\t\t$this->assertSame(0, $id); // No primary key...\n\t\t$this->assertSame(1, $affected);\n\t}", "public function testCreateUser()\n { \n $userRepo = new UserRepository(new User);\n $user = $userRepo->create($this->data);\n\n $this->assertInstanceOf(User::class, $user);\n foreach ($this->data as $key => $value) {\n \t$this->assertEquals($value, $user->$key);\n }\n }", "public function testCreate()\n {\n \t$game_factory = factory(Game::class)->create();\n\n $this->assertTrue($game_factory->wasRecentlyCreated);\n }", "public function testConstruct()\n {\n $data_from_collection = $this->data['monthly_collection'];\n $this->assertEquals(\n $data_from_collection['attributes']['plan_name'],\n $this->makePlan($data_from_collection)->get('plan_name')\n );\n\n $data_from_site = $this->data['monthly_site'];\n $this->assertEquals($data_from_site['name'], $this->makePlan($data_from_site)->get('name'));\n }", "public function testCreate()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInternalType(\n 'object',\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInternalType(\n 'object',\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInternalType(\n 'object',\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCreate() {\n $provider = new Provider();\n $provider\n ->set(null, 'required')\n ->set(null, 'nonType')\n ->set(true, 'boolean')\n ->set(2, 'integer')\n ->set('some string', 'string')\n ->set([], 'array')\n ->set(new stdClass(), 'withoutDefault');\n\n $creator = $this->_createCreator($provider);\n\n $this->assertInstanceOf(stdClass::class, $creator->create(stdClass::class));\n $this->assertInstanceOf(ArrayObject::class, $creator->create(ArrayObject::class));\n $this->assertInstanceOf(ConstructTest\\BasicParameters::class, $creator->create(ConstructTest\\BasicParameters::class));\n $this->assertInstanceOf(ConstructTest\\BasicWithDefaults::class, $creator->create(ConstructTest\\BasicWithDefaults::class));\n $this->assertInstanceOf(ConstructTest\\SimpleClass::class, $creator->create(ConstructTest\\SimpleClass::class));\n $this->assertInstanceOf(ConstructTest\\WithDependencies::class, $creator->create(ConstructTest\\WithDependencies::class));\n $this->assertInstanceOf(ConstructTest\\WithoutConstruct::class, $creator->create(ConstructTest\\WithoutConstruct::class));\n\n $this->assertInstanceOf(SingletonTest\\BasicParameters::class, $creator->create(SingletonTest\\BasicParameters::class));\n $this->assertInstanceOf(SingletonTest\\BasicWithDefaults::class, $creator->create(SingletonTest\\BasicWithDefaults::class));\n $this->assertInstanceOf(SingletonTest\\SimpleClass::class, $creator->create(SingletonTest\\SimpleClass::class));\n $this->assertInstanceOf(SingletonTest\\WithDependencies::class, $creator->create(SingletonTest\\WithDependencies::class));\n $this->assertInstanceOf(SingletonTest\\ProtectedSingleton::class, $creator->create(SingletonTest\\ProtectedSingleton::class));\n $this->assertInstanceOf(SingletonTest\\NonSingleton::class, $creator->create(SingletonTest\\NonSingleton::class));\n }", "protected function setUp() {\n\n //test live_id\n try {\n $this->objectMissSet = new Live(\"er\");\n } catch (InvalidArgumentException $e) {\n $this->assertEquals(\"Parameter live_id is not numeric in Live object Constructor.\", $e->getMessage());\n }\n //test online\n try {\n $this->objectMissSet = new Live(0, \"\", \"\", \"\", \"vsxf\");\n } catch (InvalidArgumentException $e) {\n $this->assertEquals(\"Parameter online can only take two value (0 = online or 1 = online) in Live object Constructor.\", $e->getMessage());\n }\n\n\n //test stream type\n try {\n $this->objectMissSet = new Live(0, \"\", \"\", \"\", 0, \"34g5\");\n } catch (InvalidArgumentException $e) {\n $this->assertEquals(\"Parameter stream_type can only take two value (1 = live or 3 = radio)in Live object Constructor.\", $e->getMessage());\n }\n\n //test stream category\n try {\n\n $this->objectMissSet = new Live(0, \"\", \"\", \"\", 0, 1, \"rdgh\");\n } catch (InvalidArgumentException $e) {\n $this->assertEquals(\"Parameter stream_category is not numeric in Live object Constructor.\", $e->getMessage());\n }\n // test user_id\n try {\n $this->objectMissSet = new Live(0, \"\", \"\", \"\", 0, 1, 20, 0, \"gsen\");\n } catch (InvalidArgumentException $e) {\n $this->assertEquals(\"Parameter user_id is not numeric in Live object Constructor.\", $e->getMessage());\n }\n //test activechat\n try {\n $this->objectMissSet = new Live(0, \"\", \"\", \"\", 0, 1, 20, \"bdh\");\n } catch (InvalidArgumentException $e) {\n $this->assertEquals(\"Parameter activateChat can only take two value (0 or 1)in Live object Constructor.\", $e->getMessage());\n }\n\n //test autoplay\n try {\n $this->objectMissSet = new Live(0, \"\", \"\", \"\", 0, 3, 20, 0, 0, 1);\n } catch (InvalidArgumentException $e) {\n $this->assertEquals(\"Parameter autoplay can only take two value (0 or 1)in Live object Constructor.\", $e->getMessage());\n }\n //init default Live\n $this->object = new Live;\n $this->object->set_currentRate(new Rate);\n $this->object->set_currentCoupon(new Coupon);\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance(['_getArgsForDefinition']);\n\n $this->assertInstanceOf(\n static::TEST_SUBJECT_CLASSNAME,\n $subject,\n 'A valid instance of the test subject could not be created.'\n );\n }", "public function testCreateInstance(array $testCase)\n {\n $randomnessGenerator = $this->createGenerator(\n $testCase\n );\n\n $this->assertEquals($testCase['seed'], $randomnessGenerator->getSeed());\n $this->assertEquals($testCase['min'], $randomnessGenerator->getMin());\n $this->assertEquals($testCase['max'], $randomnessGenerator->getMax());\n $this->assertEquals($testCase['format'], $randomnessGenerator->getFormat());\n }", "public function testSetValues()\n {\n $this->todo('stub');\n }", "public function testCreate()\n {\n \t$player_factory = factory(KillingMode::class)->create();\n\n $this->assertTrue($player_factory->wasRecentlyCreated);\n }", "public function testExample()\n {\n\n $attributes = [\n 'name' => $this->faker->name,\n 'email' => $this->faker->email,\n 'password' => $this->faker->password,\n ];\n\n\n\n $this->assertTrue(true);\n }", "public function testCreateSuperfund()\n {\n }", "public function testBasicTest()\n {\n $users = factory(\\App\\Models\\Suara::class, 1000)->make();\n\n foreach ($users as $key => $value) {\n $value->save();\n }\n $this->assertCount(6, $users);\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }", "public function testUserCanCreated()\n {\n $user = factory(App\\UserMongo::create([\n \t'first_name' => 'agus',\n \t'last_name' => 'yusida',\n \t'email' => '[email protected]',\n \t]));\n \t$this->seeInDatabase('users',[\n \t\t'first_name' => 'agus',\n \t'last_name' => 'yusida',\n \t'email' => '[email protected]',\n \t\t]);\n }", "public function testGetValues()\n {\n $hand = new DiceHand(3);\n\n $hand->roll();\n\n $res = $hand->getValues();\n\n $this->assertIsArray($res);\n }", "public function testCreateChamado()\n {\n }", "public function testConstruct()\n {\n $this->assertAttributeEquals($this->modelMock, 'recordModel',\n $this->testObj);\n }", "public function testCreate()\n {\n $model = $this->makeFactory();\n \n $this->json('POST', static::ROUTE, $model->toArray(), [\n 'Authorization' => 'Token ' . self::getToken()\n ])\n ->seeStatusCode(JsonResponse::HTTP_CREATED) \n ->seeJson($model->toArray());\n }", "public function testCreate()\n {\n\n $this->createDummyPermission(\"1\");\n $this->createDummyPermission(\"2\");\n\n $this->call('POST', '/api/role', array(\n 'action' => $this->createAction,\n 'name' => $this->testRoleName,\n 'description' => $this->testRoleDesc,\n 'permissionCount' => $this->testPermissionCount,\n 'permission0' => 1,\n 'permission1' => 2\n ));\n\n $this->assertDatabaseHas('roles', [\n 'id' => 1,\n 'name' => $this->testRoleName,\n 'description' => $this->testRoleDesc\n ]);\n\n $this->assertDatabaseHas('role_permission', [\n 'role_id' => 1,\n 'permission_id' => [1, 2]\n ]);\n }", "public function testGetAll()\n {\n foreach (range(1,10) as $index)\n {\n DB::table('users')->insert([\n 'first_name' => $this->faker->firstName,\n 'last_name' => $this->faker->lastName,\n 'email' => $this->faker->email,\n 'password' => bcrypt('secret'),\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime()\n ]);\n }\n\n // Get the user from DB with the getById method\n $userFromDb = $this->userRepository->getAll();\n // Make sure the user the proper name and email\n $this->assertCount(10, $userFromDb);\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInstanceOf(static::TEST_SUBJECT_CLASSNAME, $subject, 'A valid instance of the test subject could not be created.');\n $this->assertInstanceOf('OutOfRangeException', $subject, 'Subject is not a valid out of range exception.');\n $this->assertInstanceOf('Dhii\\Exception\\OutOfRangeExceptionInterface', $subject, 'Subject does not implement required interface.');\n }", "public function test_create__multiple()\n {\n\n // Element\n $element = [\n 'attributes' => [\n 'type' => 'text',\n 'name' => 'my-text',\n 'id' => 'my-id'\n ],\n 'label' => 'My label'\n ];\n // ChoiceElement\n $choice = [\n 'attributes' => [\n 'type' => 'select',\n 'name' => 'my-select',\n 'id' => 'my-id'\n ]\n ];\n // Collection - with additional elements\n $collection = [\n 'attributes' => [\n 'type' => 'collection',\n 'name' => 'my-collection',\n 'id' => 'my-collection'\n ],\n 'elements' => [$element, $choice]\n ];\n\n $elements = (new ElementFactory())->createMultiple([$element, $choice, $collection]);\n\n static::assertCount(3, $elements);\n static::assertInstanceOf(ElementInterface::class, $elements[ 0 ]);\n static::assertInstanceOf(ChoiceElementInterface::class, $elements[ 1 ]);\n static::assertInstanceOf(CollectionElementInterface::class, $elements[ 2 ]);\n }", "public function testCreation()\n {\n $this->module->enableRegistration = false;\n\n $this->specify(\"we have create user if registration disabled\", function () {\n $user = new User([\n 'email' => '[email protected]',\n 'password' => 'password',\n 'name' => 'Test user',\n ]);\n expect(\"we can create user if registration disabled\", $user->create())->true();\n $this->tester->dontSeeEmailIsSent();\n //create() on existing user throw \\RuntimeException\n $user->create();\n }, ['throws' => new \\RuntimeException]);\n\n $this->module->enableRegistration = true;\n $this->specify(\"we have create user with register email\", function () {\n $user = new User([\n 'email' => '[email protected]',\n 'password' => 'password',\n 'name' => 'Test user 2',\n ]);\n expect(\"we can create user if registration disabled\", $user->create(true))->true();\n /** @var TestMailer $message */\n /** @var yii\\swiftmailer\\Message $message */\n $this->tester->seeEmailIsSent();\n $message = $this->tester->grabLastSentEmail();\n expect(\"we must see email\", $message)->notNull();\n expect(\"we must see email to user\", $message->getTo())->hasKey($user->email);\n expect(\"we must see registration email\", $message->getSubject())->contains('register');\n });\n\n $this->specify(\"we have create user wit autogenerated password\", function () {\n $user = new User([\n 'email' => '[email protected]',\n 'name' => 'Test user',\n ]);\n expect(\"we can create user with autogenerated password\", $user->create())->true();\n });\n\n $this->specify(\"we have create user without name\", function () {\n $user = new User([\n 'email' => '[email protected]',\n 'password' => 'password',\n ]);\n expect(\"we can't create user without name\", $user->create())->false();\n expect(\"we can see error `name`\", $user->getErrors())->hasKey('name');\n });\n }", "public function create(): bool;", "function TestCase_create($author_id, $case_status_id, $category_id, $isautomated, $plan_id, $alias = NULL, $arguments = NULL, $canview = NULL, $creation_date = NULL, $default_tester_id = NULL, $priority_id = NULL, $requirement = NULL, $script = NULL, $summary = NULL, $sortkey = NULL) {\n\t$varray = array(\"author_id\" => \"int\", \"case_status_id\" => \"int\", \"category_id\" => \"int\", \"isautomated\" => \"int\", \"plan_id\" => \"int\", \"alias\" => \"string\", \"arguments\" => \"string\", \"canview\" => \"int\", \"creation_date\" => \"string\", \"default_tester_id\" => \"int\", \"priority_id\" => \"int\", \"requirement\" => \"string\", \"script\" => \"string\", \"summary\" => \"string\", \"sortkey\" => \"int\");\n\tforeach($varray as $key => $val) {\n\t\tif (isset(${$key})) {\n\t\t\t$carray[$key] = new xmlrpcval(${$key}, $val);\n\t\t}\n\t}\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.create', array(new xmlrpcval($carray, \"struct\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "abstract function create();", "public function testConstruct()\n {\n $this->assertAttributeSame($this->doctrineRegistryMock, 'doctrineRegistry', $this->userFactory);\n $this->assertAttributeSame(User::class, 'userClass', $this->userFactory);\n $this->assertAttributeSame('username', 'usernameColumn', $this->userFactory);\n $this->assertAttributeSame($this->userRepositoryMock, 'userRepository', $this->userFactory);\n $this->assertAttributeSame($this->contactRepositoryMock, 'contactRepository', $this->userFactory);\n $this->assertAttributeSame($this->roleRepositoryMock, 'roleRepository', $this->userFactory);\n $this->assertAttributeSame($this->localizationManagerMock, 'localizationManager', $this->userFactory);\n $this->assertAttributeSame(array('uid' => 'username'), 'userPropertyMap', $this->userFactory);\n }", "public function testIfCreationIsCorrect(){ \n \n $this->assertEquals(-1, $this->status->getStatusId()); \n $this->assertEquals('default_status', $this->status->getStatusName());\n \n }", "public function testIfReturnsAllElements()\n {\n $factory = new FileSystemMapFactory();\n $result = $factory->create($this->data);\n\n $this->assertEquals(count($this->data), count($result));\n }", "public function create($propertyValues = []);", "public function test_create_item() {}", "public function test_create_item() {}", "public function testExample()\n {\n factory(Food::class)->create([\n 'name' => 'Burritos',\n 'qty' => 5,\n 'price' => 5,\n ]);\n\n $foods = Food::foods();\n $this->assertCount(1, $foods);\n\n $this->assertEquals([\n \"id\" => $foods[0]['id'],\n 'name' => 'Burritos',\n 'qty' => 5,\n 'price' => 5,\n ], $foods->toArray()[0]);\n }", "public function setUp()\n {\n parent::setUp();\n factory(Store::class, self::NUMBER_RECORD)->create();\n for ($i = 1; $i <= self::NUMBER_RECORD; $i++) {\n factory(ShopOpeningStatus::class,1)->create([\n 'store_id' => $i\n ]);\n }\n }", "public function testFactory()\n {\n $processRequest = factory(\\App\\ProcessRequest::class)->create();\n $this->assertCount(1, ProcessRequest::all());\n }", "public function create(array $create) : bool;", "protected function setUp(): void\n {\n parent::setUp();\n\n $this->value = random_int(1, 100000);\n\n $randomValue = md5((string)$this->value);\n\n $this->value1 = $randomValue . '_1';\n $this->value2 = $randomValue . '_2';\n $this->value3 = $randomValue . '_3';\n }", "protected function createTests()\n {\n $name = $this->getNameInput();\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Store{$name}Test\",\n '--model' => $name,\n '--type' => 'store',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Update{$name}Test\",\n '--model' => $name,\n '--type' => 'update',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/View{$name}Test\",\n '--model' => $name,\n '--type' => 'view',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Delete{$name}Test\",\n '--model' => $name,\n '--type' => 'delete',\n ]);\n }", "public function providerTestCreateRequest() {\n $tests = [];\n $tests[] = ['example.com', [], 'example.com'];\n $tests[] = ['localhost', [], 'localhost'];\n $tests[] = ['localhost', ['HTTP_HOST' => 'localhost'], 'localhost'];\n $tests[] = ['example.com', ['HTTP_HOST' => 'localhost'], 'example.com'];\n return $tests;\n }", "public function testCreate()\n {\n /**\n * @todo IMPLEMENT THIS\n */\n $factory = new components\\Factory();\n //Success\n $this->assertEquals($factory->create(\"github\"), new components\\platforms\\Github([]));\n $this->assertEquals($factory->create(\"github\"), new components\\platforms\\Github([]));\n $this->assertEquals($factory->create(\"gitlab\"), new components\\platforms\\Gitlab([]));\n $this->assertEquals($factory->create(\"bitbucket\"), new components\\platforms\\Bitbucket([]));\n //Exception Case\n $this->expectException(\\LogicException::class);\n $platform = $factory->create(\"Fake\");\n\n }", "public function testItCanCreateEntity()\n {\n $values = [\n 'first_name' => 'First name account',\n 'last_name' => 'Last name account',\n 'email' => '[email protected]',\n ];\n $ignore = [\n 'is_active' => false,\n 'is_superuser' => true,\n 'is_staff' => true,\n ];\n $password = 'testpass';\n\n $entity = $this->accountService->create(array_merge(\n $values,\n ['password' => $password],\n $ignore\n ));\n $data = $entity->toArray();\n\n $this->assertDatabaseHas('user_users', $values);\n $this->assertInstanceOf(User::class, $entity);\n $this->assertTrue(Hash::check($password, $entity->password));\n $this->assertTrue($entity->is_active);\n $this->assertFalse($entity->is_superuser);\n $this->assertFalse($entity->is_staff);\n\n foreach ($this->dataStructure() as $key) {\n $this->assertArrayHasKey($key, $data);\n }\n }", "public function testRegisterValues()\n {\n $values = ['foobar' => 10, 'foo' => 20, 'bar' => 30];\n $this->generator->registerValues($values);\n\n foreach ($this->generator->getWeightedValues() as $weightedValue)\n {\n $this->assertArrayHasKey($weightedValue->getValue(), $values);\n $this->assertEquals($values[$weightedValue->getValue()], $weightedValue->getWeight());\n }\n }", "public function creating(array $data);", "protected function testObjects() {\n }", "public function testCreateEntityAndGetDefaultDataSuccessfully(): void\n {\n $entityFactoryManager = $this->getEntityFactoryManager([\n 'Tests\\EoneoPay\\Externals\\ORM\\Stubs\\Factories\\\\' => 'Tests\\EoneoPay\\Externals\\ORM\\Stubs'\n ]);\n\n $entity1 = $entityFactoryManager->get(EntityStub::class);\n $entity2 = $entityFactoryManager->get(EntityStub::class);\n $entity3 = $entityFactoryManager->create(EntityStub::class, ['string' => 'different']);\n\n foreach ([$entity1, $entity2, $entity3] as $entity) {\n self::assertInstanceOf(EntityStub::class, $entity);\n }\n\n self::assertEquals(\\spl_object_hash($entity1), \\spl_object_hash($entity2));\n self::assertNotEquals(\\spl_object_hash($entity1), \\spl_object_hash($entity3));\n\n /** @noinspection UnnecessaryAssertionInspection Create returns EntityInterface */\n self::assertInstanceOf(EntityWithRulesStub::class, $entityFactoryManager->create(EntityWithRulesStub::class));\n\n self::assertEquals(\n ['integer' => 1, 'string' => 'string'],\n $entityFactoryManager->getDefaultData(EntityStub::class)\n );\n }", "public function testRegisterValue()\n {\n $values = [\n 123,\n '123',\n [1,2,3],\n new stdClass(),\n false,\n null\n ];\n\n // Mock random number generator to return 1,2,3,4\n $mockRandomNumberGenerator = $this->createPartialMock(\\stdClass::class, ['__invoke']);\n $mockRandomNumberGenerator->method('__invoke')\n ->withAnyParameters()\n ->will($this->onConsecutiveCalls(...range(1,count($values))));\n\n $this->generator->setRandomNumberGenerator($mockRandomNumberGenerator);\n\n foreach ($values as $value)\n {\n $this->generator->registerValue($value);\n }\n\n $sample = iterator_to_array($this->generator->generateMultipleWithoutDuplicates(count($values)));\n $this->assertEquals($values, $sample);\n }", "public function testCreate()\n\t{\n\t\tRoute::enableFilters();\n\t\tEvaluationTest::adminLogin();\n\t\t$response = $this->call('GET', '/evaluation/create');\n\t\t\n\t\t$this->assertResponseOk();\n\n\t\tSentry::logout();\n\t\t\n\t\t//tesing that a normal user can't retrieve a form to create \n\t\t//an evaluation and that a page displays a message as to why they can't\n\t\tEvaluationTest::userLogin();\n\t\t$crawler = $this->client->request('GET', '/evaluation/create');\n\t\t$message = $crawler->filter('body')->text();\n\n\t\t$this->assertFalse($this->client->getResponse()->isOk());\n\t\t$this->assertEquals(\"Access Forbidden! You do not have permissions to access this page!\", $message);\n\n\t\tSentry::logout();\n\t}", "public function testCreation ()\n {\n $newInstance = new Noherczeg\\Breadcrumb\\Translator('en');\n $this->assertTrue(is_array($newInstance->dump()));\n\n $newInstance2 = new Noherczeg\\Breadcrumb\\Translator();\n $this->assertTrue(is_array($newInstance2->dump()));\n\n $newInstance3 = new Noherczeg\\Breadcrumb\\Translator(array('shold_translate' => 'to_this', 'this' => 'as_well'));\n $this->assertTrue(is_array($newInstance3->dump()));\n\n }", "public function testCreateContador()\n {\n }", "public function it_can_be_instantiated(): void\n {\n $results = [\n Meta::make('name', 'Hello world'),\n new Meta('name', 'Hello world'),\n ];\n $expectations = [\n \\Arcanedev\\SeoHelper\\Contracts\\Renderable::class,\n \\Arcanedev\\SeoHelper\\Contracts\\Helpers\\Meta::class,\n \\Arcanedev\\SeoHelper\\Helpers\\Meta::class,\n ];\n\n foreach ($results as $actual) {\n /** @var Meta $actual */\n foreach ($expectations as $expected) {\n static::assertInstanceOf($expected, $actual);\n }\n\n static::assertSame('name', $actual->key());\n static::assertTrue($actual->isValid());\n }\n }", "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInstanceOf(\n static::TEST_SUBJECT_CLASSNAME, $subject,\n 'Subject is not a valid instance'\n );\n }", "public function testCreatePatrimonio()\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 testConstruct() {\n\n $this->assertEquals(63, ArgumentInterface::TYPE_ARRAY);\n $this->assertEquals(64, ArgumentInterface::TYPE_BOOLEAN);\n $this->assertEquals(30, ArgumentInterface::TYPE_DATE);\n $this->assertEquals(59, ArgumentInterface::TYPE_DOUBLE);\n $this->assertEquals(54, ArgumentInterface::TYPE_FLOAT);\n $this->assertEquals(78, ArgumentInterface::TYPE_INTEGER);\n $this->assertEquals(73, ArgumentInterface::TYPE_NUMBER);\n $this->assertEquals(55, ArgumentInterface::TYPE_OBJECT);\n $this->assertEquals(104, ArgumentInterface::TYPE_RESOURCE);\n $this->assertEquals(87, ArgumentInterface::TYPE_STRING);\n $this->assertEquals(116, ArgumentInterface::TYPE_TIMESTAMP);\n }", "public function create()\n\t{\n\n\n\t\t//\n\t}", "abstract protected function constructTestHelper();", "public function testConstructor()\n {\n echo \"\\n//////////////////////////////////\";\n echo \"\\n/// Test Constructor Method\";\n foreach ($this->dataSet as $key => $data) {\n echo \"\\n\".$key.' : '.$data['test'];\n try {\n new PaymentGateway(\n $data['apiBaseUrl'],\n $data['apiKey'],\n $data['mobile']\n );\n } catch (\\Exception $e) {\n $this->assertEquals($data['isAssertion'], false, 'Error:dataSet number ' . $key . ' is not passed'.\n \"\\nTest:\".$data['test']);\n }\n }\n $this->assertTrue(true);\n }", "public function test__construct() {\n\n $obj = new HistoPrepPaie();\n\n $this->assertNull($obj->getCodeEmploye());\n $this->assertNull($obj->getContingentHSupReposComp());\n $this->assertNull($obj->getDroitCp());\n $this->assertNull($obj->getEtat());\n $this->assertNull($obj->getHabs0());\n $this->assertNull($obj->getHabs1());\n $this->assertNull($obj->getHabs2());\n $this->assertNull($obj->getHabs3());\n $this->assertNull($obj->getHabs4());\n $this->assertNull($obj->getHabs5());\n $this->assertNull($obj->getHabs6());\n $this->assertNull($obj->getHabs7());\n $this->assertNull($obj->getHabs8());\n $this->assertNull($obj->getHabs9());\n $this->assertNull($obj->getHacp());\n $this->assertNull($obj->getHc());\n $this->assertNull($obj->getHPrev());\n $this->assertNull($obj->getHRempl());\n $this->assertNull($obj->getHs1());\n $this->assertNull($obj->getHs2());\n $this->assertNull($obj->getHs3());\n $this->assertNull($obj->getHs35Heures());\n $this->assertNull($obj->getHSurcroit());\n $this->assertNull($obj->getHeuresRcAcquises());\n $this->assertNull($obj->getHeuresRrAcquises());\n $this->assertNull($obj->getJacp());\n $this->assertNull($obj->getJoursRttAcquis());\n $this->assertNull($obj->getMensualisation());\n $this->assertNull($obj->getMtPrime1Chantier());\n $this->assertNull($obj->getMtPrime2Chantier());\n $this->assertNull($obj->getMtPrime3Chantier());\n $this->assertNull($obj->getMtPrimeForfait());\n $this->assertNull($obj->getNbHeuresRs());\n $this->assertNull($obj->getNbHeuresTp());\n $this->assertNull($obj->getNbPaniers());\n $this->assertNull($obj->getPeriode());\n $this->assertNull($obj->getPrime1());\n $this->assertNull($obj->getPrime10());\n $this->assertNull($obj->getPrime1Mai());\n $this->assertNull($obj->getPrime2());\n $this->assertNull($obj->getPrime3());\n $this->assertNull($obj->getPrime4());\n $this->assertNull($obj->getPrime5());\n $this->assertNull($obj->getPrime6());\n $this->assertNull($obj->getPrime7());\n $this->assertNull($obj->getPrime8());\n $this->assertNull($obj->getPrime9());\n $this->assertNull($obj->getPrimeHComplMaj());\n $this->assertNull($obj->getPrimeHDim2Normal());\n $this->assertNull($obj->getPrimeHDimExcept());\n $this->assertNull($obj->getPrimeHDimNormal());\n $this->assertNull($obj->getPrimeHNuit2Normal());\n $this->assertNull($obj->getPrimeHNuitExcept());\n $this->assertNull($obj->getPrimeHNuitNormal());\n $this->assertNull($obj->getPrimeJf2Normal());\n $this->assertNull($obj->getPrimeJfExcept());\n $this->assertNull($obj->getPrimeJfNormal());\n $this->assertNull($obj->getTempsPasse());\n $this->assertNull($obj->getTotalHAnal());\n $this->assertNull($obj->getTxHoraireRs());\n $this->assertNull($obj->getTxHoraireTp());\n $this->assertNull($obj->getYaEuSaisieManuelle());\n }", "public function testCreateNew() {\n $array = [\n 'status' => true,\n 'data' => [\n 'company_id' => 4564658766,\n 'name' => 'My Test Key',\n 'slug' => 'my-test-key',\n 'public' => '4c9184f37cff01bcdc32dc486ec36961',\n 'private' => '2c17c6393771ee3048ae34d6b380c5ec',\n 'production' => 0,\n 'special' => 1,\n 'created_at' => time(),\n 'updated_at' => time()\n ]\n ];\n\n /**\n * Mocks the HTTP Response.\n */\n $this->httpResponse = $this\n ->getMockBuilder('GuzzleHttp\\Psr7\\Response')\n ->getMock();\n $this->httpResponse\n ->method('getBody')\n ->will($this->returnValue(json_encode($array)));\n $this->httpClient\n ->method('request')\n ->will($this->returnValue($this->httpResponse));\n\n /**\n * Calls the createNew() method.\n */\n $response = $this->credentialsEndpoint->createNew('My Test Key', false);\n\n /**\n * Assertions.\n */\n $this->assertNotEmpty($response);\n\n $this->assertArrayHasKey('status', $response);\n $this->assertTrue($response['status']);\n\n $this->assertArrayHasKey('data', $response);\n $this->assertNotEmpty($response['data']);\n\n $this->assertArrayHasKey('company_id', $response['data']);\n $this->assertSame(4564658766, $response['data']['company_id']);\n\n $this->assertArrayHasKey('name', $response['data']);\n $this->assertSame('My Test Key', $response['data']['name']);\n\n $this->assertArrayHasKey('slug', $response['data']);\n $this->assertSame('my-test-key', $response['data']['slug']);\n\n $this->assertArrayHasKey('public', $response['data']);\n $this->assertSame('4c9184f37cff01bcdc32dc486ec36961', $response['data']['public']);\n\n $this->assertArrayHasKey('private', $response['data']);\n $this->assertSame('2c17c6393771ee3048ae34d6b380c5ec', $response['data']['private']);\n\n $this->assertInternalType('int', $response['data']['production']);\n $this->assertSame(0, $response['data']['production']);\n\n $this->assertInternalType('int', $response['data']['special']);\n $this->assertSame(1, $response['data']['special']);\n\n $this->assertInternalType('int', $response['data']['created_at']);\n $this->assertInternalType('int', $response['data']['updated_at']);\n }", "public function create()\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function testInstance() { }", "public function testInitialValues()\n {\n $game = new Game('php');\n\n $this->assertSame(11, $game->getRemainingAttempts());\n $this->assertEmpty($game->getFoundLetters());\n $this->assertEmpty($game->getTriedLetters());\n $this->assertSame(array('p', 'h', 'p'), $game->getWordLetters());\n $this->assertFalse($game->isHanged());\n $this->assertFalse($game->isOver());\n $this->assertFalse($game->isWon());\n $this->assertFalse($game->isLetterFound('p'));\n $this->assertFalse($game->isLetterFound('h'));\n }", "public function testStatusOption()\n {\n $user = factory(User::class)->create();\n $lease = factory(Lease::class)->create();\n }", "public function create(array $fields = []): bool;", "public function testCreatedTest()\n {\n $add =2;\n $oldcount = Category::all()->count()+$add;\n factory(Category::class,$add)->create(['created_at'=>now()]);\n $newcount = Category::all()->count();\n $this->assertEquals($oldcount,$newcount);\n }", "public function testExample()\n { \n /*\n //テーブルテスト\n $data = [\n 'name' => '111',\n 'email' => '[email protected]',\n ];\n\n //create\n $user = new User(); \n $user->fill($data)->save();\n $this->assertDatabaseHas('users', $data);\n\n //update\n $user->name = 'Dummy';\n $user->save();\n $data['name'] = $user->name = 'Dummy';\n $this->assertDatabaseHas('users', $data);\n\n //serach\n\n //serach_by\n\n //delete\n $user->delete();\n $this->assertDatabaseMissing('users', $data);\n\n //シーダー利用\n $this->seed(DatabaseSeeder::class);\n $user = User::find(1);\n $data = $user->toArray();\n $this->assertDatabaseHas('users', $data);\n\n $user->delete();\n $this->assertDatabaseMissing('users', $data);\n */\n\n //ランダムテスト\n /*\n for ($i = 0; $i < 100; $i ++ ) {\n factory(User::class)->create();\n }\n $count = User::get()->count();\n $user = User::find(rand(1, $count));\n $data = $user->toArray();\n print_r($data);\n\n $this->assertDatabaseHas('users', $data);\n $user->delete();\n $this->assertDatabaseMissing('users', $data);\n */\n\n //ランダムテスト state版\n $list = [];\n for ($i = 0; $i < 10; $i ++ ) {\n $p1 = factory(User::class)->create();\n $p2 = factory(User::class)->states('upper')->create();\n $p3 = factory(User::class)->states('lower')->create();\n $p4 = factory(User::class)->states('upper')->states('lower')->create();\n $list = array_merge($list, [$p1->id, $p2->id, $p3->id, $p4->id]);\n }\n for ($i = 0; $i < 10; $i ++ ) {\n shuffle($list);\n\n $item = array_shift($list);\n $user = User::find($item);\n $data = $user->toArray();\n print_r($data);\n\n $this->assertDatabaseHas('users', $data);\n \n $user->delete();\n $this->assertDatabaseMissing('users', $data);\n\n }\n \n }", "public function testStoreCreate()\n {\n $user = factory(User::class)->create(['id' => 1]);\n $postData = [\n 'slots' => ['10:00', '13:00', '16:00', '19:00']\n ];\n $this->actingAs($user)\n ->post(route('schedule.store'), $postData);\n $this->assertDatabaseHas('schedules', [\n 'user_id' => $user->id,\n 'date' => $tomorrow = Carbon::tomorrow()->format(config('app.date_format_db'))])\n ->assertDatabaseHas('slots', ['slot' => '10:00'])\n ->assertDatabaseHas('slots', ['slot' => '13:00'])\n ->assertDatabaseHas('slots', ['slot' => '16:00'])\n ->assertDatabaseHas('slots', ['slot' => '19:00']);\n }", "public function run()\n {\n factory(User::class, 20)->create();\n factory(soal::class, 20)->create();\n factory(pengaturan::class, 20)->create();\n factory(nilai::class, 20)->create();\n factory(cct1::class, 3)->create();\n factory(cct2::class, 3)->create();\n factory(cct3::class, 3)->create();\n factory(cct4::class, 3)->create();\n factory(skalasikap::class, 3)->create();\n }", "public function testAllowCreate()\n {\n $createFalse = LogEntry::create()->canCreate(null);\n $this->assertFalse($createFalse);\n $this->logInWithPermission('ADMIN');\n $createFalse = LogEntry::create()->canCreate();\n $this->assertFalse($createFalse);\n }", "public static function create(array $values = []);", "public function test__construct()\n {\n $obj = Solar::factory($this->_class);\n $this->assertInstance($obj, $this->_class);\n }" ]
[ "0.6659178", "0.6410194", "0.6331368", "0.62860274", "0.6283626", "0.6271715", "0.62117016", "0.6195569", "0.6187928", "0.61811477", "0.6175902", "0.61753625", "0.617189", "0.617189", "0.61369514", "0.6094646", "0.6094646", "0.6094646", "0.60920155", "0.6039095", "0.603688", "0.6031096", "0.6010675", "0.600946", "0.600946", "0.600946", "0.59974533", "0.5973011", "0.5955184", "0.5942022", "0.59349245", "0.593109", "0.59251714", "0.5913274", "0.5905647", "0.5892444", "0.5874143", "0.58566296", "0.5855165", "0.5847648", "0.58464557", "0.58409107", "0.583489", "0.581361", "0.5810594", "0.58035076", "0.58003885", "0.57951236", "0.57949084", "0.5794856", "0.57930803", "0.5789812", "0.57862395", "0.57862395", "0.5785523", "0.57715464", "0.5767232", "0.5762817", "0.57584155", "0.575729", "0.5754125", "0.5753208", "0.5745913", "0.57452273", "0.5743441", "0.57339764", "0.5733158", "0.5730158", "0.5718072", "0.57168853", "0.57153773", "0.5714167", "0.5713253", "0.57122743", "0.57047975", "0.5704526", "0.570393", "0.5697869", "0.5697563", "0.5691912", "0.5691042", "0.56889886", "0.568675", "0.568675", "0.568675", "0.568675", "0.568675", "0.568675", "0.568675", "0.568675", "0.5678539", "0.5677972", "0.56743497", "0.56728005", "0.5670453", "0.5666334", "0.5662527", "0.56612504", "0.5659452", "0.5657978", "0.5656251" ]
0.0
-1
Test serialization and unserialization.
public function testSerializationAndUnSerialization() { $token = new JavascriptWebToken('CREDENTIALS', 'PROVIDER', 'username', ['ROLE_1', 'ROLE_2']); $serialized = $token->serialize(); $token = new JavascriptWebToken('TMP', 'TMP'); $token->unserialize($serialized); $this->assertEquals('CREDENTIALS', $token->getCredentials()); $this->assertEquals('PROVIDER', $token->getProviderKey()); $this->assertEquals('username', $token->getUsername()); /** @var Role[] $roles */ $roles = $token->getRoles(); $this->assertEquals(2, count($roles)); $this->assertInstanceOf(Role::class, $roles[0]); $this->assertEquals('ROLE_1', $roles[0]->getRole()); $this->assertInstanceOf(Role::class, $roles[1]); $this->assertEquals('ROLE_2', $roles[1]->getRole()); $this->assertTrue($token->isAuthenticated()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetSerialization()\n {\n $this->assertEquals('turtle', $this->fixture->getSerialization('@prefix foo:'));\n\n $this->assertEquals(null, $this->fixture->getSerialization(''));\n }", "public function testSerialize() {\n $index = Phish_Index::load();\n $str = serialize($index);\n $indexRestored = unserialize($str);\n $this->assertEquals($index, $indexRestored);\n }", "public function testSerializationCapabilities()\n {\n $generator = $this->getTokenGeneratorForTesting();\n\n $tmp = serialize($generator);\n $tmp = unserialize($tmp);\n\n $this->assertEquals($generator, $tmp);\n $this->assertNotEmpty($tmp->getTokenString(10));\n\n unset($tmp);\n $this->assertNotNull($generator);\n }", "public function testSerialization(): void\n {\n $items = new ArrayObject([\n 'a' => 1,\n 'b' => 2,\n 'c' => 3,\n ]);\n $expected = (array)$items;\n\n $iterator = new BufferedIterator($items);\n\n $serialized = serialize($iterator);\n $outcome = unserialize($serialized);\n $this->assertEquals($expected, $outcome->toArray());\n }", "public function testSerializationCapabilities()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $tmp = serialize($protocol);\n $tmp = unserialize($tmp);\n\n $this->assertEquals($protocol, $tmp);\n $this->assertNotEmpty($tmp->generateExchangeRequestInformation());\n\n unset($tmp);\n $this->assertNotNull($protocol);\n }", "public function testInvalidSerializedData()\n {\n $someData = 12;\n\n $serializer = ArrayObject::DEFAULT_SERIALIZER;\n $serializer = new $serializer;\n\n $data = new ArrayObject;\n $data->unserialize($serializer->serialize($someData));\n }", "public function testSerialize()\n {\n $data = $expected = [\n 'id' => 'payment method uuid',\n 'label' => 'HamEx - 1111',\n ];\n $data['some_other_crap'] = 'a value';\n $payment_method = new PaymentMethod((object)$data);\n $this->assertEquals($expected, $payment_method->serialize());\n }", "public function testSerializationIsStable() {\n\n\t\t$serializer = $this->createSerializer();\n\n\t\t$lexeme = NewLexeme::havingId( new LexemeId( 'L1' ) )\n\t\t\t->withLanguage( 'Q1' )\n\t\t\t->withLexicalCategory( 'Q2' )\n\t\t\t->withLemma( 'en', 'color' )\n\t\t\t->withLemma( 'en_gb', 'colour' )\n\t\t\t->withForm(\n\t\t\t\tNewForm::havingId( 'F1' )\n\t\t\t\t\t->andRepresentation( 'en', 'color' )\n\t\t\t\t\t->andRepresentation( 'en_gb', 'colour' )\n\t\t\t\t\t->andGrammaticalFeature( 'Q3' )\n\t\t\t\t\t->andStatement( new PropertyNoValueSnak( new PropertyId( 'P1' ) ) )\n\t\t\t)->withForm(\n\t\t\t\tNewForm::havingId( 'F2' )\n\t\t\t\t\t->andRepresentation( 'en', 'colors' )\n\t\t\t\t\t->andRepresentation( 'en_gb', 'colours' )\n\t\t\t\t\t->andGrammaticalFeature( 'Q4' )\n\t\t\t\t\t->andStatement( new PropertySomeValueSnak( new PropertyId( 'P2' ) ) )\n\t\t\t)->withSense(\n\t\t\t\tNewSense::havingId( 'S1' )\n\t\t\t\t\t->withGloss(\n\t\t\t\t\t\t'en',\n\t\t\t\t\t\t'the property of an object of producing different sensations on the eye'\n\t\t\t\t\t)->withStatement(\n\t\t\t\t\t\tnew PropertyValueSnak(\n\t\t\t\t\t\t\tnew PropertyId( 'P3' ),\n\t\t\t\t\t\t\tnew EntityIdValue( new ItemId( 'Q5' ) )\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t)->withStatement( new PropertySomeValueSnak( new PropertyId( 'P4' ) ) )\n\t\t\t->withStatement( new PropertyNoValueSnak( new PropertyId( 'P5' ) ) )\n\t\t\t->build();\n\n\t\t$lexemeSerialization = $serializer->serialize( $lexeme );\n\n\t\t$expectedSerialization = [\n\t\t\t'type' => 'lexeme',\n\t\t\t'id' => 'L1',\n\t\t\t'lemmas' => [\n\t\t\t\t'en' => [ 'language' => 'en', 'value' => 'color' ],\n\t\t\t\t'en_gb' => [ 'language' => 'en_gb', 'value' => 'colour' ],\n\t\t\t],\n\t\t\t'lexicalCategory' => 'Q2',\n\t\t\t'language' => 'Q1',\n\t\t\t'claims' => [\n\t\t\t\t'P4' => [ [\n\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t'snaktype' => 'somevalue',\n\t\t\t\t\t\t'property' => 'P4',\n\t\t\t\t\t\t'hash' => 'ede91cc55952400386a2401405bb09e446b1867b',\n\t\t\t\t\t],\n\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t] ],\n\t\t\t\t'P5' => [ [\n\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t'snaktype' => 'novalue',\n\t\t\t\t\t\t'property' => 'P5',\n\t\t\t\t\t\t'hash' => '6ee46c6e25606f949a870c84ae6694be8b5d4a02',\n\t\t\t\t\t],\n\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t] ],\n\t\t\t],\n\t\t\t'nextFormId' => 3,\n\t\t\t'forms' => [\n\t\t\t\t[\n\t\t\t\t\t'id' => 'L1-F1',\n\t\t\t\t\t'representations' => [\n\t\t\t\t\t\t'en' => [ 'language' => 'en', 'value' => 'color' ],\n\t\t\t\t\t\t'en_gb' => [ 'language' => 'en_gb', 'value' => 'colour' ],\n\t\t\t\t\t],\n\t\t\t\t\t'grammaticalFeatures' => [ 'Q3' ],\n\t\t\t\t\t'claims' => [\n\t\t\t\t\t\t'P1' => [ [\n\t\t\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t\t\t'snaktype' => 'novalue',\n\t\t\t\t\t\t\t\t'property' => 'P1',\n\t\t\t\t\t\t\t\t'hash' => 'c77761897897f63f151c4a1deb8bd3ad23ac51c6',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t\t\t], ],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'id' => 'L1-F2',\n\t\t\t\t\t'representations' => [\n\t\t\t\t\t\t'en' => [ 'language' => 'en', 'value' => 'colors' ],\n\t\t\t\t\t\t'en_gb' => [ 'language' => 'en_gb', 'value' => 'colours' ],\n\t\t\t\t\t],\n\t\t\t\t\t'grammaticalFeatures' => [ 'Q4' ],\n\t\t\t\t\t'claims' => [\n\t\t\t\t\t\t'P2' => [ [\n\t\t\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t\t\t'snaktype' => 'somevalue',\n\t\t\t\t\t\t\t\t'property' => 'P2',\n\t\t\t\t\t\t\t\t'hash' => '0cf42a63838da890a0b23c220bdb7705ca9c7892',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t\t\t'rank' => 'normal',\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\t'senses' => [\n\t\t\t\t[\n\t\t\t\t\t'id' => 'S1',\n\t\t\t\t\t'glosses' => [\n\t\t\t\t\t\t'en' => [\n\t\t\t\t\t\t\t'language' => 'en',\n\t\t\t\t\t\t\t'value' => 'the property of an object of producing' .\n\t\t\t\t\t\t\t\t' different sensations on the eye',\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t\t'claims' => [\n\t\t\t\t\t\t'P3' => [ [\n\t\t\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t\t\t'snaktype' => 'value',\n\t\t\t\t\t\t\t\t'property' => 'P3',\n\t\t\t\t\t\t\t\t'hash' => '4c2e17bc6d4c930be2beccbf929724b2cd431f3d',\n\t\t\t\t\t\t\t\t'datavalue' => [\n\t\t\t\t\t\t\t\t\t'value' => [\n\t\t\t\t\t\t\t\t\t\t'entity-type' => 'item',\n\t\t\t\t\t\t\t\t\t\t'numeric-id' => 5,\n\t\t\t\t\t\t\t\t\t\t'id' => 'Q5',\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t'type' => 'wikibase-entityid',\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'type' => 'statement',\n\t\t\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t\t\t] ],\n\t\t\t\t\t]\n\t\t\t\t]\n\t\t\t]\n\t\t];\n\n\t\t$this->assertEquals( $expectedSerialization, $lexemeSerialization );\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new Payout(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getSenderBatchHeader());\n $this->assertNotNull($obj->getItems());\n $this->assertNotNull($obj->getLinks());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function testStdClass()\r\n {\r\n $u = new XML_Unserializer();\r\n $u->setOption(XML_UNSERIALIZER_OPTION_COMPLEXTYPE, 'object');\r\n $xml = '<xml><foo>bar</foo></xml>';\r\n $u->unserialize($xml);\r\n $result = new stdClass();\r\n $result->foo = 'bar';\r\n $this->assertEquals($result, $u->getUnserializedData());\r\n }", "public function testSerializationDeserialization()\n {\n $obj = new TX(self::getJson());\n\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getBlockHash());\n $this->assertNotNull($obj->getBlockHeight());\n $this->assertNotNull($obj->getHash());\n $this->assertNotNull($obj->getAddresses());\n $this->assertNotNull($obj->getTotal());\n $this->assertNotNull($obj->getFees());\n // TODO: Only included when the includeHex URL property is set to true.\n //$this->assertNotNull($obj->getHex());\n $this->assertNotNull($obj->getPreference());\n $this->assertNotNull($obj->getRelayedBy());\n $this->assertNotNull($obj->getConfirmed());\n $this->assertNotNull($obj->getReceived());\n $this->assertNotNull($obj->getVer());\n $this->assertNotNull($obj->getLockTime());\n $this->assertNotNull($obj->getDoubleSpend());\n // TODO: Only present for unconfirmed transactions\n //$this->assertNotNull($obj->getReceiveCount());\n $this->assertNotNull($obj->getVinSz());\n $this->assertNotNull($obj->getVoutSz());\n $this->assertNotNull($obj->getConfirmations());\n $this->assertNotNull($obj->getConfidence());\n $this->assertNotNull($obj->getInputs());\n $this->assertNotNull($obj->getOutputs());\n $this->assertNotNull($obj->getNextInputs());\n\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function test_serialized_data() {\n\t\t$key = rand_str();\n\t\t$value = array(\n\t\t\t'foo' => true,\n\t\t\t'bar' => true,\n\t\t);\n\n\t\t$this->assertTrue( WP_Temporary::set_site( $key, $value ) );\n\t\t$this->assertEquals( $value, WP_Temporary::get_site( $key ) );\n\n\t\t$value = (object) $value;\n\t\t$this->assertTrue( WP_Temporary::set_site( $key, $value ) );\n\t\t$this->assertEquals( $value, WP_Temporary::get_site( $key ) );\n\t\t$this->assertTrue( WP_Temporary::delete_site( $key ) );\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new LookupDataEntry(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getKey());\n $this->assertNotNull($obj->getValue());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function testSerializeEntity(): void\n {\n $entity = new Entity();\n $entity->value = 'something';\n $this->storage->write('key', serialize($entity));\n $data = $this->getTableLocator()->get('Sessions')->get('key')->data;\n $this->assertSame(serialize($entity), stream_get_contents($data));\n }", "protected function performSerializationTest($address)\n {\n // unserialization.\n $rehydrated = unserialize(serialize($address));\n $this->assertEquals($rehydrated->getKey(), $address->getKey());\n $this->assertEquals($rehydrated->getBin(), $address->getBin());\n\n if (is_null($address->getBin())) {\n $this->assertNull($rehydrated->getBin());\n }\n if (is_null($address->getKey())) {\n $this->assertNull($rehydrated->getKey());\n }\n\n // Same for non-native.\n $rehydrated = new Address();\n $rehydrated->unserialize($address->serialize());\n $this->assertEquals($rehydrated->getKey(), $address->getKey());\n $this->assertEquals($rehydrated->getBin(), $address->getBin());\n }", "public function testSerialize()\n {\n $data = $this->getDB()->get('SELECT * FROM grps');\n json_encode($data);\n $this->assertEquals(true, strlen(serialize($data)) > 0);\n }", "public function testSerializationDeserialization()\n {\n $obj = new PayerInfo(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getEmail());\n $this->assertNotNull($obj->getExternalRememberMeId());\n $this->assertNotNull($obj->getBuyerAccountNumber());\n $this->assertNotNull($obj->getFirstName());\n $this->assertNotNull($obj->getLastName());\n $this->assertNotNull($obj->getPayerId());\n $this->assertNotNull($obj->getPhone());\n $this->assertNotNull($obj->getPhoneType());\n $this->assertNotNull($obj->getBirthDate());\n $this->assertNotNull($obj->getTaxId());\n $this->assertNotNull($obj->getTaxIdType());\n $this->assertNotNull($obj->getBillingAddress());\n $this->assertNotNull($obj->getShippingAddress());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function testWrite()\n {\n //Tries some values\n foreach ([\n ['first', 'second'],\n [],\n [true],\n [false],\n [null],\n ] as $value) {\n $this->assertTrue($this->SerializedArray->write($value));\n $result = safe_unserialize(file_get_contents($this->file));\n $this->assertEquals($value, $result);\n $this->assertIsArray($result);\n }\n }", "public function testSerialize()\n {\n $hostname = 'example.org';\n $json = [];\n\n // ban\n $json[] = (string) (new Request\\Ban($hostname, 'whatever'));\n $json[] = (string) (new Request\\Ban($hostname, ['still', 'flying']));\n // ban.url\n $json[] = (string) (new Request\\BanURL($hostname, 'whatever'));\n $json[] = (string) (new Request\\BanURL($hostname, ['still', 'flying']));\n // purge\n $json[] = (string) (new Request\\Purge($hostname, 'whatever'));\n $json[] = (string) (new Request\\Purge($hostname, ['still', 'flying']));\n // xkey\n $json[] = (string) (new Request\\Xkey($hostname, 'whatever'));\n $json[] = (string) (new Request\\Xkey($hostname, ['still', 'flying']));\n // xkey.soft\n $json[] = (string) (new Request\\XkeySoft($hostname, 'whatever'));\n $json[] = (string) (new Request\\XkeySoft($hostname, ['still', 'flying']));\n\n // validate json\n foreach ($json as $request) {\n $validator = new \\JsonSchema\\Validator();\n $schema = json_decode(\n file_get_contents(__DIR__.'/files/request.json'),\n JSON_THROW_ON_ERROR\n );\n\n $data = json_decode($request);\n $validator->validate($data, $schema);\n self::assertTrue($validator->isValid());\n }\n }", "public function testReadFromMicrostorage()\n {\n }", "public function testConvert()\n {\n $this->jsonMock->expects($this->any())\n ->method('serialize')\n ->willReturnCallback(\n function ($value) {\n return json_encode($value);\n }\n );\n\n $data = new \\Magento\\Framework\\Phrase('text');\n\n $serializedData = serialize(['data' => $data]);\n $jsonData = json_encode(['data' => $data]);\n\n $this->assertEquals($jsonData, $this->serializedReportToJson->convert($serializedData));\n }", "public function testString()\r\n {\r\n $s = new XML_Serializer();\r\n $s->serialize('a string');\r\n $this->assertEquals('<string>a string</string>', $s->getSerializedData());\r\n $s->serialize('');\r\n $this->assertEquals('<string />', $s->getSerializedData());\r\n }", "public function testDataCastToString(): void\n {\n $data = [\n 'title' => 'Blog Post',\n 'status' => 1,\n 'published' => true,\n 'not_published' => false,\n 'comments' => [\n [\n 'body' => 'Comment',\n 'status' => 1,\n ],\n ],\n 'file' => [\n 'tmp_name' => __FILE__,\n 'size' => 42,\n 'error' => 0,\n 'type' => 'text/plain',\n 'name' => 'Uploaded file',\n ],\n 'pictures' => [\n 'name' => [\n ['file' => 'a-file.png'],\n ['file' => 'a-moose.png'],\n ],\n 'type' => [\n ['file' => 'image/png'],\n ['file' => 'image/jpg'],\n ],\n 'tmp_name' => [\n ['file' => __FILE__],\n ['file' => __FILE__],\n ],\n 'error' => [\n ['file' => 0],\n ['file' => 0],\n ],\n 'size' => [\n ['file' => 17188],\n ['file' => 2010],\n ],\n ],\n 'upload' => new UploadedFile(__FILE__, 42, 0),\n ];\n $request = $this->_buildRequest('/posts/add', 'POST', $data);\n $this->assertIsString($request['post']['status']);\n $this->assertIsString($request['post']['published']);\n $this->assertSame('0', $request['post']['not_published']);\n $this->assertIsString($request['post']['comments'][0]['status']);\n $this->assertIsInt($request['post']['file']['error']);\n $this->assertIsInt($request['post']['file']['size']);\n $this->assertIsInt($request['post']['pictures']['error'][0]['file']);\n $this->assertIsInt($request['post']['pictures']['error'][1]['file']);\n $this->assertIsInt($request['post']['pictures']['size'][0]['file']);\n $this->assertIsInt($request['post']['pictures']['size'][1]['file']);\n $this->assertInstanceOf(UploadedFile::class, $request['post']['upload']);\n }", "public function testRead()\n {\n //For now file doesn't exist\n $this->assertFileNotExists($this->file);\n $result = $this->SerializedArray->read();\n $this->assertEmpty($result);\n $this->assertIsArray($result);\n\n //Tries some values\n foreach ([\n ['first', 'second'],\n [],\n [true],\n [false],\n [null],\n ] as $value) {\n $this->assertTrue($this->SerializedArray->write($value));\n $result = $this->SerializedArray->read();\n $this->assertEquals($value, $result);\n $this->assertIsArray($result);\n }\n\n //Creates an empty file. Now is always empty\n file_put_contents($this->file, null);\n $result = $this->SerializedArray->read();\n $this->assertEmpty($result);\n $this->assertIsArray($result);\n\n //Creates a file with a string\n file_put_contents($this->file, 'string');\n $result = $this->SerializedArray->read();\n $this->assertEmpty($result);\n $this->assertIsArray($result);\n }", "public function testJsonSerialize1()\n{\n\n // Traversed conditions\n // if (static::$serializer) == true (line 27)\n\n $actual = $this->carbon->jsonSerialize();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testRead()\n {\n $category = Category::create([\n 'name' => 'Chasse',\n ]);\n\n $expected = $this->serialize($category);\n\n $this->doRead($category)->assertRead($expected);\n }", "public function testDefaultSerializer()\n {\n $test = array('foo' => 'bar');\n $serializer = ArrayObject::DEFAULT_SERIALIZER;\n $serializer = new $serializer;\n $data = new ArrayObject($test);\n\n $this->assertEquals($data->serialize(), $serializer->serialize($test));\n }", "public function testJsonSerialize0()\n{\n\n // Traversed conditions\n // if (static::$serializer) == false (line 27)\n\n $actual = $this->carbon->jsonSerialize();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "function is_serialized_string($data)\n {\n }", "public function storageSerializerNoneSerialize(UnitTester $I)\n {\n $I->wantToTest('Storage\\Serializer\\None - serialize()');\n $data = ['Phalcon Framework'];\n $serializer = new None($data);\n\n $expected = $data;\n $actual = $serializer->serialize();\n $I->assertEquals($expected, $actual);\n }", "public function testSerializationDeserialization()\n {\n $obj = new FundingSource(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getFundingMode());\n $this->assertNotNull($obj->getFundingInstrumentType());\n $this->assertNotNull($obj->getSoftDescriptor());\n $this->assertNotNull($obj->getAmount());\n $this->assertNotNull($obj->getNegativeBalanceAmount());\n $this->assertNotNull($obj->getLegalText());\n $this->assertNotNull($obj->getFundingDetail());\n $this->assertNotNull($obj->getAdditionalText());\n $this->assertNotNull($obj->getLinks());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function test_serialized_data() {\n\t\t$key = rand_str();\n\t\t$value = array( 'foo' => true, 'bar' => true );\n\n\t\t$this->assertTrue( yourls_add_option( $key, $value ) );\n\t\t$this->assertEquals( $value, yourls_get_option( $key ) );\n\n\t\t$value = (object) $value;\n\t\t$this->assertTrue( yourls_update_option( $key, $value ) );\n\t\t$this->assertEquals( $value, yourls_get_option( $key ) );\n\t\t$this->assertTrue( yourls_delete_option( $key ) );\n\t}", "public function setUp()\n {\n parent::setUp();\n\n $this->file = sys_get_temp_dir() . DS . 'serialized';\n $this->SerializedArray = new SerializedArray($this->file);\n }", "public function testBoolean()\r\n {\r\n $s = new XML_Serializer();\r\n $s->serialize(true);\r\n $this->assertEquals('<boolean>1</boolean>', $s->getSerializedData());\r\n $s->serialize(false);\r\n $this->assertEquals('<boolean />', $s->getSerializedData());\r\n }", "abstract public function serialize();", "abstract public function serialize();", "function is_serialized($data, $strict = \\true)\n {\n }", "function deserialise(string $data): void;", "abstract public function unserialize($serialized);", "public function testLoad()\n {\n $struct = $this->_newStruct();\n $expect = array(\n 'foo' => 'bar2',\n 'baz' => 'dib2',\n 'zim' => 'gir2',\n 'irk' => array(\n 'subfoo' => 'subbar2',\n 'subbaz' => 'subdib2',\n 'subzim' => 'subgir2',\n ),\n );\n $struct->load($expect);\n $actual = $struct->toArray();\n $this->assertSame($actual, $expect);\n }", "public abstract function serialize();", "public function testPostDeserialize(): void\n {\n $functionName = 'serialize_Tests_Liip_Serializer_Fixtures_PostDeserialize_2';\n self::generateSerializers(self::$metadataBuilder, PostDeserialize::class, [$functionName]);\n\n $model = new PostDeserialize();\n $model->apiString = 'apiString';\n\n $expected = [\n 'api_string' => 'apiString',\n ];\n $data = $functionName($model);\n\n self::assertSame($expected, $data);\n self::assertNull($model->postCalled);\n }", "public static function isSerialized($str) {}", "public function serializingArrayObjects()\n {\n $data = [\n 'one', 'two', 'three'\n ];\n $object = new ArrayObject($data);\n $serialized = serialize($object);\n\n /** @var ArrayObject $newObject */\n $newObject = unserialize($serialized);\n\n $this->assertEquals($data, $newObject->getArrayCopy());\n $this->assertEquals($object, $newObject);\n\n }", "function maybe_unserialize($data)\n {\n }", "abstract protected function unSerializeData();", "public function testWriteToMicrostorage()\n {\n }", "public function unserialize($data) {}", "public function testConstruct()\n {\n $this->assertEquals($this->file, $this->getProperty($this->SerializedArray, 'file'));\n }", "public function testSerializeNoName()\n {\n $this->request->expects($this->once())\n ->method('request')\n ->with(\n $this->equalTo(\"sites/{$this->site->id}/new-relic\"),\n $this->equalTo(['options' => ['method' => 'get',],])\n )\n ->willReturn(['data' => (object)[],]);\n\n $out = $this->model->serialize();\n $this->assertEquals([], $out);\n }", "public function deserialize($data)\n {\n }", "public function testProcess_Chain() \n {\n \t$mock = $this->getMock('Q\\Transform', array('process'));\n \t$mock->expects($this->once())->method('process')->with($this->equalTo('test'))->will($this->returnValue('a:2:{s:1:\"a\";a:1:{s:1:\"c\";s:3:\"abc\";}s:1:\"d\";s:1:\"e\";}'));\n \t\n $transform = new Transform_Unserialize_Serial();\n $transform->chainInput($mock);\n $contents = $transform->process('test');\n\n $this->assertType('Q\\Transform_Unserialize_Serial', $transform);\n $this->assertEquals(array('a'=>array('c'=>'abc'), 'd'=>'e'), $contents);\n }", "function unserialize_safe($serialized) {\r\r\n // as well as if there is any ws between O and :\r\r\n if (is_string($serialized) && strpos($serialized, \"\\0\") === false) {\r\r\n if (strpos($serialized, 'O:') === false) {\r\r\n // the easy case, nothing to worry about\r\r\n // let unserialize do the job\r\r\n return @unserialize($serialized);\r\r\n } else if (!preg_match('/(^|;|{|})O:[0-9]+:\"/', $serialized)) {\r\r\n // in case we did have a string with O: in it,\r\r\n // but it was not a true serialized object\r\r\n return @unserialize($serialized);\r\r\n }\r\r\n }\r\r\n return false;\r\r\n}", "public function testDecode(): void\n {\n $tx = new MinterTx(self::VALID_SIGNATURE);\n\n $this->assertSame($tx->data, self::DATA);\n $this->assertSame($tx->from, self::MINTER_ADDRESS);\n }", "public function testReadAll()\n {\n }", "abstract protected function serializeData();", "public function testSetterMethod()\r\n {\r\n $u = new XML_Unserializer();\r\n $u->setOption(XML_UNSERIALIZER_OPTION_COMPLEXTYPE, 'object');\r\n $u->setOption(XML_UNSERIALIZER_OPTION_DEFAULT_CLASS, 'Foo');\r\n $xml = '<SetterExample><foo>tomato</foo></SetterExample>';\r\n $u->unserialize($xml);\r\n $result = new SetterExample();\r\n $result->setFoo('tomato');\r\n $this->assertEquals($result, $u->getUnserializedData());\r\n }", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function testDefaultClass()\r\n {\r\n $u = new XML_Unserializer();\r\n $u->setOption(XML_UNSERIALIZER_OPTION_COMPLEXTYPE, 'object');\r\n $u->setOption(XML_UNSERIALIZER_OPTION_DEFAULT_CLASS, 'Foo');\r\n $xml = '<xml><foo>bar</foo></xml>';\r\n $u->unserialize($xml);\r\n $result = new Foo();\r\n $result->foo = 'bar';\r\n $this->assertEquals($result, $u->getUnserializedData());\r\n }", "public function testSkipJsonDataConversion()\n {\n $serialized = '{\"property\":1}';\n $this->jsonMock->expects($this->never())->method('serialize');\n $this->serializedReportToJson->convert($serialized);\n }", "public function testResource()\r\n {\r\n $s = new XML_Serializer();\r\n $s->serialize(fopen(__FILE__, 'r'));\r\n $this->assertRegExp('/<resource>Resource id #[0-9]+<\\/resource>/', $s->getSerializedData());\r\n }", "abstract public function serialize($data);", "protected function testObjects() {\n }", "public function deserialize($data);", "abstract protected function serializeData($unSerializedData);", "public function testRead()\n {\n }", "function is_serial($string) {\n return (@unserialize($string) !== false);\n}", "public function unserialize($serialized)\n {\n }", "public function test_can_create_stream_from_jsonable_data(): void {\n\n\t\t$withArray = HTTP_Helper::stream_from_scalar( array( 'key' => 'value' ) );\n\t\t$withObject = HTTP_Helper::stream_from_scalar( (object) array( 'key' => 'value' ) );\n\t\t$withString = HTTP_Helper::stream_from_scalar( 'STRING' );\n\t\t$withInt = HTTP_Helper::stream_from_scalar( 42 );\n\t\t$withFloat = HTTP_Helper::stream_from_scalar( 4.2 );\n\n\t\t// Check all streams.\n\t\t$this->assertInstanceOf( Stream::class, $withArray );\n\t\t$this->assertInstanceOf( Stream::class, $withObject );\n\t\t$this->assertInstanceOf( Stream::class, $withString );\n\t\t$this->assertInstanceOf( Stream::class, $withInt );\n\t\t$this->assertInstanceOf( Stream::class, $withFloat );\n\n\t\t// Check values.\n\t\t$this->assertEquals( '{\"key\":\"value\"}', (string) $withArray );\n\t\t$this->assertEquals( '{\"key\":\"value\"}', (string) $withObject );\n\t\t$this->assertEquals( '\"STRING\"', (string) $withString );\n\t\t$this->assertEquals( 42, (string) $withInt );\n\t\t$this->assertEquals( 4.2, (string) $withFloat );\n\t}", "function checkSerializedMessage($message, $label, $expectedString)\n{\n if ($message->serializeToJsonString() === $expectedString) {\n print(\"Got expected output for $label: $expectedString\\n\");\n } else {\n print(\"Output of $label does not match expected value.\\n\" .\n \"\\tExpected: $expected\\n\" .\n \"\\tGot: \" . $message->serializeToJsonString() . PHP_EOL);\n }\n}", "public function testGetObjectStream()\n {\n $this->_amazon->createBucket($this->_bucket);\n $this->_amazon->putObject($this->_bucket . \"/zftest\", \"testdata\");\n $response = $this->_amazon->getObjectStream($this->_bucket . \"/zftest\");\n\n $this->assertTrue($response instanceof Zend_Http_Response_Stream, 'The test did not return stream response');\n $this->assertTrue(is_resource($response->getStream()), 'Request does not contain stream!');\n\n $stream_name = $response->getStreamName();\n\n $stream_read = stream_get_contents($response->getStream());\n $file_read = file_get_contents($stream_name);\n\n $this->assertEquals(\"testdata\", $stream_read, 'Downloaded stream does not seem to match!');\n $this->assertEquals(\"testdata\", $file_read, 'Downloaded file does not seem to match!');\n }", "public static function isSerialized($data) {\n return (@unserialize($data) !== false);\n }", "public function serialize();", "public function serialize();", "public function serialize();", "public function testInteger()\r\n {\r\n $s = new XML_Serializer();\r\n $s->serialize(456223);\r\n $this->assertEquals('<integer>456223</integer>', $s->getSerializedData());\r\n $s->serialize(-34);\r\n $this->assertEquals('<integer>-34</integer>', $s->getSerializedData());\r\n $s->serialize(0);\r\n $this->assertEquals('<integer>0</integer>', $s->getSerializedData());\r\n }", "public function testArticleFromJson()\n {\n $articlePath = realpath(__DIR__.'/../fixture/article.json');\n $articleData = json_decode(file_get_contents($articlePath), true);\n $article = Article::fromFile($articlePath);\n $this->assertEquals($articleData, $article->toArray());\n }", "public function testDecode(): void\n {\n $tx = MinterTx::decode(self::VALID_SIGNATURE);\n $validTx = $this->makeTransaction();\n\n $this->assertSame($validTx->getNonce(), $tx->getNonce());\n $this->assertSame($validTx->getGasCoin(), $tx->getGasCoin());\n $this->assertSame($validTx->getGasPrice(), $tx->getGasPrice());\n $this->assertSame($validTx->getChainID(), $tx->getChainID());\n $this->assertSame($validTx->getData()->coins, $tx->getData()->coins);\n $this->assertSame($validTx->getData()->minimumValueToBuy, $tx->getData()->minimumValueToBuy);\n $this->assertSame(self::MINTER_ADDRESS, $tx->getSenderAddress());\n }", "public function testEncode()\n {\n $expected = '{\"name\":\"This is a name\",\"settings\":{\"destination\":{\"uri\":\"http://localhost\",\"auth\":{\"type\":\"basic\"}}}}';\n\n $json = $this->instance->encode($this->data);\n\n $this->assertJson($json);\n $this->assertEquals($expected, $json);\n }", "public function testSetAndRetrieveObject(): void\n {\n $obj = new \\stdClass;\n $obj->animal = \"Frog\";\n $obj->mineral = \"Quartz\";\n $obj->vegetable = \"Spinach\";\n $testObj = new \\stdClass;\n $testObj->testInt = 5;\n $testObj->testFloat = 3.278;\n $testObj->testString = \"WooHoo\";\n $testObj->testBoolean = true;\n $testObj->testNull = null;\n $testObj->testArray = array(1,2,3,4,5);\n $testObj->testObject = $obj;\n $key = \"TestObject\";\n $this->testNotStrict->set($key, $testObj);\n $a = $this->testNotStrict->get($key);\n $bool = is_object($a);\n $this->assertTrue($bool);\n $this->assertEquals($testObj->testInt, $a->testInt);\n $this->assertEquals($testObj->testFloat, $a->testFloat);\n $this->assertEquals($testObj->testString, $a->testString);\n $this->assertEquals($testObj->testBoolean, $a->testBoolean);\n $this->assertNull($a->testNull);\n $this->assertEquals($testObj->testArray, $a->testArray);\n $this->assertEquals($testObj->testObject, $a->testObject);\n }", "private function resetSerializationConditions(): void\n {\n $this->isPartial = false;\n }", "public function serialize()\n {\n }", "public function serialize()\n {\n }", "public function testIsEncodable()\n {\n $array = $this->getDummyHmacData();\n\n $this->assertFalse($this->entity->isEncodable());\n\n $this->entity->setData($array['data']);\n $this->entity->setKey($array['key']);\n $this->entity->setTime($array['time']);\n\n $this->assertTrue($this->entity->isEncodable());\n }", "public function testSerializeToString()\n\t{\n\t\t$pairs = array(\n\n\t\t\t// host-relative\n\t\t\tarray('/'),\n\t\t\tarray('/path'),\n\t\t\tarray('/path/'),\n\t\t\tarray('/path?', '/path'),\n\t\t\tarray('/path/?', '/path/'),\n\t\t\tarray('/path?query'),\n\t\t\tarray('/path?query#', '/path?query'),\n\t\t\tarray('/path?query#frag'),\n\n\t\t\t// scheme-relative\n\t\t\tarray('//example.org', '//example.org/'),\n\t\t\tarray('//example.org:80', '//example.org:80/'),\n\t\t\tarray('//example.org:81', '//example.org:81/'),\n\t\t\tarray('//example.org/'),\n\t\t\tarray('//example.org:80/'),\n\t\t\tarray('//example.org:81/'),\n\t\t\tarray('//example.org/path'),\n\t\t\tarray('//example.org/path?query'),\n\t\t\tarray('//example.org/path?query#frag'),\n\n\t\t\t// absolute\n\t\t\tarray('http://example.org/'),\n\t\t\tarray('https://example.org/'),\n\t\t\tarray('http://example.org:8000/'),\n\t\t\tarray('https://example.org:8000/'),\n\t\t\tarray('http://example.org:443/'),\n\t\t\tarray('https://example.org:80/'),\n\t\t\tarray('http://example.org:80/', 'http://example.org/'),\n\t\t\tarray('https://example.org:443/', 'https://example.org/'),\n\t\t\tarray('http://example.org/path?query#fragment'),\n\t\t);\n\n\t\tforeach ($pairs as $pair)\n\t\t{\n\t\t\t$in = $pair[0];\n\t\t\t$expect = isset($pair[1]) ? $pair[1] : $pair[0];\n\n\t\t\t$url = new Bringit_Url($in);\n\t\t\t$this->assertEqual(\"$url\", $expect,\n\t\t\t\t\"For input [$in] %s\");\n\t\t}\n\t}", "#[\\ReturnTypeWillChange]\n public function __unserialize($data)\n {\n }", "public function testDecode()\n {\n $json = $this->_newJson();\n \n $before = '{ \"test\": { \"foo\": \"bar\" } }';\n \n $actual = var_export($json->decode($before), 1);\n \n $expect = \"stdClass::__set_state(array(\\n\"\n . \" 'test' => \\n\"\n . \" stdClass::__set_state(array(\\n\"\n . \" 'foo' => 'bar',\\n\"\n . \" )),\\n\"\n . \"))\";\n \n $this->assertSame($actual, $expect);\n }", "public function testRenderWithSerializeTrue(): void\n {\n $Request = new ServerRequest();\n $Controller = new Controller($Request);\n $data = ['users' => ['user' => ['user1', 'user2']]];\n $Controller->set(['users' => $data]);\n $Controller->viewBuilder()\n ->setClassName('Xml')\n ->setOption('serialize', true);\n $View = $Controller->createView();\n $output = $View->render();\n\n $this->assertSame(Xml::build($data)->asXML(), $output);\n $this->assertSame('application/xml', $View->getResponse()->getType());\n\n $data = ['no' => 'nope', 'user' => 'fake', 'list' => ['item1', 'item2']];\n $Controller = new Controller($Request);\n $Controller->viewBuilder()\n ->setClassName('Xml')\n ->setOption('serialize', true);\n $Controller->set($data);\n $View = $Controller->createView();\n $output = $View->render();\n $expected = [\n 'response' => $data,\n ];\n $this->assertSame(Xml::build($expected)->asXML(), $output);\n }", "public function unserialize($serialized=null){ }", "#[\\ReturnTypeWillChange]\n public function unserialize($data)\n {\n }", "public function test_can_be_encoded_to_json() : void\n {\n $value = 'valid_slug';\n $slug = SlugSnake::fromString($value);\n \n self::assertSame('valid_slug', $slug->jsonSerialize());\n }", "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform = new Transform_Unserialize_Serial();\n $transform->chainInput($mock);\n \n $this->assertEquals('reverse of mock transformer', $transform->getReverse());\n }", "public function canSerializeToJSON() {\n $sut = new Channel(1234);\n $decoded = json_decode(json_encode($sut));\n $this->assertEquals(1234, $decoded->ID);\n\n $sut->clientID = '0066';\n $sut->unknownField = 'bar';\n\n $decoded = json_decode(json_encode($sut));\n $this->assertEquals(1234, $decoded->ID);\n $this->assertEquals('0066', $decoded->clientID);\n $this->assertEquals('bar', $decoded->additionalProperties->unknownField);\n $this->assertEquals(null, $decoded->name);\n }" ]
[ "0.7456415", "0.73340505", "0.72956616", "0.6957933", "0.69096947", "0.664388", "0.66271853", "0.64623004", "0.64104533", "0.63058776", "0.6259864", "0.6259069", "0.6255833", "0.6219332", "0.61893016", "0.6144095", "0.6134766", "0.61254364", "0.6109054", "0.61023504", "0.60558856", "0.6003169", "0.59610945", "0.59610057", "0.59569365", "0.59555024", "0.59438235", "0.5935081", "0.5920509", "0.5916574", "0.5914458", "0.59001094", "0.5892472", "0.5879108", "0.5820101", "0.5820101", "0.58115536", "0.5788134", "0.5758092", "0.5753841", "0.57531387", "0.57130605", "0.57076466", "0.5705846", "0.56460667", "0.56360286", "0.563373", "0.5632969", "0.5613053", "0.5603563", "0.55799836", "0.55774915", "0.55628866", "0.55615443", "0.5549719", "0.5541033", "0.5537539", "0.5530365", "0.5530365", "0.5529348", "0.5529348", "0.5529348", "0.5529348", "0.5529348", "0.5529348", "0.5505111", "0.55039483", "0.5497573", "0.54946023", "0.54848397", "0.5483774", "0.5467925", "0.54669464", "0.5458317", "0.5449283", "0.5433065", "0.5430131", "0.5416322", "0.54150176", "0.5414968", "0.5414968", "0.5414968", "0.54066813", "0.54043424", "0.54038453", "0.537275", "0.53580844", "0.53494745", "0.53422964", "0.53422964", "0.53413653", "0.53367484", "0.5330801", "0.53223944", "0.53142625", "0.5312952", "0.5310316", "0.529702", "0.52958614", "0.5292926" ]
0.592291
28
Objeto para administrar los parametros de configuracion de la aplicacion.
function __construct($filePath) { $this->_file = parse_ini_file($filePath, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadConfig(){\n\t\t\n\t\t$opt[] = [\n\t\t\t'method' => 'setFormParams',\n\t\t\t'value'=>$this->paramsLoad(3, \\sevian\\s::getReq('command_idx'), \\sevian\\s::getReq('unit_idx'))\n\t\t\t\n\t\t];\n\t\t$this->info = $opt;//$form->getInfo();\n\t}", "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 InitializeAdmin()\n\t{\n\t\t//$this->CreateParameter('notification', '', $this->Lang('help_param_notification'));\t\n\t\t//$this->CreateParameter('var_*', '', $this->Lang('help_param_var_'));\t\n\t}", "protected function RTEtsConfigParams() {}", "function configurar() {\n //SOLO EL ADMINISTRADOR PUEDE MATRICULAR\n if(!$this->AppUser->isRoot())\n return $this->vista->acceso_restringido();\n\n $this->includeModel('TComponente');\n\n //TODO: actualizar el codigo del programa a matricular.\n $cod_programa = $this->params['cod_programa'];\n $this->vista->addJS('jquery.dataTable');\n\n $tiene_cursos = $this->TPrograma->tieneCursos($cod_programa);\n \n $this->vista->set('tiene_cursos', $tiene_cursos);\n if(!$tiene_cursos){\n if($this->TPersona == null)\n $this->TPersona = new TPersona();\n $tiene_participantes = $this->TPersona->hayAdmitidos();\n $this->vista->set('tiene_participantes', $tiene_participantes);\n }\n \n $this->vista->display();\n }", "protected function setParamConfig()\n {\n $this->paramConfig = ArrayManipulation::deepMerge($this->paramConfig, array(\n 'compact' => array(\n 'name' => 'Kompakte Anordnung der Auswahlfelder',\n 'type' => 'radio',\n 'values' => array(\n 'ja' => 'Ja',\n 'nein' => 'Nein'\n )\n ),\n 'multicolumn' => array(\n 'name' => 'Datenspeicher: Trennung in Spalten',\n 'type' => 'radio',\n 'help' => '\n Normalerweise wird für dieses Feld im Datenspeicher eine Spalte erstellt, in welchem die getroffene Auswahl mit Komma separiert wird.\n Sofern diese Einstellung aktiviert wird, erscheint im Datenspeicher und Export eine Spalte pro getroffener Auswahl.\n ',\n 'values' => array(\n 'ja' => 'Ja',\n 'nein' => 'Nein'\n )\n ),\n 'multicolumn_label_prefix' => array(\n 'name' => 'Feld-Beschriftung pro Spalte voranstellen',\n 'type' => 'radio',\n 'help' => 'Damit die Spalten eindeutiger sind, kann der Feldname als Prefix vor jede generierte Spalte im Datenspeicher vorangestellt werden.',\n 'values' => array(\n 'ja' => 'Ja',\n 'nein' => 'Nein'\n )\n ),\n 'content' => array(\n 'name' => 'Auswahlmöglichkeiten',\n 'type' => 'textfieldArray',\n 'help' => 'Bitte geben Sie eine oder mehrere Möglichkeiten an.',\n 'separator' => Base::MULTI_ITEM_VALUES_SEPARATOR\n )\n ));\n\n // Set defaults for new fields\n $this->params['compact'] = 'nein';\n $this->params['multicolumn'] = 'nein';\n }", "public static function getAdminParameters()\n\t{\n\t\treturn array(\n\t\t\t'logo' => array(\n\t\t\t\t'type' \t=> 'custom', \n\t\t\t\t'label' => '', \n\t\t\t\t'html' \t=> '<img src=\"https://www.paypalobjects.com/webstatic/i/ex_ce2/logo/logo_paypal_106x29.png\"/>',\n\t\t\t),\n\t\t\t'account' => array(\n\t\t\t\t'type' \t\t=> 'text', \n\t\t\t\t'label' \t=> 'PayPal Account://The PayPal account <b>e-mail address</b> must be specified instead of the <b>merchant account</b>.',\n\t\t\t\t'required' \t=> 1,\n\t\t\t),\n\t\t\t'sandbox' => array(\n\t\t\t\t'type' \t\t=> 'select', \n\t\t\t\t'label' \t=> 'Test Mode://When enabled, the PayPal SANDBOX will be used. Turn OFF this option to collect PRODUCTION payments.', \n\t\t\t\t'options' \t=> array(\n\t\t\t\t\t1 => 'ON',\n\t\t\t\t\t0 => 'OFF',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'safemode' => array(\n\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t'label' \t=> 'Safe Connection://When enabled, the connection to PayPal will be established only through the TLS 1.2 protocol.',\n\t\t\t\t'options' \t=> array(\n\t\t\t\t\t1 => 'ON',\n\t\t\t\t\t0 => 'OFF',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'image' => array(\n\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t'label' \t=> 'Image URL//The image URL that will be used to display the Pay Now button.',\n\t\t\t\t'default' \t=> 'https://www.paypal.com/en_GB/i/btn/btn_paynow_SM.gif',\n\t\t\t),\n\t\t);\n\t}", "public function _config_para_view() {\n $this->controller->set('ControleAcessoConfig', $this->config);\n }", "function getConfigParameters() {\n $sync_sugarcrm_users_parameters = array(\n 'crm_user_name' => '', \n 'crm_user_hash' => '', \n 'crm_url' => '', \n 'crm_auto_create_user' => 0, \n 'crm_auto_create_user1' => 0, \n 'crm_auto_create_module' => 'Users', \n );\n $devOptions = get_option($this->config_parameters_name);\n if (!empty($devOptions)) {\n foreach ($devOptions as $key => $option)\n $sync_sugarcrm_users_parameters[$key] = $option;\n }\t\t\t\t\n //update_option($this->config_parameters_name, $sync_sugarcrm_users_parameters);\n return $sync_sugarcrm_users_parameters;\n }", "protected static function _processConfiguration()\n {\n\n //Pour la ligne de commandes\n global $argv;\n\n //Récupération des valeurs\n $key = Tools::getValue('key');\n $value = Tools::getValue('value',-1);\n $action_conf = Tools::getValue('action_conf', 'update');\n\t\t\t\t\n //Gestion via la ligne de commande\n if ($argv) {\n $allowsKeys = array('key','value','action_conf');\n\n foreach ($argv as $arg) {\n $arguments = explode('=', $arg);\n if (in_array($arguments[0], $allowsKeys)) {\n ${$arguments[0]} = $arguments[1];\n }\n }\n\t\t\t\n\t\t\tif ( self::$verbose )\n\t\t\t\techo 'Lancement via la ligne de commande '.self::$endOfLine;\n }\n\n if (!$key && $value == -1 ) {\n exit('Erreur Pas de clé et de valeur définie pour la configuration'.self::$endOfLine);\n }\n\n if (!in_array($action_conf, self::$configurationActionsAllowed)) {\n exit('Erreur action non autorisée pour la configuration '.self::$endOfLine);\n }\n\n if ($action_conf == 'update') {\n\t\t\techo 'On est bien dans update';\n\t\t\techo 'value '.$value;\n\t\t\tif ( $value == -1 )\n\t\t\t\texit('Erreur Impossible de mettre à jour la configuration, pas de valeur défine');\n Configuration::UpdateValue($key, $value);\n }\n\t\t elseif ( $action_conf == 'get'){\n\t\t\tif ( self::$verbose )\n\t\t\t\techo 'Valeur de la configuration'.$key.' '.Configuration::get($key).self::$endOfLine;\n\t\t\telse\t\n\t\t\t\techo Configuration::get($key);\n\t\t }else {\n Configuration::deleteByName($key);\n }\n\n\t\t if ( self::$verbose )\n\t\t\techo $action_conf.' effectuee pour la cle '.$key.' '.self::$endOfLine;\n }", "function conf()\n {\n $dato_anio = toba::memoria()->get_parametro('filtro_anio');\n $dato_ua = toba::memoria()->get_parametro('filtro_ua');\n if(isset($dato_anio)){//el anio es filtro obligatorio asi que siempre vuelve con este dato\n $auxiliar['valor']=$dato_anio;\n $auxiliar['condicion']='es_igual_a';\n $auxiliar2['anio']=$auxiliar;\n\n if(isset($dato_ua)){//viene desde informe de estado actual\n $auxiliar['valor']=$dato_ua;\n $auxiliar['condicion']='es_igual_a';\n $auxiliar2['uni_acad']=$auxiliar;\n }\n $this->s__datos_filtro=$auxiliar2;\n }\n }", "function getConfigurationValues() ;", "function saveConfiguration() {\n//\t\t$field_value = DevblocksPlatform::importGPC($_POST['field_value']);\n//\t\t$this->params['field_name'] = $field_value;\n\t}", "public static function config() {\n\t\t$username = ( isset( $_POST['username'] ) ) ? stripslashes( $_POST['username'] ) : self::get_dashboard_widget_option(self::wid, 'username');\n\t\t$apikey = ( isset( $_POST['apikey'] ) ) ? stripslashes( $_POST['apikey'] ) : self::get_dashboard_widget_option(self::wid, 'apikey');\n\t\t$project_id = ( isset( $_POST['project_id'] ) ) ? stripslashes( $_POST['project_id'] ) : self::get_dashboard_widget_option(self::wid, 'project_id');\n\t\t\n\t\tself::update_dashboard_widget_options(\n\t\t\tself::wid, //The widget id\n\t\t\tarray( //Associative array of options & default values\n\t\t\t\t'username' => $username,\n\t\t\t\t'apikey' => $apikey,\n\t\t\t\t'project_id' => $project_id,\n\t\t\t)\n\t\t);\n ?>\n\t\t<p><label for=\"username\"><?php _e('Benutzername:', 'affiliatetheme-backend'); ?></label> <input type=\"text\" name=\"username\" value=\"<?php echo $username; ?>\" /></p>\n\t\t<p><label for=\"apikey\"><?php _e('API Key:', 'affiliatetheme-backend'); ?></label> <input type=\"text\" name=\"apikey\" value=\"<?php echo $apikey; ?>\" ></p>\n\t\t<p><label for=\"project_id\"><?php _e('Projekt ID:', 'affiliatetheme-backend'); ?></label> <input type=\"text\" name=\"project_id\" value=\"<?php echo $project_id; ?>\" ></p>\n\n <p><?php _e('Kein API Key vorhanden? Bitte wende dich an den Rankalyst Support: [email protected]', 'affiliatetheme-backend'); ?></p>\n\t\t<?php\n }", "public function __construct() { \n require __DIR__ . '/Config/parameters.php'; //⚠️️ DIR = cste magiq qui retourne chemin du doss ds lequel on est depuis la racine\n $this -> parameters = $parameters; // je mets ça ds ' protected $parameters; '\n /*⚠️️ Au moment où j'instancie cette classe, je récupère le fichier parameters.php, \n et je stocke tous les parameters de mon application dans la propriété $parameters */\n }", "public function __construct()\n\t{\n\t\t$this->componentConfig = Container::getInstance('com_admintools')->params;\n\t}", "public function setAdminParams() {\n\t\tif( $this->_user->role != Core_Acl_Roles::ADMINS ) {\n\t\t\t$this->removeElement('group_id');\n\t\t\t$this->removeElement('active');\n\t\t}\n\t}", "public function retrouve_zabbix_param() {\n\t\t$this->onDebug ( __METHOD__, 1 );\n\t\t$this->setName ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"nom\" \n\t\t), \"\" ) );\n\t\t$this->setAutologin ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"autologin\" \n\t\t), \"disabled\" ) );\n\t\t$this->setAutologout ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"autologout\" \n\t\t), 900 ) );\n\t\t$this->setLang ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"lang\" \n\t\t), \"en_GB\" ) );\n\t\t$this->setRefresh ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"refresh\" \n\t\t), 30 ) );\n\t\t$this->setRowsPerPage ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"rows_per_page\" \n\t\t), 50 ) );\n\t\t$this->setSurname ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"surname\" \n\t\t), \"\" ) );\n\t\t$this->setTheme ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"theme\" \n\t\t), \"default\" ) );\n\t\t$this->setType ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"type\" \n\t\t), \"zabbix user\" ) );\n\t\t$this->setUrl ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"url\" \n\t\t), \"\" ) );\n\t\t$this->setAlias ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"username\" \n\t\t) ) );\n\t\t$this->setPassword ( $this->_valideOption ( array (\n\t\t\t\t\"zabbix\",\n\t\t\t\t\"user\",\n\t\t\t\t\"password\" \n\t\t), \"\" ) );\n\t\t\n\t\treturn $this;\n\t}", "private function setParams()\n\t\t{\n\t\t\t/**\n\t\t\t* Remove do $this->_separetor os dois primeiros valores\n\t\t\t* referentes ao controller e action, deixando os demais valores\n\t\t\t* que serão usados para formarem os parametros, indices e valores\n\t\t\t*/\n\t\t\tunset($this->_separetor[1], $this->_separetor[2]);\n\t\t\t\n\t\t\t/**\n\t\t\t* Caso o ultimo item do $this->_separetor seja vazio\n\t\t\t* o mesmo é removido\n\t\t\t*/\n\t\t\tif ( end($this->_separetor) == null ) {\n\t\t\t\tarray_pop($this->_separetor);\n\t\t\t}\n\n\t\t\t\n\t\t\t/**\n\t\t\t* Se a $this->_separetor estivar vazia,\n\t\t\t* então os parametros serão definidos como vazios\n\t\t\t*/\n\t\t\tif ( !empty($this->_separetor) ) {\n\t\t\t\t/**\n\t\t\t\t* Percorre o array $this->_separetor, verificando os indices\n\t\t\t\t* se for impar, então seu valor será o indice do parametro.\n\t\t\t\t* Se for par, seu valor será o valor do paremetro\n\t\t\t\t*/\n\t\t\t\tforeach ($this->_separetor as $key => $value) {\n\t\t\t\t\tif ($key % 2 == 0) {\n\t\t\t\t\t\t$param_value[] = $value;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$param_indice[] = $value;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$param_value = array();\n\t\t\t\t$param_indice = array();\n\t\t\t}\n\n\n\t\t\t/**\n\t\t\t* Verifica se os indices e valores dos parametros\n\t\t\t* não são vazios e possuem a mesma quantidade\n\t\t\t* Então vaz um \"array_combine\" para juntar os dois arrays\n\t\t\t* formando um indice->valor para o parametro\n\t\t\t*/\n\t\t\tif ( !empty($param_indice) \n\t\t\t\t&& !empty($param_value)\n\t\t\t\t&& count($param_indice)\n\t\t\t\t== count($param_value)\n\t\t\t) {\n\t\t\t\t$this->_params = array_combine($param_indice, $param_value);\n\t\t\t} else {\n\t\t\t\t$this->_params = array();\n\t\t\t}\n\t\t}", "protected function loadParams() {\n\t $this->cpParams = new api_crud_param($this->attribs);\n\t \n // These commands need an id and a method in the url\n\t $this->cpParams->setCommand(Array('read','update','delete'))->setMethod(api_crud_param::MATTRIBUTE)->setNeed(api_crud_param::RMANDATORY)\n\t ->setType(api_crud_param::TINT)->addParam('id')\n\t ->setType(api_crud_param::TSTRING)->addParam('method');\n\t \n\t // yes, for delete, the delete param needs to be repeated in the POST as well as the id\n\t $this->cpParams->setCommand('delete')->setMethod(api_crud_param::MPOST)->setNeed(api_crud_param::RMANDATORY)\n\t ->setType(api_crud_param::TINT)->addParam('id')\n ->setType(api_crud_param::TSTRING)->addParam('method');\n\t}", "function edita_datos_config(){\n\t\t\n\t\t// 1. PHP debe loguearse ante MySQL\n\t\tif (mysql_connect(\"localhost\",\"root\",\"\")) {\n\t\t\t\n\t\t\t// 2. Preparamos la consulta\n\t\t\t$this->codigo = $_POST['codigo'];\n\t\t\t$this->d_config = $_POST[\"d_config\"];\t\n $this->valor = $_POST[\"valor\"];\n $this->clave = $_POST[\"clave\"];\t\t\t\t\t\n\t\t\t\n\t\t\t$consultaEdit = \"UPDATE config SET config_descr='$this->d_config',valor='$this->valor',clave='$this->clave' WHERE id_config='$this->codigo'\";\n\t\t\t\n\t\t\t// 3. Ejecutar la consulta\n\t\t\tmysql_select_db(\"check\") or die('No pudo seleccionarse la BD.');\n\t\t\tif(mysql_query($consultaEdit)){\n\t\t\t\theader(\"location: principal.php?id=config_principal&accion=2\");//Envia la confirmacion de editado a administracionnivel.php\t\n\t\t\t}\n\t\t}\n\t}", "public function configuracion()\n {\n $usuarioDato = new UsuarioDatoEntity();\n $usuarioDato->buscarPorPk($this->_userdata->idUser());\n\n $tarifa = new TarifasModel();\n\n $this->_view->_tarifas = $tarifa->getAll();\n\n $this->_view->_social = $usuarioDato;\n $this->_view->paneltitle = \"Configura tu cuenta\";\n $this->_view->titulo = $this->_view->getConfigure()->title;\n $this->_view->meta_descripcion = \"Sistema Perreras\";\n $this->_view->titulo_page = \"Panel principal\";\n $this->_view->renderizar(\"configuracion\", 'index');\n }", "public function setConfiguration(){\n\t\t/* Check the attributes type supported by system */\n\t\t/* debugVar(unserialize(LEAD_ATTRIBUTE_INPUT_ELEMENT), true); */\n\t\t\n\t\t/* Check the attributes validation type supported by system */\n\t\t/* debugVar(unserialize(LEAD_ATTRIBUTE_INPUT_VALIDATION), true); */\n\t\t\n\t\t/* Creating form object */\n\t\t$objForm\t= new Form();\n\t\t\t\t\t\n\t\t/* variable initialization */\n\t\t$strConfigArr[\"exiting_attr\"]\t= array(\"policy\" => array('attri_value_list'=>$objForm->getDropDown(getArrByKeyvaluePairs($this->_setPolicyList(),\"id\",\"name\"),'',false,false)));\n\t\t\n\t\t/* if parent schema is passed then do needful */\n\t\tif(isset($this->_strDataSet[\"table\"]) && ($this->_strDataSet[\"table\"] != \"\")){\n\t\t\t/* Custom Query */\n\t\t\t$strConfigArr[\"customQuery\"]\t= array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"table\"=>$this->_strDataSet[\"table\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"column\"=>array(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"where\"=>array(),\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t}\n\t\t\n\t\t/* removed used variables */\n\t\tunset($objForm);\n\t\t\n\t\t/* return configuration set */\n\t\treturn $strConfigArr;\n\t\t\n\t}", "public function config()\n\t{\n\t\tparent::config();\n\n\t\t// change inpu\n\t\tif(self::done_step('username'))\n\t\t{\n\t\t\t// if user go to this page from username page\n\t\t\t$this->data->mobile_username = 'eusername';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// if user go to this page from mobile page\n\t\t\t$this->data->mobile_username = 'emobile';\n\t\t}\n\n\t\t// load temp username in username field\n\t\tif(self::get_session('username', 'temp_username'))\n\t\t{\n\t\t\t$this->data->get_username = self::get_session('username', 'temp_username');\n\t\t}\n\n\t\t$this->data->page['title'] = T_('Password');\n\t\t$this->data->page['desc'] = T_('Please enter password to enter');\n\n\t\tswitch (\\lib\\router::get_url(1))\n\t\t{\n\t\t\tcase 'recovery':\n\t\t\t\t$this->data->page['title'] = T_('Recovery Password');\n\t\t\t\t$this->data->page['desc'] = T_('If forget your password, Please enter new password. after pass verification your new password is usable.');\n\t\t\t\tbreak;\n\n\t\t\tcase 'signup':\n\t\t\tcase 'set':\n\t\t\t\t$this->data->page['title'] = T_('Set Password');\n\t\t\t\t$this->data->page['desc'] = T_('Please set your password to secure signup.'). ' '. T_('Next time we only need your mobile and this password to enter');\n\t\t\t\tbreak;\n\n\t\t\tcase 'change':\n\t\t\t\t$this->data->page['title'] = T_('Change to new Password');\n\t\t\t\t$this->data->page['desc'] = T_('Please set your old and new password to change it');\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "private function configure()\n {\n\n $QryStr = \"SELECT SENDER, PORT,HOST, USER_ID,PASSWRD, EMAIL FROM SYSSETTINGS\";\n try {\n $stmt = $this->dbh->dbConn->prepare($QryStr);\n $stmt->execute();\n\n $result = $stmt->fetch(\\PDO::FETCH_OBJ);\n\n $this->sender = $result->sender;\n $this->port = $result->port;\n $this->host = $result->host;\n $this->user_id = $result->user_id;\n $this->password = $result->password;\n $this->sender_mail = $result->email;\n } catch (\\PDOException $ex) {\n $ex->getMessage();\n }\n }", "protected function configure()\n {\n $this->setDescription('Sets the API settings on an instance.');\n $this->setHelp('Sets the API settings on an instance.');\n\n $this->addOption(\n 'instanceid',\n 'i',\n InputOption::VALUE_REQUIRED,\n 'The instanceid of the instance we are setting the property value for.'\n );\n\n $this->addArgument('settings', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'The API settings seperate values with spaces (in format key:value).');\n\n }", "public function admin_options() {\n\n\t\t\t?>\n\t\t\t<h3>ATOS</h3>\n\t\t\t<p><?php _e('Acceptez les paiements par carte bleue grâce à Atos.', 'woothemes'); ?></p>\n\t\t\t<p><?php _e('Plugin créé par David Fiaty', 'woothemes'); ?> - <a href=\"http://www.cmsbox.fr\">http://www.cmsbox.fr</a></p>\n\t\t\t<table class=\"form-table\">\n\t\t\t<?php\n\t\t\t\t// Generate the HTML For the settings form.\n\t\t\t\t$this->generate_settings_html();\n\t\t\t?>\n\t\t\t</table><!--/.form-table-->\n\t\t\t<?php\n\t\t}", "public function configuration()\n {\n if ($this->session->userdata('logged_in') == 1 && $this->session->userdata('user_type') != 'Admin') {\n redirect('home/login_page', 'location');\n }\n \n $data['body'] = \"admin/config/edit_config\";\n $data['time_zone'] = $this->_time_zone_list(); \n $data['language_info'] = $this->_language_list();\n $data[\"themes\"] = $this->_theme_list();\n $data['page_title'] = $this->lang->line('general settings');\n $this->_viewcontroller($data);\n }", "private function setDefaultParameterValues()\n {\n $this->setDefaultParameterValue(self::CRYPTOGRAPHY, 'DependencyInjection\\CryptUtils\\SeclibCryptography');\n $this->setDefaultParameterValue(self::CRYPTUTILS, 'DependencyInjection\\CryptUtils\\CryptUtilImpl');\n $this->setDefaultParameterValue(self::TRANSPORTWRAPPER, 'DependencyInjection\\Transporter\\LamiaHttpClientWrapper');\n $this->setDefaultParameterValue(self::TRANSPORTATION, 'Transport\\TransportImpl');\n $this->setDefaultParameterValue(self::RESPONSE_CONVERTER, 'Converter\\Response\\ArrayResponseConverter');\n $this->setDefaultParameterValue(self::REQUEST_CONVERTER, 'Converter\\Request\\ArrayConverter');\n $this->setDefaultParameterValue(self::FIELD_CONFIGURATION, 'Configuration\\FieldConfigImpl');\n $this->setDefaultParameterValue(self::FRONTEND_RESPONSE_CONVERTER, 'Converter\\Response\\FrontendServiceResponseConverter');\n $this->setDefaultParameterValue(self::DISABLE_RSA_BLINDING, false);\n }", "public static function es_admin_option() {\n\t}", "protected function getParamsDefinition()\n\t{\n\t\t$config = array(\n\t\t\t\t\t'action' => array(\n\t\t\t\t\t\t'internal_key' => 'a',\n\t\t\t\t\t\t'is_list' => false,\n\t\t\t\t\t\t'apply_translation' => false\n\t\t\t\t\t),\n\t\t\t\t\t'instance' => array(\n\t\t\t\t\t\t'internal_key' => 'i',\n\t\t\t\t\t\t'is_list' => false,\n\t\t\t\t\t\t'apply_translation' => false\n\t\t\t\t\t),\n\t\t\t\t);\n\t\treturn $config;\n\t}", "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-user\"></i>',\n 'desc' => $this->l('Ingrese la llave pública'),\n 'name' => 'KUSHKIPAGOS_PUBLIC_KEY',\n 'label' => $this->l('Public key'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-user-secret\"></i>',\n 'desc' => $this->l('Ingrese la llave privada'),\n 'name' => 'KUSHKIPAGOS_PRIVATE_KEY',\n 'label' => $this->l('Private key'),\n ),\n array(\n 'type' => 'switch',\n 'label' => $this->l('Entorno de pruebas'),\n 'name' => 'KUSHKIPAGOS_DEV',\n 'is_bool' => true,\n 'desc' => $this->l('Usar este módulo en entorno de pruebas'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled')\n )\n ),\n )\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "function autoriser_cfg_bouton($faire,$quoi,$id,$qui,$options) {\n\t// si on est admin\n\treturn autoriser('configurer','cfg');\n}", "protected function defineParams() {\n return [\n 'state' => $this->state,\n 'rights' => $this->document->getRights(),\n 'config' => false,\n 'active' => false,\n ];\n }", "public function setConfig()\n {\n $this->postcode = isset($_POST['postcode']) ? htmlspecialchars($_POST['postcode']) : '000-0000';\n $this->maptype = isset($_POST['maptype']) ? htmlspecialchars($_POST['maptype']) : 'Static MAP';\n $this->unit = isset($_POST['unit']) ? htmlspecialchars($_POST['unit']) : 'CELSIUS';\n $this->apiLocation = isset($_POST['apiLocation']) ? htmlspecialchars($_POST['apiLocation']) : 'Google';\n $this->apiWeather = isset($_POST['apiWeather']) ? htmlspecialchars($_POST['apiWeather']) : 'OpenWeatherMap';\n }", "protected function getConfigFormValues()\n {\n return array(\n 'PROMO_LIVE_MODE' => Configuration::get('PROMO_LIVE_MODE', true),\n 'PROMO_ACCOUNT_EMAIL' => Configuration::get('PROMO_ACCOUNT_EMAIL', '[email protected]'),\n 'PROMO_ACCOUNT_PASSWORD' => Configuration::get('PROMO_ACCOUNT_PASSWORD', null),\n 'PROMO_IMAGE' => Configuration::get('PROMO_IMAGE', null),\n 'PROMO_IMAGE_DATE_DEBUT' => Configuration::get('PROMO_IMAGE_DATE_DEBUT', null),\n 'PROMO_IMAGE_DATE_FIN' => Configuration::get('PROMO_IMAGE_DATE_FIN', null),\n );\n }", "function admin_configuration()\n{\n global $app;\n\n $app->render('admin_configuration.html', [\n 'page' => mkPage(getMessageString('admin'), 0, 2),\n 'mailers' => mkMailers(),\n 'ttss' => mkTitleTimeSortOptions(),\n 'isadmin' => is_admin()]);\n}", "function getParams()\n {\n global $id;\n global $mode;\n global $data_source;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function SetAdminConfiguration() {\n\t\t\tadd_options_page(\"3B Meteo\", \"3B Meteo\", 8, basename(__FILE__), array(\"TreBiMeteo\",'DesignAdminPage'));\n\t\t}", "public function saveParams()\r\n\t{\r\n\t\tforeach ($this->param_names as $param_name)\r\n\t\t{\r\n\t\t\t$funcname = 'get'.$param_name;\r\n\t\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t\tConfiguration::updateValue('CERTISSIM_'.Tools::strtoupper($param_name), $this->$funcname());\r\n\t\t\telse\r\n\t\t\t\tConfiguration::updateValue('CERTISSIM_'.Tools::strtoupper($param_name), $this->$funcname(), false, null, $this->getIdshop());\r\n\t\t}\r\n\t}", "function setConfig() {\n\n\t\t\t// Mapping array for PI flexform\n\t\t\t$flex2conf = array(\n\t\t\t\t'news' => 'sDEF:news',\n\t\t\t\t'days' => 'sDEF:days',\n\t\t\t\t'darkdesign' => 'sDEF:dark',\n\t\t\t\t'show_last' => 'sDEF:show_last',\n\t\t\t\t'order_by' => 'sDEF:listOrderBy',\n\t\t\t\t'asc_desc' => 'sDEF:ascDesc',\n\t\t\t\t'category_mode' => 'sDEF:categoryMode',\n\t\t\t\t'category' => 'sDEF:categorySelection',\n\t\t\t\t'sideTop' => 'sSIDE:blog',\n\t\t\t\t'sideTopTitle' => 'sSIDE:blogTitle',\n\t\t\t\t'sideTopText' => 'sSIDE:blogText',\n\t\t\t\t'sideTopImage' => 'sSIDE:blogImage',\n\t\t\t\t'sideMiddle' => 'sSIDE:reader',\n\t\t\t\t'sideMiddleTitle' => 'sSIDE:readerTitle',\n\t\t\t\t'sideMiddleText' => 'sSIDE:readerText',\n\t\t\t\t'sideMiddleImage' => 'sSIDE:readerImage',\n\t\t\t\t'sideBottom' => 'sSIDE:bottom',\n\t\t\t\t'sideBottomTitle' => 'sSIDE:bottomTitle',\n\t\t\t\t'swfParams.' => array(\n\t\t\t\t\t'loop' => 'sFLASH:loop',\n\t\t\t\t\t'menu' => 'sFLASH:menu',\n\t\t\t\t\t'quality' => 'sFLASH:quality',\n\t\t\t\t\t'scale' => 'sFLASH:scale',\n\t\t\t\t\t'bgcolor' => 'sFLASH:bgcolor',\n\t\t\t\t\t'swliveconnect' => 'sFLASH:swliveconnect',\n\t\t\t\t),\n\t\t\t\t'playerParams.' => array(\n\t\t\t\t\t'timer' => 'sPLAYER:timer',\n\t\t\t\t\t'transition' => 'sPLAYER:transition',\n\t\t\t\t\t'random' => 'sPLAYER:random',\n\t\t\t\t\t'navigation' => 'sPLAYER:navigation',\n\t\t\t\t),\n\t\t\t\t'width' => 'sFLASH:width',\n\t\t\t\t'height' => 'sFLASH:height',\n\t\t\t\t'version' => 'sFLASH:version',\n\t\t\t);\n\n\t\t\t// Ovverride TS setup with flexform\n\t\t\t$this->conf = $this->api->fe_mergeTSconfFlex($flex2conf,$this->conf,$this->piFlexForm);\n\n\t\t\t$this->conf['swfParams.']['width'] = $this->conf['width'];\n\t\t\t$this->conf['swfParams.']['height'] = $this->conf['height'];\n\t\t\t$this->conf['swfParams.']['wmode'] = $this->conf['wmode'];\n \t\t//$this->conf['width'] = 512;\n\t\t\t//$this->conf['height'] = 265;\n\t\t\t//$this->conf['wmode'] = 'opaque';\n\t\t\t// DEBUG ONLY - Output configuration array\n\t\t\t#$this->api->debug($this->conf,'MP3 Player: configuration array');\n\t\t}", "public function settings()\n {\n // Process any module settings you asked for.\n $apiKey = $this->getSanitizer()->getString('apiKey');\n $owmApiKey = $this->getSanitizer()->getString('owmApiKey');\n $owmIsPaidPlan = $this->getSanitizer()->getCheckbox('owmIsPaidPlan');\n $cachePeriod = $this->getSanitizer()->getInt('cachePeriod', 1440);\n\n if ($this->module->enabled != 0) {\n if ($apiKey == '' && $owmApiKey == '')\n throw new InvalidArgumentException(__('Missing API Key'), 'apiKey');\n\n if ($cachePeriod <= 0)\n throw new InvalidArgumentException(__('Cache period must be a positive number'), 'cachePeriod');\n }\n\n $this->module->settings['apiKey'] = $apiKey;\n $this->module->settings['owmApiKey'] = $owmApiKey;\n $this->module->settings['owmIsPaidPlan'] = $owmIsPaidPlan;\n $this->module->settings['cachePeriod'] = $cachePeriod;\n }", "private function loadParams() {\r\n foreach ($this->_param_names as $param_name)\r\n\t{\r\n\t\t$funcname = 'set'.$param_name;\r\n\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t$this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name)));\r\n\t\telse\r\n\t\t\t$this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name), null, null, $this->getIdshop()));\r\n\t}\r\n }", "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $data_source;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($data_source)) {\r\n $this->data_source=$data_source;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "public function loadParams()\r\n\t{\r\n\t\tforeach ($this->param_names as $param_name)\r\n\t\t{\r\n\t\t\t$funcname = 'set'.$param_name;\r\n\t\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name)));\r\n\t\t\telse\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name), null, null, $this->getIdshop()));\r\n\t\t}\r\n\t}", "public function getParameterRegistry();", "public static function settings_to_params() {\n\t\t\treturn [\n\t\t\t\t'full_width_border_color' => 'border_color',\n\t\t\t\t'full_width_border_size' => 'border_size',\n\t\t\t\t'full_width_bg_color' => 'background_color',\n\t\t\t\t'full_width_gradient_start_color' => 'gradient_start_color',\n\t\t\t\t'full_width_gradient_end_color' => 'gradient_end_color',\n\t\t\t\t'link_color' => 'link_color',\n\t\t\t\t'link_hover_color' => 'primary_color',\n\t\t\t];\n\t\t}", "protected function configure() {\r\n\t\t\t$this->setName('consola:app:desarrollo');\r\n\t\t\t$this->setDescription('Ejecuta el archivo de consola en entorno de Desarrollo');\r\n\t\t\t$this->addArgument('app', InputArgument::REQUIRED, 'Aplicacion a ejecutar');\r\n\t\t\t$this->addArgument('claseConsola', InputArgument::REQUIRED, 'Clase a ejecutar');\r\n\t\t\t$this->addArgument('parametros', InputArgument::IS_ARRAY, 'Lista de parametros separados por espacio');\r\n\t\t}", "public function parameters()\n\t{\n\t\treturn [\n\t\t\t'parent_id' => $this->input('parent_id'),\n\t\t\t'title' => $this->input('title'),\n\t\t\t'icon' => $this->input('icon'),\n\t\t\t'description' => $this->input('description'),\n\t\t\t'is_active' => $this->has('is_active')\n\t\t];\n\t}", "protected function configure() {\n $this\n // the name of the command (the part after \"bin/console\")\n ->setName('admin:generar-clientes-prueba')\n\n // the short description shown while running \"php bin/console list\"\n ->setDescription('Crea clientes de manera aleatoria.')\n\n // the full command description shown when running the command with\n // the \"--help\" option\n ->setHelp(\"Crea clientes de manera aleatoria con un numero definido por el primer parametro\")\n ->addArgument('cantidad', InputArgument::REQUIRED, '¿Cuantos clientes?')\n ;\n }", "function getConfiguration() ;", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function zarinpalwg_config() {\n $configarray = array(\n \"FriendlyName\" => array(\"Type\" => \"System\", \"Value\"=>\"زرین پال - وب گیت\"),\n \"merchantID\" => array(\"FriendlyName\" => \"merchantID\", \"Type\" => \"text\", \"Size\" => \"50\", ),\n \"Currencies\" => array(\"FriendlyName\" => \"Currencies\", \"Type\" => \"dropdown\", \"Options\" => \"Rial,Toman\", ),\n\t \"MirrorName\" => array(\"FriendlyName\" => \"نود اتصال\", \"Type\" => \"dropdown\", \"Options\" => \"آلمان,ایران,خودکار\", \"Description\" => \"چناانچه سرور شما در ایران باشد ایران دا انتخاب کنید و در غیر اینصورت آلمان و یا خودکار را انتخاب کنید\", ),\n \"afp\" => array(\"FriendlyName\" => \"افزودن کارمزد به قیمت ها\", \"Type\" => \"yesno\", \"Description\" => \"در صورت انتخاب 2.5 درصد به هزینه پرداخت شده افزوده می شود.\", ),\n );\n\treturn $configarray;\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n\n\n\n}", "protected function setParameters()\n\t{\n\t\t$parameters = [];\n\n\t\t// Set output directory\n\t\t$parameters['-o'] = Config::get('spy.output', base_path('database/schema'));\n\n\t\t// Set database connection details\n\t\t$connections = Config::get('database.connections', []);\n\t\t$connection = ($this->argument('connection')) ?: Config::get('database.default');\n\t\tif(isset($connections[$connection]))\n\t\t{\n\t\t\t$this->info(\"Using '$connection' connection\");\n\n\t\t\t$parameters['-host'] = $connections[$connection]['host'];\n\t\t\t$parameters['-db'] = $connections[$connection]['database'];\n\t\t\t$parameters['-u'] = $connections[$connection]['username'];\n\t\t\t$parameters['-p'] = $connections[$connection]['password'];\n\t\t}\n\t\telse\n\t\t\t$this->comment(\"Unknown connection '$connection'. Command will fail unless you provide DB credentials.\");\n\n\t\t// Merge with user's parameters\n\t\t$parameters = array_merge($parameters, Config::get('spy.parameters', []));\n\n\t\t// Ask for missing mandatory parameters\n\t\tif( ! isset($parameters['-db']))\n\t\t\t$parameters['-db'] = $this->ask('Enter database name');\n\n\t\tif( ! isset($parameters['-u']))\n\t\t\t$parameters['-u'] = $this->ask('Enter database username');\n\n\t\treturn $this->parameters = $parameters;\n\t}", "private function createConfiguration()\n {\n $this->createVrpayecommercePluginConfig();\n $this->Form();\n }", "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "public function getApiParameters();", "public function run()\n {\n $cfg = array(\n array('name' => 'pagina principal titulo','content' => '¿DÓNDE QUIERES TRABAJAR?','is_active' => 1),\n array('name' => 'pagina principal seccion oferta titulo','content' => 'Oferta Académica','is_active' => 1),\n array('name' => 'pagina principal seccion oferta texto1','content' => 'Llevamos más de 25 años formando a los mejores profesionales del sector, en el Centro de Formación San Juan lo tenemos todo preparado para que solo tengas que decidir la carrera de tu vida profesional.\nTú decides.','is_active' => 1),\n array('name' => 'pagina principal seccion oferta texto2','content' => 'Impartimos cursos de formación con preferencia a desempleados de la Comunidad de Madrid orientados a la obtención de la certificación de los principales fabricantes del sector TIC, además de certificados de profesionalidad y cursos de idiomas.','is_active' => 1),\n array('name' => 'pagina principal seccion oferta texto3','content' => 'a calidad se mide en confianza. Por ello nos sentimos más que orgullosos de contar con más de 731 empresas en nuestra bolsa de trabajo, profesionales que confían en la preparación con que nuestros alumnos comienzan sus carreras.','is_active' => 1),\n array('name' => 'pagina principal seccion informacion titulo','content' => 'Información del Centro Académico','is_active' => 1),\n array('name' => 'pagina principal seccion informacion texto','content' => 'Desde que en 1950 ocuparon sus aulas el primer centenar de alumnos, ha ido creciendo hasta su configuración actual, con el paso del tiempo se ha ido reconstruyendo y ampliando sus instalaciones, reabriendo sus puertas a la actividad docente. Desde entonces ha sido un centro educativo que ha pretendido dar respuesta a las diversas necesidades de los jovenes que buscan obtener una formación, la cual será base y clave para poder labrarse un camino en un futuro laboral.','is_active' => 1),\n array('name' => 'pagina principal seccion noticias titulo','content' => 'Ultimas Noticias','is_active' => 1),\n array('name' => 'pagina principal seccion colaboradores titulo','content' => 'Colaboradores','is_active' => 1),\n array('name' => 'footer texto','content' => 'Pide mas información a través del formulario','is_active' => 1),\n array('name' => 'footer boton','content' => 'Contacta','is_active' => 1),\n array('name' => 'footer direccion','content' => 'ContactaDirección: C/San Juan de la Cruz S/N, 28223 Pozuelo de Alarcón, Madrid ','is_active' => 1),\n array('name' => 'footer telefono','content' => 'Tfno: +(34)91 342 23 89 Fax: +(34)91 322 11 23 ','is_active' => 1),\n array('name' => 'rrss email','content' => 'mailto:centrodeformacion.com','is_active' => 1),\n array('name' => 'rrss twitter','content' => 'http://www.twitter.com','is_active' => 1),\n array('name' => 'rrss facebook','content' => 'http://www.facebook.com','is_active' => 1),\n array('name' => 'pagina nuestro centro titulo','content' => 'Nuestro Centro','is_active' => 1),\n array('name' => 'pagina nuestro centro texto1','content' => 'Desde que en 1950 ocuparon sus aulas el primer centenar de alumnos, ha ido creciendo hasta su configuración actual, con el paso del tiempo se ha ido reconstruyendo y ampliando sus instalaciones, reabriendo sus puertas a la actividad docente.','is_active' => 1),\n array('name' => 'pagina nuestro centro texto2','content' => 'Desde entonces ha sido un centro educativo que ha pretendido dar respuesta a las diversas necesidades de los jovenes que buscan obtener una formación, la cual será base y clave para poder labrarse un camino en un futuro laboral.','is_active' => 1),\n array('name' => 'pagina nuestro centro texto3','content' => 'Contamos con diversas instalaciones las cuales cubren las diferentes necesidades de la formación correspondiente, renovadas año tras año para poder ofrecer el mayor servicio junto al personal cuailificado.','is_active' => 1),\n array('name' => 'pagina secretaria titulo','content' => 'Secretaría','is_active' => 1),\n array('name' => 'pagina secretaria subtitulo','content' => 'Información General','is_active' => 1),\n array('name' => 'pagina secretaria texto1','content' => 'Horario de Secretaría: de octubre a junio en días lectivos. Únicamente en horario de mañana','is_active' => 1),\n array('name' => 'pagina secretaria texto2','content' => 'de Lunes a Viernes de 10:00 a 13:00','is_active' => 1),\n array('name' => 'pagina secretaria texto3','content' => 'Los certificados de estudios se solicitarán en Secretaría y se entregarán en un plazo de 72 horas lectivas.','is_active' => 1),\n array('name' => 'pagina noticias titulo','content' => 'Noticias','is_active' => 1),\n array('name' => 'pagina contacto titulo','content' => 'Contacto','is_active' => 1),\n array('name' => 'pagina formacion informatica titulo','content' => 'Formación en Informática','is_active' => 1),\n array('name' => 'pagina formacion sanidad titulo','content' => 'Formación en Sanidad','is_active' => 1),\n array('name' => 'pagina formacion administracion titulo','content' => 'Formación en Administración','is_active' => 1),\n array('name' => 'pagina grado medio informatica titulo','content' => 'Grado Medio de Informática','is_active' => 1),\n array('name' => 'pagina grado medio informatica texto1','content' => 'En esta formación aprenderás a instalar, configurar y mantener sistemas microinformáticos, aislados o en red, así como redes locales en pequeños entornos. Además, estos estudios incluyen los conocimientos necesarios para llevar a cabo las actividades de nivel básico de prevención de riesgos laborales.','is_active' => 1),\n array('name' => 'pagina grado medio informatica texto2','content' => 'Por eso, al finalizar estos estudios, se puede trabajar en empresas del sector servicios que se dediquen a la comercialización, montaje y reparación de equipos, redes y servicios microinformáticos en general, como parte del soporte informático de la organización o en entidades de cualquier tamaño y sector productivo que utilizan sistemas microinformáticos y redes de datos para su gestión o seguir estudiando','is_active' => 1),\n array('name' => 'pagina grado medio informatica texto3','content' => 'Cabe señalar que este Ciclo Formativo Grado Medio en Sistemas Microinformáticos y Redes es uno de los perfiles profesionales más demandados por las empresas: según los datos del Observatorio de las Ocupaciones del Servicio Público de Empleo Estatal (SEPE), esta rama de FP fue una de las tres que registró un mayor número de contrataciones en el 2014, con un total de 25.955 contratos.','is_active' => 1),\n array('name' => 'galeria titulo general','content' => 'Galería de imágenes','is_active' => 1),\n array('name' => 'pagina grado superior informatica titulo','content' => 'Grado Superior de Informática','is_active' => 1),\n array('name' => 'pagina grado superior informatica texto1','content' => 'El mundo del desarrollo web está viviendo su mejor momento. Con una inserción laboral como ningún otro sector profesional, con una oferta de empleo incesante, cada vez son más quienes deciden formarse en esta materia. Por eso, en nuestro centro de formación hemos preparado los programas académicos más avanzados en desarrollo web, para que comiences tu carrera nada más acabar tu formación.','is_active' => 1),\n array('name' => 'pagina grado superior informatica texto2','content' => 'Vas a una entrevista de trabajo, te preguntan qué sabes dominar del diseño web y les dices que tanto el Back como el Front-End. Se quedan boquiabiertos. Y, por supuesto, te fichan. Porque ese es nuestro objetivo: formarte en el perfil más demandado actualmente por las empresas, agencias y estudios, el de Web Developer Full Stack.','is_active' => 1),\n array('name' => 'pagina grado superior informatica texto3','content' => 'En nuestro centro de formación te formarás con un programa especialmente orientado a tu preparación como experto en los lenguajes front-end HTML5 y CSS3, así como en el dominio del lenguaje de programación Javascript y sus dos principales frameworks: jQuery y Angular.','is_active' => 1),\n array('name' => 'pagina grado superior informatica texto4','content' => 'Además, completarás tu preparación con un conocimiento profesional de los lenguajes de programación Back-End PHP y XML, así como de gestores de bases de datos profesionales como MySQL, adentrándote en técnicas de desarrollo web imprescindibles en tu currículum, tales como Ajax.','is_active' => 1),\n array('name' => 'pagina grado medio administracion titulo','content' => 'Grado Medio de Administración','is_active' => 1),\n array('name' => 'pagina grado medio administracion texto1','content' => 'Con esta titulación oficial y homologada podrás trabajar como auxiliar administrativo en cualquier empresa o institución pública.','is_active' => 1),\n array('name' => 'pagina grado medio administracion texto2','content' => 'En el Grado Medio de Gestión Administrativa adquirirás los conocimientos básicos de gestión empresarial, de contabilidad y de confección de los principales modelos oficiales. Fórmate como auxiliar administrativo y elabora, gestiona y tramita documentos y comunicaciones. Y trabajarás también la atención al cliente y el apoyo a distintas áreas de la empresa.','is_active' => 1),\n array('name' => 'pagina grado medio administracion texto3','content' => 'Realizar actividades de apoyo administrativo en el ámbito laboral, contable, comercial, financiero y fiscal, así como de atención al cliente/usuario, tanto en empresas públicas como privadas, aplicando la normativa vigente y protocolos de calidad, asegurando la satisfacción del cliente y actuando según normas de prevención de riesgos laborales y protección ambiental.','is_active' => 1),\n array('name' => 'pagina grado superior administracion titulo','content' => 'Grado Superior de Administración','is_active' => 1),\n array('name' => 'pagina grado superior administracion texto1','content' => 'Obtén directamente y sin pruebas libres la titulación oficial y homologada de Administración y Finanzas y prepárate para trabajar como administrativo en cualquier empresa.','is_active' => 1),\n array('name' => 'pagina grado superior administracion texto2','content' => 'Este Grado Superior te preparará incluso para emprender y trabajar por tu cuenta. Aprende a crear y desarrollar un “business plan” y a interpretar sus proyecciones financieras y todo lo que se necesita para empezar a levantar cualquier negocio.','is_active' => 1),\n array('name' => 'pagina grado superior administracion texto3','content' => 'Este profesional ejerce su actividad tanto en grandes como en medianas y pequeñas empresas, en cualquier sector de actividad, y particularmente en el sector servicios, así como en las administraciones públicas, desempeñando las tareas administrativas en la gestión y el asesoramiento en las áreas laboral, comercial, contable y fiscal de dichas empresas e instituciones, ofreciendo un servicio y atención a los clientes y ciudadanos, realizando trámites administrativos con las administraciones públicas y gestionando el archivo y las comunicaciones de la empresa.','is_active' => 1),\n array('name' => 'pagina grado superior administracion texto4','content' => 'Podría ser trabajador por cuenta propia, efectuando la gestión de su propia empresa, o a través del ejercicio libre de una actividad económica, como en una asesoría financiera, laboral, estudio de proyectos, entre otros.','is_active' => 1),\n array('name' => 'pagina grado medio sanidad titulo','content' => 'Grado Medio de Sanidad','is_active' => 1),\n array('name' => 'pagina grado medio sanidad texto1','content' => 'El principal objetivo de esta formación es que nuestros alumnos puedan prestar atención básica sanitaria y psicológica en el entorno pre-hospitalario, trasladar al paciente al centro sanitario, llevar a cabo actividades de tele-operación y tele-asistencia sanitaria, colaborar en la organización y desarrollo de los planes de emergencia de los dispositivos de riesgo previsibles y de la logística sanitaria ante una emergencia individual, colectiva o catástrofe.','is_active' => 1),\n array('name' => 'pagina grado medio sanidad texto2','content' => 'Con esta profesión serás capaz de evacuar al paciente o víctima utilizando las técnicas de movilización e inmovilización y adecuando la conducción a las condiciones del mismo, para realizar un traslado seguro al centro sanitario de referencia. Aplicar técnicas de soporte vital básico ventilatorio y circulatorio en situación de compromiso y de atención básica inicial en otras situaciones de emergencia, entre otras cosas.','is_active' => 1),\n array('name' => 'pagina grado medio sanidad texto3','content' => 'Podrás trabajar en el sector sanitario relacionado con el traslado de pacientes o víctimas y la prestación de atención sanitaria y psicológica inicial, colaborando en la preparación y desarrollo de la logística sanitaria ante emergencias colectivas o catástrofes, así como participando en la preparación de planes de emergencia y dispositivos de riesgo previsible del ámbito de la protección civil.','is_active' => 1),\n array('name' => 'pagina grado superior sanidad titulo','content' => 'Grado Superior de Sanidad','is_active' => 1),\n array('name' => 'pagina grado superior sanidad texto1','content' => 'El objetivo principal de esta formación superior es la de poder elaborar y tramitar documentos y comunicaciones propias de los servicios sanitarios a partir de las necesidades detectadas y en el ámbito de su responsabilidad, respetando los criterios deontológicos de la profesión.','is_active' => 1),\n array('name' => 'pagina grado superior sanidad texto2','content' => 'El plan de estudio se basará en Realizar la gestión de ingresos, altas, asignación de camas y prestación de otros servicios sanitarios a pacientes/usuarios, asegurando el cumplimiento de los procesos y los niveles de calidad. Reconocer la terminología clínica de los documentos sanitarios en relación con los procesos patológicos y su atención en los servicios sanitarios, entre otras cosas.','is_active' => 1),\n array('name' => 'pagina grado superior sanidad texto3','content' => 'Con este formación se podrá trabajar de Trabajar en el sector sanitario, en organismos e instituciones del ámbito público y en empresas privadas, tanto en atención primaria como en especializada, así como en centros hospitalarios y de investigación. Realizan su trabajo bajo la supervisión del facultativo correspondiente o gerente administrativo en su caso.','is_active' => 1),\n array('name' => 'titulo del centro','content' => 'Centro de Formación San Juan','is_active' => 1),\n );\n\n foreach($cfg as $cf){ Configuration::create($cf); }\n\n }", "protected function configure()\n {\n $this\n ->setName('iNachoLee:copiarcargas')\n ->setDefinition(array(\n new InputOption('accion', false, InputOption::VALUE_OPTIONAL, 'Preguntas Temporales')\n ))\n ->setDescription('Genera Slug y Linea de academica');\n }", "protected function getConfigFormCOP()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-user\"></i>',\n 'desc' => $this->l('Ingrese la llave pública'),\n 'name' => 'KUSHKIPAGOS_PUBLIC_KEY',\n 'label' => $this->l('Public key'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-user-secret\"></i>',\n 'desc' => $this->l('Ingrese la llave privada'),\n 'name' => 'KUSHKIPAGOS_PRIVATE_KEY',\n 'label' => $this->l('Private key'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-address-card\"></i>',\n 'desc' => $this->l('Ingrese la razón social'),\n 'name' => 'KUSHKIPAGOS_RAZON_SOCIAL',\n 'label' => $this->l('Razon Social'),\n ),\n array(\n 'type' => 'switch',\n 'label' => $this->l('Permitir transferencia'),\n 'name' => 'KUSHKIPAGOS_TRANSFER',\n 'is_bool' => true,\n 'desc' => $this->l('Usar transferencia como forma de pago'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled')\n )\n ),\n ),\n array(\n 'type' => 'switch',\n 'label' => $this->l('Entorno de pruebas'),\n 'name' => 'KUSHKIPAGOS_DEV',\n 'is_bool' => true,\n 'desc' => $this->l('Usar este módulo en entorno de pruebas'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled')\n )\n ),\n ),\n ),\n\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n\n ),\n\n );\n }", "public function __construct()\n {\n $this->params['config'] = config('app');\n }", "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "protected function getConfigFormValues()\n {\n return array(\n 'CAPTURELEADSXAVIER_LIVE_MODE' => Configuration::get('CAPTURELEADSXAVIER_LIVE_MODE', true),\n 'CAPTURELEADSXAVIER_ACCOUNT_EMAIL' => Configuration::get('CAPTURELEADSXAVIER_ACCOUNT_EMAIL', '[email protected]'),\n 'CAPTURELEADSXAVIER_ACCOUNT_PASSWORD' => Configuration::get('CAPTURELEADSXAVIER_ACCOUNT_PASSWORD', null),\n 'CAPTURELEADSXAVIER_COL_SEL' => Configuration::get('CAPTURELEADSXAVIER_COL_SEL', \"left\"),\n 'CAPTURELEADSXAVIER_NBR' => Configuration::get('CAPTURELEADSXAVIER_NBR', 3)\n );\n }", "protected function defineCommandOptions()\n {\n $this->addOption('all', 'A', InputOption::VALUE_NONE, \"List all defined globals settings\");\n\n $this->addArgument('key', InputArgument::OPTIONAL, \"Config param name\", null);\n $this->addArgument('value', InputArgument::OPTIONAL, \"If set, will set param [key] to this value\", null);\n\n }", "static function afficher_le_parametrage() {\n\t\tif (is_plugin_active ( SARBACANE__PLUGIN_DIRNAME . \"/sarbacane.php\" )) {\n\t\t\twp_enqueue_style ( \"sarbacane_global.css\", plugins_url ( \"css/sarbacane_global.css\", __FILE__ ), array (\n\t\t\t\t\t'wp-admin' \n\t\t\t) );\n\t\t\twp_enqueue_style ( \"sarbacane_widget_admin_panel.css\", plugins_url ( \"css/sarbacane_widget_admin_panel.css\", __FILE__ ), array (\n\t\t\t\t\t'wp-admin' \n\t\t\t) );\n\t\t\twp_enqueue_script ( \"sarbacane-widget-adminpanel.js\", plugins_url ( \"js/sarbacane-widget-adminpanel.js\", __FILE__ ), array (\n\t\t\t\t\t'jquery',\n\t\t\t\t\t'jquery-ui-dialog',\n\t\t\t\t\t'underscore' \n\t\t\t) );\n\t\t\twp_enqueue_style ( \"jquery-ui.min.css\", plugins_url ( \"css/jquery-ui.min.css\", __FILE__ ) , array (\n\t\t\t\t\t'wp-admin' \n\t\t\t) );\n\t\t}\n\t\t\n\t\tif (isset ( $_POST ['sarbacane_save_configuration'] )) {\n\t\t\t$sanitized_post = sanitize_post ( $_POST, 'db' );\n\t\t\tSarbacaneNewsWidget::save_parameters ( $sanitized_post );\n\t\t}\n\t\t\n\t\t$title = get_option ( 'sarbacane_news_title', __ ( 'newsletter', 'sarbacane-desktop' ) );\n\t\t$description = get_option ( 'sarbacane_news_description', __ ( 'get_our_news_and_promotion_monthly', 'sarbacane-desktop' ) );\n\t\t$registration_message = get_option ( 'sarbacane_news_registration_message', __ ( 'congrats_you_just_opt_in_our_newsletter', 'sarbacane-desktop' ) );\n\t\t$registration_button = get_option ( 'sarbacane_news_registration_button', __ ( 'Inscription', 'sarbacane-desktop' ) );\n\t\t\n\t\t$fields = get_option ( 'sarbacane_news_fields' );\n\t\tif ($fields == null || sizeof ( $fields ) <= 0) {\n\t\t\t$default_email = new stdClass ();\n\t\t\t$email_field = __ ( 'email', 'sarbacane-desktop' );\n\t\t\t$default_email->label = $email_field;\n\t\t\t$default_email->mandatory = true;\n\t\t\tupdate_option ( 'sarbacane_news_fields', array (\n\t\t\t\t\t$default_email \n\t\t\t) );\n\t\t\t$fields = get_option ( 'sarbacane_news_fields' );\n\t\t}\n\t\t\n\t\t$list_type = \"N\";\n\t\t\n\t\trequire_once 'views/sarbacane-widget-adminpanel.php';\n\t}", "protected function makeConfigure()\n {\n $this\n ->setDescription('< not implemented >')\n ->addArgument('phone', InputArgument::REQUIRED, 'phone')\n ->addArgument('product_id', InputArgument::REQUIRED, 'product_id')\n ->addArgument('amount', InputArgument::REQUIRED, 'amount')\n ->addArgument('transaction_external_id', InputArgument::OPTIONAL, '...')\n ->addArgument('transaction_id', InputArgument::OPTIONAL, '...')\n ->addArgument('transaction_date', InputArgument::OPTIONAL, '...')\n ->addArgument('account', InputArgument::OPTIONAL, '...')\n ->addArgument('info', InputArgument::OPTIONAL, '...')\n ->addArgument('additional_params', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, '...')\n ;\n }", "protected function configure()\n {\n $this\n ->addOption('site', null, InputOption::VALUE_REQUIRED, 'Site ID')\n ->addOption('process', null, InputOption::VALUE_REQUIRED, 'Process ID', uniqid())\n ;\n }", "function config()\n\t{\n\t\t$rows=$GLOBALS['SITE_DB']->query_select('pstore_customs',array('*'),NULL,'ORDER BY id');\n\t\t$out=array();\n\t\tforeach ($rows as $i=>$row)\n\t\t{\n\t\t\t$fields=new ocp_tempcode();\n\t\t\t$hidden=new ocp_tempcode();\n\t\t\t$fields->attach($this->get_fields('_'.strval($i),get_translated_text($row['c_title']),get_translated_text($row['c_description']),$row['c_enabled'],$row['c_cost'],$row['c_one_per_member']));\n\t\t\t$fields->attach(do_template('FORM_SCREEN_FIELD_SPACER',array('TITLE'=>do_lang_tempcode('ACTIONS'))));\n\t\t\t$fields->attach(form_input_tick(do_lang_tempcode('DELETE'),do_lang_tempcode('DESCRIPTION_DELETE'),'delete_custom_'.strval($i),false));\n\t\t\t$hidden->attach(form_input_hidden('custom_'.strval($i),strval($row['id'])));\n\t\t\t$out[]=array($fields,$hidden,do_lang_tempcode('EDIT_CUSTOM_PRODUCT'));\n\t\t}\n\n\t\treturn array($out,do_lang_tempcode('ADD_NEW_CUSTOM_PRODUCT'),$this->get_fields());\n\t}", "public function init()\n\t{\n\t\t$paramController = new ParamController();\n\t\t$paramDetail = $paramController->detailAction($_GET[\"id\"]);\n\n\t\t//$_productParam = new models_ProductParam();\n\n\t\t$elemParamName = new G_Form_Element_Text(\"name\");\n\t\t$elemParamName->setAttribs(array(\n\t\t\t\t\t\t\"id\"=>\"param_name\",\n\t\t\t\t\t\t\"required\"=>true\n\t\t\t\t\t\t));\n\t\t$paramNameValue = $this->getPost(\"name\", $paramDetail->name);\n\t\t$elemParamName->setAttribs('value',$paramNameValue);\n\t\t$elemParamName->setAttribs('label','Název parametru:');\n\n\t\t//$paramName = $elemParamName->render();\n\n\t\t$elemDescription = new G_Form_Element_Textarea(\"description\");\n\t\t$elemDescription->setAttribs(array(\"id\"=>\"description\"));\n\t\t$descriptionValue = $this->getPost(\"description\", $paramDetail->description);\n\t\t$elemDescription->setAttribs('value',\t$descriptionValue);\n\t\t$elemDescription->setAttribs('label','Popis:');\n\t\t$paramDescription = $elemDescription->render();\n\n\t\t$typParamList = array(\n\t\t\t\t\t\t\"string\"=>\"Text\",\n\t\t\t\t\t\t\"numeric\"=>\"Celé číslo\",\n\t\t\t\t\t\t\"decimal\"=>\"Částka\",\n\t\t\t\t\t\t\"enum\"=>\"Seznam\",\n\t\t\t\t\t\t);\n\t\t$elemTypParam = new G_Form_Element_Select(\"type\");\n\t\t$elemTypParam->setAttribs(array(\"id\"=>\"typ_param\",\"required\"=>true));\n\t\t$typParamValue = $this->getPost(\"typ_param\", $paramDetail->type);\n\t\t$elemTypParam->setAttribs('value', $typParamValue);\n\t\t$elemTypParam->setAttribs('label','Typ:');\n\t\t$pole = array();\n\t\tforeach ($typParamList as $key => $value)\n\t\t{\n\t\t\t$pole[$key] = $value;\n\t\t}\n\t\t$elemTypParam->setMultiOptions($pole);\n\t\t$typParam = $elemTypParam->render();\n\n\t\t$elemSubmit = new G_Form_Element_Submit(\"save_param\");\n\t\t$elemSubmit->setAttribs('value','Ulož');\n\t\t$elemSubmit->setAttribs('class','tlac');\n\t\t$elemSubmit->setAttribs('label','');\n\t\t$elemSubmit->setIgnore(true);\n\t\t$paramSubmit = $elemSubmit->render();\n\n\t\t$elemParamId = new G_Form_Element_Hidden(\"id\");\n\t\t$elemParamId->setAttribs('value', $paramDetail->id);\n\n\t\t$this->addElements(array(\n\t\t\t\t\t\t$elemParamName, $elemDescription, $elemTypParam,\n\t\t\t\t\t\t$elemSubmit, $elemParamId,\n\t\t));\n\t}", "public function getAdminConfig()\r\n\t{\r\n\t\t$data = array(\r\n\t\t\t\t\"name\"\t\t\t=> t( 'themer.admin.config.title' ),\r\n\t\t\t\t\"version\"\t\t=> \"@fileVers@\",\r\n\t\t\t\t\"author\"\t\t=> t( 'themer.admin.config.author' ),\r\n\t\t\t\t\"description\"\t=> t( 'themer.admin.config.description' ),\r\n\t\t\t\t\"language\"\t\t=> \"english\",\r\n\t\t\t\t\"fields\"\t\t=> array()\r\n\t\t);\r\n\t\t\r\n\t\treturn $data;\r\n\t}", "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 config()\n {\n }", "public function activities_config(){\n $config = array(\n array('field' => 'activitiesName','label' => 'Activity Name','rules' => 'trim|required'),\n array('field' => 'txtchoiceItem','label' => 'Choice Item','rules' => 'trim|required'),\n array('field' => 'txtFrom','label' => 'From Date', 'rules' => 'trim|required'),\n array('field' => 'txtTo','label' => 'End Date','rules' => 'trim|required'),\n array('field' => 'txtStartTime','label' => 'start time','rules' => 'trim|required' ),\n array('field' => 'txtEndTime','label' => 'end time', 'rules' => 'trim|required' ),\n array('field' => 'txtLocation','label' => 'Location','rules' => 'trim|required'),\n array('field' => 'txtFastival','label' => 'fastival','rules' => 'trim|required'),\n array('field' => 'txtSupplier','label' => 'supplier','rules' => 'trim|required'),\n array('field' => 'txtPhotos', 'label' => 'Photo','rules' => 'trim|required'),\n array('field' => 'txtEticket','label' => 'Text for E-Ticket','rules' => 'trim|required'),\n array('field' => 'txtBooking','label' => 'booking text','rules' => 'trim|required'),\n array('field' => 'purchasePrice','label' => 'Purchase Price','rules' => 'trim|required'),\n array('field' => 'salePrice','label' => 'Sale Price','rules' => 'trim|required'),\n array('field' => 'originalStock','label' => 'Original Stock','rules' => 'trim|required|numeric' ),\n array('field' => 'actualStock', 'label' => 'Actual Stock','rules' => 'trim|required|numeric'),\n // array('field' => 'check', 'label' => 'available day','rules' => 'trim|required'),\n );\n return $config;\n }", "public function ActualizarConfiguracion()\n\t\t{\n\n\t\t\tif(empty($_POST[\"rifempresa\"]) or empty($_POST[\"nomempresa\"]) or empty($_POST[\"direcempresa\"]))\n\t\t\t{\n\t\t\t\techo \"1\";\n\t\t\t\texit;\n\t\t\t}\n\t\t\t$sql = \" update configuracion set \"\n\t\t\t.\" rifempresa = ?, \"\n\t\t\t.\" nomempresa = ?, \"\n\t\t\t.\" direcempresa = ?, \"\n\t\t\t.\" tlfempresa = ?, \"\n\t\t\t.\" correoempresa = ?, \"\n\t\t\t.\" cedresponsable = ?, \"\n\t\t\t.\" nomresponsable = ?, \"\n\t\t\t.\" correoresponsable = ?, \"\n\t\t\t.\" tlfresponsable = ?, \"\n\t\t\t.\" ivac = ?, \"\n\t\t\t.\" ivav = ?, \"\n\t\t\t.\" simbolo = ? \"\n\t\t\t.\" where \"\n\t\t\t.\" id = ?;\n\t\t\t\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->bindParam(1, $rifempresa);\n\t\t\t$stmt->bindParam(2, $nomempresa);\n\t\t\t$stmt->bindParam(3, $direcempresa);\n\t\t\t$stmt->bindParam(4, $tlfempresa);\n\t\t\t$stmt->bindParam(5, $correoempresa);\n\t\t\t$stmt->bindParam(6, $cedresponsable);\n\t\t\t$stmt->bindParam(7, $nomresponsable);\n\t\t\t$stmt->bindParam(8, $correoresponsable);\n\t\t\t$stmt->bindParam(9, $tlfresponsable);\n\t\t\t$stmt->bindParam(10, $ivac);\n\t\t\t$stmt->bindParam(11, $ivav);\n\t\t\t$stmt->bindParam(12, $simbolo);\n\t\t\t$stmt->bindParam(13, $id);\n\n\t\t\t$rifempresa = strip_tags($_POST[\"rifempresa\"]);\n\t\t\t$nomempresa = strip_tags($_POST[\"nomempresa\"]);\n\t\t\t$direcempresa = strip_tags($_POST[\"direcempresa\"]);\n\t\t\t$tlfempresa = strip_tags($_POST[\"tlfempresa\"]);\n\t\t\t$correoempresa = strip_tags($_POST[\"correoempresa\"]);\n\t\t\t$cedresponsable = strip_tags($_POST[\"cedresponsable\"]);\n\t\t\t$nomresponsable = strip_tags($_POST[\"nomresponsable\"]);\n\t\t\t$correoresponsable = strip_tags($_POST[\"correoresponsable\"]);\n\t\t\t$tlfresponsable = strip_tags($_POST[\"tlfresponsable\"]);\n\t\t\t$ivac = strip_tags($_POST[\"ivac\"]);\n\t\t\t$ivav = strip_tags($_POST[\"ivav\"]);\n\t\t\t$simbolo = strip_tags($_POST[\"simbolo\"]);\n\t\t\t$id = strip_tags($_POST[\"id\"]);\n\t\t\t$stmt->execute();\n\n\t\t\techo \"<div class='alert alert-info'>\";\n\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\techo \"<span class='fa fa-check-square-o'></span> LOS DATOS DE CONFIGURACI&Oacute;N DEL SISTEMA FUERON ACTUALIZADOS EXITOSAMENTE\";\n\t\t\techo \"</div>\";\t\t\n\t\t\texit;\n\t\t}", "public function configure()\n {\n \t$arregloEstados = array(2 => 'Libre', 3 => 'Regular');\n\t// Consultar Guille, 1 => 'Cursando'\n \t\n \t$this->widgetSchema['fechacierre'] = new sfWidgetFormInput(array('label' => '<p align=\"left\">Fecha de Cierre:</p>'), array('size' =>'10'));\n \t$this->widgetSchema['fechavencimiento'] = new sfWidgetFormInput(array('label' => '<p align=\"left\">Fecha de Vencimiento:</p>'), array('size' =>'10'));\n \t$this->widgetSchema['idestadomateria'] = new sfWidgetFormSelect(array('choices' => $arregloEstados));\n \t$this->widgetSchema['idcomision'] = new sfWidgetFormInputHidden();\n\t$this->widgetSchema['idmesaexamen'] = new sfWidgetFormSelect(array('choices' => array(0 => '----Seleccione----')));\n\t\n \t// Se define los labels\n\t$this->widgetSchema->setLabel('idestadomateria', '<p align=\"left\">Estado:</p>');\n\t$this->widgetSchema->setLabel('idmesaexamen', '<p align=\"left\">Mesa de Examen:</p>');\n\t \t\n \t// Se define los validadores \n\t$this->setValidators(array(\n\t\t'fechacierre' => new sfValidatorString(),\n\t\t'fechavencimiento' => new sfValidatorString()\n\t)); \n }", "public function getSettingParameters() : array\n {\n \treturn $this->settings['parameters'];\n }", "function xanthia_admin_config()\n{\n\n\t/** Security check - important to do this as early as possible to avoid\n\t * potential security holes or just too much wasted processing. For the\n\t * main function we want to check that the user has at least edit privilege\n\t * for some item within this component, or else they won't be able to do\n\t * anything and so we refuse access altogether. The lowest level of access\n\t * for administration depends on the particular module, but it is generally\n\t * either 'edit' or 'delete'\n\t */\n\tif (!pnSecAuthAction(0, 'Xanthia::', '::', ACCESS_EDIT)) {\n return pnVarPrepHTMLDisplay(_MODULENOAUTH);\n \t}\n\n\t// Load user API\n\tif (!pnModAPILoad('Xanthia','user')) {\n pnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_XA_APILOADFAILED));\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\n return true;\n\t}\n\n // Load admin API\n\tif (!pnModAPILoad('Xanthia', 'admin')) {\n pnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_XA_APILOADFAILED));\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\n return true;\n\t}\n\n\t// Create output object - this object will store all of our output so that\n\t// we can return it easily when required\n\t$pnRender =& new pnRender('Xanthia');\n\n\t// As Admin output changes often, we do not want caching.\n\t$pnRender->caching = false;\n\n // Visual Block Editor\n $pnRender->assign('vba', pnModGetVar('Xanthia', 'vba'));\n \n if (file_exists(\".htaccess\")){ \n\t $pnRender->assign('htaccess', 1); \n } else {\n \t$pnRender->assign('htaccess', 0); \n } \n\n\t// Short urls\n $pnRender->assign('shorturls', pnModGetVar('Xanthia', 'shorturls'));\n\n\t// Short urls\n $pnRender->assign('shorturlsextension', pnModGetVar('Xanthia', 'shorturlsextension'));\n\n // Enable Cache\n $pnRender->assign('enablecache', pnModGetVar('Xanthia', 'enablecache'));\n\n\t// modules not to cache for\n\t$pnRender->assign('modulesnocache', pnModGetVar('Xanthia', 'modulesnocache'));\n\n // Cache templates to Database\n $pnRender->assign('db_cache', pnModGetVar('Xanthia', 'db_cache'));\n \n // Compile Templates to Database (not active yet)\n $pnRender->assign('db_compile', pnModGetVar('Xanthia', 'db_compile'));\n\n // Check for new version of template\n $pnRender->assign('compile_check', pnModGetVar('Xanthia', 'compile_check'));\n\n // Force Check for new version of template\n $pnRender->assign('force_compile', pnModGetVar('Xanthia', 'force_compile'));\n \n // Cache Time\n $pnRender->assign('cache_lifetime', pnModGetVar('Xanthia', 'cache_lifetime'));\n\n // Base Caching on Database Updates\n $pnRender->assign('use_db', pnModGetVar('Xanthia', 'use_db'));\n\n // Use Database for Templates\n $pnRender->assign('db_templates', pnModGetVar('Xanthia', 'db_templates'));\n\n // use of whitespace output filter\n\t$pnRender->assign('trimwhitespace', pnModGetVar('Xanthia', 'trimwhitespace'));\n\n // Return the output that has been generated by this function\n if (ereg('0.8', _PN_VERSION_NUM)) {\n return $pnRender->fetch('xanthiaadminconfig.htm');\n\t} else {\n return $pnRender->fetch('xanthiaadmin726config.htm');\n\t}\n}", "public function admin_options() {\n\n ?>\n <h3>交通银行支付平台</h3>\n \n <table class=\"form-table\">\n <?php\n // Generate the HTML For the settings form.\n $this->generate_settings_html();\n ?>\n </table><!--/.form-table-->\n <?php\n }", "public function getAdminConfig()\r\n\t{\r\n\t\t$data = array(\r\n\t\t\t\t\"name\"\t\t\t=> t( 'intouch.addon.title' ),\r\n\t\t\t\t\"version\"\t\t=> \"@fileVers@\",\r\n\t\t\t\t\"author\"\t\t=> t( 'intouch.addon.author' ),\r\n\t\t\t\t\"description\"\t=> t( 'intouch.addon.description' ),\r\n\t\t\t\t\"language\"\t\t=> \"english\",\r\n\t\t\t\t\"logo\"\t\t\t=> get_baseurl( 'intouch' ) . 'assets/in_touch-48.png',\r\n\t\t\t\t\"fields\"\t\t=> array()\r\n\t\t);\r\n\t\t\r\n\t\treturn $data;\r\n\t}", "protected function defineSettings()\n\t{\n\t\treturn array(\n\t\t\t// set a custom plugin name for the control panel\n\t\t\t\"pluginName\" => array(AttributeType::String, 'default' => 'Asset Management'),\n\n\t\t\t\"sanitizeFilenames\" => array(AttributeType::Bool, 'default' => false), // will make sure that our file-names do not mess up urls\n\t\t\t\"addTimestampToFilename\" => array(AttributeType::Bool, 'default' => false), // adds a timestamp to each file\n\t\t\t\"preventFileReplacement\" => array(AttributeType::Bool, 'default' => false), // prevents replacement of files\n\n\t\t\t// the error message to show, if replacement of files is prevented\n\t\t\t\"replacementErrorMessage\" => array(AttributeType::String , 'default' => 'Replacement of files has been disabled by the administrator')\n\t\t);\n\t}", "function conf(){\n $this->s__perfil = toba::manejador_sesiones()->get_perfiles_funcionales();\n // print_r($this->s__perfil); \n \n $p = array_search('autoridad_mesa', $this->s__perfil);\n if($p !== false){//Es autoridad de mesa\n //Cargar datos del usuario especifico\n //obtengo el nombre de usuario logueado\n $usr = toba::manejador_sesiones()->get_id_usuario_instancia();\n \n $id_mesa = $this->dep('datos')->tabla('mesa')->get_de_usr($usr);\n if(sizeof($id_mesa)>0){\n $this->s__id_mesa = $id_mesa[0]['id_mesa'];\n $datos['id_mesa'] = $this->s__id_mesa;\n $this->dep('datos')->tabla('mesa')->cargar($datos);\n $this->s__mesa = $this->dep('datos')->tabla('mesa')->get();\n \n if($this->s__mesa['estado'] >= 2){//Ya fue validado por la secretaria\n $this->controlador()->evento('procesar')->ocultar();\n $this->controlador()->evento('enviar')->ocultar();\n }\n }\n else//No se encuentra mesa asociada al usuario logueado\n toba::notificacion()->agregar(\"No se encuentra el usuario ingresado\",\"info\");\n }\n else{\n $this->s__id_mesa = toba::memoria()->get_parametro('c');//el parametro c tiene el id mesa\n \n $this->s__retorno = toba::memoria()->get_parametro('k');//el parametro k tiene la dir de retorno\n $this->s__retorno_estado = toba::memoria()->get_parametro('f');\n \n \n $datos['id_mesa'] = $this->s__id_mesa;\n $this->dep('datos')->tabla('mesa')->cargar($datos);\n $this->s__mesa = $this->dep('datos')->tabla('mesa')->get();\n \t\n $p = array_search('junta_electoral', $this->s__perfil);\n if($p !== false){//Es junta electoral\n $this->controlador()->evento('procesar')->set_etiqueta('Confirmar');\n $this->controlador()->evento('enviar')->ocultar();\n\n if($this->s__mesa['estado'] > 3){//Ya fue validado por la secretaria\n// $this->dep('form_ml_directivo')->set_solo_lectura('votos');\n// $this->dep('form_ml_superior')->set_solo_lectura('votos');\n// $this->dep('form_ml_extra')->set_solo_lectura('votos');\n $this->controlador()->evento('procesar')->ocultar();\n $this->controlador()->evento('enviar')->ocultar();\n }\n }\n else{\n $p = array_search('secretaria', $this->s__perfil);//print_r(isset($p)?'no es false':'es false');\n if($p !== false){//Es secretaria\n $this->controlador()->evento('procesar')->set_etiqueta('Validar');\n $this->controlador()->evento('enviar')->ocultar();\n\n }\n \n }\n }\n \n if(isset($this->s__id_mesa)){//Si el pedido viene de la operacion Confirmar/Cargar// \n $this->s__claustro = $this->s__mesa['id_claustro'];\n $this->s__id_nro_ue = $this->dep('datos')->tabla('sede')->get_unidad($this->s__mesa['id_sede']);\n $this->s__id_sede = $this->s__mesa['id_sede'];\n }\n }", "protected function getConfigFormValues()\n {\n return array(\n 'KUSHKIPAGOS_LIVE_MODE' => Configuration::get('KUSHKIPAGOS_LIVE_MODE', true),\n 'KUSHKIPAGOS_PUBLIC_KEY' => Configuration::get('KUSHKIPAGOS_PUBLIC_KEY', null),\n 'KUSHKIPAGOS_PRIVATE_KEY' => Configuration::get('KUSHKIPAGOS_PRIVATE_KEY', null),\n 'KUSHKIPAGOS_RAZON_SOCIAL' => Configuration::get('KUSHKIPAGOS_RAZON_SOCIAL', null),\n 'KUSHKIPAGOS_TRANSFER' => Configuration::get('KUSHKIPAGOS_TRANSFER', false),\n 'KUSHKIPAGOS_DEV' => Configuration::get('KUSHKIPAGOS_DEV', true)\n );\n }", "function domainbox_getConfigArray()\n{\n $configArray = array(\"Reseller\" => array(\"Type\" => \"text\", \"Size\" => \"20\", \"Description\" => \"Enter your reseller name here\",), \"Username\" => array(\"Type\" => \"text\", \"Size\" => \"20\", \"Description\" => \"Enter your username here\",), \"Password\" => array(\"Type\" => \"password\", \"Size\" => \"20\", \"Description\" => \"Enter your password here\",), \"TestMode\" => array(\"Type\" => \"yesno\",),);\n return $configArray;\n}", "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n array(\n 'col' => 6,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-key\"></i>',\n 'desc' => $this->l('Ingrese un token de empresa - Vea la documentación'),\n 'name' => 'APISFACT_PRESTASHOP_TOKEN',\n 'label' => $this->l('Token'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-circle text-success\"></i>',\n 'desc' => $this->l('Ingrese la serie para las facturas'),\n 'name' => 'APISFACT_PRESTASHOP_SERIEF',\n 'label' => $this->l('Serie Factura'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-circle text-success\"></i>',\n 'desc' => $this->l('Ingrese el número inicial para las facturas'),\n 'name' => 'APISFACT_PRESTASHOP_NUMEROF',\n 'label' => $this->l('Numero de Factura'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-circle\"></i>',\n 'desc' => $this->l('Ingrese la serie para las boletas'),\n 'name' => 'APISFACT_PRESTASHOP_SERIEB',\n 'label' => $this->l('Serie Boleta'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-circle\"></i>',\n 'desc' => $this->l('Ingrese el número inicial para las boletas'),\n 'name' => 'APISFACT_PRESTASHOP_NUMEROB',\n 'label' => $this->l('Numero de Boleta'),\n )\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "protected function getConfigFormValues()\n {\n return array(\n 'ORDERREF_LENGTH' => Configuration::get('ORDERREF_LENGTH'),\n 'ORDERREF_MODE' => Configuration::get('ORDERREF_MODE'),\n );\n }", "public function saveConfigOptions() {}", "function admin_setting($name, $visiblename, $description, $defaultsetting) {\n $this->parse_setting_name($name);\n $this->visiblename = $visiblename;\n $this->description = $description;\n $this->defaultsetting = $defaultsetting;\n }", "function conf__cuadro_pasadas()\r\n\t{\r\n\t\treturn array($this->pasadas_por_solapa);\r\n\t}", "protected function __configAuth()\n\t{\n\t\t$this->Auth->userModel = 'User';\n\t\tAuthComponent::$sessionKey = 'Auth.User';\n\t\t$this->Auth->authorize = array('Actions');\n\t\t$this->Auth->authError = 'You need to login your account to access this page.';\n\t\t$this->Auth->loginError = 'Sai mật mã hoặc tên tài khoản, xin hãy thử lại';\n\t\t$this->Auth->authenticate = array('Form' => array(\n\t\t\t'fields' => array('username' => 'email'),\n\t\t\t'userModel' => 'User',\n\t\t\t'scope' => array(\n\t\t\t\t'User.active' => true\n\t\t\t)\n\t\t));\n\n\n\t\t$this->Auth->loginAction = array(\n\t\t\t'admin' => false,\n\t\t\t'controller' => 'users',\n\t\t\t'action' => 'login'\n\t\t);\n\t\t$this->Auth->loginRedirect = '/';\n\t\t$this->Auth->logoutRedirect = $this->referer('/');\n\t}", "public function edit_config()\n {\n if ($_SERVER['REQUEST_METHOD'] === 'GET') {\n redirect('home/access_forbidden', 'location');\n }\n\n if ($_POST) \n {\n // validation\n $this->form_validation->set_rules('institute_name', '<b>'.$this->lang->line(\"company name\").'</b>', 'trim');\n $this->form_validation->set_rules('institute_address', '<b>'.$this->lang->line(\"company address\").'</b>', 'trim');\n $this->form_validation->set_rules('institute_email', '<b>'.$this->lang->line(\"company email\").'</b>', 'trim|required');\n $this->form_validation->set_rules('institute_mobile', '<b>'.$this->lang->line(\"company phone/ mobile\").'</b>', 'trim');\n $this->form_validation->set_rules('time_zone', '<b>'.$this->lang->line(\"time zone\").'</b>', 'trim');\n $this->form_validation->set_rules('language', '<b>'.$this->lang->line(\"language\").'</b>', 'trim');\n $this->form_validation->set_rules('theme', '<b>'.$this->lang->line(\"theme\").'</b>', 'trim');\n $this->form_validation->set_rules('slogan', '<b>'.$this->lang->line(\"slogan\").'</b>', 'trim');\n $this->form_validation->set_rules('product_name', '<b>'.$this->lang->line(\"product name\").'</b>', 'trim');\n $this->form_validation->set_rules('product_short_name', '<b>'.$this->lang->line(\"product short name\").'</b>', 'trim');\n // $this->form_validation->set_rules('display_landing_page', '<b>'.$this->lang->line(\"display landing page\").'</b>', 'trim');\n $this->form_validation->set_rules('email_sending_option', '<b>'.$this->lang->line(\"Email sending option\").'</b>','trim');\n $this->form_validation->set_rules('master_password', '<b>'.$this->lang->line(\"Master Password\").'</b>', 'trim');\n\n // go to config form page if validation wrong\n if ($this->form_validation->run() == false) {\n return $this->configuration();\n } else {\n // assign\n $institute_name=addslashes(strip_tags($this->input->post('institute_name', true)));\n $institute_address=addslashes(strip_tags($this->input->post('institute_address', true)));\n $institute_email=addslashes(strip_tags($this->input->post('institute_email', true)));\n $institute_mobile=addslashes(strip_tags($this->input->post('institute_mobile', true)));\n $time_zone=addslashes(strip_tags($this->input->post('time_zone', true))); \n $language=addslashes(strip_tags($this->input->post('language', true)));\n $theme=addslashes(strip_tags($this->input->post('theme', true)));\n $slogan=addslashes(strip_tags($this->input->post('slogan', true)));\n $product_name=addslashes(strip_tags($this->input->post('product_name', true)));\n $product_short_name=addslashes(strip_tags($this->input->post('product_short_name', true)));\n // $front_end_search_display=addslashes(strip_tags($this->input->post('front_end_search_display', true)));\n // $display_landing_page=addslashes(strip_tags($this->input->post('display_landing_page', true)));\n $email_sending_option=addslashes(strip_tags($this->input->post('email_sending_option', true)));\n $master_password=addslashes(strip_tags($this->input->post('master_password', true)));\n\n $base_path=realpath(APPPATH . '../assets/images');\n\n $this->load->library('upload');\n\n if ($_FILES['logo']['size'] != 0) {\n $photo = \"logo.png\";\n $config = array(\n \"allowed_types\" => \"png\",\n \"upload_path\" => $base_path,\n \"overwrite\" => true,\n \"file_name\" => $photo,\n 'max_size' => '200',\n 'max_width' => '600',\n 'max_height' => '300'\n );\n $this->upload->initialize($config);\n $this->load->library('upload', $config);\n\n if (!$this->upload->do_upload('logo')) {\n $this->session->set_userdata('logo_error', $this->upload->display_errors());\n return $this->configuration();\n }\n }\n\n if ($_FILES['favicon']['size'] != 0) {\n $photo = \"favicon.png\";\n $config2 = array(\n \"allowed_types\" => \"png\",\n \"upload_path\" => $base_path,\n \"overwrite\" => true,\n \"file_name\" => $photo,\n 'max_size' => '50',\n 'max_width' => '32',\n 'max_height' => '32'\n );\n $this->upload->initialize($config2);\n $this->load->library('upload', $config2);\n\n if (!$this->upload->do_upload('favicon')) {\n $this->session->set_userdata('favicon_error', $this->upload->display_errors());\n return $this->configuration();\n }\n }\n\n // writing application/config/my_config\n $app_my_config_data = \"<?php \";\n $app_my_config_data.= \"\\n\\$config['default_page_url'] = '\".$this->config->item('default_page_url').\"';\\n\";\n $app_my_config_data.= \"\\$config['product_version'] = '\".$this->config->item('product_version').\"';\\n\\n\";\n $app_my_config_data.= \"\\$config['institute_address1'] = '$institute_name';\\n\";\n $app_my_config_data.= \"\\$config['institute_address2'] = '$institute_address';\\n\";\n $app_my_config_data.= \"\\$config['institute_email'] = '$institute_email';\\n\";\n $app_my_config_data.= \"\\$config['institute_mobile'] = '$institute_mobile';\\n\\n\";\n $app_my_config_data.= \"\\$config['slogan'] = '$slogan';\\n\";\n $app_my_config_data.= \"\\$config['product_name'] = '$product_name';\\n\";\n $app_my_config_data.= \"\\$config['product_short_name'] = '$product_short_name';\\n\\n\";\n $app_my_config_data.= \"\\$config['developed_by'] = '\".$this->config->item('developed_by').\"';\\n\";\n $app_my_config_data.= \"\\$config['developed_by_href'] = '\".$this->config->item('developed_by_href').\"';\\n\";\n $app_my_config_data.= \"\\$config['developed_by_title'] = '\".$this->config->item('developed_by_title').\"';\\n\";\n $app_my_config_data.= \"\\$config['developed_by_prefix'] = '\".$this->config->item('developed_by_prefix').\"' ;\\n\";\n $app_my_config_data.= \"\\$config['support_email'] = '\".$this->config->item('support_email').\"' ;\\n\";\n $app_my_config_data.= \"\\$config['support_mobile'] = '\".$this->config->item('support_mobile').\"' ;\\n\"; \n $app_my_config_data.= \"\\$config['time_zone'] = '$time_zone';\\n\"; \n $app_my_config_data.= \"\\$config['language'] = '$language';\\n\";\n $app_my_config_data.= \"\\$config['theme'] = '\".$theme.\"';\\n\";\n $app_my_config_data.= \"\\$config['sess_use_database'] = FALSE;\\n\";\n $app_my_config_data.= \"\\$config['sess_table_name'] = 'ci_sessions';\\n\";\n\n if($master_password=='******')\n $app_my_config_data.= \"\\$config['master_password'] = '\".$this->config->item(\"master_password\").\"';\\n\";\n else if($master_password=='')\n $app_my_config_data.= \"\\$config['master_password'] = '';\\n\";\n else $app_my_config_data.= \"\\$config['master_password'] = '\".md5($master_password).\"';\\n\";\n \n $app_my_config_data.= \"\\$config['email_sending_option'] = '\".$email_sending_option.\"';\\n\";\n\n //writting application/config/my_config\n file_put_contents(APPPATH.'config/my_config.php', $app_my_config_data, LOCK_EX);\n\n $this->session->unset_userdata(\"selected_language\");\n\n $this->session->set_flashdata('success_message', 1);\n redirect('admin_config/configuration', 'location');\n }\n }\n }", "public function admin_options(){\r\n echo '<h3>'.__('Netgíró Payment Gateway', 'netgiro').'</h3>';\r\n echo '<p>'.__('Verslaðu á netinu með Netgíró á einfaldan hátt.').'</p>';\r\n echo '<table class=\"form-table\">';\r\n $this -> generate_settings_html();\r\n echo '</table>';\r\n }", "public function getParameters() {}", "public function getConfigurationValues() {}" ]
[ "0.7069604", "0.6942461", "0.6558954", "0.6532898", "0.6524806", "0.6495728", "0.64029807", "0.63170564", "0.6301206", "0.6299428", "0.6274658", "0.60953385", "0.60808784", "0.6076583", "0.60741514", "0.60688365", "0.60583025", "0.6019149", "0.60065746", "0.6000405", "0.59775954", "0.5968518", "0.59663534", "0.59480953", "0.5947795", "0.5943517", "0.594137", "0.5941349", "0.59288466", "0.58925235", "0.5872047", "0.5857969", "0.5855022", "0.58342594", "0.5831386", "0.58311933", "0.5825015", "0.58103454", "0.58034074", "0.58034074", "0.58034074", "0.58034074", "0.5802258", "0.57947314", "0.5789536", "0.57882", "0.57874566", "0.5784374", "0.5764689", "0.57629675", "0.5746482", "0.5741335", "0.57374287", "0.5735476", "0.5735141", "0.57276386", "0.57276386", "0.57276386", "0.5727587", "0.5723074", "0.5722534", "0.5721315", "0.57209665", "0.57189125", "0.57141316", "0.5711508", "0.571", "0.5709586", "0.56981075", "0.56981075", "0.56968147", "0.56763124", "0.56718946", "0.5663842", "0.5662765", "0.5654122", "0.56536746", "0.56532776", "0.5650715", "0.5642184", "0.5639794", "0.5637058", "0.5634504", "0.56279445", "0.5622485", "0.5620197", "0.5619748", "0.56179404", "0.56147456", "0.56062526", "0.5604452", "0.5603946", "0.55959195", "0.5594252", "0.5593042", "0.55906355", "0.5587262", "0.5579521", "0.5575582", "0.5574318", "0.55742127" ]
0.0
-1
Se obtiene una matriz multidimesional, con los nombres de las secciones y las configuraciones incluidas.
public function getConfig() { return $this->_file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMatriz() {\n return $this->matriz;\n }", "public function getMatrix($asArray = false) {}", "public function materias(){\n\t\t\n\t\t$connection = Connection::getInstance();\n\t\t$result \t= $connection->query(\"SELECT grupos.materia_id \n\t\t\t\t\t\t\t\t\t\t FROM usuarios, inscripciones, grupos \n\t\t\t\t\t\t\t\t\t\t WHERE tipo_usuario = \".Usuario::ESTUDIANTE.\" AND \n\t\t\t\t\t\t\t\t\t\t usuarios.id = $this->id AND \n\t\t\t\t\t\t\t\t\t\t usuarios.id = inscripciones.usuario_id AND \n\t\t\t\t\t\t\t\t\t\t grupos.id = inscripciones.grupo_id\");\n\t\t$res \t\t= array();\n\t\t\n\t\twhile ($id = pg_fetch_array($result)[0]){\n\t\t\t$res[] = new Materia($id);\n\t\t}\n\t\t\n\t\treturn $res;\n\t}", "public function tableauMatieres()\n\t\t{\n\t\t\t// On dit à mysql que l'on veut travailler en UTF-8\n\t\t\tmysqli_query($this->co,\"SET NAMES UTF8\");\n\t\t\t$result = mysqli_query($this->co,\n\t\t\t\t\t\t\t\t \"SELECT nom_matiere FROM matiere\")\n\t\t\tor die(\"Connexion impossible : Connexion tableauMatieres()\");\n\n\t\t\t$matiere = Array ();\n\n\t\t\twhile ($row = mysqli_fetch_array($result)) {\n\t\t\t\t$matiere[] = $row[0];\n\t\t\t}\n\n\t\t\treturn $matiere;\n\t\t}", "function llenarMatrizPlaneServicios(){\n\t\t\t\n\t\t\tunset($matriz); \n\t\t\tglobal $matriz;\t\n\t\t\t$res = llamarRegistrosMySQLPlaneServicios();\n\t\t\t$posicion=0;\n\t\t\t\t\n\t\t\t\twhile ($fila = mysql_fetch_array($res))\n\t\t\t\t{\t\n\t\t\t\t\t\n\t\t\t\t\t$matriz[\"nombreplan\"][$posicion] = $fila[\"Nombre\"];\n\t\t\t\t\t$matriz[\"autoid\"][$posicion] = $fila[\"AutoId\"];\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$posicion++;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t}", "public function create_calculation_array_matrix(){\n\t\t/*\n\t\t* Public and private sets of date for more complex frontend managament\n\t\t*/\n\t\t$calculation_array_matrix = array(\n\t\t\t\"public\" => array(\n\t\t\t\t'calc' => array()\n\t\t\t),\n\t\t\t\"auth\" => array(\n\t\t\t\t'calc_details' => array()\n\t\t\t)\n\t\t);\n\t\treturn $calculation_array_matrix;\n\t}", "public function colorMatrix() {}", "function niz_koeficijenata_sa_vrednostima($matrica)\n{\n\t$resenje = array();\n\t$dim = count($matrica);\n\n\tfor($i = 0, $indeks_cvora = 1; $i < $dim; $i = $i + 3, $indeks_cvora++)\n\t{\n\t\t$resenje[\"a{$indeks_cvora}\"] = $matrica [$i ] [$dim];\n\t\t$resenje[\"b{$indeks_cvora}\"] = $matrica [$i + 1] [$dim];\n\t\t$resenje[\"c{$indeks_cvora}\"] = $matrica [$i + 2] [$dim];\n\t}\n\treturn $resenje;\n}", "function get_all_materia()\n {\n $materia = $this->db->query(\"\n SELECT\n m.*, a.*, n.*, e.*, t.materia_nombre as 'requisito', pa.carrera_id, ca.carrera_nombre\n\n FROM\n materia m\n LEFT JOIN area_materia a ON m.area_id=a.area_id\n LEFT JOIN nivel n ON m.nivel_id=n.nivel_id\n LEFT JOIN plan_academico pa ON pa.planacad_id=n.planacad_id\n LEFT JOIN carrera ca ON ca.carrera_id=pa.carrera_id\n LEFT JOIN estado e ON m.estado_id=e.estado_id\n LEFT JOIN materia t ON m.mat_materia_id=t.materia_id\n\n WHERE\n 1 = 1\n\n ORDER BY carrera_id, n.nivel_id ASC\n \")->result_array();\n\n return $materia;\n }", "public static function obtenerMatrices()\n {\n $consulta = \"SELECT * FROM matrices ORDER BY matriz ASC\";\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute();\n\n return $comando->fetchAll(PDO::FETCH_ASSOC);\n\n } catch (PDOException $e) {\n return false;\n }\n }", "function crear_matriz($gmat,$numero){\r\n foreach(range(0,$numero) as $row){\r\n foreach(range(0,$numero) as $col){\r\n $gmat[$row][$col] = 0;\r\n }\r\n }\r\n return $gmat;\r\n}", "public function materiasHabilitadas(){\n\t\t$connection = Connection::getInstance();\n\t\t$result \t= $connection->query(\"SELECT distinct materias.id \n\t\t\t\t\t\t\t\t\t\t FROM materias, grupos \n\t\t\t\t\t\t\t\t\t\t WHERE grupos.materia_id = materias.id AND \n\t\t\t\t\t\t\t\t\t\t materias.id NOT IN \n\t\t\t\t\t\t\t\t\t\t (SELECT grupos.materia_id \n\t\t\t\t\t\t\t\t\t\t FROM usuarios, inscripciones, grupos \n\t\t\t\t\t\t\t\t\t\t WHERE tipo_usuario = \".Usuario::ESTUDIANTE.\" AND \n\t\t\t\t\t\t\t\t\t\t usuarios.id = $this->id AND \n\t\t\t\t\t\t\t\t\t\t usuarios.id = inscripciones.usuario_id AND \n\t\t\t\t\t\t\t\t\t\t grupos.id = inscripciones.grupo_id)\");\n\t\t$res \t\t= array();\n\t\t\n\t\twhile ($id = pg_fetch_array($result)[0]){\n\t\t\t$res[] = new Materia($id);\n\t\t}\n\t\t\n\t\treturn $res;\n\t}", "function setMatrix($x,$y){\n\t$thisMatrix = array();\n\tfor( $i=0; $i<3; $i++){\n\t\t$rowMatrix = array();\n\t\tfor( $j=0; $j<3; $j++){\n\t\t\t$tempNum = rand($x,$y);\n\t\t\tarray_push($rowMatrix, $tempNum);\n\t\t}\n\t\tarray_push($thisMatrix, $rowMatrix);\n\t}\n\treturn $thisMatrix;\n}", "public function getTechDataMatrix()\n {\n $machines = $this->getMachines(true);\n $matrix = [];\n $tech_data_arrays = [];\n $tech_data_wildcards = [];\n // Get technical data\n foreach ($machines as $machine) {\n $tech_data_arrays[$machine->machine_id] = $machine->getTechnicalData();\n }\n // Get wildcards\n foreach ($tech_data_arrays as $tech_data_array) {\n foreach ($tech_data_array as $tech_data) {\n /** @var array<string> $tech_data */\n $tech_data_wildcards[$tech_data['description']] = $tech_data['unit'];\n }\n }\n // Create matrix\n foreach ($tech_data_wildcards as $wildcard => $unit) {\n $key = ['description' => $wildcard, 'unit' => $unit];\n $matrix[$wildcard] = ['unit' => $unit, 'machine_ids' => []];\n foreach ($machines as $machine) {\n $tech_data_array = $tech_data_arrays[$machine->machine_id];\n $matrix[$wildcard]['machine_ids'][$machine->machine_id] = '';\n foreach ($tech_data_array as $techdata) {\n /** @var array<string> $techdata */\n if ($techdata['description'] === $wildcard) {\n $matrix[$wildcard]['machine_ids'][$machine->machine_id] = $techdata['value'];\n break;\n }\n }\n }\n }\n return $matrix;\n }", "public function getLineMatrix() {}", "function get_guias_nominadas(){\n\t\t$conect=ms_conect_server();\t\t\n\t\t$sQuery=\"SELECT * FROM nomina_detalle WHERE 1=1 ORDER BY id_guia\";\n\t\t\n\t\t//echo($sQuery);\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value; \n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\t\n}", "function matricularVehiculo(){\r\n $mat_aleatoria= rand();\r\n\r\n $enc=false;\r\n $pos=0;\r\n for($i=0;$i<count($this->vehiculos)&&($enc==false;$i++){\r\n if($this->vehículos[$i]!= null){\r\n if($this->vehículos[$i]!= null){\r\n $this->vehiculos[$i]->setMatricula($mat_aleatoria);\r\n $enc=true;\r\n $pos=$i;\r\n }\r\n } \r\n } \r\n return $this->vehiculos[$pos];\r\n }", "public function getS() {\n// return new Matrix($this->s);\n $S = array();\n for ($i = 0; $i < $this->n; ++$i) {\n for ($j = 0; $j < $this->n; ++$j) {\n $S[$i][$j] = 0.0;\n }\n $S[$i][$i] = $this->s[$i];\n }\n return new Matrix($S);\n }", "public function listaMultas() {\n $consultaListaMultas = $this->db->select(\"SELECT * FROM multa \");\n return $consultaListaMultas;\n }", "private function getMateriais() {\n\n $oDaoMaterial = new cl_matmater();\n $sCampos = \" m60_codmater as codigo, m60_descr as descricao, m61_descr as unidade\";\n\n $sCamposGrupo = \" , 0 as codigogrupo \";\n if ($this->lAgruparGrupoSubgrupo) {\n $sCamposGrupo = \" , m65_sequencial as codigogrupo \";\n }\n $sCampos .= $sCamposGrupo;\n\n $aOrdem = array();\n $aWhere = array();\n $aWhere[] = \" instit = {$this->iInstituicao} \";\n\n $aOrdem[] = \" m60_descr \";\n\n if ($this->sDepartamentos) {\n $aWhere[] = \" m70_coddepto in ({$this->sDepartamentos}) \";\n }\n\n if ($this->sGrupoSubgrupo) {\n $aWhere[] = \" db121_sequencial in ({$this->sGrupoSubgrupo}) \";\n }\n\n $sCampoDepartamento = \", 0 as depto, '' as departamento\";\n if ($this->iQuebraPagina == RelatorioDeDistribuicao::QUEBRA_PAGINA_DEPARTAMENTO) {\n $sCampoDepartamento = \", m70_coddepto as depto, descrdepto as departamento \";\n }\n $sCampos .= $sCampoDepartamento;\n $sWhere = \" where \" . implode(\" and \", $aWhere);\n $sOrdem = \" order by \" . implode(\", \", $aOrdem);\n\n $sql = \" select distinct {$sCampos} \";\n $sql .= \" from matmater \";\n $sql .= \" inner join matunid on m60_codmatunid = m61_codmatunid \";\n $sql .= \" inner join matmatermaterialestoquegrupo on m60_codmater = m68_matmater \";\n $sql .= \" inner join materialestoquegrupo on m68_materialestoquegrupo = m65_sequencial \";\n $sql .= \" inner join db_estruturavalor on db121_sequencial = m65_db_estruturavalor \";\n $sql .= \" inner join matestoque on m60_codmater = m70_codmatmater \";\n $sql .= \" inner join db_depart on coddepto = m70_coddepto \";\n\n\n $sql .= \"{$sWhere} {$sOrdem} \";\n\n $rsMateriais = $oDaoMaterial->sql_record($sql);\n\n $aMateriais = array();\n for ($i = 0; $i < $oDaoMaterial->numrows; $i++) {\n\n $oMaterial = db_utils::fieldsMemory($rsMateriais, $i);\n $oMaterial->totalPeriodo = 0.0;\n $oMaterial->mediaPeriodo = 0.0;\n $aMateriais[] = $oMaterial;\n\n if (!isset($this->aDepartamentos[$oMaterial->depto])) {\n\n $oDeptartamento = new stdClass();\n $oDeptartamento->codigo = $oMaterial->depto;\n $oDeptartamento->descricao = $oMaterial->departamento;\n $oDeptartamento->itens = array();\n $this->aDepartamentos[$oDeptartamento->codigo] = $oDeptartamento;\n }\n }\n return $aMateriais;\n }", "public function getMatricula()\n\t{\n\t\treturn $this->matricula;\n\t}", "public function getAdjugate(): Matrix\n {\n return $this->getCofactors()->transpose();\n }", "public static function getMatriz($id_test)\n {\n // Consulta de la meta\n $consulta = \"SELECT * FROM matrices WHERE id_matriz = ?\";\n\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute(array($id_test));\n // Capturar primera fila del resultado\n $row = $comando->fetch(PDO::FETCH_ASSOC);\n return $row;\n\n } catch (PDOException $e) {\n // Aquí puedes clasificar el error dependiendo de la excepción\n // para presentarlo en la respuesta Json\n return -1;\n }\n }", "public function getMatricula()\n {\n return $this->matricula;\n }", "public function matrixMaker($words){\n $matrix = [];\n $info = [];\n for($i=0;$i<count($words);$i++){\n $ok = 0;\n while($ok<1){\n $maker = $this->hMaker($matrix, $words[$i]);\n $ok = $maker['status'];\n }\n $matrix = $maker['matrix'];\n $info[$words[$i]] = ['start'=>$maker['start'], 'type'=>$maker['type']];\n }\n for($i=0;$i<15;$i++){\n for($j=0;$j<15;$j++){\n if(empty($matrix[$i][$j])){\n $matrix[$i][$j] = $this->assign_rand_value(rand(1,26));\n }\n }\n }\n return ['matrix'=>$matrix, 'info'=>$info];\n }", "function matricularVehiculo(){\r\n $matricula _aleatoria = rand();\r\n\r\n $encontrado = false;\r\n for ($i=0; $i< count ($this->vehiculos) && ($encontrado==false); $i++) {\r\n if ($this->vehiculos[$i] != null) {\r\n if($this->vehiculos[$i]->getMatricula() =='') {}\r\n $this->vehiculos[$i]->getMatricula($matricula_aleatoria);\r\n $encontrado = true;\r\n $pos = $i;\r\n }\r\n }\r\n }", "function get_selectattribute_matrix($articleList=false, $attribute_include=false, $showHiddenValues=true,$sortingTable = 'tx_commerce_articles_article_attributes_mm'){\n \t\t\n \t\t\n \t\t$return_array=array();\n \t\t/**\n \t\t * if no list is given, take complate arctile-list from product\n \t\t */\n \t\t\n \t\t\n \t\tif ($this->uid>0) { \n\t \t\tif ($articleList==false){\n\t \t\t\t$articleList=$this->load_articles();\n\t \t\t}\n\t\n\t if (is_array($attribute_include)){\n\t \tif (!is_null($attribute_include[0])) {\n\t\t \t\t\t$addwhere.=' AND tx_commerce_attributes.uid in ('.implode(',',$attribute_include).')';\n\t\t\t\t}\t\n\t \t\t}\n\t \t\tif(is_array($articleList) && count($articleList)>0) {\n\t\t\t\t$query_article_list= implode(',',$articleList);\n\t \t\t\t$addwhere2 =' AND tx_commerce_articles.uid in ('.$query_article_list.')';\n\t\t\t}\n\t \t\t\n\t \t\t$result=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_attributes.uid,tx_commerce_attributes.sys_language_uid,tx_commerce_articles.uid as article ,tx_commerce_attributes.title, tx_commerce_attributes.unit, tx_commerce_attributes.valueformat, tx_commerce_attributes.internal_title,tx_commerce_attributes.icon, '.$sortingTable.'.sorting',\n\t \t \t\t\t\t\t\t\t'tx_commerce_articles',\n\t \t\t\t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm',\n\t\t\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t\t\t\t\t\t\t\t\t' AND tx_commerce_articles.uid_product = '.$this->uid.' '.$addwhere.$addwhere2.' order by '.$sortingTable.'.sorting'\n\t\t\t\t\t\t\t\t\t);\n\t \t\t$addwhere = $addwhere2;\n\t\t\t\n\t\t\tif (($result) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result)>0))\t{\n\t \t\t\twhile ($data=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result))\t{\n\t \t\t\t\t/** \n\t \t\t\t\t * Do the language overlay\n\t \t\t\t\t */\n\t \t\t\t\t \n\t \t\t\t\tif ($this->lang_uid>0) {\n\t \t\t\t\t\tif(is_object($GLOBALS['TSFE']->sys_page)){\n\t\t\t \t\t\t\t\t$proofSQL = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_attributes',$GLOBALS['TSFE']->showHiddenRecords);\n\t\t\t\t\t\t}\n\t\t\t\t \t\t$result2=$GLOBALS['TYPO3_DB']->exec_SELECTquery('*',\n\t\t\t\t \t\t\t'tx_commerce_attributes',\n\t\t\t\t\t\t\t'uid = '.$data['uid'].' '.$proofSQL\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t \t\t// Result should contain only one Dataset\n\t\t\t\t \t\tif ($GLOBALS['TYPO3_DB']->sql_num_rows($result2)==1)\t{\n\t\t\t\t \t\t\t$return_data=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result2);\n\t\t\t\t \t\t\t$GLOBALS['TYPO3_DB']->sql_free_result($result2);\n\t\t\t\t \t\t\t$return_data=$GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_commerce_attributes',$return_data,$this->lang_uid,$this->translationMode);\n\t\t\t\t \t\t\tif (!is_array($return_data)){\n\t\t\t\t \t\t\t/**\n\t\t\t\t \t\t\t * No Translation possible, so next interation\n\t\t\t\t \t\t\t */\t\n\t\t\t\t \t\t\t\tcontinue;\n\t\t\t\t \t\t\t}\n\t \t\t\t\t\t}\n\t \t\t\t\t\t\n\t \t\t\t\t\t$data['title']=$return_data['title'];\n\t \t\t\t\t\t$data['unit']=$return_data['unit'];\n\t \t\t\t\t\t$data['internal_title']=$return_data['internal_title'];\n\t \t\t\t\t\t\t\t \t\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\t$valueshown=false;\n\t \t\t\t\t/**\n\t \t\t\t\t * only get select attributs, since we don't need any other in selectattribut Matrix and we need the arrayKeys in this case\n\t \t\t\t\t */\n\t \t\t\t\t/**\n\t \t\t\t\t * @since 13.12.2005 Get the lokalized values from tx_commerce_articles_article_attributes_mm\n\t \t\t\t\t * @author Ingo Schmitt <[email protected]>\n\t \t\t\t\t */\n\t \t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$valuelist=array();\n\t\t\t\t\t$valueUidList = array();\n\t\t\t\t\t$attribute_uid=$data['uid'];\n\t \t\t\t\t$article=$data['article'];\n\t\t\t\t\t\n\t\t\t\t\t$result_value=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_articles_article_attributes_mm.uid_valuelist ',\n\t \t \t\t\t\t\t'tx_commerce_articles',\n\t \t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm',\n\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t\t\t\t\t\t\t' AND tx_commerce_articles_article_attributes_mm.uid_valuelist>0 AND tx_commerce_articles.uid_product = '.$this->uid.\" AND tx_commerce_attributes.uid=$attribute_uid\".$addwhere\n\t\t\t\t\t\t);\n\t\t\t\t\tif (($valueshown == false) && ($result_value) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result_value)>0)){\n\t \t\t\t\t\t\twhile ($value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result_value)){\n\t \t\t\t\t\t\t\tif ($value['uid_valuelist']>0){\n\t \t\t\t\t\t\t\t \t\n\t \t\t\t\t\t\t\t $resvalue = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*','tx_commerce_attribute_values','uid = '.$value['uid_valuelist']);\n\t \t\t\t\t\t\t\t $row=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($resvalue);\n\t \t\t\t\t\t\t\t if ($this->lang_uid>0) {\n\t \t\t\t\t\t\t\t \t$row=$GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_commerce_attribute_values',$row,$this->lang_uid,$this->translationMode);\n\t \t\t\t\t\t\t\t \tif (!is_array($row)){\n\t \t\t\t\t\t\t\t \t\tcontinue;\t\n\t \t\t\t\t\t\t\t \t}\n\t \t\t\t\t\t\t\t }\n\t \t\t\t\t\t\t\t if (($showHiddenValues==true) || (($showHiddenValues==false) && ($row['showvalue']==1))){\n\t \t\t\t\t\t\t\t \n\t \t\t\t\t\t\t\t \t $valuelist[$row['uid']] = $row['value'];\n\t \t\t\t\t\t\t\t \t $valueshown=true;\n\t \t\t\t\t\t\t\t }\n\t\n\t \t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t}\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\t\n\t \t\t\t\tif ($valueshown==true){\n\t \t\t\t\t\t$return_array[$attribute_uid]=array('title' => $data['title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'unit' => $data['unit'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'values' => $valuelist,\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'valueformat' => $data['valueformat'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'Internal_title' => $data['internal_title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'icon' => $data['icon']\n\t \t\t\t\t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\treturn $return_array;\n\t \t\t}\n \t\t}\n \t\treturn false;\n \t\t\n \t}", "protected function aggregate_multidimensional()\n {\n }", "public function lcargarTablaUnidadesxTipoxMaterialLaboratorio($parametros) {\n $oDLaboratorio = new DLaboratorio();\n $rs = $oDLaboratorio->dcargarTablaUnidadesxTipoxMaterialLaboratorio($parametros);\n\n\n// foreach ($rs as $i => $valuey) {\n// array_push($rs[$i], \"../../../../fastmedical_front/imagen/icono/editar.png ^ Editar Examen\");\n// }\n//\n// foreach ($rs as $j => $valuem) {\n// array_push($rs[$j], \"../../../../fastmedical_front/imagen/icono/cancel.png ^ Eliminar Examen\");\n// }\n\n return $rs;\n }", "public function getUsageAreaMatrix()\n {\n $usage_areas = UsageArea::getAll($this->clang_id, $this->category_id);\n $machines = $this->getMachines(true);\n\n $matrix = [];\n foreach ($usage_areas as $usage_area) {\n $values = [];\n foreach ($machines as $machine) {\n if (in_array($usage_area->usage_area_id, $machine->usage_area_ids, true)) {\n $values[] = $machine->machine_id;\n }\n }\n $matrix[$usage_area->name] = $values;\n }\n return $matrix;\n }", "public function materias()\n {\n return $this->belongsToMany('DSIproject\\Materia', 'grado_materia')\n ->withPivot('grado_id')\n ->withTimestamps();\n }", "private function cardsMatrix(): array {\n\t\t\t\n\t\t\treturn ['big', 'horizontal', 'vertical', 'standard', 'standard', 'standard'];\n\t\t}", "function tablaMultiplicar($filas, $columnas)\n{\n $tabla = array();\n for($i=0;$i<=$filas;$i++)\n {\n for ($z=0;$z<=$columnas;$z++)\n {\n if($i==0)\n $tabla[$i][$z]=$z;\n else if ($z==0)\n $tabla[$i][$z]=$i;\n else\n $tabla[$i][$z]=$i*$z;\n }\n }\n return $tabla;\n}", "public function materialList(){\n $materials = $this->getAll();\n $options = [];\n foreach($materials as $material){\n $options[$material->material_name] = $material->id;\n } \n \treturn $options;\n }", "public static function getMutatables()\n {\n return [];\n }", "public function Redutor_De_Ordem_Chio(Array $matriz, int $coeficiente_final) {\n \n echo \"Antes da redução de ordem:\";\n\n echo \"<br>\";\n echo \"<br>\"; \n\n $m = $matriz; \n \n $linha = 0;\n $coluna = 0;\n \n \n if($m['ordem'] == 1) {\n\n /**\n * o coeficiente_final será usado para multiplicar o resultado da\n * última iteração da regra de chio\n */ \n\n $resultado = $m['matriz'][0][0] * $coeficiente_final;\n\n echo \"Coeficiente final: \" . $coeficiente_final;\n\n echo \"<br>\";\n\n echo \"O resultado do Determinante é: \" . $resultado;\n\n return $resultado;\n \n }else{\n \n \n $determinante = $m['matriz'];\n\n print_r($determinante);\n\n echo \"<br>\";\n echo \"<br>\"; \n\n //ira força o número 1 em um elemento da primeira linha\n\n $soma_de_elementos = 0;\n\n for ($i=0; $i < $m['ordem']; $i++) { \n\n \n \n if($determinante[0][$i] != 0) {\n\n $coeficiente = $determinante[0][$i];\n\n $linha = 0;\n $coluna = $i;\n\n\n break;\n \n\n }\n \n // Se a primeira linha só apresentar elementos igual a 0 então a matriz 1x1 resultado da reduções por chió será um elemento nulo\n // poís o determinante tem que ser zero pois a primeira linha é nula\n // logo se todos os elementos são zero a soma de todos os elemento tem que ser zero\n\n $soma_de_elementos += $determinante[0][$i];\n\n \n\n } \n\n if($soma_de_elementos == 0 ) {\n\n $resultado = 0;\n\n echo \"Coeficiente final: \" . $coeficiente_final;\n\n echo \"<br>\";\n \n echo \"O resultado do Determinante é: \" . $resultado;\n \n return $resultado;\n\n }else{\n\n\n\n\n /**\n * A regra de Chió só ser aplicado no elemento que está primeira linha e na primeira coluna cujo valor é igual a 1.\n * Como nem todos o determinante vão satisfazer essa condição, será nesse inverter algumas fileiras (linha ou coluna)\n * e também dividir as fileiras para forçar que o primeiro elemento do determinante tenha valor igual a 1.\n * \n * Logo serão usados as propriedades do determinante:\n * Uma fileira (linha ou coluna) nula resulta em um determinante de valor igual a zero;\n * Para cada inversão de fileiro inverte-se o sinal do valor do determinante;\n * Multiplicar uma fileira por valor faz com o resultado do determinante seja multiplicado pelo mesmo valor\n */\n\n \n \n \n \n\n /**\n * o coeficiente_final será usado para multiplicar o resultado da\n * última iteração da regra de chio\n * \n */ \n\n\n /**\n * Inversão de fileira.\n * Só a primeira linha será válidada, pois se todos os elementos dela forem nulos então o \n * determinante será nulo.\n * Caso o primeiro seja zero e os outros diferente de zero então será necessário uma inversão\n * que matematicamente signica multiplicar o valor do determinante pelo valor -1\n * \n */\n\n $fileira = $linha + $coluna;\n\n $inverte_fileira = ( $fileira == 0 ) ? 1 : -1;\n \n \n $coeficiente_final *= $inverte_fileira * $coeficiente; \n \n \n \n echo \"Coeficiente: \" . $coeficiente; \n echo \"<br>\";\n echo \"Coeficiente final: \" . $coeficiente_final; \n echo \"<br>\";\n echo \"Linha: \" . $linha;\n echo \"<br>\"; \n echo \"Coluna: \" . $coluna;\n\n echo \"<br>\";\n echo \"<br>\";\n\n\n \n\n \n \n\n for ($i=0; $i < $m['ordem']; $i++) { \n \n // analisando as colunas\n \n $determinante[0][$i] = $m['matriz'][0][$i] / $coeficiente; \n\n \n }\n\n\n \n\n\n echo \"Analisando o determinante parte 1\";\n\n echo \"<br>\";\n echo \"<br>\";\n\n\n print_r($determinante);\n\n echo \"<br>\";\n echo \"<br>\";\n echo \"<br>\";\n echo \"<br>\";\n\n \n \n \n // ---------------- daqui pra cima esta certo ---------------------\n \n \n \n // aplicando a regra de Chió\n\n \n\n $chio = array();\n\n for ($i=0; $i < $m['ordem']; $i++) {\n \n for ($j=0; $j < $m['ordem'] ; $j++) { \n\n \n if($i != $linha && $j != $coluna) {\n \n\n $det[] = $determinante[$i][$j];\n \n\n $chio[] = $determinante[$i][$j] -( $determinante[$linha][$j] * $determinante[$i][$coluna] );\n\n \n\n }\n \n\n }\n \n }\n\n\n // Vai permitir a usar recursividade pois deixará o array no formato certo\n\n $chio = $this->mostra_Matriz($chio);\n\n\n\n // Debug \n\n\n echo \"Depois da redução de ordem:\";\n\n echo \"<br>\";\n echo \"<br>\";\n\n \n\n echo \"Para Debug: Matriz em processo de redução de ordem: \";\n echo \"<br>\";\n print_r($det);\n \n echo \"<br>\";\n echo \"<br>\";\n\n echo \"Redução de Chió Completa: \";\n echo \"<br>\"; \n\n print_r($chio);\n\n\n echo \"<br>\";\n echo \"<br>\";\n\n echo \"---------------------------------------------------------\";\n\n echo \"<br>\";\n\n echo \"Nova redução de ordem do Determinante\";\n\n echo \"<br>\";\n\n echo \"---------------------------------------------------------\";\n\n\n echo \"<br>\";\n echo \"<br>\";\n\n\n \n\n\n\n\n\n // ---------------- daqui pra cima esta certo ---------------------\n\n // Usando a recursidade para chegar na matriz de ordem 1\n\n \n\n $this->Redutor_De_Ordem_Chio($chio, $coeficiente_final);\n\n\n }\n\n \n\n\n }\n\n\n \n \n\n\n }", "public function defineStructure()\n {\n return StructureType::Matrix;\n }", "function get_ArregloAlumnos(){\n\t\t$query_2 = $this->db->query('SELECT rut, id_clase FROM datos_alumnos');\n\t\t\n\t\tif ($query_2->num_rows() > 0){\n\t\t\t//se guarda los datos en arreglo bidimensional\n\t\t\tforeach($query_2->result() as $row)\n\t\t\t$arrDatos_2[htmlspecialchars($row->rut, ENT_QUOTES)]=htmlspecialchars($row->rut,ENT_QUOTES);\n\t\t\t$query_2->free_result();\n\t\t\treturn $arrDatos_2;\n\t\t}\t\n\t\t\n\t}", "public function newMatricula( $array ) {\n $consulta = $this->db->insert(\"matricula\",$array); \n //realizamos la consulta para insertar el matricula\n $this->db->exec($consulta); \n return $this->db->lastInsertId();\n }", "public function getMatrix()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('matrix');\n }", "public function selectMatiere($id){\n $con=new Connexion();\n $conn2=$con->con; \n $query=\"SELECT * FROM matiere where IdM=$id\";\n $result = $conn2->prepare($query);\n $result->execute();\n return $result->fetchAll(PDO::FETCH_ASSOC);\n }", "function get_ListarClase(){\n\t$query = $this->db->query('SELECT id_clase, nombre_clase FROM clase');\n\t\n\t//si hay resultados \n\tif ($query->num_rows() > 0){\n\t\t//almacenamos en una matriz bidimensional\n\t\tforeach($query->result() as $row)\n\t\t$arrDatos[htmlspecialchars($row->id_clase, ENT_QUOTES)]=htmlspecialchars($row->nombre_clase,ENT_QUOTES);\n\t\t$query->free_result();\n\t\treturn $arrDatos;\n\t}\n\t\t\n\t$this->db->order_by('id_clase ASC');\n\treturn $this->db->get('clase')->result();\n\t}", "function get_all_modelo_medidor()\n {\n $modelo_medidor = $this->db->query(\"\n SELECT\n *\n FROM\n `modelo_medidor`\n WHERE\n 1 = 1\n \")->result_array();\n\n return $modelo_medidor;\n }", "public static function reset_aggregated_multidimensionals()\n {\n }", "public static function getColsSetting(){\n\t\t$colGrid = array('1', '2', '3', '4', '5', '6');\n\t\tforeach($colGrid as $value){\n\t\t\t$data[$value] = $value;\n\t\t}\n\t\treturn $data;\n\t}", "function get_attribute_matrix($articleList=false, $attribute_include=false, $showHiddenValues=true,$sortingTable = 'tx_commerce_articles_article_attributes_mm'){\n\t \n\t \t\t$return_array=array();\n\t \t\t/**\n\t \t\t * if no list is given, take complate arctile-list from product\n\t \t\t */\n\t \n\t \n\t \t\tif ($this->uid>0) { \n\t \t\t\tif ($articleList==false){\n\t \t\t\t\t$articleList=$this->load_articles();\n\t \t\t\t}\n\t \n\t \t\tif (is_array($attribute_include)){\n\t \t\t\tif (!is_null($attribute_include[0])) {\n\t \t\t\t\t\t$addwhere.=' AND tx_commerce_attributes.uid in ('.implode(',',$attribute_include).')';\n\t \t\t\t\t}\t\n\t \t\t\t}\n\t \t\t\tif(is_array($articleList) && count($articleList)>0) {\n\t \t\t\t\t$query_article_list= implode(',',$articleList);\n\t \t\t\t\t$addwhere2 =' AND tx_commerce_articles.uid in ('.$query_article_list.')';\n\t \t\t\t}\n\t \n\t \t\t\t$result=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_attributes.uid,tx_commerce_attributes.sys_language_uid,tx_commerce_articles.uid as article ,tx_commerce_attributes.title, tx_commerce_attributes.unit, tx_commerce_attributes.valueformat, tx_commerce_attributes.internal_title,tx_commerce_attributes.icon, '.$sortingTable.'.sorting',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_articles',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t \t\t\t\t\t\t\t\t\t' AND tx_commerce_articles.uid_product = '.$this->uid.' '.$addwhere.$addwhere2.' order by '.$sortingTable.'.sorting'\n\t \t\t\t\t\t\t\t\t\t);\n\t \t\t\t$addwhere = $addwhere2;\n\t \n\t \t\t\tif (($result) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result)>0))\t{\n\t \t\t\t\twhile ($data=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result))\t{\n\t \n\t \t\t\t\t\t/** \n\t \t\t\t\t\t * Do the language overlay\n\t \t\t\t\t\t */\n\t \t\t\t\t\tif ($this->lang_uid>0) {\n\t \t\t\t\t\t\tif(is_object($GLOBALS['TSFE']->sys_page)){\n\t \t\t\t\t\t\t\t\t$proofSQL = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_attributes',$GLOBALS['TSFE']->showHiddenRecords);\n\t \t\t\t\t\t\t}\n\t \t\t\t\t\t\t$result2=$GLOBALS['TYPO3_DB']->exec_SELECTquery('*',\n\t \t\t\t\t\t\t\t'tx_commerce_attributes',\n\t \t\t\t\t\t\t\t'uid = '.$data['uid'].' '.$proofSQL\n\t \t\t\t\t\t\t\t);\n\t \n\t \n\t \t\t\t\t\t\t// Result should contain only one Dataset\n\t \t\t\t\t\t\tif ($GLOBALS['TYPO3_DB']->sql_num_rows($result2)==1)\t{\n\t \t\t\t\t\t\t\t$return_data=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result2);\n\t \t\t\t\t\t\t\t$GLOBALS['TYPO3_DB']->sql_free_result($result2);\n\t \t\t\t\t\t\t\t$return_data=$GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_commerce_attributes',$return_data,$this->lang_uid,$this->translationMode);\n\t \t\t\t\t\t\t\tif (!is_array($return_data)){\n\t \t\t\t\t\t\t\t/**\n\t \t\t\t\t\t\t\t * No Translation possible, so next interation\n\t \t\t\t\t\t\t\t */\t\n\t \t\t\t\t\t\t\t\tcontinue;\n\t \t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t}\n\t \n\t \t\t\t\t\t\t$data['title']=$return_data['title'];\n\t \t\t\t\t\t\t$data['unit']=$return_data['unit'];\n\t \t\t\t\t\t\t$data['internal_title']=$return_data['internal_title'];\n\t \n\t \n\t \n\t \t\t\t\t\t}\n\t \n\t \t\t\t\t\t$valueshown=false;\n\t \t\t\t\t\t/**\n\t \t\t\t\t\t * get the different possible values form value_char an value\n\t \t\t\t\t\t */\n\t \t\t\t\t\t/**\n\t \t\t\t\t\t * @since 13.12.2005 Get the lokalized values from tx_commerce_articles_article_attributes_mm\n\t \t\t\t\t\t * @author Ingo Schmitt <[email protected]>\n\t \t\t\t\t\t */\n\t \n\t \t\t\t\t\t$valuelist=array();\n\t\t\t\t\t\t$valueUidList = array();\n\t \t\t\t\t\t$attribute_uid=$data['uid'];\n\t \t\t\t\t\t$article=$data['article'];\n\t \t\t\t\t\t$result_value=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_articles_article_attributes_mm.value_char, tx_commerce_articles.uid article_uid, tx_commerce_attributes.uid attribute_uid',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_articles',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t \t\t\t\t\t\t\t\t\t' AND tx_commerce_articles.uid_product = '.$this->uid.' AND tx_commerce_attributes.uid='.$attribute_uid.$addwhere\n\t \t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t\tif (($result_value) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result_value)>0))\t{\n\t \t\t\t\t\t\t\twhile ($value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result_value))\t\t{\n\t \n\t \t\t\t\t\t\t\t\tif (strlen($value['value_char'])>0)\t{\n\t \n\t \t\t\t\t\t\t\t\t\tif ($this->lang_uid>0)\t{\n\t \t\t\t\t\t\t\t\t\t\t/**\n\t \t\t\t\t\t\t\t\t\t\t * Do the lokalization\n\t \t\t\t\t\t\t\t\t\t\t */\n\t \n\t \t\t\t\t\t\t\t\t\t\t$proofSQL_attributes = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_attributes',$GLOBALS['TSFE']->showHiddenRecords);\n\t \t\t\t\t\t\t\t\t\t\t$proofSQL_articles = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_articles',$GLOBALS['TSFE']->showHiddenRecords);\n\t \t\t\t\t\t\t\t\t\t\t$res_value_lok=$GLOBALS['TYPO3_DB']->exec_SELECTquery('distinct tx_commerce_articles_article_attributes_mm.value_char, tx_commerce_articles_article_attributes_mm.default_value',\n\t \t\t\t\t\t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm, tx_commerce_articles, tx_commerce_attributes',\n\t \t\t\t\t\t\t\t\t\t\t\"tx_commerce_articles_article_attributes_mm.uid_foreign=\".$value['attribute_uid'].\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\" and tx_commerce_articles_article_attributes_mm.uid_local=tx_commerce_articles.uid and tx_commerce_articles.sys_language_uid=\".$this->lang_uid.\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\" and tx_commerce_articles.uid_product>0 and tx_commerce_articles.l18n_parent=\".$value['article_uid'].\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\" \".$proofSQL_attributes.$proofSQL_articles\n\t \t\t\t\t\t\t\t\t\t\t);\n\t \n\t \t\t\t\t\t\t\t\t\t\tif (($res_value_lok) && ($GLOBALS['TYPO3_DB']->sql_num_rows($res_value_lok)>0)) {\n\t \t\t\t\t\t\t\t\t\t\t\twhile ($lok_value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_value_lok)){\n\t \n\t \t\t\t\t\t\t\t\t\t\t\t\tif (strlen($lok_value['value_char'])>0){\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valuelist[]=$lok_value['value_char'];\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t \t\t\t\t\t\t\t\t\t\t\t\t}elseif (strlen($lok_value['default_value'])>0){\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valuelist[]=$lok_value['default_value'];\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t \t\t\t\t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t\t\t}\n\t \n\t \t\t\t\t\t\t\t\t\t}else\t{\n\t \n\t \t\t\t\t\t\t\t\t\t\t$valuelist[]=$value['value_char'];\n\t \t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t \t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t}\n\t \t\t\t\t\t} \t\t\n\t \n\t \t\t\t\t\t$result_value=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_articles_article_attributes_mm.default_value, tx_commerce_articles.uid article_uid, tx_commerce_attributes.uid attribute_uid ',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_articles',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm',\n\t \t\t\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t \t\t\t\t\t\t\t\t\t' AND tx_commerce_articles.uid_product = '.$this->uid.\" AND tx_commerce_attributes.uid=$attribute_uid\".$addwhere\n\t \t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t\tif (($valueshown == false) && ($result_value) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result_value)>0)){\n\t \t\t\t\t\t\t\twhile ($value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result_value))\t{\n\t \n\t \t\t\t\t\t\t\t\tif ($value['default_value']>0)\t{\n\t \n\t \t\t\t\t\t\t\t\t\tif ($this->lang_uid>0){\n\t \t\t\t\t\t\t\t\t\t\t/**\n\t \t\t\t\t\t\t\t\t\t\t * Do the lokalization\n\t \t\t\t\t\t\t\t\t\t\t */\n\t \n\t \t\t\t\t\t\t\t\t\t\t$proofSQL_attributes = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_attributes',$GLOBALS['TSFE']->showHiddenRecords);\n\t \t\t\t\t\t\t\t\t\t\t$proofSQL_articles = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_articles',$GLOBALS['TSFE']->showHiddenRecords);\n\t \t\t\t\t\t\t\t\t\t\t$res_value_lok=$GLOBALS['TYPO3_DB']->exec_SELECTquery('distinct tx_commerce_articles_article_attributes_mm.default_value, tx_commerce_articles_article_attributes_mm.value_char',\n\t \t\t\t\t\t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm, tx_commerce_articles, tx_commerce_attributes',\n\t \t\t\t\t\t\t\t\t\t\t\"tx_commerce_articles_article_attributes_mm.uid_foreign=\".$value['attribute_uid'].\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\" and tx_commerce_articles_article_attributes_mm.uid_local=tx_commerce_articles.uid and tx_commerce_articles.sys_language_uid=\".$this->lang_uid.\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\" and tx_commerce_articles.l18n_parent=\".$value['article_uid'].\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\" \".$proofSQL_attributes.$proofSQL_articles\n\t \t\t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t\t\t\t\t\t\tif (($res_value_lok) && ($GLOBALS['TYPO3_DB']->sql_num_rows($res_value_lok)>0)) {\n\t \t\t\t\t\t\t\t\t\t\t\twhile ($lok_value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_value_lok)){\n\t \t\t\t\t\t\t\t\t\t\t\t\tif (strlen($lok_value['default_value'])>0){\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valuelist[]=$lok_value['default_value'];\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t \t\t\t\t\t\t\t\t\t\t\t\t}elseif(strlen($lok_value['value_char'])>0) {\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valuelist[]=$lok_value['value_char'];\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t \t\t\t\t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t\t}else\n\t \t\t\t\t\t\t\t\t\t{\n\t \t\t\t\t\t\t\t\t\t\t$valuelist[]=$value['default_value'];\n\t \t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t \t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t}\n\t \t\t\t\t\t}\n\t \n\t \t\t\t\t\t$result_value=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_articles_article_attributes_mm.uid_valuelist ',\n\t \t\t\t\t\t\t\t'tx_commerce_articles',\n\t \t\t\t\t\t\t\t'tx_commerce_articles_article_attributes_mm',\n\t \t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t \t\t\t\t\t\t\t' AND tx_commerce_articles_article_attributes_mm.uid_valuelist>0 AND tx_commerce_articles.uid_product = '.$this->uid.\" AND tx_commerce_attributes.uid=$attribute_uid\".$addwhere\n\t \t\t\t\t\t\t);\n\t \t\t\t\t\tif (($valueshown == false) && ($result_value) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result_value)>0)){\n\t \t\t\t\t\t\t\twhile ($value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result_value)){\n\t \n\t \t\t\t\t\t\t\t\tif ($value['uid_valuelist']>0){\n\t \n\t \t\t\t\t\t\t\t\t $resvalue = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*','tx_commerce_attribute_values','uid = '.$value['uid_valuelist']);\n\t \t\t\t\t\t\t\t\t $row=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($resvalue);\n\t \t\t\t\t\t\t\t\t if ($this->lang_uid>0) {\n\t \t\t\t\t\t\t\t\t\t$row=$GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_commerce_attribute_values',$row,$this->lang_uid,$this->translationMode);\n\t \t\t\t\t\t\t\t\t\tif (!is_array($row)){\n\t \t\t\t\t\t\t\t\t\t\tcontinue;\t\n\t \t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t }\n\t \t\t\t\t\t\t\t\t if (($showHiddenValues==true) || (($showHiddenValues==false) && ($row['showvalue']==1))){\n\t \n\t \n\t \t\t\t\t\t\t\t\t\t $valuelist[] = $row['value'];\n\t\t\t\t\t\t\t\t\t\t $valueUidList[] = $row['uid'];\n\t \t\t\t\t\t\t\t\t\t $valueshown=true;\n\t \t\t\t\t\t\t\t\t }\n\t \n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t}\n\t \t\t\t\t\t}\n\t \t\t\t\t\tif ($valueshown == false) {\n\t \t\t\t\t\t\t$return_array[$attribute_uid]=array('title' => $data['title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'unit' => $data['unit'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'values' => array(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'valueuidlist' => array(),\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'valueformat' => $data['valueformat'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'Internal_title' => $data['internal_title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'icon' => $data['icon']\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t\t\t\n\t \t\t\t\t\t}\n\t \n\t \t\t\t\t\tif ($valueshown==true){\n\t \t\t\t\t\t\t$return_array[$attribute_uid]=array('title' => $data['title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'unit' => $data['unit'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'values' => $valuelist,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'valueuidlist' => $valueUidList,\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'valueformat' => $data['valueformat'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'Internal_title' => $data['internal_title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t 'icon' => $data['icon']\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t\t}\n\t \t\t\t\t\t\n\t \n\t \t\t\t\t}\n\t \n\t \t\t\t\treturn $return_array;\n\t \t\t\t}\n\t \t\t}\n\t \t\treturn false;\n\t \n\t}", "function getArrayCampos() {\n\t\t$arr = array(\n\t\t\t\"id\"=>$this->id,\n\t\t\t\"idov\"=>$this->idov,\n\t\t\t\"ordinal\"=>$this->ordinal,\n\t\t\t\"visible\"=>$this->visible,\n\t\t\t\"iconoov\"=>$this->iconoov,\n\t\t\t\"name\"=>$this->name,\n\t\t\t\"idov_refered\"=>$this->idov_refered,\n\t\t\t\"idresource_refered\"=>$this->idresource_refered,\n\t\t\t\"type\"=>$this->type\n\t\t);\n\t\treturn $arr;\n\t}", "public static function construir($seccion = SECCION, $valores = array()){\n\t\tMetas::$secciones[ $seccion ] = new Metas($seccion, $valores);\n\t}", "public function setMatrix($matrix) {}", "public function Matrix($wine)\n{\n\tfor($i=0; $i<=$wine; $i++)\n\tfor($j=0; $j<=$wine; $j++) \n\t\n\t$this->glasses[$i][$j]=0;\n}", "function get ()\n\t{\n\t\t$ ret = array ();\n\t\t\n\t\t// Loop por todos os registros no banco de dados\n\t\tfor ( $ x = 0 ; ( $ x < $ this -> num_records () && count ( $ ret ) < $ this -> _limit ); $ x ++)\n\t\t{\t\t\t\n\t\t\t$ row = $ this -> _px -> retrieve_record ( $ x );\n\t\t\t\n\t\t\tif ( $ this -> _test ( $ row ))\n\t\t\t{\n\t\t\t\tforeach ( $ row as $ key => $ val )\n\t\t\t\t{\n\t\t\t\t\t// Encontre todos os campos que não estão na matriz selecionada\n\t\t\t\t\tif (! in_array ( $ key , $ this -> _select ) &&! empty ( $ this -> _select )) unset ( $ row [ $ key ]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ ret [] = $ linha ;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $ ret ;\n\t}", "public function convert2DimensionalArrayDataProvider()\n {\n return [\n [ // Matrix\n [\n [1,26, 27],\n [32, 52, 676],\n [702, 703, 2],\n ],\n [\n ['A', 'Z', 'AA'],\n ['AF', 'AZ', 'YZ'],\n ['ZZ', 'AAA', 'B'],\n ]\n ],\n [ // empty matrix\n [[]],\n [[]]\n ],\n [ // 2 dimensional array\n [\n [1,26, 27],\n [32, 52],\n [702, 703, 2, 676],\n ],\n [\n ['A', 'Z', 'AA'],\n ['AF', 'AZ'],\n ['ZZ', 'AAA', 'B', 'YZ'],\n ]\n ]\n ];\n }", "public function getMatricule()\n {\n return $this->matricule;\n }", "function get_seguro($mes='',$anio='',$id_sucursal=''){\n\t\t$sQuery=\"SELECT \n\t\t\t\tcontrol_salida_extra.*,\n\t\t\t\ttransportista.id as t_id, transportista.nombre as t_nombre , transportista.apellido as t_apellido\n\t\t\t\tFROM control_salida_extra\n\t\t\t\tInner Join transportista ON control_salida_extra.id_transportista = transportista.id\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWHERE control_salida_extra.tipo=1 AND control_salida_extra.status<>'2' \";\n\t\t\n\t\tif($mes) {\t$sQuery.=\" AND month(control_salida_extra.fecha)='$mes' \";\t}\n\t\tif($anio) {\t$sQuery.=\" AND year(control_salida_extra.fecha)='$anio' \";\t}\n\t\tif($id_sucursal) {\t$sQuery.=\" AND control_salida_extra.id_sucursal = '$id_sucursal' \";\t}\n\t\t\n\t\t$sQuery.=\" ORDER BY control_salida_extra.id DESC \";\n\t//\techo ($sQuery);\n\t\t\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\n\t\t\n\t\t\t\t\n\t}", "public function materias()\n {\n return $this->belongsToMany('DSIproject\\Materia')->withTimestamps();\n }", "public function copyMatrix(): matrix {\n return clone $this;\n }", "private function initCache(): Matrix\n {\n $this->cache = [];\n return $this;\n }", "public function lmostrarExamenesLaboratorio() {\n $oDLaboratorio = new DLaboratorio();\n $rs = $oDLaboratorio->dmostrarExamenesLaboratorio();\n\n\n// foreach ($rs as $i => $valuey) {\n// array_push($rs[$i], \"../../../../fastmedical_front/imagen/icono/editar.png ^ Editar Examen\");\n// }\n//\n// foreach ($rs as $j => $valuem) {\n// array_push($rs[$j], \"../../../../fastmedical_front/imagen/icono/cancel.png ^ Eliminar Examen\");\n// }\n\n return $rs;\n }", "function recorrerMatrizPlaneServicios() {\n\t\t\t\n\t\t\t\tglobal $res,$matriz;\n\t\t\t\t\tfor($pos=0;$pos < mysql_num_rows($res); $pos++) {\n\n\t\t\t\t\t$nombreplan= $matriz[\"nombreplan\"][$pos] ;\t\n\t\t\t\t\t$nombreplan = eliminarCaracteresEspeciales($nombreplan)\t;\n\t\t\t\t\t$autoid = $matriz[\"autoid\"][$pos];\n\t\t\t\t\t$autoid = str_replace(\"A\",\"\",$autoid);\n\t\t\t\t\t$autoid = str_replace(\"a\",\"\", $autoid);\n\t\t\t\t\t$compania = $_SESSION[\"compania\"];\n\t\t\t\t\t$ambito = \"\";\n\t\t\t\t\t$clase = \"CUPS\";\n\t\t\t\t\n\t\t\t\t\tinsertarPlaneServicios($nombreplan, $autoid, $compania, $ambito, $clase);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\n\t\t\t}", "public function getTextMatrix() {}", "public function loadMatrix($matrice)\n {\n foreach ($matrice as $key => $values) {\n echo('<tr> \\n<tr>\\n'.$key.'\\n</tr>\\n');\n foreach ($values as $case) {\n echo('<td> test </td>\\n');\n }\n echo('</tr>\\n');\n }\n }", "public static function get():array{\n $consulta=\"SELECT a.id AS idAccion, a.codigo AS codigoAcc, a.nombre AS nombreAcc,m.* \n\t\t\t\t\tFROM acciones a \n\t\t\t\t\t\tINNER JOIN modulos_acciones md ON a.id=md.idAccion\n\t\t\t\t\t RIGHT JOIN modulos m ON idModulo= m.id\"; //preparar la consulta\n return DB::selectAll($consulta,'Modulo');\n }", "function imprimirMatriz($matriz) {\n echo '<br>';\n echo \"<table style= 'width:50%'>\n <thead>\n <tr>\n Tabla\n </tr>\n </thead>\n\n <tbody>\";\n\n\n $sizeX = count($matriz);\n $sizeY = 0;\n for ($i = 0; $i < $sizeX; $i++) {\n echo \"<tr>\";\n $sizeY = count($matriz[$i]);\n //echo 'Fila :' . $i . '<br>';\n for ($j = 0; $j < $sizeY; $j++) {\n //echo '<pre>' . $matriz[$i][$j] . '</pre>'; //imprime una fila en lineas diferentes\n echo \"<td>\" . $matriz[$i][$j] . \"</td>\"; //imprime una fila en la misma linea\n }\n echo \"</tr>\";\n }\n echo \"</tbody> </table>\";\n echo '<br>';\n }", "public function initMatrix($sizeMatrix){\n $this->matrix = array();\n if (1 <= $sizeMatrix && $sizeMatrix <= 100) {\n for ($index = 0; $index < $sizeMatrix; $index++) {\n $this->matrix[$index] = array();\n for ($index1 = 0; $index1 < $sizeMatrix; $index1++) {\n $this->matrix[$index][$index1] = array();\n for ($index2 = 0; $index2 < $sizeMatrix; $index2++) {\n $this->matrix[$index][$index1][$index2] = 0;\n } \n }\n }\n }else{\n return \"error en el tamano de la matriz\";\n }\n }", "public function vistaMateriaModel($tabla){\r\n\r\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT id, id_maestro, nombre, horas, creditos, id_grupo FROM $tabla\");\t\r\n\t\t$stmt->execute();\r\n\r\n\t\t#fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \r\n\t\treturn $stmt->fetchAll();\r\n\r\n\t\t$stmt->close();\r\n\r\n\t}", "public function getMatricule()\n {\n return $this->matricule;\n }", "function getMatrixX() {\n // width\n return 15;\n }", "function get_meta_array( $settings ){\n\t\t$settings[ $this->id ] = array(\n\t\t\t\t'name' => $this->multiple_up.' Lud',\n\t\t\t\t//'icon' => $this->icon,\n\t\t\t\t'opts' => $this->sec_site_options(),\n\t\t);\n\t\treturn $settings;\n\t}", "public static function Nueva_Matriz($matriz)\n {\n // Sentencia INSERT\n $comando = \"INSERT INTO matrices (matriz, grupo) VALUES( ?,1 )\";\n\n // Preparar la sentencia\n $sentencia = Database::getInstance()->getDb()->prepare($comando);\n\n return $sentencia->execute(array($matriz));\n\n }", "public function generateMasterSeatMatrix()\n {\n // AllotedSeats::whereBetween(\"id\", [0,100])->delete();\n $temp_seat_matrix = CopySeatMatrix::all();\n\n foreach($temp_seat_matrix as $seat_matrix){\n $master_seat_matrix = SeatMatrix::firstOrNew(['institution_id' => $seat_matrix->institution_id ,\n 'department_id' => $seat_matrix->department_id ,\n 'year' => $seat_matrix->year ,\n 'cast' => $seat_matrix->cast]);\n $master_seat_matrix->institution_id = $seat_matrix->institution_id;\n $master_seat_matrix->department_id = $seat_matrix->department_id;\n $master_seat_matrix->year = $seat_matrix->year;\n $master_seat_matrix->cast = $seat_matrix->cast;\n $master_seat_matrix->boys_seat = $seat_matrix->boys_seat;\n $master_seat_matrix->girls_seat = $seat_matrix->girls_seat;\n $master_seat_matrix->save();\n }\n return (CopySeatMatrix::all());\n\n }", "function arrayColaEstudiantes (){\n\t\t\t$host = \"localhost\";\n\t\t\t$usuario = \"root\";\n\t\t\t$password = \"\";\n\t\t\t$BaseDatos = \"pide_turno\";\n\n\t $link=mysql_connect($host,$usuario,$password);\n\n\t\t\tmysql_select_db($BaseDatos,$link);\n\t\t\t$retorno = array();\n\t\t\t$consultaSQL = \"SELECT turnos.codigo, turnos.nombre, turnos.carrera FROM turnos WHERE turnos.estado='No atendido' ORDER BY guia;\";\n\t\t\tmysql_query(\"SET NAMES utf8\");\n\t\t\t$result = mysql_query($consultaSQL);\n\t\t\tfor($i=0;$fila= mysql_fetch_assoc($result); $i++) {\n\t\t\t\tfor($a= 0;$a<mysql_num_fields($result);$a++){\n\t\t\t\t\t$campo = mysql_field_name($result,$a);\n\t\t\t\t\t$retorno[$i][$campo] = $fila[$campo];\n\t\t\t\t}\n\t\t\t};\n\t\t\tmysql_close($link);\n\n\t\t\treturn $retorno;\n\t\t}", "public function categoryArray() {\n\t\tif($this->data['mdid'] != \"\") {\n\t\t\treturn getCategoryArray($this->data['mdid'],'media');\n\t\t}\n\t\treturn ;\n\t}", "public function getCategoryFaqsMatrix()\n {\n $matrix = [];\n\n $query = sprintf(\n '\n SELECT\n fcr.category_id AS id_cat,\n fd.id AS id\n FROM\n %sfaqdata fd\n INNER JOIN\n %sfaqcategoryrelations fcr\n ON\n fd.id = fcr.record_id\n AND\n fd.lang = fcr.category_lang\n ORDER BY\n fcr.category_id, fd.id',\n Database::getTablePrefix(),\n Database::getTablePrefix()\n );\n $result = $this->config->getDb()->query($query);\n\n if ($this->config->getDb()->numRows($result) > 0) {\n while ($row = $this->config->getDb()->fetchObject($result)) {\n $matrix[$row->id_cat][$row->id] = true;\n }\n }\n\n return $matrix;\n }", "public function getRegimeMatricula() {\n\n if (empty($this->oRegimeMatricula) && !empty($this->iCodigoRegime)) {\n $this->oRegimeMatricula = new RegimeMatricula($this->iCodigoRegime);\n }\n return $this->oRegimeMatricula;\n }", "public function getDisciplina(){\n $resultD = $this->mysqli->query(\"SELECT * FROM disciplina\");\n while($rowD = $resultD->fetch_array(MYSQLI_ASSOC)){\n $array[] = $rowD;\n }\n return $array;\n }", "function get_product_attribute_matrix($attribute_include=false, $showHiddenValues=true,$sortingTable = 'tx_commerce_products_attributes_mm')\n \t{\n \t\t\n \t\t\n \t\t$return_array=array();\n \t\t/**\n \t\t * if no list is given, take complate arctile-list from product\n \t\t */\n \t\t\n \t\t\n \t\tif ($this->uid>0) { \n\t \t\t\n\t\n\t if (is_array($attribute_include)){\n\t \tif (!is_null($attribute_include[0])) {\n\t\t \t\t\t$addwhere.=' AND tx_commerce_attributes.uid in ('.implode(',',$attribute_include).')';\n\t\t\t\t}\t\n\t \t\t}\n\t \t\t\n\t \t\t\n\t \t\t$result=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_attributes.uid,tx_commerce_attributes.sys_language_uid,tx_commerce_products.uid as product ,tx_commerce_attributes.title, tx_commerce_attributes.unit, tx_commerce_attributes.valueformat, tx_commerce_attributes.internal_title,tx_commerce_attributes.icon, '.$sortingTable.'.sorting',\n\t \t \t\t\t\t\t\t\t'tx_commerce_products',\n\t \t\t\t\t\t\t\t\t'tx_commerce_products_attributes_mm',\n\t\t\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t\t\t\t\t\t\t\t\t' AND tx_commerce_products.uid = '.$this->uid.' '.$addwhere.' order by '.$sortingTable.'.sorting'\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\tif (($result) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result)>0))\t{\n\t \t\t\twhile ($data=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result))\t{\n\t \t\t\t\t/** \n\t \t\t\t\t * Do the language overlay\n\t \t\t\t\t */\n\t \t\t\t\tif ($this->lang_uid>0) {\n\t \t\t\t\t\tif(is_object($GLOBALS['TSFE']->sys_page)){\n\t\t\t \t\t\t\t\t$proofSQL = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_attributes',$GLOBALS['TSFE']->showHiddenRecords);\n\t\t\t\t\t\t}\n\t\t\t\t \t\t$result2=$GLOBALS['TYPO3_DB']->exec_SELECTquery('*',\n\t\t\t\t \t\t\t'tx_commerce_attributes',\n\t\t\t\t\t\t\t'uid = '.$data['uid'].' '.$proofSQL\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t \t\t// Result should contain only one Dataset\n\t\t\t\t \t\tif ($GLOBALS['TYPO3_DB']->sql_num_rows($result2)==1)\t{\n\t\t\t\t \t\t\t$return_data=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result2);\n\t\t\t\t \t\t\t$GLOBALS['TYPO3_DB']->sql_free_result($result2);\n\t\t\t\t \t\t\t$return_data=$GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_commerce_attributes',$return_data,$this->lang_uid,$this->translationMode);\n\t\t\t\t \t\t\tif (!is_array($return_data)){\n\t\t\t\t \t\t\t/**\n\t\t\t\t \t\t\t * No Translation possible, so next interation\n\t\t\t\t \t\t\t */\t\n\t\t\t\t \t\t\t\tcontinue;\n\t\t\t\t \t\t\t}\n\t \t\t\t\t\t}\n\t \t\t\t\t\t\n\t \t\t\t\t\t$data['title']=$return_data['title'];\n\t \t\t\t\t\t$data['unit']=$return_data['unit'];\n\t \t\t\t\t\t$data['internal_title']=$return_data['internal_title'];\n\t \t\t\t\t\t\n\t \t\t\t\t\t\n\t \t\t\t\t\t\t\t \t\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\t$valueshown=false;\n\t \t\t\t\t/**\n\t \t\t\t\t * get the different possible values form value_char an value\n\t \t\t\t\t */\n\t \t\t\t\t/**\n\t \t\t\t\t * @since 13.12.2005 Get the lokalized values from tx_commerce_products_attributes_mm\n\t \t\t\t\t * @author Ingo Schmitt <[email protected]>\n\t \t\t\t\t */\n\t \t\t\t\t\n\t\t\t\t\t$valuelist=array();\n\t \t\t\t\t$attribute_uid=$data['uid'];\n\t \t\t\t\t$article=$data['product'];\n\t \t\t\t\t$result_value=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_products_attributes_mm.default_value, tx_commerce_products.uid product_uid, tx_commerce_attributes.uid attribute_uid',\n\t \t \t\t\t\t\t\t\t'tx_commerce_products',\n\t \t\t\t\t\t\t\t\t'tx_commerce_products_attributes_mm',\n\t\t\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t\t\t\t\t\t\t\t\t' AND tx_commerce_products.uid = '.$this->uid.' AND tx_commerce_attributes.uid='.$attribute_uid\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\tif (($result_value) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result_value)>0))\n\t \t\t\t\t{\n\t \t\t\t\t\t\twhile ($value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result_value))\n\t \t\t\t\t\t\t{\n\t \t\t\t\t\t\t\tif (strlen($value['default_value'])>0){\n\t \t\t\t\t\t\t\t\t\n\t \t\t\t\t\t\t\t\tif ($this->lang_uid>0)\n\t \t\t\t\t\t\t\t\t{\n\t \t\t\t\t\t\t\t\t\t/**\n\t \t\t\t\t\t\t\t\t\t * Do the lokalization\n\t \t\t\t\t\t\t\t\t\t */\n\t \t\t\t\t\t\t\t\t\t\n\t \t\t\t\t\t\t\t\t\t$proofSQL_attributes = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_attributes',$GLOBALS['TSFE']->showHiddenRecords);\n\t \t\t\t\t\t\t\t\t\t$proofSQL_articles = $GLOBALS['TSFE']->sys_page->enableFields('tx_commerce_products',$GLOBALS['TSFE']->showHiddenRecords);\n\t \t\t\t\t\t\t\t\t\t$res_value_lok=$GLOBALS['TYPO3_DB']->exec_SELECTquery('distinct tx_commerce_products_attributes_mm.default_value',\n\t\t\t\t\t\t\t\t\t\t'tx_commerce_products_attributes_mm, tx_commerce_products, tx_commerce_attributes',\n\t\t\t\t\t\t\t\t\t\t\"tx_commerce_products_attributes_mm.uid_foreign=\".$value['attribute_uid'].\n\t\t\t\t\t\t\t\t\t\t\t\t\t\" and tx_commerce_products_attributes_mm.uid_local=tx_commerce_products.uid and tx_commerce_products.sys_language_uid=\".$this->lang_uid.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\" and tx_commerce_products.uid>0 and tx_commerce_products.l18n_parent=\".$value['product_uid'].\n\t\t\t\t\t\t\t\t\t\t\t\t\t\" \".$proofSQL_attributes.$proofSQL_articles\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\tif (($res_value_lok) && ($GLOBALS['TYPO3_DB']->sql_num_rows($res_value_lok)>0)) {\n\t\t\t\t\t\t\t\t\t\t\twhile ($lok_value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_value_lok)){\n\t\t\t\t\t\t\t\t\t\t\t\tif (strlen($lok_value['default_value'])>0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$valuelist[]=$lok_value['default_value'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$valueUidList[] = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else\n\t \t\t\t\t\t\t\t\t{\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t \t\t\t\t\t\t\t\t\t$valuelist[]=$value['default_value'];\n\t\t\t\t\t\t\t\t\t\t$valueUidList[] = 0;\n\t\t\t\t\t\t\t\t\t\t$valueshown=true;\n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t}\n\t \t\t\t\t} \t\t\n\t\t\t\t\t$result_value=$GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('distinct tx_commerce_products_attributes_mm.uid_valuelist ',\n\t \t \t\t\t\t\t'tx_commerce_products',\n\t \t\t\t\t\t\t'tx_commerce_products_attributes_mm',\n\t\t\t\t\t\t\t'tx_commerce_attributes',\t\n\t\t\t\t\t\t\t' AND tx_commerce_products.uid = '.$this->uid.\" AND tx_commerce_attributes.uid=$attribute_uid\"\n\t\t\t\t\t\t);\n\t\t\t\t\tif (($result_value) && ($GLOBALS['TYPO3_DB']->sql_num_rows($result_value)>0))\n\t \t\t\t\t{\n\t \t\t\t\t\t\twhile ($value=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($result_value))\n\t \t\t\t\t\t\t{\n\t \t\t\t\t\t\t\tif ($value['uid_valuelist'])\n\t \t\t\t\t\t\t\t{\n\t \t\t\t\t\t\t\t \t\n\t \t\t\t\t\t\t\t $resvalue = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*','tx_commerce_attribute_values','uid = '.$value['uid_valuelist']);\n\t \t\t\t\t\t\t\t $row=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($resvalue);\n\t \t\t\t\t\t\t\t if ($this->lang_uid>0) {\n\t \t\t\t\t\t\t\t \t$row=$GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_commerce_attribute_values',$row,$this->lang_uid,$this->translationMode);\n\t \t\t\t\t\t\t\t \tif (!is_array($row)){\n\t \t\t\t\t\t\t\t \t\tcontinue;\t\n\t \t\t\t\t\t\t\t \t}\n\t \t\t\t\t\t\t\t }\n\t \t\t\t\t\t\t\t if (($showHiddenValues==true) || (($showHiddenValues==false) && ($row['showvalue']==1))){\n\t \t\t\t\t\t\t\t \n\t \t\t\t\t\t\t\t \n\t \t\t\t\t\t\t\t \t $valuelist[] = $row['value'];\n\t\t\t\t\t\t\t\t\t $valueUidList[] = $value['uid_valuelist'];\n\t \t\t\t\t\t\t\t \t $valueshown=true;\n\t \t\t\t\t\t\t\t }\n\t\n\t \t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t}\n\t \t\t\t\t}\n\t \t\t\t\tif ($valueshown==false){\n\t \t\t\t\t\t$return_array[$attribute_uid]=array('title' => $data['title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'unit' => $data['unit'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'values' =>array(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'valueuidlist' => array(),\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'valueformat' => $data['valueformat'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'Internal_title' => $data['internal_title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'icon' => $data['icon']\n\t \t\t\t\t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t}\n\t \t\t\t\tif ($valueshown==true){\n\t \t\t\t\t\t$return_array[$attribute_uid]=array('title' => $data['title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'unit' => $data['unit'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'values' => $valuelist,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'valueuidlist' => $valueUidList,\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'valueformat' => $data['valueformat'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'Internal_title' => $data['internal_title'],\n\t \t\t\t\t\t\t\t\t\t\t\t\t 'icon' => $data['icon']\n\t \t\t\t\t\t\t\t\t\t\t\t\t);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\n\t \t\t\treturn $return_array;\n\t \t\t}\n \t\t}\n \t\treturn false;\n \t\t\n \t}", "function getImagensSubcategoria($limite, $subcategorias){\n #De modo que: Selecione N marcações (numero de marcacoes = $limit)\n #As marcações serão referentes as categorias ou subcategorias selecionadas (categorias = $categorias, subcategorias = $subcategorias)\n\n $this->db->select('*');\n $this->db->from('Tbdimagem');\n $this->db->join('imagem_subcategoria', 'Tbdimagem.idImagem = imagem_subcategoria.idImagem');\n $this->db->where('imagem_subcategoria.idSubcategoria', $subcategorias);\n $this->db->limit($limite);\n\n $query = $this->db->get();\n\n return $query->result_array();\n }", "function get_all_materia_nivel($nivel_id)\n {\n $materia = $this->db->query(\"\n SELECT\n m.materia_id, m.materia_nombre, m.materia_codigo, m.materia_horas,\n m.materia_alias, c.carrera_modalidad, n.nivel_descripcion,\n pr.mat_materia_id, pr.materia_codigo as cod, m.area_id\n FROM\n materia m\n LEFT JOIN materia pr on m.materia_id = pr.materia_id\n LEFT JOIN nivel n on m.nivel_id = n.nivel_id\n LEFT JOIN plan_academico pa on n.planacad_id = pa.planacad_id\n LEFT JOIN carrera c on pa.carrera_id = c.carrera_id\n where m.nivel_id = $nivel_id\n \n GROUP BY m.materia_id\n\n /*SELECT\n m.materia_id, m.materia_nombre, m.materia_codigo, m.materia_horas, c.carrera_modalidad\n\n FROM\n materia m, nivel n, plan_academico pa, carrera c\n\n WHERE\n m.nivel_id = $nivel_id\n and m.nivel_id = n.nivel_id\n and n.planacad_id = pa.planacad_id\n and pa.carrera_id = c.carrera_id\n \n ORDER BY m.materia_id ASC */\n \")->result_array();\n\n return $materia;\n }", "function table_to_matrix($table_name, ...$cols){\n\t//Construct query string from input\n\t$c = \"\";\n\tif (count($cols) == 0){\n\t\t$c = \"*\";\n\t} else {\n\t\tforeach ($cols as $col){\n\t\t\t$c = $c.$col.\", \";\n\t\t}\n\t\t$c = substr($c, 0, -2);\n\t}\n\t$query = sprintf(\"SELECT %s FROM %s\", $c, $table_name);\n\t//Cache data from SQL database.\n\t//$data = [];\n\t$data = array();\n\t$result = $GLOBALS['conn']->query($query);\n\tif($result){\n\t\twhile($row = $result->fetch_array(MYSQLI_NUM)){\n\t\t\t//$data[] = $row;\n\t\t\tarray_push($data, $row);\n\t\t}\n\t\treturn new Matrix($data);\n\t}\n}", "public function transpose() : self\n {\n switch ($this->m) {\n case 0:\n return $this;\n\n case 1:\n $b = [];\n\n foreach (current($this->a) ?: [] as $row) {\n $b[] = [$row];\n }\n\n return self::quick($b);\n\n default:\n return self::quick(array_map(null, ...$this->a));\n }\n }", "function AssociativeMatrix(&$matrix, &$asMatrix){\r\n for ($i = 1; $i < count($matrix); $i++) {\r\n $row = [];\r\n for ($j = 0; $j < count($matrix[$i]); $j++) {\r\n $key = $matrix[0][$j];\r\n $value = $matrix[$i][$j];\r\n $row[$key] = $value;\r\n }\r\n $asMatrix[] = $row;\r\n }\r\n }", "function ultimos_materiales() {\n\t\n\t\t\n\t\t$query = \"SELECT materiales.*, licencias.*\n\t\tFROM materiales, licencias\n\t\tWHERE materiales.material_licencia=licencias.id_licencia\n\t\tORDER BY materiales.fecha_alta desc\";\n\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "public static function createStructure():array\n {\n\n\n foreach (self::$categories as $parent){\n\n if (!array_key_exists($parent['parent_id'], self::$structure)){\n\n foreach (self::$categories as $row){\n if ($parent['parent_id'] == $row['parent_id']){\n self::$structure[$parent['parent_id']][] = $row;\n }\n }\n\n }\n }\n return self::$structure;\n\n\n }", "function estaMatriculado($params) {\n $db = Zend_Db_Table::getDefaultAdapter();\n\n $select = $db->select()->from('usuario_curso')\n ->where('ID_USU_UC = ?', $params['ID_USU_UC'])\n ->where('ID_CUR_UC = ?', $params['ID_CUR_UC']);\n $result = $select->query();\n $res = $result->fetchAll();\n \n if (count($res) == 0) {\n $db->insert('usuario_curso', $params);\n return array('NM_UTIMAVIU_UC' => 1);\n } else {\n $select = $db->select()->from('usuario_curso')\n ->where('ID_USU_UC = ?', $params['ID_USU_UC'])\n ->where('ID_CUR_UC = ?', $params['ID_CUR_UC' ]);\n $result = $select->query();\n $res = $result->fetch();\n return $res;\n }\n }", "function cunsultas()\n {\n \t $data['categoria']=categoria::get();\n \t\t$data['unidad']=unidad::get();\n\n \t\treturn $data;\n }", "function consultarMatriculas($cod_estudiante){\r\n $cadena_sql = $this->sql->cadena_sql(\"matriculas\", $cod_estudiante);\r\n $resultado = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n return $resultado;\r\n }", "function metastudent()\r\n{\r\n return array(\r\n array(\r\n //Attributes\r\n 'ID','Name','Age','Degree'\r\n ),\r\n array(\r\n //datatypes\r\n 'ID'=>'INT',\r\n 'Name'=>'VARCHAR',\r\n 'Age'=>'INT',\r\n 'Degree'=>'VARCHAR'\r\n ),\r\n array(\r\n //numeric\r\n 'ID',\r\n 'Age'\r\n )\r\n );\r\n}", "function getSettori() {\n\t\treturn ModelFactory::lista('Settore', $this->soc->getIDSettori());\n\t}", "public function getMarcas(){\n\t\t//consulta a la tabla roles usando el objeto db de la clase modelo\n\t\t$marcas = $this->_db->query(\"SELECT id, nombre FROM marcas ORDER BY nombre\");\n\n\t\t//retornamos lo que haya en la tabla roles\n\t\treturn $marcas->fetchall();\n\t}", "function busca_hueco_almacen(&$Localizaciones,$numero_huecos){\n\tfor($i = 1;$i < $numero_huecos['n_planta'];$i++)\n\t\t for($j = 1;$j < $numero_huecos['n_pasillo'];$j++)\n\t\t\t\t for($k = 1;$k < $numero_huecos['n_fila'];$k++)\n\t\t\t\t\t\tfor($l = 1;$l < $numero_huecos['n_columna'];$l++)\n\t\t\t\t\t\t\t\t if($Localizaciones[$i][$j][$k][$l] != 1){\n\t\t\t\t\t\t\t\t\t $Localizaciones[$i][$j][$k][$l] = 1;\n\t\t\t\t\t\t\t\t\t return array( \"planta\" => $i ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"pasillo\" => $j ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"fila\" => $k ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"columna\" => $l ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t\t\t\t\t\t }\n}", "function getListMarca()\n{\n global $conn;\n /*\n *query da disciplina\n */\n $sqld = \"SELECT\n cat_id,\n cat_titulo\n\n FROM \".TABLE_PREFIX.\"_categoria\n WHERE cat_status=1 AND cat_area='Marca'\n ORDER BY cat_titulo\";\n\n $disciplina = array();\n if(!$qryd = $conn->prepare($sqld))\n echo divAlert($conn->error, 'error');\n\n else {\n\n $qryd->execute();\n $qryd->bind_result($id, $titulo);\n\n while ($qryd->fetch())\n $disciplina[$id] = $titulo;\n\n $qryd->close();\n\n\n }\n\n return $disciplina;\n}", "public function getMatricule(){\n return $this->$Matricule;\n }", "public function get_mascota(){\n\t\t$id_zootecnico = $this->session->userdata('s_id_zootecnico');\n\t\t$data = array();\n\t\t$this->db->select('m.id_mascota, m.nombre, m.sexo, m.color, r.nombre AS \"raza\"');\n\t\t$this->db->from('mascota m, raza r, zootecnico z, cliente c, \n\t\t\tasignacion_cliente_z cz, asignacion_cliente_m cm');\n\t\t$this->db->where('m.id_raza = r.id_raza');\n\t\t$this->db->where('m.status != ','Perdido');\n\t\t$this->db->where('m.status != ','Finado');\n\t\t$this->db->where('m.id_mascota = cm.id_mascota');\n\t\t$this->db->where('cm.id_cliente = c.id_cliente');\n\t\t$this->db->where('c.id_cliente = cz.id_cliente');\n\t\t$this->db->where('cz.id_zootecnico = z.id_zootecnico');\n\t\t$this->db->where('z.id_zootecnico', $id_zootecnico);\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\tforeach ($query->result_array() as $row){\n\t\t\t\t$data[] = $row;\n\t\t\t}\n\t\t}\n\t\t$query->free_result();\n\t\treturn $data;\n\t}", "abstract public function getCols();", "public function actionCreatematrix(){ \n if(Yii::$app->request->post('DynamicModel')){\n $questionH = Question::findOne(Yii::$app->request->post('DynamicModel')['question_horizontal_id']);\n $questionV = Question::findOne(Yii::$app->request->post('DynamicModel')['question_vertical_id']);\n\n $cntAnswersH = count($questionH->answers);\n $cntAnswersOffsetH = (int)($cntAnswersH/4);\n $cntAnswersV = count($questionV->answers);\n $cntAnswersOffsetV = (int)($cntAnswersV/4);\n\n for($i=$cntAnswersOffsetV; $i<$cntAnswersV; $i++){\n for($j=$cntAnswersOffsetH; $j<$cntAnswersH; $j++){\n $ownModel[\"{$questionV->answers[$i]->getAttribute('value')}\"][\"{$questionH->answers[$j]->getAttribute('value')}\"]=0;\n }\n }\n\n return $this->render('creatematrix', [\n 'ownModel' => $ownModel,\n 'questionH' => $questionH,\n 'questionV' => $questionV,\n 'testValues' => TestValues::getTestValues($questionH->getAttribute('test_id')),\n ]);\n }\n\n //creating and save matrix\n if(Yii::$app->request->post('TestValuesMatrix')){\n $testValuesMatrix = new TestValuesMatrix();\n\n //var_dump(Yii::$app->request->post('TestValuesMatrix'));\n $myPost['TestValuesMatrix'] = Yii::$app->request->post('TestValuesMatrix');\n $myPost['TestValuesMatrix']['serialize'] = serialize($myPost['TestValuesMatrix']['serialize']);\n \n //check if it's a first matrix for test\n $Allmatrixes = TestValuesMatrix::find()->where(['and', \"test_id=\" . $myPost['TestValuesMatrix']['test_id']])->all();\n \n $model = new TestValuesMatrix();\n \n if(!$Allmatrixes){\n $model->setAttribute('active_flag', 1);\n }\n \n if ($model->load($myPost) && $model->save()) {\n return $this->redirect(['create', 'id' => $model->test_id]);\n } else {\n $questionH = Question::findOne(Yii::$app->request->post('TestValuesMatrix')['question_horizontal_id']);\n $questionV = Question::findOne(Yii::$app->request->post('TestValuesMatrix')['question_vertical_id']);\n return $this->render('creatematrix', [\n 'ownModel' => Yii::$app->request->post('TestValuesMatrix')['serialize'],\n 'questionH' => $questionH,\n 'questionV' => $questionV,\n 'testValues' => TestValues::getTestValues($questionH->getAttribute('test_id')),\n ]);\n }\n }\n }", "public function mezclar() {\n if ($this->cantcartas == -1 || $this->cantcartas == 0)\n return TRUE;\n $inicio = 0;\n $final = $this->cantcartas;\n $mezcla = [];\n $punt = 0;\n for (; $inicio != $final && $inicio < $final; $inicio++, $final--) {\n $mezcla[$punt] = $this->cajita[$final];\n $punt++;\n $mezcla[$punt] = $this->cajita[$inicio];\n $punt++;\n }\n if (($this->cantcartas % 2) == 0)\n $mezcla[$punt] = $this->cajita[$inicio];\n $this->cajita = $mezcla;\n return TRUE;\n }", "public function residue () :array\n {\n return [\n\n ];\n }", "public function consultMatricula( $id ) {\n $consulta = $this->db->prepare('SELECT * FROM matricula WHERE id = \"'.$id.'\"'); \n $consulta->execute();\n $matricula = $consulta->fetch(PDO::FETCH_ASSOC); \n return $matricula; \n }", "function gl_dijagonala_sve_jedinice($matrica)\n{\n\t// echo ( napravi_tabelu( $matrica ) );\n\t/*\t\n\tif($matrica[$r][$r] != 1)\n\t{\n\t\t$x = $matrica[$r][$r];\n\t\t// print_r($matrica[$r][$r]); echo \", \";\n\t\t// exit();\n\t\t\n\t\tfor($k = 0; $k < count($matrica) + 1; $k++)\n\t\t{\n\t\t\tif($matrica[$r][$k] != 0)\n\t\t\t{\n\t\t\t\t$matrica[$r][$k] = $matrica[$r][$k] / $x;\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\t\n\tfor($r = 0; $r < count($matrica); $r++)\n\t{\n\t\tif($matrica[$r][$r] != 1)\n\t\t{\n\t\t\t$x = $matrica[$r][$r];\n\t\t\t// print_r($matrica[$r][$r]); echo \", \";\n\t\t\t// exit();\n\n\t\t\t// podela citavog reda matrice sa vrednoscu njegove glavne idjagonale\n\t\t\tfor($k = 0; $k < count($matrica) + 1; $k++)\n\t\t\t{\n\t\t\t\tif($matrica[$r][$k] != 0)\n\t\t\t\t{\n\t\t\t\t\t$matrica[$r][$k] = $matrica[$r][$k] / $x;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn $matrica;\n}", "public function getMontacargasModelo()\n {\n\n return $this->montacargas_modelo;\n }", "public function readProductosMarcas()\n {\n $sql = 'SELECT nombre, id_producto, imagen_producto,producto, descripcion, precio\n FROM producto INNER JOIN marca USING(id_marca)\n WHERE id_marca = ? \n ORDER BY producto';\n $params = array($this->nombre);\n return Database::getRows($sql, $params);\n }" ]
[ "0.66208315", "0.5924018", "0.574359", "0.5702897", "0.5607321", "0.5604383", "0.54363143", "0.54244596", "0.5405577", "0.53685695", "0.5361659", "0.52460855", "0.5243237", "0.52358735", "0.5226287", "0.5163272", "0.51245505", "0.5121419", "0.5087282", "0.5084231", "0.5031806", "0.50124955", "0.4986774", "0.49858811", "0.4964951", "0.49313736", "0.49306557", "0.49152428", "0.49035287", "0.48670766", "0.4848132", "0.48424795", "0.48350197", "0.48315766", "0.48225138", "0.48219597", "0.48189875", "0.48141965", "0.48054597", "0.4759923", "0.47493693", "0.47439736", "0.4738513", "0.47285697", "0.47081694", "0.46975082", "0.46611556", "0.46596956", "0.46581954", "0.4645389", "0.46438634", "0.46381462", "0.46276373", "0.46259722", "0.46242988", "0.4624225", "0.46241635", "0.46108848", "0.46105006", "0.46058553", "0.46034348", "0.4596705", "0.45821744", "0.4577612", "0.45698026", "0.45676953", "0.45676118", "0.4563764", "0.45571953", "0.45565704", "0.45499602", "0.45419952", "0.45340058", "0.45302007", "0.45292255", "0.4524611", "0.45195583", "0.45156187", "0.45142722", "0.45119002", "0.45027623", "0.44992054", "0.44975048", "0.44964606", "0.44832668", "0.4479947", "0.4475841", "0.4475562", "0.44711283", "0.4470724", "0.44703555", "0.44633305", "0.4437889", "0.4436072", "0.44314718", "0.44309542", "0.44304228", "0.44290707", "0.4425451", "0.44251686", "0.4423267" ]
0.0
-1
Extract messages to MessageCatalogue.
public function extract() { if ($this->catalogue) { throw new \RuntimeException('Invalid state'); } $this->catalogue = new MessageCatalogue(); foreach ($this->adminPool->getAdminServiceIds() as $id) { $admin = $this->getAdmin($id); if ($this->logger) { $this->logger->info(sprintf('Retrieving message from admin:%s - class: %s', $admin->getCode(), get_class($admin))); } try { //Extract tabs and group $admin->getFormBuilder(); $this->extractTabsAndGroups($admin); //Simulate subject has identifier defined if ($this->doctrine) { $instance = $admin->getNewInstance(); $reflexionClass = new \ReflectionClass($instance); $metadata = $this->doctrine->getManager()->getMetadataFactory()->getMetadataFor(get_class($instance)); foreach ($metadata->getIdentifier() as $identifierName) { $currentReflexionClass = $reflexionClass; while (!$currentReflexionClass->hasProperty($identifierName)){ $currentReflexionClass = $currentReflexionClass->getParentClass(); } $reflexionProperty = $currentReflexionClass->getProperty($identifierName); $reflexionProperty->setAccessible(true); $reflexionProperty->setValue($instance, 1); } $admin->setSubject($instance); } //Extract tabs and group $admin->getFormBuilder(); $this->extractTabsAndGroups($admin); //Replay base exporter $this->translator = $admin->getTranslator(); $this->labelStrategy = $admin->getLabelTranslatorStrategy(); $this->domain = $admin->getTranslationDomain(); $admin->setTranslator($this); $admin->setSecurityHandler($this); $admin->setLabelTranslatorStrategy($this); try { $admin->getForm(); } catch (\Exception $e) { if ($this->logger) { $this->logger->error(sprintf('ERROR : admin:%s - Raise an exception : %s', $admin->getCode(), $e->getMessage())); } throw $e; } } catch (\Exception $e) { if ($this->logger) { $this->logger->error(sprintf('ERROR : admin:%s - Raise an exception : %s', $admin->getCode(), $e->getMessage())); } throw $e; } } $catalogue = $this->catalogue; $this->catalogue = false; return $catalogue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toMessages();", "public function extractMessage($object);", "function &getMessageObjects() {\n\t\t$res=$this->getMessages();\n\t\t$return = array();\n\t\twhile ($arr = db_fetch_array($res)) {\n\t\t\t$return[] = new ArtifactMessage($this, $arr);\n\t\t}\n\t\treturn $return;\n\t}", "public function addCatalogue(MessageCatalogue $catalogue): void;", "public function get_message_strings() {\n foreach($this->messages as $singleMessage) {\n \n }\n }", "public function testExtractWithSubscriberAndListener()\n {\n $expected = new MessageCatalogue();\n $fileSourceFactory = $this->getFileSourceFactory();\n $fixtureSplInfo = new \\SplFileInfo(__DIR__ . '/Fixture/MyFormTypeWithSubscriberAndListener.php');\n $subscriberFixtureSplInfo = new \\SplFileInfo(__DIR__ . '/Fixture/MyFormSubscriber.php');\n\n $message = new Message('form.label.lastname');\n $message->setDesc('Lastname');\n $message->addSource($fileSourceFactory->create($fixtureSplInfo, 35));\n $expected->add($message);\n\n $message = new Message('form.label.firstname');\n $message->addSource($fileSourceFactory->create($fixtureSplInfo, 34));\n $expected->add($message);\n\n $message = new Message('form.label.password');\n $message->addSource($fileSourceFactory->create($subscriberFixtureSplInfo, 39));\n $expected->add($message);\n\n $message = new Message('form.label.password_repeated');\n $message->setDesc('Repeat password');\n $message->addSource($fileSourceFactory->create($subscriberFixtureSplInfo, 40));\n $expected->add($message);\n\n $message = new Message('form.label.zip', 'address');\n $message->setDesc('ZIP');\n $message->addSource($fileSourceFactory->create($fixtureSplInfo, 49));\n $expected->add($message);\n\n $message = new Message('form.error.password_mismatch', 'validators');\n $message->setDesc('The entered passwords do not match');\n $message->addSource($fileSourceFactory->create($subscriberFixtureSplInfo, 41));\n $expected->add($message);\n\n $catalogue = $this->extract('MyFormTypeWithSubscriberAndListener.php');\n //Merge with the subscriber catalogue\n $catalogue->merge($this->extract('MyFormSubscriber.php'));\n $this->assertEquals($expected, $catalogue);\n }", "function tn_prepare_messages() {\n\n\t$_messages = TN_Messages::get_instance();\n\n\t$messages = $_messages->get_messages();\n\n\tif( $messages ) :\n\n\t\tadd_action( 'tn_messages', function() use ( $messages ) { \n\n\t\t\tforeach( $messages as $key => $message ) {\n\t\t\t\t// we add data-message - useful if element is eg cloned to pull it downscreen\n\t\t\t\tif( isset( $message['success'] ) ) : ?>\n\t\t\t\t\t<div data-message=\"<?php echo ++$key; ?>\" class=\"tn_message success\"><?php echo $message['success']; ?></div>\n\t\t\t\t<?php elseif ( isset( $message['error'] ) ) : ?>\n\t\t\t\t\t<div data-message=\"<?php echo ++$key; ?>\" class=\"tn_message error\"><?php echo $message['error']; ?></div>\t\n\t\t\t\t<?php endif; \n\t\t\t}\n\n\t\t});\n\n\tendif;\n}", "public function messages()\n {\n $pieces = explode('\\\\', __CLASS__);\n $pack = mb_strtolower($pieces[1]);\n // dddx($pieces);\n $pieces = \\array_slice($pieces, 3);\n $pieces = collect($pieces)->map(\n function ($item) {\n return snake_case($item);\n }\n )->all();\n $trad_name = $pack.'::'.implode('.', $pieces);\n $trad = trans($trad_name);\n if (! \\is_array($trad)) {\n // dddx($trad_name.' is not an array');\n $trad = [];\n }\n $tradGeneric = trans('ui::generic'); // deve funzionare anche senza il pacchetto \"food\", invece \"extend\" e' un pacchetto primario\n if (! \\is_array($tradGeneric)) {\n $tradGeneric = [];\n }\n $trad = array_merge($tradGeneric, $trad);\n\n return $trad;\n }", "public function getMessages() {}", "public function getMessages() {}", "protected function loadMessages()\n {\n $message = $this->event->get('message');\n\n $text = $message['text'];\n\n if ($this->config->get('strip_annotations') === true && isset($message['annotations'])) {\n $start = $message['annotations'][0]['startIndex'];\n $length = $message['annotations'][0]['length'];\n $text = substr($text, $start + $length + 1);\n }\n\n $this->messages = [new IncomingMessage($text, $message['sender']['name'], $message['name'], $this->event->toArray())];\n }", "public function addCatalogue(MessageCatalogue $catalogue);", "private function _getAllMessages() {\r\n $_aMessages = array();\r\n foreach ( $this->aMessages as $_sLabel => $_sTranslation ) {\r\n $_aMessages[ $_sLabel ] = $this->get( $_sLabel );\r\n }\r\n return $_aMessages;\r\n }", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function get_upgrade_messages()\n {\n }", "function getMessages() {\n\t\t$pre= $this->code;\n\t\tif (defined('CACHE_IDENTIFIER')) {\n\t\t\t$pre= CACHE_IDENTIFIER;\n\t\t}\n\n\t\tif (function_exists('apc_fetch') && (DEBUG < 1)) {\n\t\t\t$temp= apc_fetch($pre.'_lang_'.$this->code);\n\t\t\tif (false != $temp) {\n\t\t\t\t$this->messages= & $temp;\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\t//TODO eaccellerator? cacheutil?\n\t\t}\n\n\t\t$messages= array ();\n\t\tinclude (ROOT.'controllers'.DS.'lang'.DS.$this->code.'.php');\n\t\t$this->messages= & $messages;\n\n\t\tif (function_exists('apc_store') && (DEBUG < 1)) {\n\t\t\tapc_store($pre.'lang_'.$this->code, $this->messages, 300);\n\t\t} else {\n\t\t\t//TODO eaccellerator? cacheutil?\n\t\t}\n\t}", "protected function _scan_messages()\n\t{\n\t\t$exclude = 'messages'.DIRECTORY_SEPARATOR\n\t\t\t.'tests'.DIRECTORY_SEPARATOR;\n\n\t\t$terms = array();\n\t\t$files = array();\n\n\t\t// Exclude testscases\n\t\tforeach ($this->_list_files(array('messages')) as $file)\n\t\t{\n\t\t\tif (strstr($file, $exclude) === FALSE)\n\t\t\t{\n\t\t\t\t$files[] = $file;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($files as $file)\n\t\t{\n\t\t\t$file_terms = require_once $file;\n\n\t\t\tif (is_array($file_terms))\n\t\t\t{\n\t\t\t\t$terms = Arr::merge($terms, $this->_deep_array_values($file_terms));\n\t\t\t}\n\t\t}\n\n\t\t$return = array();\n\n\t\tforeach ($terms as $term)\n\t\t{\n\t\t\t$return[$term] = self::SINGULAR;\n\t\t}\n\n\t\treturn $return;\n\t}", "public static function collect(\\yii\\i18n\\MissingTranslationEvent $event) {\n self::setCollection(['category'=>$event->category, 'message'=>$event->message]);\n }", "public function getMessageBag();", "public function getMessages(){ }", "public function getMultiMessages()\n {\n $messages = [];\n $warehouseData = $this->getWarehouseData();\n $items = array();\n foreach ($warehouseData as $warehouse) {\n foreach ($warehouse['items'] as $item) {\n $items[] = $item['item'];\n }\n }\n\n foreach ($items as $item) {\n $baseMessages = $item->getMessage(false);\n if ($baseMessages) {\n foreach ($baseMessages as $message) {\n $messages[] = ['text' => $message, 'type' => $item->getHasError() ? 'error' : 'notice'];\n }\n }\n\n /* @var $collection \\Magento\\Framework\\Message\\Collection */\n $collection = $this->messageManager->getMessages(true, 'quote_item' . $item->getId());\n if ($collection) {\n $additionalMessages = $collection->getItems();\n foreach ($additionalMessages as $message) {\n /* @var $message \\Magento\\Framework\\Message\\MessageInterface */\n $messages[] = [\n 'text' => $this->messageInterpretationStrategy->interpret($message),\n 'type' => $message->getType()\n ];\n }\n }\n $this->messageManager->getMessages(true, 'quote_item' . $item->getId())->clear();\n }\n\n return $messages;\n }", "private function parse()\r\n\t{\r\n\t\t// Suppress annoying notices/warnings\r\n\t\tset_error_handler(function() { /* Nothing */ }, E_NOTICE|E_WARNING);\r\n\r\n\t\t$structure = mailparse_msg_get_structure($this->resource);\r\n\t\t$this->parts = array();\r\n\t\tforeach ($structure as $part_id) {\r\n\t\t\t$part = mailparse_msg_get_part($this->resource, $part_id);\r\n\t\t\t$this->parts[$part_id] = mailparse_msg_get_part_data($part);\r\n\t\t}\r\n\r\n\t\trestore_error_handler();\r\n\t}", "private function _read_messages() {\n\n\t\tif( $this->messages ) {\n\t\t\treturn $this->messages;\n\t\t}\n\n\t\tif( !isset( $_COOKIE[ $this->cookie_handle ] ) || $_COOKIE[ $this->cookie_handle ] == \"null\" ) {\n\t\t\treturn array();\n\t\t}\n\n\t\treturn $this->parse_cookie( $_COOKIE[ $this->cookie_handle ] );\n\t}", "public function getMessages() {\n\t\t$messages = parent::getMessages();\n\t\t$cfgDefFactory = MediaWikiServices::getInstance()->getService(\n\t\t\t'BSConfigDefinitionFactory'\n\t\t);\n\t\tforeach ( $cfgDefFactory->getRegisteredDefinitions() as $name ) {\n\t\t\t$cfgDef = $cfgDefFactory->factory( $name );\n\t\t\tif ( !$cfgDef ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->extractPathMessages( $cfgDef, $messages );\n\t\t}\n\t\tarray_unique( $messages );\n\t\treturn array_values( $messages );\n\t}", "protected function initializeMessages()\n {\n $this->messages = array(\n \n );\n }", "public function messages() {\n return $this->get_from_model(__FUNCTION__);\n }", "public function addFallbackCatalogue(MessageCatalogue $catalogue): void;", "public function getMessageMeta();", "protected function processMessages()\n {\n while ($done = curl_multi_info_read($this->multiHandle)) {\n $request = $this->resourceHash[(int)$done['handle']];\n $this->processResponse($request, $this->handles[$request], $done);\n }\n }", "protected function register_messages() {\n\t\t$ical_uid_specification_link = sprintf(\n\t\t\t'<a target=\"_blank\" href=\"https://tools.ietf.org/html/rfc5545#section-3.8.4.7\">%s</a>',\n\t\t\tesc_html__( 'the UID part of the iCalendar Specification', 'the-events-calendar' )\n\t\t);\n\n\t\t$this->service_messages = array(\n\t\t\t'error:create-import-failed' => __( 'Sorry, but something went wrong. Please try again.', 'the-events-calendar' ),\n\t\t\t'error:create-import-invalid-params' => __( 'Events could not be imported. The import parameters were invalid.', 'the-events-calendar' ),\n\t\t\t'error:fb-permissions' => __( 'Events cannot be imported because Facebook has returned an error. This could mean that the event ID does not exist, the event or source is marked as Private, or the event or source has been otherwise restricted by Facebook. You can <a href=\"https://theeventscalendar.com/knowledgebase/import-errors/\" target=\"_blank\">read more about Facebook restrictions in our knowledgebase</a>.', 'the-events-calendar' ),\n\t\t\t'error:fb-no-results' => __( 'No upcoming Facebook events found.', 'the-events-calendar' ),\n\t\t\t'error:eb-permissions' => __( 'Events cannot be imported because Eventbrite has returned an error. This could mean that the event ID does not exist, the event or source is marked as Private, or the event or source has been otherwise restricted by Eventbrite. You can <a href=\"https://theeventscalendar.com/knowledgebase/import-errors/\" target=\"_blank\">read more about Eventbrite restrictions in our knowledgebase</a>.', 'the-events-calendar' ),\n\t\t\t'error:eb-no-results' => __( 'No upcoming Eventbrite events found.', 'the-events-calendar' ),\n\t\t\t'error:fetch-404' => __( 'The URL provided could not be reached.', 'the-events-calendar' ),\n\t\t\t'error:fetch-failed' => __( 'The URL provided failed to load.', 'the-events-calendar' ),\n\t\t\t'error:get-image' => __( 'The image associated with your event could not be imported.', 'the-events-calendar' ),\n\t\t\t'error:get-image-bad-association' => __( 'The image associated with your event is not accessible with your API key.', 'the-events-calendar' ),\n\t\t\t'error:import-failed' => __( 'The import failed for an unknown reason. Please try again. If the problem persists, please contact support.', 'the-events-calendar' ),\n\t\t\t'error:invalid-ical-url' => __( 'Events could not be imported. The URL provided did not have events in the proper format.', 'the-events-calendar' ),\n\t\t\t'error:invalid-ics-file' => __( 'The file provided could not be opened. Please confirm that it is a properly formatted .ics file.', 'the-events-calendar' ),\n\t\t\t'error:meetup-api-key' => __( 'Your Meetup API key is invalid.', 'the-events-calendar' ),\n\t\t\t'error:meetup-api-quota' => __( 'Event Aggregator cannot reach Meetup.com because you exceeded the request limit for your Meetup API key.', 'the-events-calendar' ),\n\t\t\t'error:usage-limit-exceeded' => __( 'The daily limit of %d import requests to the Event Aggregator service has been reached. Please try again later.', 'the-events-calendar' ),\n\t\t\t'fetching' => __( 'The import is in progress.', 'the-events-calendar' ),\n\t\t\t'queued' => __( 'The import will be starting soon.', 'the-events-calendar' ),\n\t\t\t'success' => __( 'Success', 'the-events-calendar' ),\n\t\t\t'success:create-import' => __( 'Import created', 'the-events-calendar' ),\n\t\t\t'success:facebook-get-token' => __( 'Successfully fetched Facebook Token', 'the-events-calendar' ),\n\t\t\t'success:eventbrite-get-token' => __( 'Successfully fetched Eventbrite Token', 'the-events-calendar' ),\n\t\t\t'success:get-origin' => __( 'Successfully loaded import origins', 'the-events-calendar' ),\n\t\t\t'success:import-complete' => __( 'Import is complete', 'the-events-calendar' ),\n\t\t\t'success:queued' => __( 'Import queued', 'the-events-calendar' ),\n\t\t\t'error:invalid-other-url' => __( 'Events could not be imported. The URL provided could not be reached.', 'the-events-calendar' ),\n\t\t\t'error:no-results' => __( 'The requested source does not have any upcoming and published events matching the search criteria.', 'the-events-calendar' ),\n\t\t\t'error:ical-missing-uids-schedule' => sprintf(\n\t\t\t\t_x(\n\t\t\t\t\t'Some events at the requested source are missing the UID attribute required by the iCalendar Specification. Creating a scheduled import would generate duplicate events on each import. Instead, please use a One-Time import or contact the source provider to fix the UID issue; linking them to %s may help them more quickly resolve their feed\\'s UID issue.',\n\t\t\t\t\t'The placeholder is for the localized version of the iCal UID specification link',\n\t\t\t\t\t'the-events-calendar'\n\t\t\t\t),\n\t\t\t\t$ical_uid_specification_link\n\t\t\t),\n\t\t\t'warning:ical-missing-uids-manual' => sprintf(\n\t\t\t\t_x(\n\t\t\t\t\t'Some events at the requested source are missing the UID attribute required by the iCalendar Specification. One-Time and ICS File imports are allowed but successive imports will create duplicated events on your site. Please contact the source provider to fix the UID issue; linking them to %s may help them more quickly resolve their feed\\'s UID issue.',\n\t\t\t\t\t'The placeholder is for the localized version of the iCal UID specification link',\n\t\t\t\t\t'the-events-calendar' ),\n\t\t\t\t$ical_uid_specification_link\n\t\t\t),\n\t\t);\n\n\t\t/**\n\t\t * Filters the service messages map to allow addition and removal of messages.\n\t\t *\n\t\t * @param array $service_messages An associative array of service messages in the `[ <slug> => <localized text> ]` format.\n\t\t */\n\t\t$this->service_messages = apply_filters( 'tribe_aggregator_service_messages', $this->service_messages );\n\t}", "public function makeExportArray( MessageCollection $messages ) {\n\t\t// We copy only relevant translations to this new array\n\t\t$new = array();\n\t\t$mangler = $this->group->getMangler();\n\n\t\tforeach ( $messages as $key => $m ) {\n\t\t\t$key = $mangler->unMangle( $key );\n\t\t\t# Remove fuzzy markings before export\n\t\t\t$translation = str_replace( TRANSLATE_FUZZY, '', $m->translation() );\n\t\t\t$new[$key] = $translation;\n\t\t}\n\n\t\treturn $new;\n\t}", "protected function extract_strings() {\n\t\t$translations = new Translations();\n\n\t\t// Add existing strings first but don't keep headers.\n\t\tif ( ! empty( $this->merge ) ) {\n\t\t\t$existing_translations = new Translations();\n\t\t\tPo::fromFile( $this->merge, $existing_translations );\n\t\t\t$translations->mergeWith( $existing_translations, Merge::ADD | Merge::REMOVE );\n\t\t}\n\n\t\tPotGenerator::setCommentBeforeHeaders( $this->get_file_comment() );\n\n\t\t$this->set_default_headers( $translations );\n\n\t\t// POT files have no Language header.\n\t\t$translations->deleteHeader( Translations::HEADER_LANGUAGE );\n\n\t\t// Only relevant for PO files, not POT files.\n\t\t$translations->setHeader( 'PO-Revision-Date', 'YEAR-MO-DA HO:MI+ZONE' );\n\n\t\tif ( $this->domain ) {\n\t\t\t$translations->setDomain( $this->domain );\n\t\t}\n\n\t\tunset( $this->main_file_data['Version'], $this->main_file_data['License'], $this->main_file_data['Domain Path'], $this->main_file_data['Text Domain'] );\n\n\t\t$is_theme = isset( $this->main_file_data['Theme Name'] );\n\n\t\t// Set entries from main file data.\n\t\tforeach ( $this->main_file_data as $header => $data ) {\n\t\t\tif ( empty( $data ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$translation = new Translation( '', $data );\n\n\t\t\tif ( $is_theme ) {\n\t\t\t\t$translation->addExtractedComment( sprintf( '%s of the theme', $header ) );\n\t\t\t} else {\n\t\t\t\t$translation->addExtractedComment( sprintf( '%s of the plugin', $header ) );\n\t\t\t}\n\n\t\t\t$translations[] = $translation;\n\t\t}\n\n\t\ttry {\n\t\t\tif ( ! $this->skip_php ) {\n\t\t\t\t$options = [\n\t\t\t\t\t// Extract 'Template Name' headers in theme files.\n\t\t\t\t\t'wpExtractTemplates' => $is_theme,\n\t\t\t\t\t// Extract 'Title' and 'Description' headers from pattern files.\n\t\t\t\t\t'wpExtractPatterns' => $is_theme,\n\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t'extensions' => [ 'php' ],\n\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t];\n\t\t\t\tPhpCodeExtractor::fromDirectory( $this->source, $translations, $options );\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_blade ) {\n\t\t\t\t$options = [\n\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t'extensions' => [ 'blade.php' ],\n\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t];\n\t\t\t\tBladeCodeExtractor::fromDirectory( $this->source, $translations, $options );\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_js ) {\n\t\t\t\tJsCodeExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'js', 'jsx' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\tMapCodeExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'map' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_block_json ) {\n\t\t\t\tBlockExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'schema' => JsonSchemaExtractor::BLOCK_JSON_SOURCE,\n\t\t\t\t\t\t'schemaFallback' => JsonSchemaExtractor::BLOCK_JSON_FALLBACK,\n\t\t\t\t\t\t// Only look for block.json files, nothing else.\n\t\t\t\t\t\t'restrictFileNames' => [ 'block.json' ],\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'json' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_theme_json ) {\n\t\t\t\t// This will look for the top-level theme.json file, as well as\n\t\t\t\t// any JSON file within the top-level styles/ directory.\n\t\t\t\tThemeJsonExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'schema' => JsonSchemaExtractor::THEME_JSON_SOURCE,\n\t\t\t\t\t\t'schemaFallback' => JsonSchemaExtractor::THEME_JSON_FALLBACK,\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'json' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t}\n\t\t} catch ( \\Exception $e ) {\n\t\t\tWP_CLI::error( $e->getMessage() );\n\t\t}\n\n\t\tforeach ( $this->exceptions as $file => $exception_translations ) {\n\t\t\t/** @var Translation $exception_translation */\n\t\t\tforeach ( $exception_translations as $exception_translation ) {\n\t\t\t\tif ( ! $translations->find( $exception_translation ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( $this->subtract_and_merge ) {\n\t\t\t\t\t$translation = $translations[ $exception_translation->getId() ];\n\t\t\t\t\t$exception_translation->mergeWith( $translation );\n\t\t\t\t}\n\n\t\t\t\tunset( $translations[ $exception_translation->getId() ] );\n\t\t\t}\n\n\t\t\tif ( $this->subtract_and_merge ) {\n\t\t\t\tPotGenerator::toFile( $exception_translations, $file );\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $this->skip_audit ) {\n\t\t\t$this->audit_strings( $translations );\n\t\t}\n\n\t\treturn $translations;\n\t}", "private function createDeliveryInfoMessage() {\n\t\treturn array(\n\t\t\tChatMessagesDao::COLUMN_TEXT => self::DELIVERY_MESSAGE,\n\t\t\tChatMessagesDao::COLUMN_TYPE => ChatMessagesDao::TYPE_INFO_MESSAGE\n\t\t);\n\t}", "public function getMessages()\n {\n return collect($this->prerequisites)->map(function (Prerequisite $prerequisite) {\n return $prerequisite->getMessages();\n })->reduce('array_merge', []);\n }", "public function messageDataProvider()\n {\n return [\n [\n 'Signifyd Case %1 has been created for order.',\n ['caseId'],\n 'Signifyd Case 123 has been created for order.'\n ],\n [\n 'Case Update: Case Review was completed. Review Deposition is %1.',\n ['reviewDisposition'],\n 'Case Update: Case Review was completed. Review Deposition is Good.'\n ],\n [\n 'Case Update: New score for the order is %1. Previous score was %2.',\n ['score', 'case_score'],\n 'Case Update: New score for the order is 500. Previous score was 300.'\n ],\n [\n 'Case Update: Case is submitted for guarantee.',\n [],\n 'Case Update: Case is submitted for guarantee.'\n ],\n ];\n }", "public function get_messages() {\n\t\t$messages = $this->_read_messages();\n\t\t$this->clear_messages();\n\t\treturn apply_filters( 'tn_get_messages', $messages );\t\n\t}", "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 getMessages(): Collection;", "public function getMessages(): Collection;", "protected function prepareMessage() {\n //Initialize $message\n $message = '';\n //loop through $this->_storage array\n foreach ($this->_storage as $key => $value) {\n // if it has no value, assign 'Not provided' \n $value = (empty($value)) ? 'Not provided' : $value;\n // if an array, expand as comma-separated string \n if (is_array($value)) {\n $value = implode(', ', $value);\n }\n // replace underscores and hyphens in the label with spaces \n $key = str_replace(array('_', '-'), ' ', $key);\n // add label and value to the message body. Uppercase first letter\n $message .=ucfirst($key) . \": $value\\r\\n\\r\\n\";\n }\n // limit line length to 70 characters \n $this->_body = wordwrap($message, 70);\n }", "protected function defineMessages()\n {\n return [];\n }", "public function __construct() {\n $this->messages = CommonFacade::getMessages();\n }", "public function __construct() {\n $this->messages = CommonFacade::getMessages();\n }", "public function getMessages()\n {\n if (empty($this->messages)) {\n $intent = $this->event->get('intent')['displayName'];\n $session = $this->payload->get('session');\n $user = $this->payload->get('originalDetectIntentRequest')['payload']['user'] ?? null;\n\n $message = new IncomingMessage($intent, $user ? $user['userId'] : $session, $session, $this->payload);\n\n $message->addExtras('queryText', $this->event->get('queryText'));\n $message->addExtras('intent', $intent);\n $message->addExtras('action', $this->event->get('action'));\n $message->addExtras('parameters', $this->event->get('parameters'));\n $message->addExtras('languageCode', $this->event->get('languageCode'));\n\n $this->messages = [$message];\n }\n\n return $this->messages;\n }", "public function getMessages()\n {\n $messages = array();\n $quoteItem = $this->getItem();\n\n // Add basic messages occuring during this page load\n $baseMessages = $quoteItem->getMessage(false);\n if ($baseMessages) {\n foreach ($baseMessages as $message) {\n $messages[] = array(\n 'text' => $message,\n 'type' => $quoteItem->getHasError() ? 'error' : 'notice'\n );\n }\n }\n\n return $messages;\n }", "public function addFallbackCatalogue(MessageCatalogue $catalogue);", "public function translatableMessages()\n {\n return [];\n }", "public function translationMessages()\n {\n return [];\n }", "private function get_raw_messages() {\n\t\t$jetpack_setup_url = $this->generate_admin_url(\n\t\t\tarray(\n\t\t\t\t'page' => 'jetpack',\n\t\t\t\t'#/setup' => '',\n\t\t\t)\n\t\t);\n\n\t\t$messages = array(\n\t\t\tarray(\n\t\t\t\t'id' => 'jpsetup-upload',\n\t\t\t\t'message_path' => '/wp:upload:admin_notices/',\n\t\t\t\t'message' => __( 'Do you want lightning-fast images?', 'jetpack' ),\n\t\t\t\t'description' => __( 'Set up Jetpack, enable Site Accelerator, and start serving your images lightning fast, for free.', 'jetpack' ),\n\t\t\t\t'button_link' => $jetpack_setup_url,\n\t\t\t\t'button_caption' => __( 'Set up Jetpack', 'jetpack' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'id' => 'jpsetup-widgets',\n\t\t\t\t'message_path' => '/wp:widgets:admin_notices/',\n\t\t\t\t'message' => __( 'Looking for even more widgets?', 'jetpack' ),\n\t\t\t\t'description' => __( 'Set up Jetpack for great additional widgets that display business contact info and maps, blog stats, and top posts.', 'jetpack' ),\n\t\t\t\t'button_link' => $jetpack_setup_url,\n\t\t\t\t'button_caption' => __( 'Set up Jetpack', 'jetpack' ),\n\t\t\t),\n\t\t);\n\n\t\tif ( wp_count_posts()->publish >= 5 ) {\n\t\t\t$messages[] = array(\n\t\t\t\t'id' => 'jpsetup-posts',\n\t\t\t\t'message_path' => '/wp:edit-post:admin_notices/',\n\t\t\t\t'message' => __( 'Do you know which of these posts gets the most traffic?', 'jetpack' ),\n\t\t\t\t'description' => __( 'Set up Jetpack to get in-depth stats about your content and visitors.', 'jetpack' ),\n\t\t\t\t'button_link' => $jetpack_setup_url,\n\t\t\t\t'button_caption' => __( 'Set up Jetpack', 'jetpack' ),\n\t\t\t);\n\t\t}\n\n\t\treturn $messages;\n\t}", "public function getBriefInfoMessages()\n {\n $array = imap_headers($this->imap);\n $newArray = [];\n foreach ($array as $key => $string) {\n $newArray[] = ['id'=>$key+1, 'info' => $string];\n };\n return $newArray;\n }", "protected function processEntry($msgid, $msgstr)\n {\n $this->output(\"msgid \");\n foreach($msgid as $part)\n {\n $part=addcslashes($part,\"\\r\\n\\\"\");\n $this->output(\"\\\"{$part}\\\"\\n\");\n }\n $this->output(\"msgstr \");\n foreach($msgstr as $part)\n {\n $part=addcslashes($part,\"\\r\\n\\\"\");\n $this->output(\"\\\"{$part}\\\"\\n\");\n }\n }", "public function actionFetchMessages() {\n\t\ttry {\n\t\t\treturn $this->getService('SupportMessage')->fetchMessages();\n\t\t} catch (Exception $e) {\n\t\t\treturn $this->sendError('You have reached error');\n\t\t}\n\t}", "public function Msghandle(){\n\n\t\t\t$this->message = $this->msglog = $this->asciilog = $this->status = NULL;\n\t\t\t$this->showclassnames = TRUE;\n\n\t\t\t$this->msgcode = array(\n\t\t\t\t\t\t\t\t\t\t\"000\" => array(\"message\" => \"Message code not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"001\" => array(\"message\" => \"Connection resource is not set\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"002\" => array(\"message\" => \"Missing parameters\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"003\" => array(\"message\" => \"Statement is not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"004\" => array(\"message\" => \"Email address already taken\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"005\" => array(\"message\" => \"No row affected\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"006\" => array(\"message\" => \"Password not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"007\" => array(\"message\" => \"User data not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"008\" => array(\"message\" => \"Username doesn't exist\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"009\" => array(\"message\" => \"Wrong password\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"010\" => array(\"message\" => \"URL format is not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"011\" => array(\"message\" => \"No URL specified\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"012\" => array(\"message\" => \"BabelNet connection failed\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"013\" => array(\"message\" => \"Method is not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"014\" => array(\"message\" => \"Parameters are not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"015\" => array(\"message\" => \"Conflictual settings\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"016\" => array(\"message\" => \"Required attribute not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"017\" => array(\"message\" => \"Microsoft Translator auth token not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"018\" => array(\"message\" => \"A parameter is an array\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"019\" => array(\"message\" => \"A parameter is not an array\", \"status\" => \"Error\"),\n\n\t\t\t\t\t\t\t\t\t\t\"998\" => array(\"message\" => \"Operation successful\", \"status\" => \"Notice\"),\n\t\t\t\t\t\t\t\t\t\t\"999\" => array(\"message\" => \"Class instanced successfully\", \"status\" => \"Notice\"),\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\n\t\t\t$this->log(\"999\", __METHOD__);\n\t\t}", "public function messages();", "public function messages();", "public function messages();", "public function get_messages() {\n\t\treturn $this->upgrader_skin->messages;\n\t}", "public function getMessages() {\r\n \t$this->getForm()->getMessages();\r\n }", "function processMessageIn($message) {\n\t\t$service = $message->getKeyword();\n\t\t$keyword = $message->getKeyword(2);\n\n\t\tswitch ($keyword) {\n\t\t\tcase \"get\":\n\t\t\t\t$this->addSubscriber($message);\n\t\t\tbreak;\n\t\t\tcase \"yes\":\n\t\t\t\t$this->confirmSubscriber($message);\n\t\t\tbreak;\n\t\t\tcase \"cancel\":\n\t\t\tcase \"quit\":\n\t\t\tcase \"end\":\n\t\t\tcase \"unsubscribe\":\n\t\t\tcase \"stop\":\n\t\t\t\t$this->removeSubscriber($message);\n\t\t\tbreak;\n\t\t\tcase \"#\":\n\t\t\t\t$this->processMessageOut($message, null);\n\t\t\tbreak;\n\t\t\tcase \"#uk\":\n\t\t\t\t$this->processMessageOut($message, \"UK\");\n\t\t\tbreak;\n\t\t\tcase \"#us\":\n\t\t\t\t$this->processMessageOut($message, \"US\");\n\t\t\tbreak;\n\t\t\tcase \"status\":\n\t\t\t\t$this->statusCheck($message, $service);\n\t\t\tbreak;\n\t\t}\n\n\t}", "public function getMessages(): array\n {\n $result = [];\n foreach (array_keys($this->__data) as $key) {\n $result[$key] = $this->__data[$key]->message;\n }\n\n return $result;\n }", "public function extractEventMessages(\n array $entry,\n $aggregateIdentifier,\n SerializerInterface $serializer,\n $upcasterChain,\n $skipUnknownTypes\n ) {\n\n return EventEntry::fromDbObject($entry)->getDomainEvents(\n $aggregateIdentifier,\n $serializer,\n $upcasterChain,\n $skipUnknownTypes\n );\n }", "public function getErrorMessages()\n {\n $translator = Mage::helper('importexport');\n $messages = array();\n\n foreach ($this->_errors as $errorCode => $errorRows) {\n if (isset($this->_messageTemplates[$errorCode])) {\n $errorCode = $translator->__($this->_messageTemplates[$errorCode]);\n }\n foreach ($errorRows as $errorRowData) {\n $key = $errorRowData[1] ? sprintf($errorCode, $errorRowData[1]) : $errorCode;\n $messages[$key][] = $errorRowData[0];\n }\n }\n return $messages;\n }", "public function getMessages(): array;", "public function getMessages(): array;", "public function getMessages(): array;", "public function getMessages()\n {\n foreach (parent::getMessages() as $message) {\n switch ($message->getType()) {\n case 'PresenceOf':\n $message->setMessage('The field ' . $message->getField() . ' is required');\n break;\n case 'Uniqueness':\n $message->setMessage('The field ' . $message->getField() . ' must be unique');\n break;\n case 'Email':\n $message->setMessage('The field ' . $message->getField() . ' must contain a valid email');\n break;\n case 'Url':\n $message->setMessage('The field ' . $message->getField() . ' must contain a valid url');\n break;\n case 'InclusionIn':\n $message->setMessage('The field ' . $message->getField() . ' must contain a value in [' . implode(',', $message->getDomain()) . ']');\n break;\n case 'DateValidator':\n $message->setMessage('The field ' . $message->getField() . ' must contain a valid date.');\n break;\n case 'TimestampValidator':\n $message->setMessage('The field ' . $message->getField() . ' must contain a valid timestamps.');\n break;\n }\n }\n\n return parent::getMessages();\n }", "public function getMessages()\n {\n if (empty($this->messages)) {\n $message = new IncomingMessage(Location::PATTERN, $this->event->get('From'), $this->event->get('To'), $this->event);\n $location = new Location(\n $this->event->get('Latitude'),\n $this->event->get('Longitude')\n );\n $message->setLocation($location);\n\n $this->messages = [$message];\n }\n\n return $this->messages;\n }", "public function renderMessages()\n {\n // No messages available\n if(!$this->processor->messages) return;\n\n $messages = '';\n foreach($this->processor->messages as $message) {\n $messages .= $this->genMessage($message['type'], $message['text']);\n }\n return $messages;\n }", "static private function _getMsgs()\n\t{\n\t\t$msgs = Factory::getInstance( 'Session' )->get( self::$var_name );\n\n\t\tif ( $msgs )\n\t\t{\n\t\t\treturn $msgs;\n\t\t}\n\n\t\treturn array();\n\t}", "function _formatMessage() {\r\n\t\t\tif (sizeof($this->_installedExtensions) > 0) {\r\n\t\t\t\t$this->msg->type = 'message';\r\n\t\t\t\t$this->msg->message = JText::_( 'Installation Completed' );\r\n\t\t\t\tforeach ($this->_installedExtensions as $extension) {\r\n\t\t\t\t\t$this->msg->message .= \"</li>\";\r\n\t\t\t\t\t$this->msg->message .= \"<li>\".JText::_( 'Installed' ).\" \".$extension[\"type\"].\" \".$extension[\"element\"];\r\n\t\t\t\t}\r\n\t\t\t\t$this->msg->message .= \"</li>\";\r\n\t\t\t} else {\r\n\t\t\t\t$this->msg->type = 'notice';\r\n\t\t\t\t$this->msg->message = JText::_( 'Nothing Installed');\r\n\t\t\t}\r\n\t\t}", "public function getMessages(): array\n {\n if (empty($this->messages)) {\n $messageText = $this->event->get('body');\n $account_id = $this->event->get(static::ACCOUNT_ID);\n $room_id = $this->event->get('room_id');\n\n $this->messages = [new IncomingMessage($messageText, $account_id, $room_id, $this->event)];\n }\n\n return $this->messages;\n }", "function getArchivedMessage($msgid)\n{\n\tglobal $lang;\n\n\t$message = \\dal\\messages\\getMessage($msgid, 'recipient', 1);\n\n\tif ($message)\n\t{\n\t\t$message['sender'] = \\bl\\general\\uid2nick ($message['uid_sender']);\n\t\t$messageDate = \\DWDateTime::createFromFormat('Y-m-d H:i:s', $message['create_datetime']);\n\t\t$message['sentDate'] = $messageDate->format($lang['messageTimeFormat']);\n\t}\n\n\t$parser = new \\bl\\wikiParser\\WikiParser();\n\t$message['message'] = preg_replace('#(\\\\\\\\r\\\\\\\\n|\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n|\\\\\\\\n|\\\\\\\\\\\\\\\\n)#', \"\\r\\n\", $message['message']);\n\t$message['message'] = $parser->parseIt($message['message']);\n\n\treturn $message;\n}", "public static function contentToCatalogue($content, $locale, $domain)\n {\n $loader = new XliffLoader();\n $catalogue = new MessageCatalogue($locale);\n $loader->extractFromContent($content, $catalogue, $domain);\n\n return $catalogue;\n }", "public function getAll()\n {\n $messageObject = new Message();\n $messagesObjects = $messageObject->getAllMessages();\n\n foreach ($messagesObjects as $messagesObject )\n {\n echo $messagesObject->getDate();\n echo \" \".$messagesObject->getName().\"<br>\\n\";\n echo $messagesObject->getMessage().\"<br>\\n<br><hr/>\";\n }\n }", "public function readall() {\n\t\t$msgs = Core_Ipc_Messages::find(['stream' => md5($this->stream)], ['order' => 'msgid ASC']);\n\t\t$parsed = [];\n\n\t\tforeach($msgs AS $msg) {\n\t\t\t$parsed[] = $msg->instance;\n\t\t\t$msg->delete();\n\t\t}\n\n\t\treturn $parsed;\n\t}", "function getMessage($msgid)\n{\n\tglobal $lang;\n\n\t$message = \\dal\\messages\\getMessage($msgid, 'recipient');\n\n\tif ($message)\n\t{\n\t\t$message['sender'] = \\bl\\general\\uid2nick($message['uid_sender']);\n\t\t$messageDate = \\DWDateTime::createFromFormat('Y-m-d H:i:s', $message['create_datetime']);\n\t\t$message['sentDate'] = $messageDate->format($lang['messageTimeFormat']);\n\t}\n\n\t$parser = new \\bl\\wikiParser\\WikiParser();\n\t$message['message'] = preg_replace('#(\\\\\\\\r\\\\\\\\n|\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n|\\\\\\\\n|\\\\\\\\\\\\\\\\n)#', \"\\r\\n\", $message['message']);\n\t$message['message'] = $parser->parseIt($message['message']);\n\n\treturn $message;\n}", "public function & getMessageArray() {\n\t\tif (null === $this->messages) {\n\t\t\t$this->getMessages();\n\t\t}\n\t\treturn $this->messages;\n\t}", "function getMessages(){\r\n return $this->messages;\r\n }", "public function getAdditionalMsgFields()\n {\n // TODO: Implement getAdditionalMsgFields() method.\n }", "public static function returnMessages()\r\n {\r\n $result = array();\r\n \r\n // Process success messages\r\n if(isset($_SESSION['Success_messages']))\r\n {\r\n $Success_messages = $_SESSION['Success_messages'];\r\n unset($_SESSION['Success_messages']);\r\n\r\n foreach($Success_messages as $m)\r\n {\r\n $result[] = self::makeMessage($m, self::MESSAGE_TYPE_SUCCESS);\r\n }\r\n }\r\n \r\n // Process error messages\r\n if(isset($_SESSION['Error_messages']))\r\n {\r\n $Error_messages = $_SESSION['Error_messages'];\r\n unset($_SESSION['Error_messages']);\r\n\r\n foreach($Error_messages as $m)\r\n {\r\n $result[] = self::makeMessage($m, self::MESSAGE_TYPE_ERROR);\r\n }\r\n }\r\n \r\n // Process warning messages\r\n if(isset($_SESSION['Warning_messages']))\r\n {\r\n $Warning_messages = $_SESSION['Warning_messages'];\r\n unset($_SESSION['Warning_messages']);\r\n\r\n foreach($Warning_messages as $m)\r\n {\r\n $result[] = self::makeMessage($m, self::MESSAGE_TYPE_WARNING);\r\n }\r\n }\r\n \r\n return $result;\r\n }", "public static function getPhraseMessages()\n {\n return Message::where('type', '=', 'phrase')->get();\n }", "protected function processChannelMessages()\n\t{\n\t\tif (preg_match(\n\t\t\t'/^(NEW|UPD|NUK): \\[DT: (?P<time>.+?)\\]\\s?\\[TT: (?P<title>.+?)\\]\\s?\\[SC: (?P<source>.+?)\\]\\s?\\[CT: (?P<category>.+?)\\]\\s?\\[RQ: (?P<req>.+?)\\]' .\n\t\t\t'\\s?\\[SZ: (?P<size>.+?)\\]\\s?\\[FL: (?P<files>.+?)\\]\\s?(\\[FN: (?P<filename>.+?)\\]\\s?)?(\\[(?P<nuked>(UN|MOD|RE|OLD)?NUKED?): (?P<reason>.+?)\\])?$/i',\n\t\t\t$this->_channelData['message'], $matches)) {\n\n\t\t\tif (isset($this->_ignoredChannels[$matches['source']]) && $this->_ignoredChannels[$matches['source']] === true) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ($this->_categoryIgnoreRegex !== false && preg_match((string)$this->_categoryIgnoreRegex, $matches['category'])) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ($this->_titleIgnoreRegex !== false && preg_match((string)$this->_titleIgnoreRegex, $matches['title'])) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->_curPre['predate'] = $this->_pdo->from_unixtime(strtotime($matches['time'] . ' UTC'));\n\t\t\t$this->_curPre['title'] = $matches['title'];\n\t\t\t$this->_curPre['source'] = $matches['source'];\n\t\t\tif ($matches['category'] !== 'N/A') {\n\t\t\t\t$this->_curPre['category'] = $matches['category'];\n\t\t\t}\n\t\t\tif ($matches['req'] !== 'N/A' && preg_match('/^(?P<req>\\d+):(?P<group>.+)$/i', $matches['req'], $matches2)) {\n\t\t\t\t$this->_curPre['reqid'] = $matches2['req'];\n\t\t\t\t$this->_curPre['group_id'] = $this->_getGroupID($matches2['group']);\n\t\t\t}\n\t\t\tif ($matches['size'] !== 'N/A') {\n\t\t\t\t$this->_curPre['size'] = $matches['size'];\n\t\t\t}\n\t\t\tif ($matches['files'] !== 'N/A') {\n\t\t\t\t$this->_curPre['files'] = substr($matches['files'], 0, 50);\n\t\t\t}\n\n\t\t\tif (isset($matches['filename']) && $matches['filename'] !== 'N/A') {\n\t\t\t\t$this->_curPre['filename'] = $matches['filename'];\n\t\t\t}\n\n\t\t\tif (isset($matches['nuked'])) {\n\t\t\t\tswitch ($matches['nuked']) {\n\t\t\t\t\tcase 'NUKED':\n\t\t\t\t\t\t$this->_curPre['nuked'] = \\PreDb::PRE_NUKED;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'UNNUKED':\n\t\t\t\t\t\t$this->_curPre['nuked'] = \\PreDb::PRE_UNNUKED;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'MODNUKED':\n\t\t\t\t\t\t$this->_curPre['nuked'] = \\PreDb::PRE_MODNUKE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'RENUKED':\n\t\t\t\t\t\t$this->_curPre['nuked'] = \\PreDb::PRE_RENUKED;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'OLDNUKE':\n\t\t\t\t\t\t$this->_curPre['nuked'] = \\PreDb::PRE_OLDNUKE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$this->_curPre['reason'] = (isset($matches['reason']) ? substr($matches['reason'], 0, 255) : '');\n\t\t\t}\n\t\t\t$this->_checkForDupe();\n\t\t}\n\t}", "public function commonMessages() {\n return [];\n }", "public function getAllMsg() : array\n {\n return $this->messages;\n }", "public static function convertMessages($requestParam, $xml, $content) {\n // collection request. All the fields for both the Message and the MessageCollection\n // classes are converted here. Message handler has the responsibility to validate the\n // params.\n $message = array();\n if (isset($xml->id)) {\n $message['id'] = trim($xml->id);\n }\n if (isset($xml->title)) {\n $message['title'] = trim($xml->title);\n }\n if (!empty($content)) {\n $message['body'] = trim($content);\n }\n if (isset($xml->bodyId)) {\n $meesage['bodyId'] = trim($xml->bodyId);\n }\n if (isset($xml->titleId)) {\n $message['titleId'] = trim($xml->titleId);\n }\n if (isset($xml->appUrl)) {\n $message['appUrl'] = trim($xml->appUrl);\n }\n if (isset($xml->status)) {\n $message['status'] = trim($xml->status);\n }\n if (isset($xml->timeSent)) {\n $message['timeSent'] = trim($xml->timeSent);\n }\n if (isset($xml->type)) {\n $message['type'] = trim($xml->type);\n }\n if (isset($xml->updated)) {\n $message['updated'] = trim($xml->updated);\n }\n if (isset($xml->senderId)) {\n $message['senderId'] = trim($xml->senderId);\n }\n if (isset($xml->appUrl)) {\n $message['appUrl'] = trim($xml->appUrl);\n }\n if (isset($xml->collectionIds)) {\n $message['collectionIds'] = array();\n foreach ($xml->collectionIds as $collectionId) {\n $message['collectionIds'][] = trim($collectionId);\n }\n }\n \n // Tries to retrieve recipients by looking at the osapi name space first then\n // the default namespace.\n $recipientXml = self::loadString($requestParam, \"http://opensocial.org/2008/opensocialapi\");\n if (empty($recipientXml) || !isset($recipientXml->recipient)) {\n $recipientXml = $xml;\n }\n \n if (isset($recipientXml->recipient)) {\n $message['recipients'] = array();\n foreach ($recipientXml->recipient as $recipient) {\n $message['recipients'][] = trim($recipient);\n }\n }\n \n // TODO: Parses the inReplyTo, replies and urls fields.\n \n // MessageCollection specified fiedls.\n if (isset($xml->total)) {\n $message['total'] = trim($xml->total);\n }\n if (isset($xml->unread)) {\n $message['unread'] = trim($xml->unread);\n }\n \n return $message;\n }", "protected function _init()\n {\n global $injector, $notification, $prefs, $registry;\n\n /* The message text and headers. */\n $expand = array();\n $header = array(\n 'to' => '',\n 'cc' => '',\n 'bcc' => ''\n );\n $msg = '';\n $this->title = _(\"Compose Message\");\n\n /* Get the list of headers to display. */\n $display_hdrs = array(\n 'to' => _(\"To: \"),\n 'cc' => _(\"Cc: \"),\n 'bcc' => (\"Bcc: \")\n );\n\n /* Set the current identity. */\n $identity = $injector->getInstance('IMP_Identity');\n if (!$prefs->isLocked('default_identity') &&\n isset($this->vars->identity)) {\n $identity->setDefault($this->vars->identity);\n }\n\n /* Determine if mailboxes are readonly. */\n $drafts = IMP_Mailbox::getPref(IMP_Mailbox::MBOX_DRAFTS);\n $readonly_drafts = $drafts && $drafts->readonly;\n $sent_mail = $identity->getValue(IMP_Mailbox::MBOX_SENT);\n $save_sent_mail = (!$sent_mail || $sent_mail->readonly)\n ? false\n : $prefs->getValue('save_sent_mail');\n\n /* Determine if compose mode is disabled. */\n $compose_disable = !IMP_Compose::canCompose();\n\n /* Initialize objects. */\n $imp_compose = $injector->getInstance('IMP_Factory_Compose')->create($this->vars->composeCache);\n\n /* Are attachments allowed? */\n $attach_upload = $imp_compose->canUploadAttachment();\n\n foreach (array_keys($display_hdrs) as $val) {\n $header[$val] = $this->vars->$val;\n\n /* If we are reloading the screen, check for expand matches. */\n if ($this->vars->composeCache) {\n $expanded = array();\n for ($i = 0; $i < 5; ++$i) {\n if ($tmp = $this->vars->get($val . '_expand_' . $i)) {\n $expanded[] = $tmp;\n }\n }\n if (!empty($expanded)) {\n $header['to'] = strlen($header['to'])\n ? implode(', ', $expanded) . ', ' . $header['to']\n : implode(', ', $expanded);\n }\n }\n }\n\n /* Add attachment. */\n if ($attach_upload &&\n isset($_FILES['upload_1']) &&\n strlen($_FILES['upload_1']['name'])) {\n try {\n $atc_ob = $imp_compose->addAttachmentFromUpload('upload_1');\n if ($atc_ob[0] instanceof IMP_Compose_Exception) {\n throw $atc_ob[0];\n }\n if ($this->vars->a == _(\"Expand Names\")) {\n $notification->push(sprintf(_(\"Added \\\"%s\\\" as an attachment.\"), $atc_ob[0]->getPart()->getName()), 'horde.success');\n }\n } catch (IMP_Compose_Exception $e) {\n $this->vars->a = null;\n $notification->push($e, 'horde.error');\n }\n }\n\n /* Run through the action handlers. */\n switch ($this->vars->a) {\n // 'd' = draft\n // 'en' = edit as new\n // 't' = template\n case 'd':\n case 'en':\n case 't':\n try {\n switch ($this->vars->a) {\n case 'd':\n $result = $imp_compose->resumeDraft($this->indices, array(\n 'format' => 'text'\n ));\n $this->view->resume = true;\n break;\n\n case 'en':\n $result = $imp_compose->editAsNew($this->indices, array(\n 'format' => 'text'\n ));\n break;\n\n case 't':\n $result = $imp_compose->useTemplate($this->indices, array(\n 'format' => 'text'\n ));\n break;\n }\n\n $msg = $result['body'];\n $header = array_merge(\n $header,\n $this->_convertToHeader($result)\n );\n if (!is_null($result['identity']) &&\n ($result['identity'] != $identity->getDefault()) &&\n !$prefs->isLocked('default_identity')) {\n $identity->setDefault($result['identity']);\n $sent_mail = $identity->getValue(IMP_Mailbox::MBOX_SENT);\n }\n } catch (IMP_Compose_Exception $e) {\n $notification->push($e);\n }\n break;\n\n case _(\"Expand Names\"):\n foreach (array_keys($display_hdrs) as $val) {\n if (($val == 'to') || ($this->vars->action != 'rc')) {\n $res = $this->_expandAddresses($header[$val]);\n if (is_string($res)) {\n $header[$val] = $res;\n } else {\n $header[$val] = $res[0];\n $expand[$val] = array_slice($res, 1);\n }\n }\n }\n\n if (isset($this->vars->action)) {\n $this->vars->a = $this->vars->action;\n }\n break;\n\n // 'r' = reply\n // 'rl' = reply to list\n // 'ra' = reply to all\n case 'r':\n case 'ra':\n case 'rl':\n $actions = array(\n 'r' => IMP_Compose::REPLY_SENDER,\n 'ra' => IMP_Compose::REPLY_ALL,\n 'rl' => IMP_Compose::REPLY_LIST\n );\n\n try {\n $reply_msg = $imp_compose->replyMessage(\n $actions[$this->vars->a],\n $this->_getContents(),\n array(\n 'format' => 'text',\n 'to' => $header['to']\n )\n );\n } catch (IMP_Exception $e) {\n $notification->push($e, 'horde.error');\n break;\n }\n\n $header = $this->_convertToHeader($reply_msg);\n\n $notification->push(_(\"Reply text will be automatically appended to your outgoing message.\"), 'horde.message');\n $this->title = _(\"Reply\");\n break;\n\n // 'f' = forward\n case 'f':\n try {\n $fwd_msg = $imp_compose->forwardMessage(\n IMP_Compose::FORWARD_ATTACH,\n $this->_getContents(),\n false\n );\n } catch (IMP_Exception $e) {\n $notification->push($e, 'horde.error');\n break;\n }\n\n $header = $this->_convertToHeader($fwd_msg);\n\n $notification->push(_(\"Forwarded message will be automatically added to your outgoing message.\"), 'horde.message');\n $this->title = _(\"Forward\");\n break;\n\n // 'rc' = redirect compose\n case 'rc':\n $imp_compose->redirectMessage($this->indices);\n $this->title = _(\"Redirect\");\n break;\n\n case _(\"Redirect\"):\n try {\n $num_msgs = $imp_compose->sendRedirectMessage($header['to']);\n $imp_compose->destroy('send');\n\n $notification->push(ngettext(\"Message redirected successfully.\", \"Messages redirected successfully.\", count($num_msgs)), 'horde.success');\n IMP_Minimal_Mailbox::url(array('mailbox' => $this->indices->mailbox))->redirect();\n } catch (Horde_Exception $e) {\n $this->vars->a = 'rc';\n $notification->push($e);\n }\n break;\n\n case _(\"Save Draft\"):\n case _(\"Send\"):\n switch ($this->vars->a) {\n case _(\"Save Draft\"):\n if ($readonly_drafts) {\n break 2;\n }\n break;\n\n case _(\"Send\"):\n if ($compose_disable) {\n break 2;\n }\n break;\n }\n\n $message = strval($this->vars->message);\n $f_to = $header['to'];\n $old_header = $header;\n $header = array();\n\n switch ($imp_compose->replyType(true)) {\n case IMP_Compose::REPLY:\n try {\n $reply_msg = $imp_compose->replyMessage(IMP_Compose::REPLY_SENDER, $imp_compose->getContentsOb(), array(\n 'to' => $f_to\n ));\n $msg = $reply_msg['body'];\n } catch (IMP_Exception $e) {\n $notification->push($e, 'horde.error');\n $msg = '';\n }\n $message .= \"\\n\" . $msg;\n break;\n\n case IMP_Compose::FORWARD:\n try {\n $fwd_msg = $imp_compose->forwardMessage(IMP_Compose::FORWARD_ATTACH, $imp_compose->getContentsOb());\n $msg = $fwd_msg['body'];\n } catch (IMP_Exception $e) {\n $notification->push($e, 'horde.error');\n }\n $message .= \"\\n\" . $msg;\n break;\n }\n\n try {\n $header['from'] = strval($identity->getFromLine(null, $this->vars->from));\n } catch (Horde_Exception $e) {\n $header['from'] = '';\n }\n $header['replyto'] = $identity->getValue('replyto_addr');\n $header['subject'] = strval($this->vars->subject);\n\n foreach (array_keys($display_hdrs) as $val) {\n $header[$val] = $old_header[$val];\n }\n\n switch ($this->vars->a) {\n case _(\"Save Draft\"):\n try {\n $notification->push($imp_compose->saveDraft($header, $message), 'horde.success');\n if ($prefs->getValue('close_draft')) {\n $imp_compose->destroy('save_draft');\n IMP_Minimal_Mailbox::url(array('mailbox' => $this->indices->mailbox))->redirect();\n }\n } catch (IMP_Compose_Exception $e) {\n $notification->push($e);\n }\n break;\n\n case _(\"Send\"):\n try {\n $imp_compose->buildAndSendMessage(\n $message,\n $header,\n $identity,\n array(\n 'readreceipt' => ($prefs->getValue('request_mdn') == 'always'),\n 'save_sent' => $save_sent_mail,\n 'sent_mail' => $sent_mail\n )\n );\n $imp_compose->destroy('send');\n\n $notification->push(_(\"Message sent successfully.\"), 'horde.success');\n IMP_Minimal_Mailbox::url(array('mailbox' => $this->indices->mailbox))->redirect();\n } catch (IMP_Compose_Exception $e) {\n $notification->push($e);\n\n /* Switch to tied identity. */\n if (!is_null($e->tied_identity)) {\n $identity->setDefault($e->tied_identity);\n $notification->push(_(\"Your identity has been switched to the identity associated with the current recipient address. The identity will not be checked again during this compose action.\"));\n }\n }\n break;\n }\n break;\n\n case _(\"Cancel\"):\n $imp_compose->destroy('cancel');\n IMP_Minimal_Mailbox::url(array('mailbox' => $this->indices->mailbox))->redirect();\n exit;\n\n case _(\"Discard Draft\"):\n $imp_compose->destroy('discard');\n IMP_Minimal_Mailbox::url(array('mailbox' => $this->indices->mailbox))->redirect();\n exit;\n }\n\n /* Grab any data that we were supplied with. */\n if (empty($msg)) {\n $msg = strval($this->vars->message);\n }\n if (empty($header['subject'])) {\n $header['subject'] = strval($this->vars->subject);\n }\n\n $this->view->cacheid = $imp_compose->getCacheId();\n $this->view->hmac = $imp_compose->getHmac();\n $this->view->menu = $this->getMenu('compose');\n $this->view->url = self::url();\n $this->view->user = $registry->getAuth();\n\n switch ($this->vars->a) {\n case 'rc':\n $this->_pages[] = 'redirect';\n $this->_pages[] = 'menu';\n unset($display_hdrs['cc'], $display_hdrs['bcc']);\n break;\n\n default:\n $this->_pages[] = 'compose';\n $this->_pages[] = 'menu';\n\n $this->view->compose_enable = !$compose_disable;\n $this->view->msg = $msg;\n $this->view->save_draft = ($injector->getInstance('IMP_Factory_Imap')->create()->access(IMP_Imap::ACCESS_DRAFTS) && !$readonly_drafts);\n $this->view->subject = $header['subject'];\n\n $select_list = $identity->getSelectList();\n $default_identity = $identity->getDefault();\n\n if ($prefs->isLocked('default_identity')) {\n $select_list = array(\n $default_identity => $select_list[$default_identity]\n );\n }\n\n $tmp = array();\n foreach ($select_list as $key => $val) {\n $tmp[] = array(\n 'key' => $key,\n 'sel' => ($key == $default_identity),\n 'val' => $val\n );\n }\n $this->view->identities = $tmp;\n\n if ($attach_upload) {\n $this->view->attach = true;\n if (count($imp_compose)) {\n $atc_part = $imp_compose[0]->getPart();\n $this->view->attach_name = $atc_part->getName();\n $this->view->attach_size = IMP::sizeFormat($atc_part->getBytes());\n $this->view->attach_type = $atc_part->getType();\n }\n }\n\n $this->title = _(\"Message Composition\");\n }\n\n $hdrs = array();\n foreach ($display_hdrs as $key => $val) {\n $tmp = array(\n 'key' => $key,\n 'label' => $val,\n 'val' => $header[$key]\n );\n\n if (isset($expand[$key])) {\n $tmp['matchlabel'] = (count($expand[$key][1]) > 5)\n ? sprintf(_(\"Ambiguous matches for \\\"%s\\\" (first 5 matches displayed):\"), $expand[$key][0])\n : sprintf(_(\"Ambiguous matches for \\\"%s\\\":\"), $expand[$key][0]);\n\n $tmp['match'] = array();\n foreach ($expand[$key][1] as $key2 => $val2) {\n if ($key2 == 5) {\n break;\n }\n $tmp['match'][] = array(\n 'id' => $key . '_expand_' . $key2,\n 'val' => $val2\n );\n }\n }\n\n $hdrs[] = $tmp;\n }\n\n $this->view->hdrs = $hdrs;\n $this->view->title = $this->title;\n }", "public function parse(): array\n {\n // Text.\n if ($this->type === 'text') {\n return [\n 'text' => $this->message,\n ];\n }\n\n // Template.\n if ($this->type === 'template') {\n $payload = Arr::get($this->message, 'attachments.0.payload');\n\n // Generic template.\n if (Arr::get($payload, 'template_type') === 'generic') {\n return [\n 'generic' => $this->parseGenericTempalte($payload),\n ];\n }\n }\n\n // Image\n if ($this->type === 'image') {\n $payload = Arr::get($this->message, 'attachments.0.payload');\n return [\n 'image' => $this->parseImageAttachment($payload),\n ];\n }\n\n // This for unsupported messages.\n return [];\n }", "abstract public function get_message();", "protected function get_messages() {\n global $SESSION;\n\n $messages = array();\n if (!empty($SESSION->languagelesson_messages) && is_array($SESSION->languagelesson_messages) && array_key_exists($this->properties->id, $SESSION->languagelesson_messages)) {\n $messages = $SESSION->languagelesson_messages[$this->properties->id];\n unset($SESSION->languagelesson_messages[$this->properties->id]);\n }\n\n return $messages;\n }", "function messager($m){\r\n\t\tif($m['immediacy']){\r\n\t\t\t$this->boinkIt($m['url']);\r\n\t\t}else {\r\n\t\t\tif($m['goon']){\r\n\t\t\t\tif($m['hl'] == '')$m['hl'] = 'hlRed';\r\n\t\t\t\treturn array($m['title'], $m['text'], $m['hl']);\r\n\t\t\t}else {\r\n\t\t\t\t$w = str_replace(\"<%TITLE%>\", $m['title'], $this->skin->wrapMsg);\r\n\t\t\t\t$w = str_replace(\"<%TEXT%>\", $m['text'], $w);\r\n\t\t\t\t$w = str_replace(\"<%URL%>\", $m['url'], $w);\r\n\t\t\t\t$w = str_replace(\"<%SEC%>\", $m['sec'], $w);\r\n\t\t\t\t$this->export($w);\r\n\t\t\t\texit;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function get_messages($index = 0) {\n\t\tif ($this->get_multiple_values()) {\n\t\t\tif (!isset($this->messages[$index])) {\n\t\t\t\treturn Array();\n\t\t\t} else {\n\t\t\t\treturn $this->messages[$index];\n\t\t\t}\n\t\t} else {\n\t\t\t$this->messages;\n\t\t}\n\t}", "function dcgettext($domain, $message, $category) {\n }", "public function getMessages(): array\n {\n return $this->messages;\n }", "public function getMessages(): array\n {\n return $this->messages;\n }" ]
[ "0.6241932", "0.6075957", "0.5991553", "0.5784521", "0.5774822", "0.5764519", "0.5716393", "0.57058114", "0.5626592", "0.5626592", "0.5618981", "0.5551634", "0.5524553", "0.5514824", "0.5514824", "0.5514824", "0.5514824", "0.5514824", "0.5514824", "0.5514824", "0.550563", "0.5479367", "0.543608", "0.53745914", "0.5350542", "0.5309142", "0.52576935", "0.522838", "0.52100015", "0.51705354", "0.5165938", "0.51274455", "0.51225793", "0.5121501", "0.50847244", "0.5078726", "0.50634336", "0.505065", "0.5046607", "0.50162506", "0.5004041", "0.49947464", "0.49915358", "0.4984838", "0.4984838", "0.49844", "0.4982511", "0.4982428", "0.4982428", "0.49817804", "0.494388", "0.49392837", "0.4902423", "0.48984942", "0.4893439", "0.48742154", "0.48678473", "0.485284", "0.48399562", "0.48342857", "0.48342857", "0.48342857", "0.48307478", "0.48128474", "0.48103014", "0.47745872", "0.47674695", "0.47593716", "0.47587675", "0.47587675", "0.47587675", "0.4757276", "0.47525877", "0.4745176", "0.47356945", "0.47291774", "0.47242498", "0.47233227", "0.47186336", "0.47118843", "0.47082973", "0.46980268", "0.46944407", "0.46929714", "0.46899784", "0.46897063", "0.46869564", "0.46826106", "0.46781614", "0.4671679", "0.4664895", "0.46618232", "0.4661646", "0.46593687", "0.46543688", "0.46476474", "0.46470836", "0.46452528", "0.46412003", "0.46412003" ]
0.68977857
0
Register the service provider.
public function register() { $this->registerBindings(); $this->app['events']->listen(BuildingSidebar::class, RegisterOrdersSidebar::class); $this->app['events']->listen(LoadingBackendTranslations::class, function (LoadingBackendTranslations $event) { $event->load('orders', array_dot(trans('orders::orders'))); $event->load('order_details', array_dot(trans('orders::order_details'))); // append translations }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->app->register(\\Laravel\\Telescope\\TelescopeServiceProvider::class);\n $this->app->register(TelescopeServiceProvider::class);\n }\n }", "public function register()\n {\n\n $this->registerBinding();\n }", "public function register()\n\t{\n\t\t$this->registerCommands();\n\t\t$this->registerHybridAuth();\n\t}", "public function register()\n {\n $this->registerAuthenticator();\n }", "public function register()\n {\n $this->loadHelpers();\n \n $this->passportSetting();\n }", "public function register()\n {\n //Bind service in IoC container\n $this->app->singleton('tenancy', function(){\n return new TenantManager();\n });\n }", "public function register()\n {\n\n $this->app->register(HookProvider::class);\n $this->app->register(RouteProvider::class);\n// $this->app->register(InstallModuleProvider::class);\n }", "public function register()\n\t{\n\t\t\n\t\t$this->registerViewManager();\n\t\t$this->registerResponseHandler();\n\t\t$this->registerHttpMethods();\n\t}", "public function register()\n {\n $this->registerAccountService();\n\n $this->registerCurrentAccount();\n\n //$this->registerMenuService();\n\n //$this->registerReplyService();\n }", "public function register()\n {\n // ...\n }", "public function register()\n {\n // ...\n }", "public function register() {\n $this->registerProviders();\n $this->registerFacades();\n }", "public function register()\n {\n $this->registerServiceProvider();\n\n $this->addAssetNamespaceHint();\n $this->addStreamsNamespaceHint();\n }", "public function register()\n {\n $this->registerRequestHandler();\n $this->registerAuthorizationService();\n $this->registerServices();\n }", "public function register()\n {\n // register its dependencies\n $this->app->register(\\Cviebrock\\EloquentSluggable\\ServiceProvider::class);\n }", "public function register(){\n $this->registerDependencies();\n $this->registerAlias();\n $this->registerServiceCommands();\n }", "public function register()\n {\n $this->registerContracts();\n }", "public function register()\n\t{\n $this->registerApi();\n\t}", "public function register()\n {\n \n $this->registerLoader();\n $this->registerTranslator();\n }", "public function register()\r\n {\r\n Passport::ignoreMigrations();\r\n\r\n $this->app->singleton(\r\n CityRepositoryInterface::class,\r\n CityRepository::class\r\n );\r\n\r\n $this->app->singleton(\r\n BarangayRepositoryInterface::class,\r\n BarangayRepository::class\r\n );\r\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register()\n {\n $this->registerServiceProviders();\n $this->registerSettingsService();\n $this->registerHelpers();\n }", "public function register()\n {\n /**\n * Register additional service\n * providers if they exist.\n */\n foreach ($this->providers as $provider) {\n if (class_exists($provider)) {\n $this->app->register($provider);\n }\n }\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n $this->registerMetaService();\n $this->registerLabelService();\n $this->registerTypeService();\n $this->registerGroupeService();\n $this->registerActiviteService();\n $this->registerRiiinglinkService();\n $this->registerInviteService();\n $this->registerTagService();\n $this->registerAuthService();\n $this->registerChangeService();\n $this->registerRevisionService();\n $this->registerUploadService();\n //$this->registerTransformerService();\n }", "public function register()\n {\n $this->registerFinite();\n }", "public function register()\n {\n $this->setupConfig();\n\n $this->bindServices();\n }", "public function register()\n {\n $this->registerServices();\n $this->setupStubPath();\n $this->registerProviders();\n }", "public function register()\n {\n $this->app['cache'] = $this->app->share(function($app)\n {\n return new CacheManagerMaster($app);\n });\n\n $this->app['memcached.connector'] = $this->app->share(function()\n {\n return new MemcachedConnector;\n });\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerBrowser();\n\n $this->registerViewFinder();\n }", "public function register()\n {\n $this->registerCacheManager();\n $this->registerCourier();\n }", "public function register()\n {\n $this->app->singleton(Adapter::class, function () {\n\n return new Adapter(config('services.sso.id'), config('services.sso.secret'));\n\n });\n }", "public function register()\n {\n $this->registerRollbar();\n }", "public function register()\n {\n $this->configure();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n }", "public function register(): void\n {\n parent::register();\n\n $this->singleton(RouteViewerContract::class, RouteViewer::class);\n }", "public function register() {\n\n }", "public function register()\n {\n $this->registerFlareFacade();\n $this->registerServiceProviders();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerBindings();\n $this->registerEventListeners();\n }", "public function register()\n {\n //\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n\n\n\n\n $this->app->register(ResponseMacroServiceProvider::class);\n $this->app->register(TwitterServiceProvider::class);\n }", "public function register()\n {\n $this->app->singleton(Service\\TagsSynchronizer::class, function ($app) {\n return new Service\\TagsSynchronizer();\n });\n }", "public function register() {\n }", "public function register() {\n }", "public function register() {\n }", "public function register() {\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }" ]
[ "0.71774215", "0.7054453", "0.6968271", "0.69677705", "0.6952019", "0.6931252", "0.6926226", "0.6918423", "0.6899592", "0.6895726", "0.6894278", "0.68906504", "0.68906504", "0.6883112", "0.6872877", "0.6865099", "0.68640506", "0.68627584", "0.68624485", "0.68491566", "0.6823619", "0.68196595", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.68090034", "0.68089324", "0.6807419", "0.6803942", "0.6802752", "0.679191", "0.67904466", "0.67874974", "0.6785141", "0.6785141", "0.6785141", "0.6780175", "0.67768264", "0.6776666", "0.6770326", "0.6762759", "0.67627436", "0.67611307", "0.6757141", "0.67570823", "0.67548144", "0.6753397", "0.6753232", "0.67504245", "0.67504245", "0.67504245", "0.67504245", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705" ]
0.0
-1
Get the services provided by the provider.
public function provides() { return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function getServices()\n {\n if (is_null($this->serviceProviders)) {\n $this->serviceProviders = $this->getServiceProviders();\n }\n\n return $this->serviceProviders;\n }", "protected function getServices()\n {\n return $this->services;\n }", "protected static function getServiceProviders()\n {\n return [];\n }", "public static function get_service_providers(): array {\n\t\treturn self::$service_providers;\n\t}", "public function getServices();", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }", "public function services()\n {\n return $this->belongstomany(Service::class);\n }", "public function getServices() {\n return $this->services;\n }", "public function getServices() {\n return $this->services;\n }", "public function getServiceProviders();", "public function getServices() {\n\n return $this->services;\n\n }", "public function getServices()\n {\n return $this->pantonoServices;\n }", "public static function getServices(): array\n {\n return static::$services;\n }", "public static function get_services() {\n return [ \n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class,\n Base\\JsObjectsManager::class,\n Base\\ShortCodesManager::class\n ];\n }", "private function get_services() {\n\t\treturn [\n\t\t\tServices\\Language_Loader::class,\n\t\t\tServices\\Setup_Database::class,\n\t\t\tServices\\Scripts_And_Templates::class,\n\t\t\tServices\\Admin_Pages::class,\n\t\t\tServices\\Setup_Settings_Page::class,\n\t\t\tServices\\Loggers_Loader::class,\n\t\t\tServices\\Dropins_Loader::class,\n\t\t\tServices\\Setup_Log_Filters::class,\n\t\t\tServices\\Setup_Pause_Resume_Actions::class,\n\t\t\tServices\\Setup_Purge_DB_Cron::class,\n\t\t\tServices\\API::class,\n\t\t\tServices\\Dashboard_Widget::class,\n\t\t\tServices\\Network_Menu_Items::class,\n\t\t\tServices\\Plugin_List_Link::class,\n\t\t];\n\t}", "public static function get_services()\n {\n return [\n Pages\\Dashboard::class,\n Base\\Enqueue::class,\n Base\\SettingsLink::class,\n Base\\CustomPostTypeController::class,\n ];\n }", "public static function get_services()\n {\n return [\n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\CustomPostType::class,\n Base\\CustomMetaBox::class,\n Base\\Shortcode::class,\n Base\\Cron::class,\n ];\n }", "public function &getServices(): array {\n return $this->services;\n }", "public function getServiceLocator()\n {\n return $this->services;\n }", "public function getServiceProviderList()\n {\n return $this->providers;\n }", "public function services()\n {\n return $this->getAngularLocation($this->service_path);\n }", "public function provides()\n {\n return [Client::class, Services\\OAuth::class];\n }", "public function getServices(): array;", "public function getServiceProvider();", "public static function get_services()\n {\n\n //підключаємо всі необхідні класи для активації через масив\n return [\n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class\n ];\n }", "public function provides()\n {\n return [\n SerasaService::class\n ];\n }", "public function serviceProviders(): ?Collection;", "public function getServices()\r\n {\r\n if (is_null($this->_services)) {\r\n if ($this->getConfig('auto')) {\r\n $this->_services = array();\r\n $config = Mage::app()->getConfig();\r\n foreach (array('cache', 'full_page_cache', 'fpc') as $cacheType) {\r\n $node = $config->getXpath('global/' . $cacheType . '[1]');\r\n if (isset($node[0]->backend) && in_array((string)$node[0]->backend, array(\r\n 'Cm_Cache_Backend_Redis',\r\n 'Mage_Cache_Backend_Redis'\r\n ))) {\r\n $this->_services[] = $this->_buildServiceArray(\r\n $this->__(str_replace('_', ' ', uc_words($cacheType))),\r\n $node[0]->backend_options->server,\r\n $node[0]->backend_options->port,\r\n $node[0]->backend_options->password,\r\n $node[0]->backend_options->database\r\n );\r\n }\r\n }\r\n // get session\r\n $node = $config->getXpath('global/redis_session');\r\n if ($node) {\r\n $this->_services[] = $this->_buildServiceArray(\r\n $this->__('Session'),\r\n $node[0]->host,\r\n $node[0]->port,\r\n $node[0]->password,\r\n $node[0]->db\r\n );\r\n }\r\n } else {\r\n $this->_services = unserialize($this->getConfig('manual'));\r\n }\r\n }\r\n return $this->_services;\r\n }", "public function loadServices($providers);", "public static function get_services(): array\n {\n return [\n Base\\SettingsLinks::class,\n Pages\\Admin::class,\n Base\\Enqueue::class,\n CPT\\EmailCpt::class,\n ];\n }", "public function services(): array\n {\n return \\array_merge(\n \\array_keys($this->_services),\n \\array_keys($this->aliases)\n );\n }", "public function get_services() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/services.json\");\n }", "public function getRequestedServices();", "public function getProviders();", "public function getProviders();", "protected function getUserServices()\n\t{\n\t\treturn $this->userServices = new UsersService();\n\t}", "protected function getServices() {\n\t\treturn [\n\t\t\tMessagesService::class,\n\t\t];\n\t}", "public static function get_providers() {\n\t\treturn self::$providers;\n\t}", "public function getRequiredServices();", "public function getModulesServiceProviders()\n {\n $modulesNamespace = ModulesConfig::getModulesNamespace();\n\n foreach (ModulesConfig::getModulesNames() as $moduleName) {\n // get the Module extra service providers (extra service providers are defined in the modules config file)\n foreach (ModulesConfig::getModulesExtraServiceProviders($moduleName) as $provider) {\n $allServiceProviders[] = $provider;\n }\n // append the Module main service provider\n $allServiceProviders[] = ModulesConfig::buildMainServiceProvider($modulesNamespace, $moduleName);\n }\n\n return array_unique($allServiceProviders) ? : [];\n }", "public function provides()\n {\n return [\n RouteServiceProvider::class,\n MenuServiceProvider::class,\n ];\n }", "public function getUsersServices()\r\n {\r\n return $this->usersServices = new UsersService();\r\n }", "public function getServices()\n\t{\n\t\treturn ['card', 'topup_mobile', 'topup_mobile_post', 'topup_game'];\n\t}", "public function providerGet()\n {\n $getList = $this->getMethodsName('get');\n $provider = [];\n\n foreach ($getList as $name) {\n $provider[$name] = [\n 'name' => $name,\n 'arguments' => $this->getArgumentsForMethod($name),\n ];\n }\n\n return $provider;\n }", "public function findServices(): array;", "public static function get_services()\n {\n $ServicesObj = new Services();\n $Services = array();\n try {\n $stmt = $ServicesObj->read();\n $count = $stmt->rowCount();\n if ($count > 0) {\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n extract($row);\n $p = (object) array(\n \"ServiceID\" => (int) $ServiceID,\n \"ServiceName\" => $ServiceName,\n );\n\n array_push($Services, $p);\n }\n }\n return $Services;\n } catch (Exception $e) {\n throw $e;\n }\n }", "protected function otherServiceProviders()\n {\n $providers = [\n \\Collective\\Html\\HtmlServiceProvider::class,\n \\Intervention\\Image\\ImageServiceProvider::class,\n \\Acacha\\AdminLTETemplateLaravel\\Providers\\AdminLTETemplateServiceProvider::class,\n \\Serff\\Cms\\Core\\Providers\\InstallationServiceProvider::class,\n \\Serff\\Cms\\Core\\Providers\\AdminServiceProvider::class,\n ];\n\n $manifestPath = app()->getCachedServicesPath();\n\n (new ProviderRepository(app(), new Filesystem, $manifestPath))\n ->load($providers);\n }", "protected function getProviders() {\n\n\t\treturn $this->providers;\n\t}", "public function provides()\n {\n return [\n 'sm.callback.factory',\n 'sm.event.dispatcher',\n 'sm.factory',\n Debug::class,\n ];\n }", "public function get_providers()\n {\n }", "public function provides()\n {\n return [\n 'freshdesk.factory',\n 'freshdesk',\n 'freshdesk.connection',\n ];\n }", "public function provides()\n {\n return [\\App\\Services\\ApiPlatformProductFactoryService::class];\n }", "public function getServiceProvider($provider);", "public static function getListServices () {\n return self::findByStatus(self::STATUS_ACTIVE);\n }", "protected function registerServiceProviders()\n {\n if ($this->active()->has('providers')) {\n $providers = $this->active()->get('providers');\n\n foreach ($providers as $provider) {\n App::register($provider);\n }\n }\n }", "public function provides()\n\t{\n\t\treturn array(\n\t\t\t'mosms',\n\t\t\t'moclient',\n\t\t\t);\n\t}", "public function provides() {\n $providers = array();\n foreach ($this->providers as $key => $value) {\n $providers[] = $key;\n }\n return $providers;\n }", "public function getLoadedProviders(): array\n {\n return $this->loadServiceProviders;\n }", "public function provides()\n {\n AchieveLogger::info(\"Deferred true and I am here in provides()\");\n return['App\\Services\\Utility\\AchieveLoggerService'];\n }", "public function getModuleServiceProvider()\n {\n return isset($this->config['module']['providers']) ? $this->config['module']['providers'] : [];\n }", "public function provides()\n {\n return [\n CreateService::class,\n CreateInterface::class,\n CreateProvider::class,\n ];\n }", "public function setProviders()\n {\n $services = $this->container['services']??null;\n\n if (is_array($services)) {\n foreach ($services as $service) {\n $service::register($this->container);\n $service::boot($this->container);\n }\n }\n }", "public function provides()\n {\n return [\n ZhyuInfoServiceProvider::class,\n ];\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function services($ignore_cache = false) {\n if ($this->services === null || $ignore_cache) {\n $this->services = StatusBoard_Service::allForSite($this);\n }\n \n return $this->services;\n }", "public function getProviders(): array\n {\n return $this->providers;\n }", "public function getProviders(): array\n {\n return $this->providers;\n }", "public function get_service() {\n\n\t\treturn $this->provider_instance;\n\t}", "public function provides()\n {\n return [\n 'digitalocean.adapterfactory',\n 'digitalocean.factory',\n 'digitalocean',\n 'digitalocean.connection',\n ];\n }", "public function provides()\n {\n return [\n 'dubbo_cli',\n 'dubbo_cli.factory',\n ];\n }", "public static function getSubscribedServices()\r\n {\r\n return [\r\n MDHelper::class,\r\n LoggerInterface::class\r\n ];\r\n }", "public function getDependencies()\n {\n return array(\n MongoServiceProvider::SERVICE_NAME\n );\n }", "protected function getAuth_Provider_Oauth_ServiceCollectionService()\n {\n $this->services['auth.provider.oauth.service_collection'] = $instance = new \\phpbb\\di\\service_collection($this);\n\n $instance->add('auth.provider.oauth.service.bitly');\n $instance->add('auth.provider.oauth.service.facebook');\n $instance->add('auth.provider.oauth.service.google');\n $instance->add('auth.provider.oauth.service.twitter');\n\n return $instance;\n }", "public function provides()\n {\n return [CardService::class];\n }", "public function getServices()\n {\n $services = InvoiceService::where('office_id', request('office_id'))->where('name', 'like', '%' . request('q') . '%')->get();\n\n return $services;\n }", "public function provides()\n {\n return [\n 'auth',\n 'Permit\\CurrentUser\\ContainerInterface',\n 'Permit\\Access\\CheckerInterface',\n 'Permit\\CurrentUser\\LoginValidatorInterface'\n ];\n }", "public function getProviders($provider)\n {\n $name = is_string($provider) ? $provider : getClass($provider, true);\n \n return Arr::where($this->serviceProviders, function ($value) use ($name) {\n return $value instanceof $name;\n });\n }", "public function getServiceCheckProviders(): array\n {\n return $this->serviceCheckProviders;\n }", "public static function getDeferredServices(){\n return \\Illuminate\\Foundation\\Application::getDeferredServices();\n }", "abstract public function getProviders();", "private function providers()\n {\n $this->register(new CorsServiceProvider());\n $this->register(new HmacServiceProvider());\n }", "public function getDeferredServices(): array\n {\n return $this->deferredServices;\n }", "public function services(){\n\n $facades = Array(\n 'Cache' => 'Disco\\classes\\Cache',\n 'Crypt' => 'Disco\\classes\\Crypt',\n 'Data' => 'Disco\\classes\\Data',\n 'DB' => 'Disco\\classes\\DB',\n 'Email' => 'Disco\\classes\\Email',\n 'Event' => 'Disco\\classes\\Event',\n 'Html' => 'Disco\\classes\\Html',\n 'Form' => 'Disco\\classes\\Form',\n 'Model' => 'Disco\\classes\\ModelFactory',\n 'Queue' => 'Disco\\classes\\Queue',\n 'Session' => 'Disco\\classes\\Session',\n 'Template' => 'Disco\\classes\\Template',\n 'View' => 'Disco\\classes\\View'\n );\n\n foreach($facades as $facade=>$v){\n $this->make($facade,$v);\n }//foreach\n\n $this->as_factory('Router',function(){\n return new \\Disco\\classes\\Router::$base;\n });\n\n }", "public function provides()\n {\n return [\n EventDispatcher::class,\n Repository::class,\n ];\n }", "public function getServiceProvider(): Provider\n {\n return $this->serviceProvider;\n }", "protected function getPuntoAtencionServices()\n {\n return $this->container->get('snc.services.puntoatencion');\n }", "public function get_services($settings = FALSE)\n\t{\t\n\t\treturn parent::get_objects(array(\n\t\t\t'settings' => $settings\n\t\t));\n\t}", "public function provides()\n {\n return [\n Factory::class,\n 'flipbox.sdk',\n ];\n }", "public function provides()\n {\n return array(\n 'icsconfig',\n 'icsview',\n 'icsmessage',\n 'icspdf'\n );\n }", "public function getAvailableServices();", "public function provides()\n {\n return [\n ZhyuAuthServiceProvider::class,\n ];\n }", "public function getServices() {\n $serviceNames = $this->getServiceNames($this->serviceFolderPaths);\n $ret = $ret1 = array();\n// require_once AMFPHP_ROOTPATH.'Plugins/AmfphpDiscovery/CReflection.php';\n foreach ($serviceNames as $serviceName) {\n/* $methods = array();\n $objC = new CReflection(APP_PATH.'/app/controllers/'.$serviceName.'.php');\n $objComment = $objC->getDocComment();\n $arrMethod = $objC->getMethods();\n foreach ($arrMethod as $objMethods)\n {\n $methodComment = $objMethods->getDocComment();\n $parsedMethodComment = $this->parseMethodComment($methodComment);\n $arrParamenter = $objMethods->getParameters();\n foreach ($arrParamenter as $Paramenter)\n {\n $parameterInfo = new AmfphpDiscovery_ParameterDescriptor($Paramenter, '');\n $parameters[] = $parameterInfo;\n }\n $methods[$objMethods->_name] = new AmfphpDiscovery_MethodDescriptor($objMethods->_name, $parameters, $methodComment, $parsedMethodComment['return']);\n }\n\n $ret[$serviceName] = new AmfphpDiscovery_ServiceDescriptor($serviceName, $methods, $objComment); */\n $ret1[] = array('label'=>$serviceName,'date'=>'');\n }\n// var_dump($ret);exit();\n //note : filtering must be done at the end, as for example excluding a Vo class needed by another creates issues\n foreach ($ret as $serviceName => $serviceObj) {\n foreach (self::$excludePaths as $excludePath) {\n if (strpos($serviceName, $excludePath) !== false) {\n unset($ret[$serviceName]);\n break;\n }\n }\n }\n return $ret1;\n }", "public function providers()\n {\n return $this->request('get', '/api/teams/'.Helpers::config('team').'/providers');\n }", "public function get_registered_services() {\n\t\t$data = [];\n\t\t$res = self::$dbo->query( 'SELECT storage_service FROM snapshot_storage_credentials' );\n\t\twhile ( $row = $res->fetchArray() ) {\n\t\t\t$data[] = $row['storage_service'];\n\t\t}\n\n\t\treturn $data;\n\t}", "protected function getPayrollServices()\n\t{\n\t\treturn $this->payrollServices = new PayrollServices();\n\t}", "public function provides()\n {\n return ['shppcart_service'];\n }", "public function provides()\n {\n return ['vk_service'];\n }", "public function provides() {\n\t\treturn array();\n\t}" ]
[ "0.79039633", "0.7667588", "0.76229626", "0.75573224", "0.7470691", "0.7423859", "0.7423859", "0.7423859", "0.7409516", "0.736475", "0.736475", "0.7363987", "0.7322196", "0.71889", "0.7162814", "0.71509963", "0.7137116", "0.70622355", "0.7047945", "0.70362085", "0.70213807", "0.69303095", "0.6916005", "0.689161", "0.6809766", "0.6804473", "0.6777694", "0.67695314", "0.67489713", "0.6727971", "0.6722673", "0.6699434", "0.66944385", "0.6651968", "0.6645622", "0.66324407", "0.66324407", "0.6616089", "0.6613961", "0.6610317", "0.66008735", "0.6567814", "0.6562319", "0.6529889", "0.6500722", "0.6480351", "0.64535", "0.645232", "0.6418372", "0.6416018", "0.6413331", "0.6397339", "0.63955915", "0.63899195", "0.6379133", "0.63766354", "0.63379693", "0.63369566", "0.63356155", "0.6335485", "0.6318311", "0.6316751", "0.63084865", "0.62963986", "0.6278965", "0.6264424", "0.6264424", "0.62581587", "0.6252555", "0.6252555", "0.62434787", "0.62404764", "0.623751", "0.62194616", "0.6210146", "0.6203944", "0.62002736", "0.6197869", "0.61938506", "0.6188146", "0.61726904", "0.6170289", "0.6163297", "0.61600006", "0.61570746", "0.6152867", "0.6147815", "0.6147383", "0.61295825", "0.6126574", "0.6124758", "0.61204225", "0.6100293", "0.60957974", "0.6073751", "0.6072919", "0.60692966", "0.6069216", "0.60561067", "0.604959", "0.60481" ]
0.0
-1
Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!
public static function model($className=__CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function model() {\n return parent::model(get_called_class());\n }", "public function model()\r\n {\r\n return static::class;\r\n }", "public static function model($className=__CLASS__) { return parent::model($className); }", "public static function model($className=__CLASS__)\n {\n return CActiveRecord::model($className);\n }", "static public function model($className = __CLASS__)\r\n {\r\n return parent::model($className);\r\n }", "public static function model($class = __CLASS__)\n\t{\n\t\treturn parent::model(get_called_class());\n\t}", "public static function model($class = __CLASS__)\n {\n return parent::model($class);\n }", "public static function model($className=__CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "public static function model($className=__CLASS__) {\r\n return parent::model($className);\r\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }" ]
[ "0.7574005", "0.7528819", "0.7270635", "0.7269363", "0.72611624", "0.7211197", "0.72105455", "0.7130912", "0.7127844", "0.7127844", "0.7101899", "0.7101899", "0.7101485", "0.70736724", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427" ]
0.0
-1
Kernel request event handler.
public function onKernelRequest(RequestEvent $event) { $code = IntranetHelper::getStatusCode(); $status_code_map = IntranetHelper::getStatusCodeMap(); // The code below prevents us from getting into redirect loops when this // event subscriber throws an exception below. Essentially we are checking // to see if the request contains one of the codes we have thrown and // whether it is a sub-request (which is what happens when you throw the // HttpException classes). if (is_null($code) || !(in_array($code, array_keys($status_code_map)) && $event->getRequestType() === HttpKernelInterface::SUB_REQUEST)) { $current_user = \Drupal::currentUser(); $route_name = $event->getRequest() ?->attributes ?->get('_route'); // Deny anonymous users unless they are hitting routes that need to be // accessible. if ($current_user->isAnonymous()) { if (!in_array($route_name, [ 'robotstxt.content', 'samlauth.saml_controller_acs', 'samlauth.saml_controller_login', 'user.login', 'user.reset.login', ])) { throw new UnauthorizedHttpException('Login, yo!'); } } // If the user isn't ID # 1 and their only role is authenticated, they are // Denied access. // Even though the id() method shows that it is supposed to return an int, // it sometimes does not, so we are casting the value to an int to ensure // it matches. elseif ((int) $current_user->id() !== 1 && $current_user->getRoles() === ['authenticated']) { if (!in_array($route_name, [ 'entity.user.edit_form', 'entity.user.canonical', 'robotstxt.content', 'user.logout', ])) { throw new AccessDeniedHttpException('Access denied, yo!'); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onKernelRequest($event){\n return;\n }", "public function kernelRequest(Event $event) {\n // \\Drupal::messenger()->addMessage('Event kernel.request thrown by Subscriber in module crm_awareness.', 'status', TRUE);\n }", "public function onKernelRequest(GetResponseEvent $event){\n //$event->setResponse($response);\n }", "public function onRequest(KernelEvent $event)\n {\n $request = $event->getRequest();\n\n $this->stats->increment('request');\n $this->stats->increment('request.method.'. strtolower($request->getMethod()));\n }", "function handleRequest() ;", "public function handleRequest() {}", "abstract public function handle_request();", "public function onKernelRequest(GetResponseEvent $event) {\n\t\tLoggerRegistry::debug('EngineBootstrapListener responding to REQUEST kernel event');\n\t\t// Start the engine.\n\t\t$request = $event->getRequest(); /** @var \\Symfony\\Component\\HttpFoundation\\Request $request */\n\t\t$response = $this->getEngine()->start($request);\n\t\tif (!is_null($response)) {\n\t\t\t// Set the response directly; prevent further processing.\n\t\t\t$this->getEngine()->instrumentResponse($response);\n\t\t\t$event->setResponse($response);\n\t\t\t$event->stopPropagation();\n\t\t\tLoggerRegistry::debug('EngineBootstrapListener received Response from bootstrap');\n\t\t}\n\t}", "function onKernelRequest(GetResponseEvent $event)\n {\n if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) return;\n\n $this->logger->debug(\"Request URI: {$event->getRequest()->getUri()}\");\n $this->logger->debug(\"Request headers:\\n\" . $this->dictionaryToString($event->getRequest()->headers));\n if (count($get = $event->getRequest()->query)) {\n $this->logger->debug(\"Request GET parameters:\\n\" . $this->dictionaryToString($get));\n }\n if (count($post = $event->getRequest()->request)) {\n $this->logger->debug(\"Request POST parameters:\\n\" . $this->dictionaryToString($post));\n }\n if (count($attributes = $event->getRequest()->attributes)) {\n $this->logger->debug(\"Request attributes:\\n\" . $this->dictionaryToString($attributes));\n }\n if (count($cookies = $event->getRequest()->cookies)) {\n $this->logger->debug(\"Request cookies:\\n\" . $this->dictionaryToString($cookies));\n }\n $this->logger->debug(\"Request server:\\n\" . $this->dictionaryToString($event->getRequest()->server));\n }", "public function onKernelRequest(GetResponseEvent $event) : void\n {\n // don't do anything if it's not the master request\n if (! $event->isMasterRequest()) {\n return;\n }\n \n // get Request from Event\n $request = $event->getRequest();\n \n // log Request via RequestLogger\n $this->requestLogger->logRequest($request);\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 serve_request()\n {\n }", "public function __invoke(RequestEvent $event): void\n {\n // because the stateful nature of swoole, this logic is executed only once,\n // this listener explicitly sets the admin context as twig global to prevent side effects\n $this->twig->addGlobal('ea', $event->getRequest()->attributes->get(EA::CONTEXT_REQUEST_ATTRIBUTE));\n }", "function event()\n {\n $this->load->library('service');\n $data = file_get_contents('php://input');\n $ret = array(\n 'out' => $this->service->handle('event', $data)\n );\n $this->output($ret);\n }", "public function onKernelRequest(GetResponseEvent $event) {\n\n if (!$event->isMasterRequest()) {\n return;\n }\n }", "public function runRequest() {\n }", "public function onRequest() {\n $whoops = $this->getWhoops();\n $whoops->register();\n\n // Ensure that Drupal registers the shutdown function.\n ErrorHandler::register([$whoops, Whoops::ERROR_HANDLER]);\n ExceptionHandler::register([$whoops, Whoops::EXCEPTION_HANDLER]);\n drupal_register_shutdown_function([$whoops, Whoops::SHUTDOWN_HANDLER]);\n }", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "protected abstract function handleRequest();", "function onRequest(){\n\n\t// check if we need to reload the application\n\tcheckApplicationState();\n\n\t// initialize the ViewSate for every request\n\tsetViewState( getFactory()->getBean( 'ViewState' ) );\n\n\t// decide what to do, the front controller\n\thandleAction();\n\n\t// render the application\n\trenderApplication();\n}", "public function handleRequest(Zend_Controller_Request_Http $request)\n {\n \n }", "public function onCoreRequest(GetResponseEvent $event)\n {\n if (HttpKernel::MASTER_REQUEST != $event->getRequestType())\n {\n return;\n }\n\n $request = $event->getRequest();\n }", "protected function _request() {}", "public function onKernelRequest(GetResponseEvent $event)\n {\n //var_dump($event); die;\n $request = $event->getRequest(); //from Symfony\\Component\\HttpKernel\\KernelEvents\n $shouldRoar = $request->query->get('roar'); //url/?roar=1 \n\n if ($shouldRoar) {\n $this->loggerFactory->get('default')->debug('ROOOOOOOOAR');//kernel.view - see event in web profiler see how the class use renderArray - and see those settings in core.services.yml \n }\n }", "public function onKernelRequest(KernelEvent $event)\n {\n if (HttpKernelInterface::MASTER_REQUEST == $event->getRequestType() || null === $this->cacheService) {\n return;\n }\n\n $request = $event->getRequest();\n if ($request->attributes->has('server_cache')) {\n $cacheKey = $this->getRequestCacheKey($request);\n $request->attributes->set('cache_key', $cacheKey);\n\n $controller = $request->attributes->get('controllerName');\n $fromCache = false;\n\n $responseContent = $this->cacheService->get($cacheKey);\n if ($responseContent || ($responseContent === '' && !$request->attributes->get('ignore_errors')) ) {\n\n $response = new Response($responseContent);\n $response->headers->set('server_cached', 1);\n $event->setResponse($response);\n\n if ($this->debug) {\n $this->decorateResponse($request, $response, $controller, true);\n }\n\n $fromCache = true;\n }\n\n $this->cachedBlocks[$controller.' - key : '.$cacheKey] = $fromCache;\n }\n }", "public function handlerNeedsRequest()\n {\n }", "protected function handle(Request $request) {}", "function request()\n {\n }", "public function getEventDispatch();", "public function onKernelRequest(GetResponseEvent $event)\n {\n if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {\n return;\n }\n\n $request = $event->getRequest();\n $this->renderer->setRequest($request);\n }", "public function handle($request);", "protected function processGetRequest()\n {\n $this->ajaxDie(json_encode([\n 'success' => true,\n 'operation' => 'get'\n ]));\n }", "abstract public function handleRequest($request);", "public function processRequest();", "public function DispatchRequest ();", "public function processRequest() {\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\n }", "public static function process_http_request()\n {\n }", "public static function getSubscribedEvents()\n {\n return array(KernelEvents::REQUEST => 'onKernelRequestEvent');\n }", "public function processRequest() {\n $action = \"\";\n //retrieve action from client.\n if (filter_has_var(INPUT_GET, 'action')) {\n $action = filter_input(INPUT_GET, 'action');\n }\n\n switch ($action) {\n case 'login':\n $this->login(); \n break;\n case 'register':\n $this->register(); //list all articles\n break;\n case 'search':\n $this->search(); //show a form for an article\n break;\n case 'searchList':\n $this->searchList();\n break;\n case 'remove':\n $this->removeArticle();\n break;\n case 'modify':\n $this->modifyArticle();\n break;\n case 'listCategoryForm':\n $this->listCategoryForm();\n break;\n case 'listCategory':\n $this->listCategory();\n break;\n default :\n break;\n }\n }", "abstract public function processRequest();", "public function RequestLifeCycle(){\n }", "public function requestAction()\n {\n }", "public function setRequestOnHandler($request)\n {\n }", "public function handle(Request $request);", "abstract public function processRequest(PriceWaiter_NYPWidget_Controller_Endpoint_Request $request);", "public function listen() {\n\t\t// Checks the user agents match\n\t\tif ( $this->user_agent == $this->request_user_agent ) {\n\t\t\t// Determine if a key request has been made\n\t\t\tif ( isset( $_GET['key'] ) ) {\n\t\t\t\t$this->download_update();\n\t\t\t} else {\n\t\t\t\t// Determine the action requested\n\t\t\t\t$action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRING );\n\n\t\t\t\t// If that method exists, call it\n\t\t\t\tif ( method_exists( $this, $action ) )\n\t\t\t\t\t$this->{$action}();\n\t\t\t}\n\t\t}\n\t}", "public function request()\n {\n }", "public function request()\n {\n }", "public function onKernelRequest(RequestEvent $event)\n {\n if (!in_array($event->getRequest()->attributes->get('_route'), $this->allowedRoutes, true)) {\n return;\n }\n\n $this->requestListener->onKernelRequest($event);\n }", "public abstract function processRequest();", "public function onKernelRequest(GetResponseEvent $event)\n {\n \n// $request = $event->getRequest();\n //dump($request);\n \n //$request->getSession()->set('_locale', $locale);\n }", "public function onKernelRequest(GetResponseEvent $request)\n {\n $this->xacmlRequest->set(\n $this->category,\n $request->getRequest()->get('_route')\n );\n\n }", "public function onKernelRequest($event)\n {\n // Compatibility with Symfony < 5 and Symfony >=5\n if (!$event instanceof GetResponseEvent && !$event instanceof RequestEvent) {\n throw new InvalidArgumentException('onKernelRequest function only accepts GetResponseEvent and RequestEvent arguments');\n }\n\n if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {\n return;\n }\n\n $this->client->setFallbackType('HTTP');\n\n $this->resolver->set($event->getRequest());\n }", "public function onKernelException()\n {\n echo '<br> something wrong happened ! exeption event listener successfuly fired :D ';\n }", "public function requestRun()\n {\n }", "public static function getSubscribedEvents()\n {\n return [\n KernelEvents::REQUEST => 'onKernelRequest'\n ];\n }", "public function dispatchLoopStartup (Zend_Controller_Request_Abstract $request)\r\n {\r\n if (! $request->isGet()) {\r\n //self::$doNotCache = true;\r\n self::$doCache = false;\r\n return;\r\n }\r\n $path = $request->getPathInfo();\r\n $this->key = md5($path);\r\n // diferente\r\n if (false !== ($response = $this->getCache())) {\r\n $response->sendResponse();\r\n exit();\r\n }\r\n }", "public function onKernelRequestRedirect(RequestEvent $event): void;", "abstract public function request();", "abstract public function handleRequest(Request $request);", "abstract protected function process(Request $request);", "public function onRequest(StreamServerNodeInterface $client, HttpRequest $request);", "public function preDispatch( Zend_Controller_Request_Abstract $request )\n {\n\n }", "public function run() {\r\n $this->routeRequest(new Request());\r\n }", "public function run() {\n\t\t// If this particular request is not a hook, something is wrong.\n\t\tif (!isset($this->server[self::MERGADO_HOOK_AUTH_HEADER])) {\n\t\t\tthrow new \\RuntimeException(sprintf(\n\t\t\t\t\"%s is to be used only for handling hooks sent from Mergado.\n\t\t\t\tMergado-Apps-Hook-Auth is missing.\",\n\t\t\t\t__CLASS__\n\t\t\t));\n\t\t}\n\n\t\tif (!$decoded = json_decode($this->rawRequest, true)) {\n\t\t\tthrow new \\RuntimeException(sprintf(\n\t\t\t\t\"%s cannot handle request, because the data to be handled is empty.\",\n\t\t\t\t__CLASS__\n\t\t\t));\n\t\t} elseif (!isset($decoded['action'])) {\n\t\t\tthrow new \\RuntimeException(sprintf(\n\t\t\t\t\"%s cannot handle the hook, because the hook action is undefined.\",\n\t\t\t\t__CLASS__\n\t\t\t));\n\t\t};\n\n\t\t$this->handle($decoded['action'], $decoded);\n\n\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}", "public function onKernelController(FilterControllerEvent $event)\n {\n $controller = $event->getController();\n\n /**\n * $controller passed can be either a class or a Closure. This is not usual in Symfony2 but it may happien.\n * If it is a class, it comes in array format, so this works as @stof said\n * @see https://github.com/symfony/symfony/issues/1975\n */\n if(!is_array($controller)) return;\n\n /**\n * @todo This works because right now all API actions need a token and are available to all devices.\n * A cleaner method will need to be done if we want to restrict actions depending on agent token.\n * This code gets executed every time, even when a Exception occurs, where Symfony2 executes ExceptionController, so on that case, no actions based on tokens needs to be done\n */\n if($controller[0] instanceof ExceptionController) return;\n if ($controller[0] instanceof CommentAuthenticatedController) {\n $url = parse_url($event->getRequest()->getUri());\n\n $threadId = $this->getThreadId($url);\n if(FALSE !== $threadId) { /* Estamos accediendo a un hilo de comentarios */\n $thread = $this->getThread($threadId);\n if($thread){ // Si el hilo esta creado\n /* Vamos a comprobar si el usuario tiene permisos para visualizar la\n entididad asociada al hilo */\n $entity = $this->em->getRepository($thread->getEntityType())->find($thread->getEntityId());\n if(! $entity || ! $this->sc->isGranted('VIEW',$entity))\n throw new AccessDeniedException();\n }\n }\n\n }\n }", "function handle_request() {\n global $subrosa_config, $cfg, $mt;\n // Initialize SubRosa and handle request\n $subrosa_config = init_subrosa_config();\n\n require_once( 'SubRosa/DebuggingEnv.php' );\n $senv = new SubRosa_DebuggingEnv();\n\n $cfg =& $subrosa_config;\n require_once( $cfg['subrosa_path'] );\n\n apache_setenv('SUBROSA_EVALUATED', 1);\n apache_note('SUBROSA_EVALUATED', '1');\n $_SERVER['SUBROSA_EVALUATED'] = 1;\n $_SESSION['SUBROSA_EVALUATED'] = 1;\n\n $mt = new SubRosa( null, $_SERVER['SUBROSA_BLOG_ID'] );\n if (isset($_GET['debug'])) $mt->debugging = true;\n $mt->bootstrap();\n}", "public function handleRequest() {\n $this->loadErrorHandler();\n\n $this->sanitizeRequest();\n $this->modx->invokeEvent('OnHandleRequest');\n if (!$this->modx->checkSiteStatus()) {\n header('HTTP/1.1 503 Service Unavailable');\n if (!$this->modx->getOption('site_unavailable_page',null,1)) {\n $this->modx->resource = $this->modx->newObject('modDocument');\n $this->modx->resource->template = 0;\n $this->modx->resource->content = $this->modx->getOption('site_unavailable_message');\n } else {\n $this->modx->resourceMethod = \"id\";\n $this->modx->resourceIdentifier = $this->modx->getOption('site_unavailable_page',null,1);\n }\n } else {\n $this->checkPublishStatus();\n $this->modx->resourceMethod = $this->getResourceMethod();\n $this->modx->resourceIdentifier = $this->getResourceIdentifier($this->modx->resourceMethod);\n if ($this->modx->resourceMethod == 'id' && $this->modx->getOption('friendly_urls', null, false) && !$this->modx->getOption('request_method_strict', null, false)) {\n $uri = $this->modx->context->getResourceURI($this->modx->resourceIdentifier);\n if (!empty($uri)) {\n if ((integer) $this->modx->resourceIdentifier === (integer) $this->modx->getOption('site_start', null, 1)) {\n $url = $this->modx->getOption('site_url', null, MODX_SITE_URL);\n } else {\n $url = $this->modx->getOption('site_url', null, MODX_SITE_URL) . $uri;\n }\n $this->modx->sendRedirect($url, array('responseCode' => 'HTTP/1.1 301 Moved Permanently'));\n }\n }\n }\n if (empty ($this->modx->resourceMethod)) {\n $this->modx->resourceMethod = \"id\";\n }\n if ($this->modx->resourceMethod == \"alias\") {\n $this->modx->resourceIdentifier = $this->_cleanResourceIdentifier($this->modx->resourceIdentifier);\n }\n if ($this->modx->resourceMethod == \"alias\") {\n $found = $this->findResource($this->modx->resourceIdentifier);\n if ($found) {\n $this->modx->resourceIdentifier = $found;\n $this->modx->resourceMethod = 'id';\n } else {\n $this->modx->sendErrorPage();\n }\n }\n $this->modx->beforeRequest();\n $this->modx->invokeEvent(\"OnWebPageInit\");\n\n if (!is_object($this->modx->resource)) {\n if (!$this->modx->resource = $this->getResource($this->modx->resourceMethod, $this->modx->resourceIdentifier)) {\n $this->modx->sendErrorPage();\n return true;\n }\n }\n\n return $this->prepareResponse();\n }", "public function onRequest(GetResponseEvent $event)\n {\n if (true === $this->handlerRegistered) {\n return;\n }\n\n $this->handlerRegistered = true;\n\n $this->errorHandler->register();\n }", "public function eventcallback(){\n\n $data = self::validate_request($_POST['signed_request']);\n\n // CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); data after json_decode:' . print_r($data, true));\n /** example\n [issued_at] => 1442959000\n [user_id] => 10015\n [event] => logout\n [algorithm] => HMAC-SHA256\n */\n\n CakeLog::write(LOG_DEBUG, \"Received event from TrueNTH portal: ${data['event']}\");\n\n if ($data['event'] == 'logout'){\n //CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); data[event] == \"logout\"');\n $sessionObj = new DatabaseSessionPlusUserId();\n $deleteResult = $sessionObj->deleteByUserId($data['user_id']);\n CakeLog::write(LOG_DEBUG, \"Event-triggered logout complete\");\n //CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . \"(); just did logout, heres deleteResult: $deleteResult\");\n }\n //else CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); data[event] != \"logout\"');\n\n //CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); done.');\n }", "public function onKernelRequest(RequestEvent $event)\n {\n $this->framework->initialize();\n }", "public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }", "public function request();", "public function onRequest(RequestEvent $event) {\n $request = $event->getRequest();\n $route = $request->attributes->get(RouteObjectInterface::ROUTE_OBJECT);\n if ($route && !$route->getOption('_admin_route')) {\n /** @var \\Drupal\\node\\NodeInterface $node */\n $node = $this->routeMatch->getParameter('node');\n\n if ($node instanceof NodeInterface && $node->getType() == 'class') {\n $active_session = $this->sessionCleaner->getClassActiveSessions($node->id());\n if (empty($active_session)) {\n throw new NotFoundHttpException();\n }\n }\n }\n }", "public function handle(array $request = []);", "public function onKernelTerminate(Event $event) {\n $view_routes = $this->getViewRoutes();\n $action_routes = $this->getActionRoutes();\n\n $request = $event->getRequest();\n $route_name = $request->attributes->get(\\Symfony\\Cmf\\Component\\Routing\\RouteObjectInterface::ROUTE_NAME);\n\n if (in_array($route_name, $view_routes) && ($request->isMethod('GET') || ($request->isXmlHttpRequest() && $request->query->has('_wrapper_format') && $request->query->get('_wrapper_format') === 'drupal_modal'))) {\n $this->analyticsManager->storeView($request);\n }\n\n if (in_array($route_name, $action_routes)) {\n // TODO Need a better name instead of 'action'\n $this->analyticsManager->storeAction('action', $request);\n }\n }", "public function onKernelRequest(GetResponseEvent $event)\n {\n if (!$event->isMasterRequest()) {\n return;\n }\n\n foreach ($this->urlHelper->extractVersionInfo($event->getRequest()) as $entityName => $versions) {\n foreach ($versions as $id => $version) {\n $this->versioning->setVersionToLoad($entityName, $id, $version);\n }\n }\n }", "public static function onKernelRequest(GetResponseEvent $event): void\n {\n $request = $event->getRequest();\n self::runConvertJsonContent($event, $request);\n self::runConvertRange($event, $request);\n }", "public function run(): void\n {\n $requestBody = $this->getConfig()->getInputAdapter()::getParsedBody();\n $request = ServerRequestFactory::fromGlobals(\n $_SERVER,\n $_GET,\n $requestBody,\n $_COOKIE,\n $_FILES\n );\n\n $queue = [];\n\n $queue[] = new \\Middlewares\\Emitter();\n $queue[] = new ErrorHandler([new JsonFormatter()]);\n $queue[] = (new \\Middlewares\\PhpSession())->name('VENUSSESSID')\n ->regenerateId(60); // Prevent session fixation attacks\n\n $queue[] = (new \\Middlewares\\FastRoute(\n $this->getConfig()->getDispatcher()\n ))->attribute('handler');\n\n $queue = array_merge($queue, $this->getConfig()->getMiddlewares());\n\n // Use router access permission check\n if ($this->getConfig()->usePermission()) {\n $queue[] = (new Permission(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n }\n\n $queue[] = (new RequestHandler(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n\n $dispatcher = new Dispatcher($queue);\n $dispatcher->dispatch($request);\n }", "public function onKernelRequest(RequestEvent $event): void\n {\n // Get current request\n $request = $event->getRequest();\n\n // If request has some content and is JSON type convert it to request parameters\n if ($request->getContent() !== '' && $this->isJsonRequest($request)) {\n $this->transformJsonBody($request);\n }\n }", "public function onKernelResponse(FilterResponseEvent $event) {\n\n if (!$event->isMasterRequest()) {\n return;\n }\n }", "public function requestHasBeenHandled()\n {\n $this->requestHandled = true;\n }", "public function __invoke(Request $request)\n {\n \n }", "public static function getSubscribedEvents()\n {\n return array(\n KernelEvents::REQUEST => 'onMatchRequest'\n );\n }", "public function __invoke(RequestEvent $event): void\n {\n // Preparation of request parameters / Possibility to use for logging and caching etc.\n $beforeRequestEvent = new BeforeRequestEvent($event->getRequest());\n $this->eventDispatcher->dispatch($beforeRequestEvent);\n\n $event->setRequest($beforeRequestEvent->getRequest());\n\n if ($beforeRequestEvent->isPropagationStopped() && $beforeRequestEvent->hasResponse()) {\n $event->setResponse($beforeRequestEvent->getResponse());\n return;\n }\n\n $cachedResponse = true;\n\n try {\n $response = $this->httpCachePlugin->handleRequest(\n $event->getRequest(),\n function ($request) use ($beforeRequestEvent, &$cachedResponse) {\n $cachedResponse = false;\n $response = $this->sendRequest($beforeRequestEvent);\n\n return new FulfilledPromise($response);\n },\n function () {\n } // we do not need the plugin to go back\n );\n\n $response->then(\n function ($result) use ($beforeRequestEvent) {\n $beforeRequestEvent->setResponse($result);\n }\n );\n\n $response = $beforeRequestEvent->getResponse();\n } catch (ClientExceptionInterface $e) {\n $response = $this->handleClientException($e, $beforeRequestEvent->getRequest());\n }\n\n try {\n if ($response->getStatusCode() >= 400 && $response->getStatusCode() < 600) {\n throw $this->responseExceptionFactory->createTmdbApiException(\n $beforeRequestEvent->getRequest(),\n $response\n );\n }\n\n $event->setRequest($beforeRequestEvent->getRequest());\n $event->setResponse($response);\n } catch (TmdbApiException $e) {\n $response = $this->handleTmdbApiException($e);\n }\n\n $response = $response->withHeader('X-TMDB-Cache', $cachedResponse ? 'HIT' : 'MISS');\n\n // Possibility to cache the request\n $this->eventDispatcher->dispatch(new ResponseEvent($response, $event->getRequest()));\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }" ]
[ "0.76329505", "0.74589545", "0.70092165", "0.68535024", "0.67821807", "0.67169565", "0.66462696", "0.6640086", "0.65704256", "0.65598416", "0.6531442", "0.6432175", "0.6414128", "0.63948697", "0.6383292", "0.63677174", "0.63521117", "0.6348874", "0.6348874", "0.6348874", "0.62470067", "0.6235114", "0.6210258", "0.6207286", "0.6189493", "0.6183377", "0.6139606", "0.6125652", "0.6085974", "0.6075312", "0.6044636", "0.6037464", "0.6009292", "0.6003932", "0.5976941", "0.5941992", "0.5916094", "0.5915824", "0.58890796", "0.58760947", "0.5850032", "0.58257085", "0.5823387", "0.58045816", "0.5796106", "0.5793863", "0.579352", "0.579146", "0.5775421", "0.5775421", "0.5774151", "0.5758963", "0.57559884", "0.5751201", "0.57308906", "0.57091665", "0.5696477", "0.56913424", "0.5673585", "0.567172", "0.56474966", "0.5634177", "0.561712", "0.5585464", "0.5584754", "0.55796933", "0.557136", "0.5570254", "0.5557249", "0.5556956", "0.5550333", "0.5547298", "0.55460733", "0.55300385", "0.5515796", "0.5514844", "0.5510178", "0.55085284", "0.5504753", "0.5503322", "0.5491744", "0.54678", "0.54613113", "0.5455902", "0.5455219", "0.5454652", "0.5445754", "0.5444719", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437", "0.54364437" ]
0.6032558
32
Update the specified resource in storage. TODO: create request for
public function update(Request $request, $id) { $request = $request->only(['action_brgy', 'action_prosecutor', 'action_court', 'action_investigation']); $report = $this->recordRepository->update($id,$request); return response()->success($report); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function updateStream($resource);", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function update($path);", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update($data) {}", "public function update($data) {}", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function isUpdateResource();", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($entity);", "public function update($entity);", "abstract public function put($data);", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function putStream($resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function setResource($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function updateImg(Request $request,$id)\n {\n $image = $request->file('image');\n $old_image = $request->get('old_image');\n\n $img_name =\"p_\".time().'.'.$image->getClientOriginalExtension();\n $path = $request->image->storeAs('products',$img_name,'public');\n\n $product = Product::find($id);\n $product->image = $path;\n $product->save();\n\n // return $image->getClientOriginalName();\n $exists = Storage::disk('public')->exists($old_image);\n if ($exists) {\n Storage::disk('public')->delete($old_image);\n } \n return $path;\n \n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function store($data, Resource $resource);", "public function update($entity)\n {\n \n }", "public abstract function update($object);", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "protected function update() {}", "public function update($request, $id);", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($entity){ \n //TODO: Implement update record.\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(){\n if ($this->postId != null){\n $this->validate();\n\n /**\n * if change image\n * try to upload image and resize by ImageSaverController config\n * delete old images from upload directory\n */\n if (isset($this->image) && $this->image != null){\n $this->validate(['image' => 'required|image']);\n try {\n $imageSaver = new ImageSaverController();\n $newImagePath = $imageSaver->loadImage($this->image->getRealPath())->saveAllSizes();\n ImageSaverController::DeleteAllPhotos($this->imagePath);\n $this->imagePath = $newImagePath;\n }catch (\\RuntimeException $exception){\n dd($exception);\n }\n }\n\n $this->PostSaver();\n $this->resetAll();\n $this->ChangeUpdateMode();\n $this->swAlert([\n 'title' => 'Good job',\n 'text' => 'successfully updated',\n 'icon' => 'success'\n ]);\n $this->render();\n\n }\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function update(R $request, $id)\n {\n //\n }", "public function update(Request $request, $id)\n {\n \n $datosPost = request()->except(['_token','_method']);\n\n if ($request->hasFile('Foto')){\n\n$Post= Post::findorFail($id);\n \n Storage::delete('public/'.$Post->Foto);\n\n $datosPost['Foto']=$request->file('Foto')->store('uploads', 'public');\n\n\n\n }\n\n Post::where('id', '=', $id)->update($datosPost);\n\n return redirect('VerPosts');\n }", "public function update(Request $request, $id)\n {\n $validation = $request->validate([\n 'name' => 'required',\n 'email' => 'required',\n 'phone' => 'required',\n 'address' => 'required',\n 'city' => 'required',\n 'state' => 'required',\n 'country' => 'required',\n 'shop_name' => 'required',\n 'photo' => 'required'\n ]);\n\n $supplier = Supplier::find($id);\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->phone = $request->phone;\n $supplier->address = $request->address;\n $supplier->city = $request->city;\n $supplier->state = $request->state;\n $supplier->country = $request->country;\n $supplier->shop_name = $request->shop_name;\n $supplier->photo = $request->photo;\n $supplier->status = 1;\n\n $photo = $request->newphoto;\n $old_photo = $supplier->photo;\n if ($photo) {\n if ($old_photo) {\n unlink($old_photo);\n }\n $first_position = strpos($photo, ';');\n $second_position = substr($photo, 0, $first_position);\n $ext = explode('/', $second_position)[1];\n $photo_name = Str::random(20).time().'.'.$ext;\n Image::make($photo)->resize(500, 400)->save(public_path('uploads/suppliers/' . $photo_name));\n $supplier->photo = 'uploads/suppliers/'.$photo_name;\n }\n $supplier->save();\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update()\n {\n abort(404);\n }", "public function update(IEntity $entity);", "public function update(Request $request, $id)\n {\n \\Validator::make($request->all(), [\n 'nama_product' => 'required', 'string', 'max:255', 'min:2',\n 'deskripsi' => 'required', 'string', 'max:255', 'min:8',\n 'stok' => 'required', 'max:1000',\n 'images' => 'file|image|mimes:jpeg,png,jpg',\n 'price' => 'required', 'max:20',\n ])->validate();\n \n $edit_product = Product::findOrFail($id);\n $edit_product->nama_product = $request->get('nama_product');\n $edit_product->deskripsi = $request->get('deskripsi');\n $edit_product->stok = $request->get('stok');\n if($request->file('images')){\n if($edit_product->images && file_exists(storage_path('app/public/' . $edit_product->images))){\n Storage::delete('public/'.$edit_product->images);\n $file = $request->file('images')->store('product_images', 'public');\n $edit_product->images = $file;\n }else{\n if($request->file('images')){\n $file = $request->file('images')->store('product_images', 'public');\n $edit_product->images = $file;\n }\n }\n }\n $edit_product->price = $request->get('price');\n \n if($request->get('status')){\n $edit_product->status = $request->get('status');\n }else{\n $edit_product->status = \"publish\";\n }\n\n \\Auth::user()->productId()->save($edit_product);\n\n return redirect()->route('manage-product.index')->with('status', 'Update Product Success!!');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "function update(IContract $entity);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update($request) {\n\n $request_params = $request->except('_token');\n\n $validate = Validator::make($request_params, $this->update_item_image_rules);\n if ($validate->fails()) {\n return redirect()->back()->withInput($request_params)->with('error_message', $validate->errors()->first());\n }\n\n $image = $this->getItemImageModel()->where('uuid', $request_params['uuid'])->first();\n if (!$image) {\n return redirect()->back()->with('error_message', 'No record found');\n }\n\n $upload = $this->uploadSingleImage($request_params['image'], $this->s3_image_paths['item_images'], 'item_');\n if ($upload['success']) {\n $image->image = $upload['file_name'];\n if ($image->save()) {\n return redirect()->route('showItem', ['uid' => $request_params['item_uuid']])->with('success_message', 'Product image has been uploaded successfully.');\n }\n }\n\n return redirect()->back()->with('error_message', 'Sorry! Something went wrong');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Entity $entity);", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n\n {\n\n\n\n $hasFile = $request->hasFile('cover') && $request->cover->isValid();\n\n $product = Product::find($id);\n\n $product->title = $request->title;\n\n $product->category = '';\n\n $product->category_id = $request->category_id;\n\n $product->description = $request->description;\n\n\n\n $category = Category::where('id', $request->category_id)->first();\n\n\n\n if($category->slug == 'Promociones'){\n\n $product->pricing = '0.0';\n\n $product->promotion_pricing = $request->pricing;\n\n }else{\n\n $product->pricing = $request->pricing;\n\n $product->promotion_pricing = '0.0';\n\n }\n\n\n\n\n\n if ($hasFile) {\n\n $extension = $request->cover->extension();\n Storage::delete(\"images/$product->id.$extension\");\n \n $product->extension = $extension;\n\n }\n\n\n\n ////////////////////////\n\n if ($product->save()) {\n\n\n if ($hasFile) {\n\n $request->cover->storeAs('images', \"$product->id.$extension\");\n\n }\n return redirect(\"/products\");\n \n\n } else {\n\n return view(\"products.edit\", [\"product\" => $product]);\n\n }\n\n }", "public function updateAction()\n {\n// $client = $init->getClient();\n// $init->updateFile($client);\n }", "public function update(Request $request, File $file)\n {\n\n\n Storage::disk('public')->delete([$file->file_name, '/thumb/'.$file->file_name]);\n\n $fileName = Storage::disk('public')->put('',$request->file('file_name'));\n\n $thumbPath = storage_path('app/public/thumb/').$fileName;\n\n $manager = new ImageManager(array('driver' => 'gd'));\n\n\n $img = $manager->make($request->file_name)->resize(100, 100)->save($thumbPath);\n\n\n $file->file_name = $fileName;\n $file->save();\n\n\n return redirect( route('files.index') );\n }", "public function update($object): void;", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public /* void */ function updateResourceMetadata($uri, /* Metadata */ $metadata) {\n $metadata_json = encode_metadata($uri, $metadata);\n\n $client = new Client();\n $request = $client->put($this->getServiceUrl($uri),array(\n \"User-Agent\" => \"Marmotta Client Library (PHP)\",\n \"Content-Type\" => \"application/json; rel=meta\"\n ), $metadata_json);\n // set authentication if given in configuration\n if(!_isset($this->config->getUsername())) {\n $request->setAuth($this->config->getUsername(),$this->config->getPassword());\n }\n $response = $request->send();\n\n if($response->getStatusCode() >= 400) {\n throw new Exception(\"could not update resource $uri; \".$response->getReasonPhrase());\n }\n }", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "public function update(Request $request, $id)\n {\n $update_data=ProductTemplateModel::findOrFail($id);\n $requested_data=$request->all();\n $validation=Validator::make($request->all(),$update_data->product_validation());\n if ($validation->fails()) \n {\n return back()->withInput()->withErrors($validation);\n }\n else\n {\n if($request->hasFile('product_image'))\n {\n $image_type=$request->file('product_image')->getClientOriginalExtension();\n $path=\"backend_asset/images/product/\";\n $name=time().\".\".$image_type;\n $full_path=$path.$name;\n $request->file('product_image')->move($path,$name);\n $requested_data=array_set($requested_data,'product_image',$full_path);\n\n if(File::exists(asset($update_data->product_image)))\n {\n File::delete(asset($update_data->product_image));\n }\n }\n\n $update_data->fill($requested_data)->save();\n Toastr::success('Product Updated Successfully', '', [\"positionClass\" => \"toast-top-right\"]);\n return Redirect::to('/product_template');\n }\n }", "public function testUpdateMetadata1UsingPUT()\n {\n }", "public function update($id)\n {\n Asset::find($id)->update(\n $this->request->except('_token')\n );\n return Redirect::route('asset.index')->with('success','Asset successfully updated.');\n }", "public function update($id, $input);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'displayname' => 'required|min:2|unique:artists,displayname,' . $id,\n ]);\n $artist = Artist::find($id);\n if ($request->file('avatar')) {\n $artist->avatar = FileManager::update($request->file('avatar'), $artist->avatar, '/avatars/artists/');\n }\n $artist->firstname = $request->firstname;\n $artist->lastname = $request->lastname;\n $artist->displayname = $request->displayname;\n $artist->available_disk_space = $request->available_disk_space;\n $artist->save();\n return response()->json(null, 202);\n }" ]
[ "0.7462326", "0.70982933", "0.70144945", "0.68097603", "0.65425545", "0.6425757", "0.6364105", "0.6202005", "0.6147305", "0.61459816", "0.6136034", "0.6094531", "0.60535717", "0.6050696", "0.6047247", "0.6030886", "0.6008545", "0.59801865", "0.59737986", "0.59737986", "0.59670335", "0.5953341", "0.59465915", "0.59457624", "0.59451705", "0.5913315", "0.58809644", "0.58476865", "0.58476865", "0.5834918", "0.58210397", "0.58182925", "0.580408", "0.5801024", "0.57674694", "0.5757975", "0.57498664", "0.57411003", "0.5732497", "0.5732492", "0.57262075", "0.5725603", "0.5724272", "0.57241756", "0.5715089", "0.571277", "0.57025707", "0.56873316", "0.56837106", "0.56801564", "0.56782144", "0.5676453", "0.5676137", "0.56728464", "0.5672221", "0.56721514", "0.56648684", "0.5664768", "0.56622195", "0.56534153", "0.5648731", "0.5647954", "0.56431544", "0.56416667", "0.5639098", "0.5628355", "0.5625982", "0.5620274", "0.5616127", "0.56160975", "0.56145483", "0.56089693", "0.56086177", "0.5608583", "0.5602135", "0.55964047", "0.55944806", "0.55896", "0.55885375", "0.55877745", "0.55851847", "0.5581556", "0.55781406", "0.55758774", "0.5575736", "0.5573559", "0.55692315", "0.5565739", "0.5564714", "0.5560207", "0.5559764", "0.5558065", "0.5554997", "0.55530405", "0.5550968", "0.55484444", "0.55472493", "0.5539829", "0.55381334", "0.55339414", "0.55335593" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $delete = $this->filecategoryRepository->delete($id); return response()->success($delete); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Sets a new organisationSoegEgenskab
public function setOrganisationSoegEgenskab(?\Digitaliseringskataloget\SF1500\Organisation6\Organisationsystem\OrganisationSoegEgenskab $organisationSoegEgenskab = null) { $this->organisationSoegEgenskab = $organisationSoegEgenskab; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setOrganization() {}", "public function setOrganisation($organisation)\n\t{\n\t\t$this->_organisation = $organisation;\n\t}", "function setOrg( $org )\n {\n $org = trim( $org );\n $this->properties['ORG'] = $org;\n }", "private function createOrg()\n {\n\n $this->appReviewOrg = $this->em->getRepository('App:Orgs')->findOneBy(['tag' => self::AppReviewTag]);\n\n if (is_null($this->appReviewOrg)) {\n // Nope. Create it.\n\n $this->appReviewOrg = new Orgs();\n $this->appReviewOrg->setOrgName(self::AppReviewOrg);\n $this->appReviewOrg->setDefaultTz($this->timezone);\n $this->appReviewOrg->setTag(self::AppReviewTag);\n $this->appReviewOrg->setMaxBrcAge(0);\n $this->em->persist($this->appReviewOrg);\n $this->em->flush();\n }\n }", "function Organization( $org )\r\n\t\t{\r\n\t\tif( trim( $org != \"\" ) )\r\n\t\t\t$this->organization= $org;\r\n\t\t}", "public function setOrganization($val)\n {\n $this->_propDict[\"organization\"] = $val;\n return $this;\n }", "public function setItSystemSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\ItSystemSoegEgenskab $itSystemSoegEgenskab = null)\n {\n $this->itSystemSoegEgenskab = $itSystemSoegEgenskab;\n return $this;\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function setOrganizations(?int $value): void {\n $this->getBackingStore()->set('organizations', $value);\n }", "public function setInteressefaellesskabSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\InteressefaellesskabSoegEgenskab $interessefaellesskabSoegEgenskab = null)\n {\n $this->interessefaellesskabSoegEgenskab = $interessefaellesskabSoegEgenskab;\n return $this;\n }", "function setGrupo_estudios($sgrupo_estudios = '')\n {\n $this->sgrupo_estudios = $sgrupo_estudios;\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function __construct(Organisation $organisation)\n {\n $this->organisation = $organisation;\n }", "public function setOrgId($newOrgId) {\n\t//verify the organization id is valid\n\t$newOrgId = filter_var($newOrgId, FILTER_VALIDATE_INT);\n\tif($newOrgId === false) {\n\t\tthrow(new InvalidArgumentException(\"organization id is not a valid integer\"));\n\t}\n\n\t//verify the organization id is positive\n\tif($newOrgId <= 0) {\n\t\tthrow(new RangeException(\"organization if is not positive\"));\n\t}\n\n\t//convert and store the organization id\n\t$this->orgId = intval($newOrgId);\n}", "public function setOrganisationEnhedSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\OrganisationEnhedSoegEgenskab $organisationEnhedSoegEgenskab = null)\n {\n $this->organisationEnhedSoegEgenskab = $organisationEnhedSoegEgenskab;\n return $this;\n }", "public function setIdgrupo_sanguineo($idgrupo_sanguineo){\n $this->idgrupo_sanguineo = $idgrupo_sanguineo;\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "function organization ($org) {\n if(!empty($org)) $this->xheaders['Organization'] = $org;\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testCanSetAndGetOrganizationUrl()\n {\n $mockOrgUrl = 'griidc.org';\n\n $this->dataCenter->setOrganizationUrl($mockOrgUrl);\n\n $this->assertEquals($mockOrgUrl, $this->dataCenter->getOrganizationUrl());\n }", "public function testSetEmailObjetDefaut() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailObjetDefaut(\"emailObjetDefaut\");\n $this->assertEquals(\"emailObjetDefaut\", $obj->getEmailObjetDefaut());\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function setOrgId($newOrgId) {\n\n\t\t//verify the org id is valid\n\t\t$newOrgId = filter_var($newOrgId, FILTER_VALIDATE_INT);\n\t\tif($newOrgId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"org id is not a valid integer\"));\n\t\t}\n\n\t\t//verify the org id is positive\n\t\tif($newOrgId <= 0) {\n\t\t\tthrow(new RangeException(\"org id is not positive\"));\n\t\t}\n\n\t\t//convert and store the org id\n\t\t$this->orgId = intval($newOrgId);\n\t}", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "public function testSetAndGetOrgDefinedID()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the Org Defined ID\r\n $testObj->setOrgDefinedID('myOrgID');\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that Org Defined ID field was updated\r\n $this->assertEquals('myOrgID', $testObj->getOrgDefinedID());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'OrgDefinedID');\r\n }", "public function set_orgaosorigem(orgaosorigem $object)\n {\n $this->orgaosorigem = $object;\n $this->orgaosorigem_id = $object->id;\n }", "public function edit(Org $org)\n {\n //\n }", "public function testContractorWithNewOrganisation()\n {\n\t\t$faker = \\Faker\\Factory::create('en_GB');\n\t\t$faker->seed(10060); // Seed\n\t\t$company = array();\n\t\t$company['name'] = $faker->company;\n\t\t$company['phone'] = $faker->phoneNumber;\n\t\t$company['email'] = $faker->email;\n\t\t$company['website'] = $faker->url;\n\t\t$company['address'] = $faker->streetAddress;\n\t\t$company['postcode'] = $faker->postcode;\n\t\t$company['town'] = $faker->city;\n\n\t\t$faker->seed(10070); // Seed\n\t\t$contact = array();\n\t\t$contact['name'] = $faker->firstName;\n\t\t$contact['surname'] = $faker->lastName;\n\t\t$contact['email'] = $faker->email;\n\t\t$contact['landline'] = $faker->phoneNumber;\n\t\t$contact['mobile'] = $faker->phoneNumber;\n\n\t\t$faker->seed(10071); // Seed\n\t\t$areas = array();\n\t\t$areas[] = array('postcode' => $faker->postcode);\n\t\t$areas[] = array('postcode' => $faker->postcode);\n\t\t$areas[] = array('postcode' => $faker->postcode);\n\t\t$areas[] = array('postcode' => $faker->postcode);\n\n \t$this->loginAs('admin');\n\n\t\t$this->webDriver->wait(10,500)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::id('btn-add-contact')\n\t\t )\n\t\t);\n\n\t\t// Click in btn-add-contact\n\t\t$btnAddContact = $this->webDriver->findElement(\\WebDriverBy::id('btn-add-contact'))->click();\n\n\t\t$this->webDriver->wait(100)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::id('choose_contact_type')\n\t\t )\n\t\t);\n\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('choose_contact_type'))->findElement(\\WebDriverBy::cssSelector(\"option[value='3']\"))->click();\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::id('btn-save-contractor')\n\t\t )\n\t\t);\n\n\t\t// Create organisation\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('a.btn:nth-child(2)'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::id('organisation_name')\n\t\t )\n\t\t);\n\n\t\tsleep(1);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_type'))->findElement(\\WebDriverBy::cssSelector(\"option[value='2']\"))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_name'))->clear()->sendKeys($company['name']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_phone'))->clear()->sendKeys($company['phone']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_email'))->clear()->sendKeys($company['email']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_website'))->clear()->sendKeys($company['website']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_address'))->clear()->sendKeys($company['address']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_postcode'))->clear()->sendKeys($company['postcode']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('organisation_town'))->clear()->sendKeys($company['town']);\n\n\t\t// Save organisation\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('button.btn-success'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::id('contact_title')\n\t\t )\n\t\t);\n\n\t\tsleep(1);\n\n\t\t// Resto de campos\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_title'))->findElement(\\WebDriverBy::cssSelector(\"option[value='2']\"))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_name'))->sendKeys($contact['name']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_surname'))->sendKeys($contact['surname']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_email'))->sendKeys($contact['email']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_landline'))->sendKeys($contact['landline']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_mobile'))->sendKeys($contact['mobile']);\n\n\t\t$this->webDriver->findElement(\\WebDriverBy::xpath(\"//label[contains(text(),'General')]\"))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::xpath(\"//label[contains(text(),'Electrician')]\"))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::xpath(\"//label[contains(text(),'Decorator')]\"))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::xpath(\"//input[@name='contact[require_certification]' and @value=0]\"))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::xpath(\"//input[@name='contact[liability_insurance]' and @value=1]\"))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_status'))->findElement(\\WebDriverBy::cssSelector(\"option[value='1']\"))->click();\n\n\t\t// Editar Areas\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('btn-start-edit-areas'))->click();\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::cssSelector('a.btn-success:nth-child(2)')\n\t\t )\n\t\t);\n\n\t\t// Area #1\n\t\tsleep(1); // wait for knockout\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('.area-distance > option:nth-child(2)'))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('.area-postcode'))->sendKeys($areas[0]['postcode']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-1 > div:nth-child(2) > div:nth-child(1) > a:nth-child(2)'))->click();\n\n\t\t// Area #2\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('btn-new-area'))->click();\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::cssSelector('#area-2 > div:nth-child(2) > div:nth-child(1) > a:nth-child(2)')\n\t\t )\n\t\t);\n\t\tsleep(1); // wait for knockout\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-2 > div:nth-child(1) > div:nth-child(4) > select:nth-child(1) > option:nth-child(3)'))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-2 > div:nth-child(1) > div:nth-child(5) > input:nth-child(1)'))->sendKeys($areas[1]['postcode']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-2 > div:nth-child(2) > div:nth-child(1) > a:nth-child(2)'))->click();\n\n\t\t// Area #3\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('btn-new-area'))->click();\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::cssSelector('#area-3 > div:nth-child(2) > div:nth-child(1) > a:nth-child(2)')\n\t\t )\n\t\t);\n\t\tsleep(1); // wait for knockout\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-3 > div:nth-child(1) > div:nth-child(4) > select:nth-child(1) > option:nth-child(3)'))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-3 > div:nth-child(1) > div:nth-child(5) > input:nth-child(1)'))->sendKeys($areas[2]['postcode']);\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-3 > div:nth-child(2) > div:nth-child(1) > a:nth-child(2)'))->click();\n\n\t\t// Area #4\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('btn-new-area'))->click();\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::cssSelector('#area-4 > div:nth-child(2) > div:nth-child(1) > a:nth-child(2)')\n\t\t )\n\t\t);\n\t\tsleep(1); // wait for knockout\n\n\t\t// Stop edit areas\n\t\t$this->stopEditAreas();\n\n\t\t$message = $this->webDriver->findElement(\\WebDriverBy::cssSelector('#modal-message > div:nth-child(1) > div:nth-child(1) > div:nth-child(2)'));\n\t\t$this->assertContains('There are unsaved changes. Please, save all the areas before continue.', $message->getText());\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('modal-box-btn-close'))->click();\n\n\t\t$this->webDriver->wait(10,500)->until(\n\t\t \\WebDriverExpectedCondition::invisibilityOfElementLocated(\n\t\t \\WebDriverBy::id('modal-message')\n\t\t )\n\t\t);\n\n\t\t$this->webDriver->wait(10,500)->until(\n\t\t\t\\WebDriverExpectedCondition::elementToBeClickable(\n\t\t\t\\WebDriverBy::cssSelector('#area-4 > div:nth-child(2) > div:nth-child(1) > a:nth-child(1)')\n\t\t\t)\n\t\t);\n\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#area-4 > div:nth-child(2) > div:nth-child(1) > a:nth-child(1)'))->click();\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#btn-stop-edit-areas'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t\t\\WebDriverExpectedCondition::elementToBeClickable(\n\t\t\t\\WebDriverBy::id('btn-save-contractor')\n\t\t\t)\n\t\t);\n\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('btn-save-contractor'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::id('btn-add-contact')\n\t\t )\n\t\t);\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::className('alert-success')\n\t\t )\n\t\t);\n\n\t\t$message = $this->webDriver->findElement(\\WebDriverBy::className('alert-success'));\n\n $this->assertContains('Congrats! The contact was created successfully', $message->getText());\n\n sleep(1); // reload table\n\n\t\t/**************************/\n /*** \tVerify record */\n /**************************/\n $this->assertContains($contact['name'], $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(2)\"))->getText());\n $this->assertContains($contact['surname'], $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(3)\"))->getText());\n\n\n // Verify show view\n $this->webDriver->findElement(\\WebDriverBy::cssSelector('#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(8) > div:nth-child(1) > a:nth-child(1)'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::cssSelector('div.pull-right:nth-child(1) > a:nth-child(1)')\n\t\t )\n\t\t);\n\n\t\t$this->assertContains($contact['email'], $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#contact-details-fieldset > div:nth-child(2) > div:nth-child(2)\"))->getText());\n\t\t$this->assertContains($company['address'], $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#address-fieldset > div:nth-child(2) > div:nth-child(2)\"))->getText());\n\t\t$this->assertContains('Unapproved', $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#administration-fieldset > div:nth-child(2) > div:nth-child(2)\"))->getText());\n\n\t\t$this->assertContains('General', $this->webDriver->findElement(\\WebDriverBy::cssSelector(\".form-horizontal > fieldset:nth-child(6) > div:nth-child(2)\"))->getText());\n\t\t$this->assertContains('Decorator', $this->webDriver->findElement(\\WebDriverBy::cssSelector(\".form-horizontal > fieldset:nth-child(6) > div:nth-child(2)\"))->getText());\n\t\t$this->assertContains('Electrician', $this->webDriver->findElement(\\WebDriverBy::cssSelector(\".form-horizontal > fieldset:nth-child(6) > div:nth-child(2)\"))->getText());\n\n\t\t// go to index\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('div.pull-right:nth-child(1) > a:nth-child(1)'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::cssSelector('#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(8) > div:nth-child(1) > a:nth-child(2)')\n\t\t )\n\t\t);\n\n\t\t// Verify edit view\n\t\t$this->webDriver->findElement(\\WebDriverBy::cssSelector('#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(8) > div:nth-child(1) > a:nth-child(2)'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::id('btn-save-contractor')\n\t\t )\n\t\t);\n\n\t\t// Change status\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('contact_status'))->findElement(\\WebDriverBy::cssSelector(\"option[value='2']\"))->click();\n\n\t\t// Save & verify\n\t\t$this->webDriver->findElement(\\WebDriverBy::id('btn-save-contractor'))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::id('btn-add-contact')\n\t\t )\n\t\t);\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::className('alert-success')\n\t\t )\n\t\t);\n\n\t\t$message = $this->webDriver->findElement(\\WebDriverBy::className('alert-success'));\n\n $this->assertContains('Congrats! The contact was updated successfully', $message->getText());\n\n // Verify new status\n $this->assertContains('Pending Approval', $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(5)\"))->getText());\n\n // Click delete\n $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(8) > div:nth-child(1) > a:nth-child(3)\"))->click();\n\n\t\t$this->webDriver->wait(10,500)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::id('modal-message')\n\t\t )\n\t\t);\n\n\t\t$this->webDriver->wait(10,500)->until(\n\t\t \\WebDriverExpectedCondition::elementToBeClickable(\n\t\t \\WebDriverBy::id('btn-delete-contact')\n\t\t )\n\t\t);\n\n // Verify name in popup delete\n $this->assertContains(\"{$contact['name']} {$contact['surname']}\", $this->webDriver->findElement(\\WebDriverBy::cssSelector(\".text-center\"))->getText());\n\n // Delete record\n $this->webDriver->findElement(\\WebDriverBy::cssSelector(\"#btn-delete-contact\"))->click();\n\n\t\t$this->webDriver->wait(10)->until(\n\t\t \\WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(\n\t\t \\WebDriverBy::cssSelector('.alert')\n\t\t )\n\t\t);\n\n\t\tsleep(1); // Wait popup is loaded\n\n\t\t$this->assertContains('Congrats! The contact was deleted successfully', $this->webDriver->findElement(\\WebDriverBy::cssSelector(\".alert\"))->getText());\n\n\t\tsleep(1); // wait table reload\n\n\t\t$elements = $this->webDriver->findElements(\\WebDriverBy::cssSelector(\"#table-javascript > tbody:nth-child(2) > tr:nth-child(13) > td:nth-child(1)\"));\n\n\t\t// Verify record doesn't exist in table.\n\t\t$this->assertCount(0, $elements);\n\n }", "public function setOrganisationFunktionSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\OrganisationFunktionSoegEgenskab $organisationFunktionSoegEgenskab = null)\n {\n $this->organisationFunktionSoegEgenskab = $organisationFunktionSoegEgenskab;\n return $this;\n }", "public function testSetOrganismeCacm() {\n\n $obj = new AttestationCacm();\n\n $obj->setOrganismeCacm(\"organismeCacm\");\n $this->assertEquals(\"organismeCacm\", $obj->getOrganismeCacm());\n }", "public function __construct($organization)\n {\n $this->organization = $organization;\n }", "public function setBrugerSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\BrugerSoegEgenskab $brugerSoegEgenskab = null)\n {\n $this->brugerSoegEgenskab = $brugerSoegEgenskab;\n return $this;\n }", "public function testSetCodeEtablissement() {\n\n $obj = new Employes();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function testCanSetAndGetOrganizationName()\n {\n $mockOrgName = 'GRIIDC';\n\n $this->dataCenter->setOrganizationName($mockOrgName);\n\n $this->assertEquals($mockOrgName, $this->dataCenter->getOrganizationName());\n }", "public function testSetGrilleAnc2() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc2(\"grilleAnc2\");\n $this->assertEquals(\"grilleAnc2\", $obj->getGrilleAnc2());\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "public function testSetSituationFam() {\n\n $obj = new Employes();\n\n $obj->setSituationFam(\"situationFam\");\n $this->assertEquals(\"situationFam\", $obj->getSituationFam());\n }", "public function testSetGrilleAnc3() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc3(\"grilleAnc3\");\n $this->assertEquals(\"grilleAnc3\", $obj->getGrilleAnc3());\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "public static function organization($slug)\n {\n ResourceQuery::$defaultOrganisationSlug = $slug;\n }", "public function testSetAdresseEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setAdresseEmploye(\"adresseEmploye\");\n $this->assertEquals(\"adresseEmploye\", $obj->getAdresseEmploye());\n }", "public function actionUpdate()\n\t{\n\t\t$model=new Companyorganisation();\n\t\t$this->render('update',array(\n\t\t\t\t'model'=>$model,'dataNode'=>$this->GetOrg(),\n\t\t));\n\t}", "public function saveOrgInfo($form) \n {\n $data = array(\n \"toh_org_code\" => strtoupper($form['code']),\n \"toh_org_desc\" => $form['description'],\n \"toh_address\" => $form['address'],\n \"toh_postcode\" => $form['postcode'],\n \"toh_city\" => $form['city'],\n \"toh_state\" => $form['state'],\n \"toh_country\" => $form['country'],\n \"toh_external_agency\" => 'Y',\n );\n\n return $this->db->insert(\"ims_hris.training_organizer_head\", $data);\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "public function setLicense(SetAlbumLicenseRequest $request): void\n\t{\n\t\t$request->album()->license = $request->license();\n\t\t$request->album()->save();\n\t}", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function setObjEducacion($educacion)\n {\n $this->_objEducacion = $educacion;\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function set_escenario(Request $request)\n {\n $transporte_id=$request->get('transporte_id');\n $transporte=Transporte::find($transporte_id);\n $escenario_id=$request->get('escenario');\n $escenario=Escenario::findOrFail($escenario_id);\n $precio=$request->get('precio');\n $transporte->escenarios()->attach($escenario_id,['precio'=>$precio]);\n\n Session::flash('message','Se agregó \"'.$escenario->escenario.'\" al \"'.$transporte->destino.'\", con un costo de $'.$precio.'');\n return redirect()->route('admin.transportes.index');\n }", "public function testSetCodeCentreUrssaf() {\n\n $obj = new Employes();\n\n $obj->setCodeCentreUrssaf(\"codeCentreUrssaf\");\n $this->assertEquals(\"codeCentreUrssaf\", $obj->getCodeCentreUrssaf());\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "public function testSetEmailActiverAideSaisie() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailActiverAideSaisie(true);\n $this->assertEquals(true, $obj->getEmailActiverAideSaisie());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function setOrganiser(CultureFeed_Cdb_Data_Organiser $organiser) {\n $this->organiser = $organiser;\n }", "public function testSetGroupeQualifiant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setGroupeQualifiant(\"groupeQualifiant\");\n $this->assertEquals(\"groupeQualifiant\", $obj->getGroupeQualifiant());\n }", "public function __construct() {\n\t\t$this->orgModel = new OrgModel(); // TODO: \n\t }", "public function testSetGrilleAnc1() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc1(\"grilleAnc1\");\n $this->assertEquals(\"grilleAnc1\", $obj->getGrilleAnc1());\n }", "public function CreateTaphonomyOrgAdmin()\n {\n // Test user login\n $user = ['email' => '[email protected]', 'password' => 'Password!23'];\n $this->browse(function ($browser) use ($user) {\n $browser->visit(new loginPage)\n ->loginUser($user['email'], $user['password'])\n ->assertSee('Welcome');\n\n // Skeletal elements search set up\n $browser->visit(new specimenPage)\n ->pause(1000)\n ->select('@search-type-selector','SE-P1')\n ->pause(1000)\n ->type('@cora-search','888')\n ->keys('@cora-search','{enter}')\n\n // Search Result Assertions for humerus ABC999-888-777-555\n ->waitForLink('ABC999-888-777-555')\n ->assertSeeLink('ABC999-888-777-555')\n ->assertSee('Humerus')\n ->assertSee('Left')\n ->assertSee('Bone')\n ->assertSee('Side')\n ->assertSee('DNA Sampled')\n\n // Specimen Assertions\n ->clickLink('ABC999-888-777-555')\n ->assertSee('View Specimen - ABC999-888-777-555')\n ->click('@se-details-menu')\n ->click('@se-taphonomys-menu')\n ->assertSee('Taphonomies: ABC999-888-777-555')\n ->assertPathIs('/skeletalelements/1220/taphonomys')\n\n // Open Edit Functions\n ->click('@se-taphonomys-menu')\n ->click('@taphonomy-actions-edit')\n ->assertSee('Taphonomies: ABC999-888-777-555')\n ->assertSee('Save')\n ->assertPathIs('/skeletalelements/1220/associatetaphonomys')\n\n // Add and Save a new taphonomy\n ->select('@se-taphonomy-list','Adherent Materials-Iron')\n ->click('@se-taphonomy-save')\n ->acceptDialog()\n ->assertSee('Taphonomies successfully associated')\n ->assertPathIs('/skeletalelements/1220/associatetaphonomys')\n\n ->logoutUser();\n });\n }", "public function setGroup($value) {\n$allowed = ['house', 'school', 'work', 'family'];\nif (!in_array($value, $allowed))\n throw new Exception('Please choose one of the valid groups');\n$this->group = $value;\nreturn $this;\n}", "public function testSetAnnulationFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationFournisseur(true);\n $this->assertEquals(true, $obj->getAnnulationFournisseur());\n }", "public function testSetEmploi() {\n\n $obj = new Employes();\n\n $obj->setEmploi(\"emploi\");\n $this->assertEquals(\"emploi\", $obj->getEmploi());\n }", "public function testSetEmailTete() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailTete(\"emailTete\");\n $this->assertEquals(\"emailTete\", $obj->getEmailTete());\n }", "public function setEdicion($edicion)\n {\n $this->edicion = $edicion;\n }", "public function testOrganization()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->type('email', '[email protected]')\n ->type('password', 'password') // Enter plain password\n ->press('Login')\n ->visit(new Pages\\OrganizationPage)\n ->assertSee('Add Organization');\n });\n }", "public function modify ($est){\r\n \r\n $sql = \"UPDATE ESTADO_USUARIO SET cod_estado = \".$est->getCod_estado().\", \r\n nom_estado = '\".$est->getNom_estado().\"' \r\n where cod_estado = \".$est->getCod_estado().\";\";\r\n pg_Exec($this->conexion,$sql);\r\n }", "public function testSetSelectionFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionFournisseur(\"selectionFournisseur\");\n $this->assertEquals(\"selectionFournisseur\", $obj->getSelectionFournisseur());\n }", "public function setSabor(Request $request)\n {\n $element = TcSabor::create($request->all());\n return response()->json($element, 201);\n }", "public function addOrga(OrgaInterface $orga);", "public function testSetEtat() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "private function _setEnseigne($enseigne)\n {\n $this->_enseigne = $enseigne;\n\n return $this;\n }", "public function setEmenta($ementa)\n {\n $this->ementa = $ementa;\n\n return $this;\n }", "public function setAppOwnerOrganizationId($val)\n {\n $this->_propDict[\"appOwnerOrganizationId\"] = $val;\n return $this;\n }", "public function testSetLibelle() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function editOrganizationAction()\n {\n \n $this->view->postUrl=$this->getRequest()->getRequestUri();\n $id = $this->_getParam('id');\n $guid = $this->_getParam('guid');\n \n $model1 = new Admin_Model_Organization();\n $model = $model1->fetchRow(\"id='{$id}' and row_guid='{$guid}'\");\n //$model = $model1->find($id);\n if(false===$model)\n {\n $this->_flashMessenger->addMessage(array('error'=>'Invalid request! Please try again.'));\n $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/admin/organization/create-organization')); \n }\n $options['firstName'] = $model->getFirstName();\n $options['organizationName'] = $model->getorganizationName();\n $options['orgName'] = $model->getorgName();\n $options['lastName'] = $model->getLastName();\n $options['email'] = $model->getEmail();\n \n $options['phone'] = $model->getPhone();\n $options['fax'] = $model->getFax();\n $options['zip'] = $model->getZip();\n $options['city'] = $model->getCity();\n $options['state'] = $model->getState();\n $options['address1'] = $model->getAddress1();\n $options['address2'] = $model->getAddress2();\n $options['submit'] = 'Update';\n \n //$this->view->username = $model->getUsername();\n\t\t \t\n $request = $this->getRequest();\n $form = new Admin_Form_Organization();\n $elements=$form->getElements();\n $form->clearDecorators();\n\n foreach($elements as $element)\n {\n $element->removeDecorator('label');\n //$element->removeDecorator('Errors');\n } \n\n /*$form->removeElement('username');\n $form->removeElement('password');\n $form->removeElement('confirmPassword');*/\n \n $usersNs = new Zend_Session_Namespace(\"members\");\n if($usersNs ->userId==$id)\n {\n //$form->removeElement('groupId');\n //$form->removeElement('subGroupId');\n //$form->removeElement('roleId');\n $form->removeElement('status'); \n }\t\t\n \n /*$modelP\t= new Base_Security_Privilege();\n $arrSubgroup = $modelP->getSubGroupArray($model->getGroupId());\n \n $form->getElement(\"subGroupId\")->addMultiOptions( $arrSubgroup );\n $form->populate($options);\n \n $arrUserRole = $modelP->getRoleArray($model->getSubGroupId());\n $form->getElement(\"roleId\")->addMultiOptions( $arrUserRole );\n */\n \n $form->populate($options);\n \n $options=$request->getPost();\n if ($request->isPost()) \n { \n /*---- email validation ----*/\n if($options['email']!=$model->getEmail())\n {\n \n $form->getElement('email')->addValidators(array(\n array('Db_NoRecordExists', false, array(\n 'table' => 'user',\n 'field' => 'email',\n 'messages'=>'Email already exists, Please choose another email address.'\n ))\n ));\n }\n \n /*-------------------------*/\n\t\t\t\n /*$modelP\t= new Base_Security_Privilege();\n $arrSubgroup = $modelP->getSubGroupArray($options['groupId']);\n\n $form->getElement(\"subGroupId\")->addMultiOptions( $arrSubgroup );\n $form->populate($options);\n\n $arrUserRole = $modelP->getRoleArray($options['subGroupId']);\n $form->getElement(\"roleId\")->addMultiOptions( $arrUserRole );\n */\n \n if ($form->isValid($options))\n {\n $model->setOptions($options);\n $model->save();\n /*--------- Upload image START -------------------------*/\n //$model->uploadProfilePicture($id,$options);\n /*--------- Upload image END -------------------------*/\n $this->_flashMessenger->addMessage(array('success'=>'Organization information has been updated successfully!'));\n $this->_helper->_redirector->gotoUrl($this->view->seoUrl($this->view->postUrl)); \n }\n else\n {\n $this->_flashMessenger->addMessage(array('error'=>'Unable to save the data. Please provide valid inputs and try again.'));\n $form->reset();\n $form->populate($options);\n } \t\t\n }\n //$this->view->profile_image=$model->getProfileImage();\n $this->view->form\t\t=\t$form;\n }", "public function testSetSatisfactionGenerale() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setSatisfactionGenerale(\"satisfactionGenerale\");\n $this->assertEquals(\"satisfactionGenerale\", $obj->getSatisfactionGenerale());\n }", "public function editorganization(organizationClass $info,$username)\n {\n $values = array();\n //Query To Update Branch Into Branch Table\n $sqlUpdate=\"UPDATE organization SET organization_email= '\".$info->getOrganizationEmail().\"',organization_name= '\".$info->getOrganizationName().\"',organization_password='\".$info->getOrganizationPassword().\"' WHERE organization_username ='\".$username.\"' \";\n \n //Query To Update Represent Password Into Org_Represent Table\n $sqlUpdateRepresent=\"UPDATE org_represent SET password= '\".$info->getOrganizationPassword().\"' WHERE username ='\".$username.\"' \";\n \n $this->execute($sqlUpdate,$values);\n \n $this->execute($sqlUpdateRepresent,$values);\n }", "public function initialize()\n\t{\n\t // attributes\n\t\t$this->setName('organisatie');\n\t\t$this->setPhpName('Organisatie');\n\t\t$this->setClassname('Organisatie');\n\t\t$this->setPackage('CRM_TI');\n\t\t$this->setUseIdGenerator(true);\n\t\t// columns\n\t\t$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);\n\t\t$this->addColumn('NAAM', 'Naam', 'VARCHAR', true, 255, null);\n\t\t$this->addColumn('POSTBUS_POST', 'PostbusPost', 'VARCHAR', false, 64, null);\n\t\t$this->addColumn('POSTCODE_POST', 'PostcodePost', 'VARCHAR', false, 16, null);\n\t\t$this->addColumn('STAD_POST', 'StadPost', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('STRAAT_BEZOEK', 'StraatBezoek', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('NUMMER_BEZOEK', 'NummerBezoek', 'VARCHAR', false, 16, null);\n\t\t$this->addColumn('POSTCODE_BEZOEK', 'PostcodeBezoek', 'VARCHAR', false, 16, null);\n\t\t$this->addColumn('STAD_BEZOEK', 'StadBezoek', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('TELEFOON_ALGEMEEN', 'TelefoonAlgemeen', 'VARCHAR', false, 32, null);\n\t\t$this->addColumn('WEBSITE', 'Website', 'VARCHAR', false, 255, null);\n\t\t$this->addForeignKey('PROVINCIE_ID', 'ProvincieId', 'INTEGER', 'provincie', 'ID', false, null, null);\n\t\t$this->addForeignKey('TYPE_ID', 'TypeId', 'INTEGER', 'organisatie_type', 'ID', false, null, null);\n\t\t$this->addColumn('DELETED_AT', 'DeletedAt', 'TIMESTAMP', false, null, null);\n\t\t// validators\n\t\t$this->addValidator('NAAM', 'unique', 'propel.validator.UniqueValidator', '', 'Organisatienamen mogen niet identiek zijn');\n\t\t$this->addValidator('NAAM', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De organisatienaam mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('NAAM', 'required', 'propel.validator.RequiredValidator', '', 'De organisatienaam opgeven is verplicht');\n\t\t$this->addValidator('POSTBUS_POST', 'maxLength', 'propel.validator.MaxLengthValidator', '64', 'De postbus mag niet langer dan 64 tekens zijn');\n\t\t$this->addValidator('POSTCODE_POST', 'maxLength', 'propel.validator.MaxLengthValidator', '16', 'De postcode van het postadres mag niet langer dan 16 tekens zijn');\n\t\t$this->addValidator('STAD_POST', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De stad van het postadres mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('STRAAT_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De straatnaam van het bezoekadres mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('NUMMER_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '16', 'Het nummer van het bezoekadres mag niet langer dan 16 tekens zijn');\n\t\t$this->addValidator('POSTCODE_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '16', 'De postcode van het bezoekadres mag niet langer dan 16 tekens zijn');\n\t\t$this->addValidator('STAD_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De stad van het bezoekadres mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('TELEFOON_ALGEMEEN', 'maxLength', 'propel.validator.MaxLengthValidator', '32', 'Het algemene telefoonnummer mag niet langer dan 32 tekens zijn');\n\t\t$this->addValidator('WEBSITE', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De website mag niet langer dan 255 tekens zijn');\n\t}", "public function testSetCodeEmploye() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "function socialAlertSet($opt){\n\n\tif($opt['debug']) $this->pre($opt);\n\n\t# NEW !\n\t#\n\tif($opt['id_socialalert'] == NULL){\n\t\t$this->dbQuery(\"INSERT INTO k_socialalert (socialAlertName) VALUES ('TEMP+NAME')\");\n\t\tif($opt['debug']) $this->pre($this->db_query, $this->db_error);\n\t\n\t\t$id_socialalert = $this->db_insert_id;\n\t}else{\n\t\t$id_socialalert = $opt['id_socialalert'];\n\t}\n\t$this->id_socialalert\t= $id_socialalert;\n\n\n\t# CORE\n\t#\n\t$query = $this->dbUpdate(array('k_socialalert' => $opt['core'])).\" WHERE id_socialalert=\".$id_socialalert;\n\t$this->dbQuery($query);\n\tif($opt['debug']) $this->pre(\"QUERY\", $this->db_query, \"ERROR\", $this->db_error);\n\n\t# FIELD\n\t#\n\tif(sizeof($opt['field']) > 0){\n\n\t\t# Si on utilise le KEY au lieu des ID\n\t\t$fields = $this->apiLoad('field')->fieldGet(array('socialAlert' => true));\n\t\tforeach($fields as $e){\n\t\t\t$fieldsKey[$e['fieldKey']] = $e;\n\t\t} $fields = $fieldsKey;\n\n\t\tunset($def);\n\t\t$apiField = $this->apiLoad('field');\n\n\t\tforeach($opt['field'] as $id_field => $value){\n\t\t\tif(!is_integer($id_field)) $id_field = $fields[$id_field]['id_field'];\n\t\t\t\n\t\t\tif(intval($id_field) > 0){\n\t\t\t\t$value = $apiField->fieldSaveValue($id_field, $value);\n\t\t\t\t$def['k_socialalert']['field'.$id_field] = array('value' => $value);\n\t\t\t}\n\t\t}\n\n\t\t$this->dbQuery($this->dbUpdate($def).\" WHERE id_socialalert=\".$id_socialalert);\n\t\tif($opt['debug']) $this->pre($this->db_query, $this->db_error);\n\t}\n\n\treturn true;\n}", "public function saveUpdOrgInfo($form, $code) \n {\n $data = array(\n \"toh_org_desc\" => $form['description'],\n \"toh_address\" => $form['address'],\n \"toh_postcode\" => $form['postcode'],\n \"toh_city\" => $form['city'],\n \"toh_state\" => $form['state'],\n \"toh_country\" => $form['country'],\n );\n\n $this->db->where(\"UPPER(toh_org_code) = UPPER('$code')\");\n\n return $this->db->update(\"ims_hris.training_organizer_head\", $data);\n }", "public function testSetEmailNbJAgMini() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailNbJAgMini(10);\n $this->assertEquals(10, $obj->getEmailNbJAgMini());\n }", "public function testSetNiveauConfidentialite() {\n\n $obj = new Employes();\n\n $obj->setNiveauConfidentialite(\"niveauConfidentialite\");\n $this->assertEquals(\"niveauConfidentialite\", $obj->getNiveauConfidentialite());\n }", "public function set_element($elm) {\n $this->elements[$elm->id] = $elm;\n }", "public function testSetEmailAuteur() {\n\n $obj = new AppelsEnCours();\n\n $obj->setEmailAuteur(\"emailAuteur\");\n $this->assertEquals(\"emailAuteur\", $obj->getEmailAuteur());\n }", "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function actionCreate()\n\t{\n\n\t\t$model=new Companyorganisation;\n\t\tif(isset($_POST['Companyorganisation']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Companyorganisation'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->fOrgNo));\n\t\t}\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function testSetGestionMajNuit() {\n\n $obj = new Employes();\n\n $obj->setGestionMajNuit(\"gestionMajNuit\");\n $this->assertEquals(\"gestionMajNuit\", $obj->getGestionMajNuit());\n }", "public function testSetPersonneAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setPersonneAPrevenir(\"personneAPrevenir\");\n $this->assertEquals(\"personneAPrevenir\", $obj->getPersonneAPrevenir());\n }", "public function setSoapPostFromAfaOrgId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->soap_post_from_afa_org_id !== $v) {\n\t\t\t$this->soap_post_from_afa_org_id = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::SOAP_POST_FROM_AFA_ORG_ID;\n\t\t}\n\n\t\treturn $this;\n\t}", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "abstract public function set();", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function testSetCodeAt() {\n\n $obj = new Employes();\n\n $obj->setCodeAt(10);\n $this->assertEquals(10, $obj->getCodeAt());\n }" ]
[ "0.6576829", "0.63408273", "0.5999782", "0.5829549", "0.5674935", "0.56554294", "0.5598285", "0.5594129", "0.542648", "0.5425764", "0.5354668", "0.5299996", "0.52609926", "0.5252325", "0.5242178", "0.5239741", "0.522871", "0.52141994", "0.52040774", "0.519952", "0.5193937", "0.51671475", "0.51407963", "0.51349914", "0.5108498", "0.5098649", "0.5088696", "0.50830644", "0.5057163", "0.50500244", "0.50378156", "0.50333065", "0.5016499", "0.5007097", "0.5005215", "0.5004536", "0.5002572", "0.49850848", "0.498309", "0.49744806", "0.4967606", "0.4966939", "0.4954539", "0.49535045", "0.493382", "0.49279928", "0.49171868", "0.49165124", "0.4902897", "0.48918796", "0.48831674", "0.4879858", "0.48753518", "0.48630324", "0.48506743", "0.48493522", "0.48478767", "0.48434097", "0.48429546", "0.4835185", "0.4832811", "0.48323667", "0.48271078", "0.48238897", "0.48230723", "0.48201582", "0.48166078", "0.48160136", "0.4808399", "0.4794712", "0.4792878", "0.4785945", "0.47850755", "0.4784862", "0.47707406", "0.47644863", "0.47504002", "0.47456485", "0.47434306", "0.4739748", "0.47313693", "0.47300872", "0.4724684", "0.4723166", "0.47192904", "0.47135568", "0.47087836", "0.47046962", "0.4704568", "0.4697471", "0.4694558", "0.46833733", "0.46824855", "0.4681224", "0.46783304", "0.46699947", "0.46690017", "0.46689028", "0.46689028", "0.46658567" ]
0.58004093
4
Sets a new organisationEnhedSoegEgenskab
public function setOrganisationEnhedSoegEgenskab(?\Digitaliseringskataloget\SF1500\Organisation6\Organisationsystem\OrganisationEnhedSoegEgenskab $organisationEnhedSoegEgenskab = null) { $this->organisationEnhedSoegEgenskab = $organisationEnhedSoegEgenskab; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setOrganization() {}", "public function setOrganisationSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\OrganisationSoegEgenskab $organisationSoegEgenskab = null)\n {\n $this->organisationSoegEgenskab = $organisationSoegEgenskab;\n return $this;\n }", "public function setOrganisation($organisation)\n\t{\n\t\t$this->_organisation = $organisation;\n\t}", "public function setInteressefaellesskabSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\InteressefaellesskabSoegEgenskab $interessefaellesskabSoegEgenskab = null)\n {\n $this->interessefaellesskabSoegEgenskab = $interessefaellesskabSoegEgenskab;\n return $this;\n }", "public function setItSystemSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\ItSystemSoegEgenskab $itSystemSoegEgenskab = null)\n {\n $this->itSystemSoegEgenskab = $itSystemSoegEgenskab;\n return $this;\n }", "function setOrg( $org )\n {\n $org = trim( $org );\n $this->properties['ORG'] = $org;\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "private function _setEnseigne($enseigne)\n {\n $this->_enseigne = $enseigne;\n\n return $this;\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "private function createOrg()\n {\n\n $this->appReviewOrg = $this->em->getRepository('App:Orgs')->findOneBy(['tag' => self::AppReviewTag]);\n\n if (is_null($this->appReviewOrg)) {\n // Nope. Create it.\n\n $this->appReviewOrg = new Orgs();\n $this->appReviewOrg->setOrgName(self::AppReviewOrg);\n $this->appReviewOrg->setDefaultTz($this->timezone);\n $this->appReviewOrg->setTag(self::AppReviewTag);\n $this->appReviewOrg->setMaxBrcAge(0);\n $this->em->persist($this->appReviewOrg);\n $this->em->flush();\n }\n }", "public function setOrganization($val)\n {\n $this->_propDict[\"organization\"] = $val;\n return $this;\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "function Organization( $org )\r\n\t\t{\r\n\t\tif( trim( $org != \"\" ) )\r\n\t\t\t$this->organization= $org;\r\n\t\t}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "public function testSetEmailObjetDefaut() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailObjetDefaut(\"emailObjetDefaut\");\n $this->assertEquals(\"emailObjetDefaut\", $obj->getEmailObjetDefaut());\n }", "public function setBrugerSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\BrugerSoegEgenskab $brugerSoegEgenskab = null)\n {\n $this->brugerSoegEgenskab = $brugerSoegEgenskab;\n return $this;\n }", "public function testSetCodeEtablissement() {\n\n $obj = new Employes();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function setOrganisationFunktionSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\OrganisationFunktionSoegEgenskab $organisationFunktionSoegEgenskab = null)\n {\n $this->organisationFunktionSoegEgenskab = $organisationFunktionSoegEgenskab;\n return $this;\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "public function setEdicion($edicion)\n {\n $this->edicion = $edicion;\n }", "public function setOrgId($newOrgId) {\n\t//verify the organization id is valid\n\t$newOrgId = filter_var($newOrgId, FILTER_VALIDATE_INT);\n\tif($newOrgId === false) {\n\t\tthrow(new InvalidArgumentException(\"organization id is not a valid integer\"));\n\t}\n\n\t//verify the organization id is positive\n\tif($newOrgId <= 0) {\n\t\tthrow(new RangeException(\"organization if is not positive\"));\n\t}\n\n\t//convert and store the organization id\n\t$this->orgId = intval($newOrgId);\n}", "public function testSetAdresseEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setAdresseEmploye(\"adresseEmploye\");\n $this->assertEquals(\"adresseEmploye\", $obj->getAdresseEmploye());\n }", "function setGrupo_estudios($sgrupo_estudios = '')\n {\n $this->sgrupo_estudios = $sgrupo_estudios;\n }", "public function setEmenta($ementa)\n {\n $this->ementa = $ementa;\n\n return $this;\n }", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function setOrganizations(?int $value): void {\n $this->getBackingStore()->set('organizations', $value);\n }", "public function testSetEtage() {\n\n $obj = new DevisZbe();\n\n $obj->setEtage(\"etage\");\n $this->assertEquals(\"etage\", $obj->getEtage());\n }", "public function testSetEmailTete() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailTete(\"emailTete\");\n $this->assertEquals(\"emailTete\", $obj->getEmailTete());\n }", "public function testSetGrilleAnc3() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc3(\"grilleAnc3\");\n $this->assertEquals(\"grilleAnc3\", $obj->getGrilleAnc3());\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "public function setEstab_id($estab_id)\n {\n $this->estab_id = $estab_id;\n\n return $this;\n }", "private function setEC(EC $ec) {\n $this->ec = $ec;\n }", "public function setObjEducacion($educacion)\n {\n $this->_objEducacion = $educacion;\n }", "public function setOrgId($newOrgId) {\n\n\t\t//verify the org id is valid\n\t\t$newOrgId = filter_var($newOrgId, FILTER_VALIDATE_INT);\n\t\tif($newOrgId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"org id is not a valid integer\"));\n\t\t}\n\n\t\t//verify the org id is positive\n\t\tif($newOrgId <= 0) {\n\t\t\tthrow(new RangeException(\"org id is not positive\"));\n\t\t}\n\n\t\t//convert and store the org id\n\t\t$this->orgId = intval($newOrgId);\n\t}", "public function testSetCodeCentreUrssaf() {\n\n $obj = new Employes();\n\n $obj->setCodeCentreUrssaf(\"codeCentreUrssaf\");\n $this->assertEquals(\"codeCentreUrssaf\", $obj->getCodeCentreUrssaf());\n }", "public function set_escenario(Request $request)\n {\n $transporte_id=$request->get('transporte_id');\n $transporte=Transporte::find($transporte_id);\n $escenario_id=$request->get('escenario');\n $escenario=Escenario::findOrFail($escenario_id);\n $precio=$request->get('precio');\n $transporte->escenarios()->attach($escenario_id,['precio'=>$precio]);\n\n Session::flash('message','Se agregó \"'.$escenario->escenario.'\" al \"'.$transporte->destino.'\", con un costo de $'.$precio.'');\n return redirect()->route('admin.transportes.index');\n }", "public function __construct(Organisation $organisation)\n {\n $this->organisation = $organisation;\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "public function testSetCodeEtablissement() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function testSetGrilleAnc2() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc2(\"grilleAnc2\");\n $this->assertEquals(\"grilleAnc2\", $obj->getGrilleAnc2());\n }", "public function testSetEtat() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function set_element($elm) {\n $this->elements[$elm->id] = $elm;\n }", "public function testSetGrilleAnc1() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc1(\"grilleAnc1\");\n $this->assertEquals(\"grilleAnc1\", $obj->getGrilleAnc1());\n }", "public function setOferta($oferta)\n {\n $this->oferta = $this->db->real_escape_string($oferta);\n\n return $this;\n }", "public function testSetEmailActiverAideSaisie() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailActiverAideSaisie(true);\n $this->assertEquals(true, $obj->getEmailActiverAideSaisie());\n }", "public function testCanSetAndGetOrganizationUrl()\n {\n $mockOrgUrl = 'griidc.org';\n\n $this->dataCenter->setOrganizationUrl($mockOrgUrl);\n\n $this->assertEquals($mockOrgUrl, $this->dataCenter->getOrganizationUrl());\n }", "public function testSetEmploi() {\n\n $obj = new Employes();\n\n $obj->setEmploi(\"emploi\");\n $this->assertEquals(\"emploi\", $obj->getEmploi());\n }", "public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}", "public function testSetNiveauConfidentialite() {\n\n $obj = new Employes();\n\n $obj->setNiveauConfidentialite(\"niveauConfidentialite\");\n $this->assertEquals(\"niveauConfidentialite\", $obj->getNiveauConfidentialite());\n }", "public function testSetAndGetOrgDefinedID()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the Org Defined ID\r\n $testObj->setOrgDefinedID('myOrgID');\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that Org Defined ID field was updated\r\n $this->assertEquals('myOrgID', $testObj->getOrgDefinedID());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'OrgDefinedID');\r\n }", "public function testSetAllegParticulier() {\n\n $obj = new Employes();\n\n $obj->setAllegParticulier(true);\n $this->assertEquals(true, $obj->getAllegParticulier());\n }", "public function testSetCodeCollaborateurEntrant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurEntrant(\"codeCollaborateurEntrant\");\n $this->assertEquals(\"codeCollaborateurEntrant\", $obj->getCodeCollaborateurEntrant());\n }", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "public function testSetEtblMail() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblMail(\"etblMail\");\n $this->assertEquals(\"etblMail\", $obj->getEtblMail());\n }", "public function testSetFractionEtab() {\n\n $obj = new Employes();\n\n $obj->setFractionEtab(\"fractionEtab\");\n $this->assertEquals(\"fractionEtab\", $obj->getFractionEtab());\n }", "public function setIetf(string $ietf) : self\n {\n $this->initialized['ietf'] = true;\n $this->ietf = $ietf;\n return $this;\n }", "public function testSetSituationFam() {\n\n $obj = new Employes();\n\n $obj->setSituationFam(\"situationFam\");\n $this->assertEquals(\"situationFam\", $obj->getSituationFam());\n }", "public function testSetOrphelin() {\n\n $obj = new Employes();\n\n $obj->setOrphelin(true);\n $this->assertEquals(true, $obj->getOrphelin());\n }", "public function setEdicao($edicao)\n\t\t{\n\t\t\t\t$this->edicao = $edicao;\n\t\t}", "public function testSetAnnulationFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationFournisseur(true);\n $this->assertEquals(true, $obj->getAnnulationFournisseur());\n }", "public function setEcart($ecart)\n {\n $this->ecart = $ecart;\n\n return $this;\n }", "public function testSetCodeEmploye() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function testSetPersonneAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setPersonneAPrevenir(\"personneAPrevenir\");\n $this->assertEquals(\"personneAPrevenir\", $obj->getPersonneAPrevenir());\n }", "public function testSetNombreEnfants() {\n\n $obj = new Employes();\n\n $obj->setNombreEnfants(\"nombreEnfants\");\n $this->assertEquals(\"nombreEnfants\", $obj->getNombreEnfants());\n }", "function organization ($org) {\n if(!empty($org)) $this->xheaders['Organization'] = $org;\n }", "public function setEid($eid) {\n $this->eid = $eid;\n }", "public function testSetEmailAuteur() {\n\n $obj = new AppelsEnCours();\n\n $obj->setEmailAuteur(\"emailAuteur\");\n $this->assertEquals(\"emailAuteur\", $obj->getEmailAuteur());\n }", "public function set_orgaosorigem(orgaosorigem $object)\n {\n $this->orgaosorigem = $object;\n $this->orgaosorigem_id = $object->id;\n }", "public function testSetEmail() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmail(\"email\");\n $this->assertEquals(\"email\", $obj->getEmail());\n }", "public function __construct() {\n\t\t$this->orgModel = new OrgModel(); // TODO: \n\t }", "public function testSetNumeroEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroEmploye(\"numeroEmploye\");\n $this->assertEquals(\"numeroEmploye\", $obj->getNumeroEmploye());\n }", "public function testSetLibelle() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "function setEmail($newEmail){\n $this->email = $newEmail;\n }", "public function testSetEmailNbJAgMini() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailNbJAgMini(10);\n $this->assertEquals(10, $obj->getEmailNbJAgMini());\n }", "public function testSetOrganismeCacm() {\n\n $obj = new AttestationCacm();\n\n $obj->setOrganismeCacm(\"organismeCacm\");\n $this->assertEquals(\"organismeCacm\", $obj->getOrganismeCacm());\n }", "public function setEtblCommune($etblCommune) {\n $this->etblCommune = $etblCommune;\n return $this;\n }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "public function setEmail($newEmail){\n\t}", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function testSetGestionMajNuit() {\n\n $obj = new Employes();\n\n $obj->setGestionMajNuit(\"gestionMajNuit\");\n $this->assertEquals(\"gestionMajNuit\", $obj->getGestionMajNuit());\n }", "public function setEstudiante( $estudiante ){\n\t\t\t$this->estudiante = $estudiante;\n\t\t}", "public function setEstudiante( $estudiante ){\n\t\t$this->estudiante = $estudiante;\n\t}", "public function testSetEtblNaf() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblNaf(\"etblNaf\");\n $this->assertEquals(\"etblNaf\", $obj->getEtblNaf());\n }", "public function setGroup($value) {\n$allowed = ['house', 'school', 'work', 'family'];\nif (!in_array($value, $allowed))\n throw new Exception('Please choose one of the valid groups');\n$this->group = $value;\nreturn $this;\n}", "public function testCanSetAndGetOrganizationName()\n {\n $mockOrgName = 'GRIIDC';\n\n $this->dataCenter->setOrganizationName($mockOrgName);\n\n $this->assertEquals($mockOrgName, $this->dataCenter->getOrganizationName());\n }", "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function __construct($organization)\n {\n $this->organization = $organization;\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function testSetModifArticle() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifArticle(\"modifArticle\");\n $this->assertEquals(\"modifArticle\", $obj->getModifArticle());\n }" ]
[ "0.6253455", "0.6019148", "0.5968048", "0.595641", "0.5792902", "0.57728934", "0.57655907", "0.5630202", "0.55088437", "0.55031806", "0.5487335", "0.5471978", "0.5465478", "0.546432", "0.54265344", "0.54127496", "0.5385396", "0.53696537", "0.53669924", "0.536689", "0.5366284", "0.52920216", "0.526879", "0.52511346", "0.52186644", "0.5207478", "0.5205509", "0.518168", "0.51783246", "0.51616293", "0.51476914", "0.5146135", "0.512558", "0.51061195", "0.5100642", "0.5098395", "0.508889", "0.5085617", "0.50774044", "0.5074844", "0.5060146", "0.5050412", "0.50434446", "0.50428987", "0.50383586", "0.50358933", "0.5030865", "0.50196844", "0.50187105", "0.5012973", "0.50101435", "0.5009831", "0.5009632", "0.50080293", "0.50069094", "0.5001532", "0.49961114", "0.49959588", "0.4983707", "0.49806672", "0.4978092", "0.49750996", "0.49663094", "0.49649143", "0.49646503", "0.49582213", "0.4951669", "0.49421555", "0.4940004", "0.49323246", "0.49313715", "0.4919032", "0.4918787", "0.49184105", "0.4917725", "0.49150708", "0.49071398", "0.49016303", "0.49010673", "0.48975214", "0.48855034", "0.48796284", "0.48791045", "0.4878317", "0.48632357", "0.48628512", "0.4862613", "0.48602727", "0.48586252", "0.48586252", "0.48544607", "0.48478207", "0.4846268", "0.4844493", "0.48441136", "0.48431274", "0.4840903", "0.48395342", "0.48375168", "0.4834352" ]
0.6142836
1
Sets a new organisationFunktionSoegEgenskab
public function setOrganisationFunktionSoegEgenskab(?\Digitaliseringskataloget\SF1500\Organisation6\Organisationsystem\OrganisationFunktionSoegEgenskab $organisationFunktionSoegEgenskab = null) { $this->organisationFunktionSoegEgenskab = $organisationFunktionSoegEgenskab; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setOrganisation($organisation)\n\t{\n\t\t$this->_organisation = $organisation;\n\t}", "protected function setOrganization() {}", "function setOrg( $org )\n {\n $org = trim( $org );\n $this->properties['ORG'] = $org;\n }", "public function testSetSituationFam() {\n\n $obj = new Employes();\n\n $obj->setSituationFam(\"situationFam\");\n $this->assertEquals(\"situationFam\", $obj->getSituationFam());\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "public function testSetCodeFamilleFrn() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamilleFrn(\"codeFamilleFrn\");\n $this->assertEquals(\"codeFamilleFrn\", $obj->getCodeFamilleFrn());\n }", "public function testSetAnnulationFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationFournisseur(true);\n $this->assertEquals(true, $obj->getAnnulationFournisseur());\n }", "public function testSetCodeFamille() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamille(\"codeFamille\");\n $this->assertEquals(\"codeFamille\", $obj->getCodeFamille());\n }", "public function __construct(Organisation $organisation)\n {\n $this->organisation = $organisation;\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function testSetSelectionFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionFournisseur(\"selectionFournisseur\");\n $this->assertEquals(\"selectionFournisseur\", $obj->getSelectionFournisseur());\n }", "public function setOrganization($val)\n {\n $this->_propDict[\"organization\"] = $val;\n return $this;\n }", "public function setFNAppropriately()\n {\n // FIXME: #64 : Get PREFerred Property\n if ( (!(\\array_key_exists('fn', $this->data)))\n && \\array_key_exists(\"kind\", $this->data) )\n {\n\t if ( ($this->data[\"kind\"]->getValue() === \"organization\")\n && \\array_key_exists('org', $this->data) )\n\t {\n // FIXME: copy LANGUAGE parameter and ALTID?\n foreach ($this->data['org'] as $org)\n self::builder('fn')->setValue((string) $org)->pushTo($this);\n } elseif ( ($this->data[\"kind\"]->getValue() === \"individual\")\n && \\array_key_exists('n', $this->data) )\n\t {\n // FIXME: copy LANGUAGE parameter and ALTID?\n foreach ($this->data['n'] as $n)\n self::builder('fn')->setValue((string) $n)->pushTo($this);\n }\n }\n return $this;\n }", "public function setValue($fname, $fval)\r\n {\r\n switch ($fname)\r\n {\r\n case \"id\":\r\n $this->id = $fval;\r\n break;\r\n case \"name\":\r\n $this->name = $fval;\r\n break;\r\n case \"uname\":\r\n $this->uname = $fval;\r\n break;\r\n case \"isHeiarch\":\r\n $this->isHeiarch = $fval;\r\n break;\r\n case \"parentId\":\r\n $this->parentId = $fval;\r\n break;\r\n case \"color\":\r\n $this->color = $fval;\r\n break;\r\n case \"sortOrder\":\r\n $this->sortOrder = $fval;\r\n break;\r\n case \"commit_id\":\r\n case \"commitId\":\r\n $this->commitId = $fval;\r\n break;\r\n default:\r\n $this->filterFields[$fname] = $fval;\r\n break;\r\n }\r\n\r\n // Inicate this group has been changed\r\n $this->setDirty(true);\r\n }", "function Organization( $org )\r\n\t\t{\r\n\t\tif( trim( $org != \"\" ) )\r\n\t\t\t$this->organization= $org;\r\n\t\t}", "public function setFsJuridique(?string $fsJuridique): Evenements {\n $this->fsJuridique = $fsJuridique;\n return $this;\n }", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function testSetFicheSignee() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setFicheSignee(true);\n $this->assertEquals(true, $obj->getFicheSignee());\n }", "public function testSetCreationFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setCreationFournisseur(true);\n $this->assertEquals(true, $obj->getCreationFournisseur());\n }", "public function setObjFamilia(Array $familia)\n {\n $this->_familia = $familia;\n }", "public function setOrganiser(CultureFeed_Cdb_Data_Organiser $organiser) {\n $this->organiser = $organiser;\n }", "public function setFsFiscal(?string $fsFiscal): Evenements {\n $this->fsFiscal = $fsFiscal;\n return $this;\n }", "public function testSetCodeCentreUrssaf() {\n\n $obj = new Employes();\n\n $obj->setCodeCentreUrssaf(\"codeCentreUrssaf\");\n $this->assertEquals(\"codeCentreUrssaf\", $obj->getCodeCentreUrssaf());\n }", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "final protected function setFactory($factory){\n\t\t\t$this->factory = $factory;\n\t\t}", "public function testSetAndGetOrgDefinedID()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the Org Defined ID\r\n $testObj->setOrgDefinedID('myOrgID');\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that Org Defined ID field was updated\r\n $this->assertEquals('myOrgID', $testObj->getOrgDefinedID());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'OrgDefinedID');\r\n }", "public function testSetInterdireModifDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifDepot(true);\n $this->assertEquals(true, $obj->getInterdireModifDepot());\n }", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "public function testSetInterdireAccesSuppDocArch() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesSuppDocArch(true);\n $this->assertEquals(true, $obj->getInterdireAccesSuppDocArch());\n }", "public function setFsSocial(?string $fsSocial): Evenements {\n $this->fsSocial = $fsSocial;\n return $this;\n }", "public function setOrganizations(?int $value): void {\n $this->getBackingStore()->set('organizations', $value);\n }", "function setLocalDate($loca,$dat){\n $this->local = $loca;\n $this->dates = $dat;\n }", "public function testSetEmailObjetDefaut() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailObjetDefaut(\"emailObjetDefaut\");\n $this->assertEquals(\"emailObjetDefaut\", $obj->getEmailObjetDefaut());\n }", "public function setFields($f){\n\t\t$this->fields = $f;\n\t}", "private function __setFinnish() {\n\n\t\t\t// Set Finnish date and time settings\n\t\t\tSymphony::Configuration()->set('date_format', 'd. F Y', 'region');\n\t\t\tSymphony::Configuration()->set('time_format', 'H:i', 'region');\n\t\t\tSymphony::Configuration()->set('datetime_separator', ', ', 'region'); \n\t\t\tSymphony::Configuration()->write();\n\t\t}", "public function testSetGroupeQualifiant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setGroupeQualifiant(\"groupeQualifiant\");\n $this->assertEquals(\"groupeQualifiant\", $obj->getGroupeQualifiant());\n }", "function organization ($org) {\n if(!empty($org)) $this->xheaders['Organization'] = $org;\n }", "public function set_dataGraf(){\n\n }", "private function setFamilyGraph(FamilyGraph $familyGraph)\n {\n $this->familyGraph = $familyGraph;\n }", "private function setFamilyGraph(FamilyGraph $familyGraph)\n {\n $this->familyGraph = $familyGraph;\n }", "private function createOrg()\n {\n\n $this->appReviewOrg = $this->em->getRepository('App:Orgs')->findOneBy(['tag' => self::AppReviewTag]);\n\n if (is_null($this->appReviewOrg)) {\n // Nope. Create it.\n\n $this->appReviewOrg = new Orgs();\n $this->appReviewOrg->setOrgName(self::AppReviewOrg);\n $this->appReviewOrg->setDefaultTz($this->timezone);\n $this->appReviewOrg->setTag(self::AppReviewTag);\n $this->appReviewOrg->setMaxBrcAge(0);\n $this->em->persist($this->appReviewOrg);\n $this->em->flush();\n }\n }", "public function testSetSatisfactionGenerale() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setSatisfactionGenerale(\"satisfactionGenerale\");\n $this->assertEquals(\"satisfactionGenerale\", $obj->getSatisfactionGenerale());\n }", "public function set_filial(Filial $object)\n {\n $this->filial = $object;\n $this->ref_filial = $object->id;\n }", "public function setFilas($filas){\n $this->_filas = $filas;\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setSoapPostFromAfaOrgId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->soap_post_from_afa_org_id !== $v) {\n\t\t\t$this->soap_post_from_afa_org_id = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::SOAP_POST_FROM_AFA_ORG_ID;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function testSetModifDossierFact() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifDossierFact(\"modifDossierFact\");\n $this->assertEquals(\"modifDossierFact\", $obj->getModifDossierFact());\n }", "public function testSetAllegParticulier() {\n\n $obj = new Employes();\n\n $obj->setAllegParticulier(true);\n $this->assertEquals(true, $obj->getAllegParticulier());\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "function setF_inicio($f_inicio){\n\t\t\n\t\t$this->f_inicio = $f_inicio;\n\t\t$this->cambios = true;\n\t}", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "function setF_fin($f_fin){\n\t\t\n\t\t$this->f_fin = $f_fin;\n\t\t$this->cambios = true;\n\t}", "function FiscaleGroepenVO(\n\t\t$FiscaalGroepID= 0,\n\t\t$FiscaalGroupType= 0,\n\t\t$GewijzigdDoor= 0,\n\t\t$GewijzigdOp= \"\"\n\t) {\n\t\t$this->FiscaalGroepID = $FiscaalGroepID;\n\t\t$this->FiscaalGroupType = $FiscaalGroupType;\n\t\t$this->GewijzigdDoor = $GewijzigdDoor;\n\t\t$this->GewijzigdOp = $GewijzigdOp;\n\t}", "public function setOrgId($newOrgId) {\n\t//verify the organization id is valid\n\t$newOrgId = filter_var($newOrgId, FILTER_VALIDATE_INT);\n\tif($newOrgId === false) {\n\t\tthrow(new InvalidArgumentException(\"organization id is not a valid integer\"));\n\t}\n\n\t//verify the organization id is positive\n\tif($newOrgId <= 0) {\n\t\tthrow(new RangeException(\"organization if is not positive\"));\n\t}\n\n\t//convert and store the organization id\n\t$this->orgId = intval($newOrgId);\n}", "public function setIdgrupo_sanguineo($idgrupo_sanguineo){\n $this->idgrupo_sanguineo = $idgrupo_sanguineo;\n }", "abstract public function set();", "private static function setFormation(Team $team)\n {\n }", "public function testSetModifArticle() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifArticle(\"modifArticle\");\n $this->assertEquals(\"modifArticle\", $obj->getModifArticle());\n }", "public function setFi( $fi ) {\n\t\t$this->container['fi'] = $fi;\n\n\t\treturn $this;\n\t}", "public function initialize()\n\t{\n\t // attributes\n\t\t$this->setName('organisatie');\n\t\t$this->setPhpName('Organisatie');\n\t\t$this->setClassname('Organisatie');\n\t\t$this->setPackage('CRM_TI');\n\t\t$this->setUseIdGenerator(true);\n\t\t// columns\n\t\t$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);\n\t\t$this->addColumn('NAAM', 'Naam', 'VARCHAR', true, 255, null);\n\t\t$this->addColumn('POSTBUS_POST', 'PostbusPost', 'VARCHAR', false, 64, null);\n\t\t$this->addColumn('POSTCODE_POST', 'PostcodePost', 'VARCHAR', false, 16, null);\n\t\t$this->addColumn('STAD_POST', 'StadPost', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('STRAAT_BEZOEK', 'StraatBezoek', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('NUMMER_BEZOEK', 'NummerBezoek', 'VARCHAR', false, 16, null);\n\t\t$this->addColumn('POSTCODE_BEZOEK', 'PostcodeBezoek', 'VARCHAR', false, 16, null);\n\t\t$this->addColumn('STAD_BEZOEK', 'StadBezoek', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('TELEFOON_ALGEMEEN', 'TelefoonAlgemeen', 'VARCHAR', false, 32, null);\n\t\t$this->addColumn('WEBSITE', 'Website', 'VARCHAR', false, 255, null);\n\t\t$this->addForeignKey('PROVINCIE_ID', 'ProvincieId', 'INTEGER', 'provincie', 'ID', false, null, null);\n\t\t$this->addForeignKey('TYPE_ID', 'TypeId', 'INTEGER', 'organisatie_type', 'ID', false, null, null);\n\t\t$this->addColumn('DELETED_AT', 'DeletedAt', 'TIMESTAMP', false, null, null);\n\t\t// validators\n\t\t$this->addValidator('NAAM', 'unique', 'propel.validator.UniqueValidator', '', 'Organisatienamen mogen niet identiek zijn');\n\t\t$this->addValidator('NAAM', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De organisatienaam mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('NAAM', 'required', 'propel.validator.RequiredValidator', '', 'De organisatienaam opgeven is verplicht');\n\t\t$this->addValidator('POSTBUS_POST', 'maxLength', 'propel.validator.MaxLengthValidator', '64', 'De postbus mag niet langer dan 64 tekens zijn');\n\t\t$this->addValidator('POSTCODE_POST', 'maxLength', 'propel.validator.MaxLengthValidator', '16', 'De postcode van het postadres mag niet langer dan 16 tekens zijn');\n\t\t$this->addValidator('STAD_POST', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De stad van het postadres mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('STRAAT_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De straatnaam van het bezoekadres mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('NUMMER_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '16', 'Het nummer van het bezoekadres mag niet langer dan 16 tekens zijn');\n\t\t$this->addValidator('POSTCODE_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '16', 'De postcode van het bezoekadres mag niet langer dan 16 tekens zijn');\n\t\t$this->addValidator('STAD_BEZOEK', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De stad van het bezoekadres mag niet langer dan 255 tekens zijn');\n\t\t$this->addValidator('TELEFOON_ALGEMEEN', 'maxLength', 'propel.validator.MaxLengthValidator', '32', 'Het algemene telefoonnummer mag niet langer dan 32 tekens zijn');\n\t\t$this->addValidator('WEBSITE', 'maxLength', 'propel.validator.MaxLengthValidator', '255', 'De website mag niet langer dan 255 tekens zijn');\n\t}", "public function setEmplacementFichier(?string $emplacementFichier): Evenements {\n $this->emplacementFichier = $emplacementFichier;\n return $this;\n }", "public function set_estado_uf($estado_uf) : void\n {\n try {\n $this->set_estado(DAO_Estado::Buscar_Id_Por_Uf(Validador::Estado()::validar_uf($estado_uf)));\n } catch (Exception $e) {\n $this->estado = null;\n }\n }", "public function __construct($aard_stukdeel_omschrijving = null, \\Webservices\\StructType\\Stuk $stuk = null, $gefiatteerd = null)\n {\n $this\n ->setAard_stukdeel_omschrijving($aard_stukdeel_omschrijving)\n ->setStuk($stuk)\n ->setGefiatteerd($gefiatteerd);\n }", "public function testSetGestionMajJf() {\n\n $obj = new Employes();\n\n $obj->setGestionMajJf(\"gestionMajJf\");\n $this->assertEquals(\"gestionMajJf\", $obj->getGestionMajJf());\n }", "public function testSetCodeDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeDepot(\"codeDepot\");\n $this->assertEquals(\"codeDepot\", $obj->getCodeDepot());\n }", "public function testSetGrilleAnc3() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc3(\"grilleAnc3\");\n $this->assertEquals(\"grilleAnc3\", $obj->getGrilleAnc3());\n }", "public function testSetModifPlanFacturation() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifPlanFacturation(\"modifPlanFacturation\");\n $this->assertEquals(\"modifPlanFacturation\", $obj->getModifPlanFacturation());\n }", "public function setIdfisicaSuelo($idfisicaSuelo){\n $this->idfisicaSuelo = $idfisicaSuelo;\n }", "public function __construct($organization)\n {\n $this->organization = $organization;\n }", "public function setLicense(SetAlbumLicenseRequest $request): void\n\t{\n\t\t$request->album()->license = $request->license();\n\t\t$request->album()->save();\n\t}", "public function _setFirma($Firma)\n {\n $this->Firma = $Firma;\n\n }", "public function setFName($fname)\n{\n$this->fname = $fname;\n}", "public function setFiltroEnvios($fil='') {\n $this->filtroEnvios = $this->arreglarFiltro($fil);\n $this->filtrarPersonas();\n }", "public function testSetModifAffaire() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifAffaire(\"modifAffaire\");\n $this->assertEquals(\"modifAffaire\", $obj->getModifAffaire());\n }", "public function testSetSelAvLstPersoAccesGestionnaire() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelAvLstPersoAccesGestionnaire(true);\n $this->assertEquals(true, $obj->getSelAvLstPersoAccesGestionnaire());\n }", "function add_organisation() {\n\tglobal $post;\n\t$current_user = wp_get_current_user();\n\t$organisation_title = '';\n\t// SET ALL THE FORM NAMES UP //\nif( isset($_REQUEST['action']) && $_REQUEST['action'] == 'add_org' ) {\n\t\n\t\t$errors = false;\n\t\t// main //\n\t\t$organisation_title = $_REQUEST['organisation_title'];\n\t\t$organisation_description = $_REQUEST['organisation_description'];\n\t\t\n\t\t// custom fields //\n\t\t\n\t\t$organisation_location = $_REQUEST['organisation_location'];\n\t\t\n\t\t// acf //\n\t\t$organisation_website = $_REQUEST['organisation_website'];\n\t\t$organisation_email = $_REQUEST['organisation_email'];\n\t\t\n\t\t$organisation_phone_number = $_REQUEST['organisation_phone_number'];\n\t\t$organisation_facebook_url = $_REQUEST['organisation_facebook_url'];\n\t\t$organisation_twitter_url = $_REQUEST['organisation_twitter_url'];\n\t\t$organisation_linkedin_url = $_REQUEST['organisation_linkedin_url'];\n\t\t$organisation_google_plus_profile = $_REQUEST['organisation_google_plus_profile'];\n\t\t\n\t\t// taxos //\n\t\t\n\t\t$organisations_support = $_REQUEST['organisations_support'];\n\t\t$support_topics = $_REQUEST['support_topics'];\n\t\t$org_locations = $_REQUEST['organisations_locations'];\n\t\n\t\t\n\tif( $organisation_title == '') {\n\t\t$errors = true;\n\t}\n\t//print_r($errors);\n\tif(!$errors) {\n\t\t$args = array(\n\t\t\t'post_title'\t=>\t$organisation_title,\n\t\t\t'post_type'\t\t=>\t'organisations',\n\t\t\t'post_content'\t=>\t$organisation_description,\n\t\t\t'post_status' => \t'publish',\n\t\t\t'author'\t\t=>\t$current_user->ID\n\t\t);\n\t\t\n\t\t$org_id = wp_insert_post($args);\t\n\t\t\n\t\t// now set all the taxo terms from form //\n\t\twp_set_post_terms( $org_id, array($organisations_support), 'organisations_support' );\n\t\twp_set_post_terms( $org_id, array($support_topics), 'support_topics' );\n\t\twp_set_post_terms( $org_id, array($org_locations), 'organisations_locations' );\n\t\t\n\t\t// addd the custom meta for map //\n\t\t\n\t\t//add_post_meta($org_id, 'location_event', $organisation_location);\n\t\tadd_post_meta($org_id, 'location_event', $organisation_location);\n\t\t\n\t\t// add all the acf fields //\n\n\t\tadd_post_meta($org_id, 'organisation_website', $organisation_website);\n\t\tadd_post_meta($org_id, 'organisation_email', $organisation_email);\n\t\tadd_post_meta($org_id, 'organisation_phone_number', $organisation_phone_number);\n\t\tadd_post_meta($org_id, 'organisation_facebook_url', $organisation_facebook_url);\n\t\tadd_post_meta($org_id, 'organisation_twitter_url', $organisation_twitter_url);\n\t\tadd_post_meta($org_id, 'organisation_linkedin_url', $organisation_linkedin_url);\n\t\tadd_post_meta($org_id, 'organisation_google_plus_profile', $organisation_google_plus_profile);\n\n\t\t//exit;\n\t\t?>\n\t\t\t\n\t\t\t<script type=\"text/javascript\">\n\t\t\t document.location.href=\"<?php echo get_permalink(231); ?>\";\n\t\t\t</script>\n\t\t<?php\n\t}\t\n}\n\t?>\n\t<form id=\"add_org_form\" enctype=\"multipart/form-data\" method=\"post\" action=\"<?php echo get_permalink(231); ?>\" class=\"form-horizontal account-form\">\n\t\t<div class=\"col-sm-12\"><div class=\"modular_head\"><h2 class=\"account-heading\">Add Organisation</h2></div></div>\t\t\t\t\t\t\n\t\t<div class=\"form-box\">\t\n\t\t\t<div class=\" col-sm-6\">\t\n\t\t\t\t<div class=\"modular_bkd\">\t\t\t\t\t\n\t\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t\t <label class=\"control-label\">Organisation Title</label>\n\t\t\t\t\t \t<input type=\"text\" class=\"form-control\" name=\"organisation_title\" data-bv-notempty >\n\t\t\t\t\t </div>\t\t\n\t\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t\t <label class=\"control-label\">Email Address</label>\n\t\t\t\t\t \t<input type=\"email\" class=\"form-control\" name=\"organisation_email\" data-bv-notempty >\n\t\t\t\t\t </div>\t\n\t\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t <label class=\"control-label\">Organisation Website</label>\n\t\t\t\t \t<input type=\"text\" class=\"form-control\" name=\"organisation_website\" data-bv-notempty >\n\t\t\t\t \t</div>\t\n\t\t\t\t\t</div>\t\n\t\t\t\t<div class=\"modular_bkd\">\n\t\t\t\t \n\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t <label class=\"control-label\">Telephone Number</label>\n\t\t\t\t \t<input class=\"form-control\" name=\"organisation_phone_number\" data-bv-notempty >\n\t\t\t\t </div>\t\t\t\n\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t <label class=\"control-label\">Facebook Url</label>\n\t\t\t\t \t<input type=\"text\" class=\"form-control\" name=\"organisation_facebook_url\" data-bv-notempty >\n\t\t\t\t </div>\t\t\t\n\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t <label class=\"control-label\">Twitter Url</label>\n\t\t\t\t \t<input type=\"text\" class=\"form-control\" name=\"organisation_twitter_url\" data-bv-notempty >\n\t\t\t\t </div>\t\t\t\n\t\t\t\t \n\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t <label class=\"control-label\">Linkedin Url</label>\n\t\t\t\t \t<input type=\"text\" class=\"form-control\" name=\"organisation_linkedin_url\" data-bv-notempty >\n\t\t\t\t </div>\t\t\t\n\t\t\t\t \n\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t\t <label class=\"control-label\">Google Plus Url</label>\n\t\t\t\t \t<input type=\"text\" class=\"form-control\" name=\"organisation_google_plus_profile\" data-bv-notempty >\n\t\t\t\t </div>\t\t\t\n\t\t\t\t</div>\t\n\t\t\t\t<div class=\"modular_bkd\">\n\t\t\t\t\t<div class=\"col-sm-12 grp\">\n\t\t\t\t\t\t<h3 class=\"account_heading\">Organisation Description</h3>\n\t\t\t\t\t\t<div class=\"form-box\">\n\t\t\t\t\t\t\t<div class=\"form-s\">\n\t\t\t\t\t\t\t\t<textarea name=\"organisation_description\" rows=\"7\" class=\"form-control\"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"col-sm-6\">\n\t\t\t\t<div class=\"modular_bkd\">\n\t\t\t\t <div class=\"col-sm-12 grp\">\n\t\t\t\t <!-- take this out until further notice -->\n\t\t\t\t \t<!-- <label class=\"control-label\">Address</label> -->\n\t\t\t\t <?php \n\t\t\t\t \n\t\t\t \t\t global $post;\n\t\t\t\t\t$location_address = 'Peterborough';\n\t\t\t\t\t$location_lat = '52.5833';\n\t\t\t\t\t$location_lng = '0.2500';\n\t\t\t\t\t$location_zoom = '13';\n\t\t\t\t\t?>\n\t\t\t\t\t<!-- take this out until further notice -->\n \t\t \t<!-- <div style=\"height:300px;\" id=\"map-canvas_event\"></div> -->\n \t\t \t<div id=\"panel\">\n\t \t\t \t <label>Organisation Location</label>\n \t\t \t <input id=\"address\" type=\"text\" name=\"organisation_location[address]\" value=\"<?php echo $location_address;?>\" class=\"form-control\" onkeyup=\"codeAddress();\" >\n \t\t \t <?php // Add Latitude and Longitide Form Fields. These will be saved to the $location array. ?>\n \t\t \t <input id=\"address_lat\" type=\"hidden\" name=\"organisation_location[lat]\" value=\"<?php echo $location_lat; ?>\">\n \t\t \t <input id=\"address_lng\" type=\"hidden\" name=\"organisation_location[lng]\" value=\"<?php echo $location_lng; ?>\">\n \t\t \t <input id=\"address_zoom\" type=\"hidden\" name=\"organisation_location[zoom]\" value=\"<?php echo $location_zoom; ?>\">\n \t\t \t <!-- <input type=\"button\" value=\"Geocode\" onclick=\"codeAddress()\" class=\"button-primary\">-->\n \t\t \t</div>\n\t\t\t\t </div> \t\n\t\t\t\t</div>\t\n\t\t\t\t<div class=\"modular_bkd\">\n\t\t\t\t\t<div class=\"col-sm-12 grp\">\n\t\t\t\t\t\t<h3 class=\"account-heading\">Organisation Categories</h3>\t\n\t\t\t\t\t\t<label class=\"control-label\">Organisations Support Type</label>\n\t\t\t\t\t\t<select name=\"organisations_support\" class=\"form-control\" data-bv-not-empty >\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$args = array(\n\t\t\t\t\t\t\t\t\t'taxonomy'\t\t=>\t'organisations_support',\n\t\t\t\t\t\t\t\t\t'hide_empty'\t=>\t0\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$organisations_support = get_categories($args);\n\t\t\t\t\t\t\t\t$current_support = get_organisations_support($org_id);\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<?php foreach($organisations_support as $sts): ?>\n\t\t\t\t\t\t\t<option value=\"<?php echo $sts->cat_ID; ?>\"><?php echo $sts->name; ?></option>\n\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-sm-12 grp\">\n\t\t\t\t\t\t<label class=\"control-label\">Organisations Support Topics</label>\n\t\t\t\t\t\t<select name=\"support_topics\" class=\"form-control\" data-bv-not-empty >\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$args = array(\n\t\t\t\t\t\t\t\t\t'taxonomy'\t\t=>\t'support_topics',\n\t\t\t\t\t\t\t\t\t'hide_empty'\t=>\t0\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$organisations_topics = get_categories($args);\n\t\t\t\t\t\t\t\t$current_topic = get_support_topics($org_id);\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<?php foreach($organisations_topics as $sts): ?>\n\t\t\t\t\t\t\t<option value=\"<?php echo $sts->cat_ID; ?>\"><?php echo $sts->name; ?></option>\n\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-sm-12 grp\">\n\t\t\t\t\t\t<label class=\"control-label\">Organisation Locations Eligible</label>\n\t\t\t\t\t\t<select name=\"organisations_locations\" class=\"form-control\" data-bv-not-empty >\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$args = array(\n\t\t\t\t\t\t\t\t\t'taxonomy'\t\t=>\t'organisations_locations',\n\t\t\t\t\t\t\t\t\t'hide_empty'\t=>\t0\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$organisations_locations = get_categories($args);\n\t\t\t\t\t\t\t\t$current_location = get_organisation_locations($org_id);\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<?php foreach($organisations_locations as $sts): ?>\n\t\t\t\t\t\t\t<option value=\"<?php echo $sts->cat_ID; ?>\"><?php echo $sts->name; ?></option>\n\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"modular_bkd\">\n\t\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"add_org\" />\n\t\t\t\t\t<a href=\"<?php echo get_permalink(231); ?>\" class=\"btn-lg btn btn-default pull-left \">Cancel</a>\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary btn-lg pull-right add_new\">Add Organisation</button>\n\t\t\t\t</div>\n\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t</div>\n\n\t\t\n\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t</form>\n\n\t<script>\n\tjQuery(document).ready(function($){\t\t\n\t\t$('#add_org_form').bootstrapValidator({\n\t\t feedbackIcons: {\n\t\t valid: 'fa fa-check',\n\t\t invalid: 'fa fa-times',\n\t\t validating: 'fa fa-refresh'\n\t\t }\n\t\t});\n\t});\nvar geocoder;\nvar map;\nfunction initialize() {\n geocoder = new google.maps.Geocoder();\n var latlng = new google.maps.LatLng(<?php echo $location_lat.', '. $location_lng; ?>);\n var mapOptions = {\n zoom: <?php echo $location_zoom; ?>,\n center: latlng,\n styles: [{\"featureType\":\"landscape\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"stylers\":[{\"hue\":\"#00aaff\"},{\"saturation\":-100},{\"gamma\":2.15},{\"lightness\":12}]},{\"featureType\":\"road\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"visibility\":\"on\"},{\"lightness\":24}]},{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"lightness\":57}]}]\n }\n map = new google.maps.Map(document.getElementById('map-canvas_event'), mapOptions);\n \n <?php if($location_lng){ ?>\n \t\tvar image = '<?php bloginfo( 'stylesheet_directory' ); ?>/images/map-marker.png';\n \t\t<?php\n echo 'var marker = new google.maps.Marker({\n map: map,\n position: latlng,\n icon: image\n });'; \n }?>\n \n google.maps.event.addListener(map, 'zoom_changed', function(){\n \n document.getElementById(\"address_zoom\").value = map.getZoom();\n \n});\n}\nfunction codeAddress() {\n\t\n var address = document.getElementById('address').value;\n console.log(address);\n geocoder.geocode( { 'address': address}, function(results, status) {\n if (status == google.maps.GeocoderStatus.OK) {\n map.setCenter(results[0].geometry.location);\n \n document.getElementById(\"address_zoom\").value = map.getZoom();\n document.getElementById(\"address_lat\").value = results[0].geometry.location.lat();\n document.getElementById(\"address_lng\").value = results[0].geometry.location.lng();\n \n var image = '<?php bloginfo( 'stylesheet_directory' ); ?>/images/map-marker.png';\n var marker = new google.maps.Marker({\n map: map,\n icon: image,\n position: results[0].geometry.location\n \n });\n } else {\n console.log('Geocode was not successful for the following reason: ' + status);\n }\n });\n}\ngoogle.maps.event.addDomListener(window, 'load', initialize);\t\t\t\n</script>\n<?php\n}", "public function testSetSelAvLstPersoInterdireCreat() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelAvLstPersoInterdireCreat(true);\n $this->assertEquals(true, $obj->getSelAvLstPersoInterdireCreat());\n }", "public function testSetLibelle() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testSetAnnulationDossierFact() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationDossierFact(true);\n $this->assertEquals(true, $obj->getAnnulationDossierFact());\n }", "public function setFormFactory(FormFactoryInterface $ff)\n {\n $this->formFactory = $ff;\n }", "public function set_civilite($_civilite)\n {\n $this->_civilite = $_civilite;\n\n return $this;\n }", "public function setOrgId($newOrgId) {\n\n\t\t//verify the org id is valid\n\t\t$newOrgId = filter_var($newOrgId, FILTER_VALIDATE_INT);\n\t\tif($newOrgId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"org id is not a valid integer\"));\n\t\t}\n\n\t\t//verify the org id is positive\n\t\tif($newOrgId <= 0) {\n\t\t\tthrow(new RangeException(\"org id is not positive\"));\n\t\t}\n\n\t\t//convert and store the org id\n\t\t$this->orgId = intval($newOrgId);\n\t}", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function testSetModifDroitsAsp() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifDroitsAsp(true);\n $this->assertEquals(true, $obj->getModifDroitsAsp());\n }", "function socialAlertSet($opt){\n\n\tif($opt['debug']) $this->pre($opt);\n\n\t# NEW !\n\t#\n\tif($opt['id_socialalert'] == NULL){\n\t\t$this->dbQuery(\"INSERT INTO k_socialalert (socialAlertName) VALUES ('TEMP+NAME')\");\n\t\tif($opt['debug']) $this->pre($this->db_query, $this->db_error);\n\t\n\t\t$id_socialalert = $this->db_insert_id;\n\t}else{\n\t\t$id_socialalert = $opt['id_socialalert'];\n\t}\n\t$this->id_socialalert\t= $id_socialalert;\n\n\n\t# CORE\n\t#\n\t$query = $this->dbUpdate(array('k_socialalert' => $opt['core'])).\" WHERE id_socialalert=\".$id_socialalert;\n\t$this->dbQuery($query);\n\tif($opt['debug']) $this->pre(\"QUERY\", $this->db_query, \"ERROR\", $this->db_error);\n\n\t# FIELD\n\t#\n\tif(sizeof($opt['field']) > 0){\n\n\t\t# Si on utilise le KEY au lieu des ID\n\t\t$fields = $this->apiLoad('field')->fieldGet(array('socialAlert' => true));\n\t\tforeach($fields as $e){\n\t\t\t$fieldsKey[$e['fieldKey']] = $e;\n\t\t} $fields = $fieldsKey;\n\n\t\tunset($def);\n\t\t$apiField = $this->apiLoad('field');\n\n\t\tforeach($opt['field'] as $id_field => $value){\n\t\t\tif(!is_integer($id_field)) $id_field = $fields[$id_field]['id_field'];\n\t\t\t\n\t\t\tif(intval($id_field) > 0){\n\t\t\t\t$value = $apiField->fieldSaveValue($id_field, $value);\n\t\t\t\t$def['k_socialalert']['field'.$id_field] = array('value' => $value);\n\t\t\t}\n\t\t}\n\n\t\t$this->dbQuery($this->dbUpdate($def).\" WHERE id_socialalert=\".$id_socialalert);\n\t\tif($opt['debug']) $this->pre($this->db_query, $this->db_error);\n\t}\n\n\treturn true;\n}", "public function setIetf(string $ietf) : self\n {\n $this->initialized['ietf'] = true;\n $this->ietf = $ietf;\n return $this;\n }", "public function testSetIsGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setIsGroupe(true);\n $this->assertEquals(true, $obj->getIsGroupe());\n }", "public function setOferta($oferta)\n {\n $this->oferta = $this->db->real_escape_string($oferta);\n\n return $this;\n }", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "public function editSettings() {\n $name = $this->schema->name();\n $form = new Fragment($name);\n\n if ($this->schema->newgroup()) { // définit dans la vue fields.php\n $form->hidden('type');\n // pour un nouveau groupe, il faut que le groupe soit créé avec le bon type\n // pour un groupe existant, inutile : on a déjà le bon type dans le schéma\n }\n\n $form->input('name')\n ->attribute('class', 'name')\n ->label(__('Nom du groupe', 'docalist-biblio'))\n ->description(__(\"Le nom du groupe doit être unique (ni un nom de champ, ni le nom d'un autre groupe).\", 'docalist-biblio'));\n\n $form->input('label')\n ->attribute('id', $name . '-label')\n ->attribute('class', 'label regular-text')\n ->label(__('Titre du groupe', 'docalist-biblio'))\n ->description(__(\"C'est le titre qui sera affiché dans la barre de titre du groupe et dans les options de l'écran de saisie. Valeur par défaut : type de la notice\", 'docalist-biblio'));\n\n $form->input('capability')\n ->attribute('id', $name . '-capability')\n ->attribute('class', 'capability regular-text')\n ->label(__('Droit requis', 'docalist-biblio'))\n ->description(__(\"Droit requis pour afficher ce groupe de champs. Ce groupe (et tous les champs qu'il contient) sera masqué si l'utilisateur ne dispose pas du droit indiqué. Si vous laissez vide, aucun test ne sera effectué.\", 'docalist-biblio'));\n\n $form->textarea('description')\n ->attribute('id', $name . '-description')\n ->attribute('class', 'description large-text')\n ->attribute('rows', 2)\n ->label(__(\"Texte d'introduction\", 'docalist-biblio'))\n ->description(__(\"Ce texte sera affiché entre la barre de titre et le premier champ du groupe. Vous pouvez utiliser cette zone pour donner des consignes de saisie ou toute autre information utile aux utilisateurs.\", 'docalist-biblio'));\n\n $form->select('state')\n ->attribute('id', $name . '-state')\n ->attribute('class', 'state')\n ->label(__(\"Etat initial du groupe\", 'docalist-biblio'))\n ->description(__(\"Dans l'écran de saisie, chaque utilisateur peut choisir comment afficher chacun des groupes : il peut replier ou déplier un groupe ou utiliser les options de l'écran de saisie pour masquer ou afficher certains groupes. Ce paramètre indique comment le groupe sera affiché initiallement (pour un nouvel utilisateur).\", 'docalist-biblio'))\n ->options([\n '' => __('Ouvert', 'docalist-biblio'),\n 'collapsed' => __('Replié', 'docalist-biblio'),\n 'hidden' => __('Masqué', 'docalist-biblio'),\n ])\n ->firstOption(false);\n\n $form->button(__('Supprimer ce groupe', 'docalist-biblio'))\n ->attribute('class', 'delete-group button right');\n\n return $form;\n }", "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function testCanSetAndGetOrganizationUrl()\n {\n $mockOrgUrl = 'griidc.org';\n\n $this->dataCenter->setOrganizationUrl($mockOrgUrl);\n\n $this->assertEquals($mockOrgUrl, $this->dataCenter->getOrganizationUrl());\n }", "public function __set($name, $value)\n\t{\n\t\tswitch($name) {\n\t\t\tcase 'APPLICANTS_FAMILY_DATA_SIBLINGS_ID':\n\t\t\t\t//if the id isn't null, you shouldn't update it!\n\t\t\t\tif( !is_null($this->APPLICANTS_FAMILY_DATA_SIBLINGS_ID) ) {\n\t\t\t\t\tthrow new Exception('Cannot update APPLICANTS_FAMILY_DATA_SIBLINGS_ID!');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\t\t\n\t\t//set the attribute with the value\n\t\t$this->$name = $value;\n\t}", "public function setStaff($staff)\n {\n if($staff && !$this->hasRole(\"ROLE_STAFF\"))\n {\n $this->addRole(\"ROLE_STAFF\");\n } else {\n $this->removeRole(\"ROLE_STAFF\");\n }\n }", "private function set_firmid($_firmid)\n {\n if (!$_firmid) {\n throw new MonAeException('Le firm id est obligatoire.');\n }\n $this->_firmid = $_firmid;\n }", "public function testSetMasquerFournisseurs() {\n\n $obj = new Collaborateurs();\n\n $obj->setMasquerFournisseurs(true);\n $this->assertEquals(true, $obj->getMasquerFournisseurs());\n }" ]
[ "0.65870106", "0.61544025", "0.58013594", "0.5705426", "0.56412673", "0.5619342", "0.5563112", "0.54149777", "0.53903455", "0.53806293", "0.5331095", "0.5317382", "0.53000027", "0.52723396", "0.5194524", "0.51782894", "0.5172609", "0.5157016", "0.5138413", "0.5134946", "0.5113941", "0.51032096", "0.50941896", "0.5093832", "0.5092123", "0.5077051", "0.5075542", "0.5065034", "0.5060846", "0.50606227", "0.5041178", "0.5025759", "0.50145555", "0.50139135", "0.5007799", "0.5004765", "0.50026447", "0.49932224", "0.49803865", "0.49798334", "0.49692065", "0.49692065", "0.49606246", "0.4955724", "0.49479333", "0.49466288", "0.49390623", "0.4918892", "0.4914657", "0.4909473", "0.4909261", "0.49077234", "0.48993206", "0.48918876", "0.48820382", "0.4880869", "0.48789877", "0.48687947", "0.48655143", "0.4846998", "0.48428145", "0.48417914", "0.48332593", "0.48303172", "0.4823947", "0.4823887", "0.48029095", "0.47940442", "0.47923654", "0.4790295", "0.47878113", "0.4782592", "0.47819084", "0.47816727", "0.47811595", "0.47774035", "0.47734213", "0.4773207", "0.4772412", "0.47669455", "0.47633216", "0.47606748", "0.47592968", "0.4747013", "0.47457108", "0.47456273", "0.47423595", "0.474142", "0.47359145", "0.4730527", "0.47287238", "0.4728385", "0.47273922", "0.47191513", "0.47174954", "0.47129047", "0.47125393", "0.4709498", "0.47092676", "0.47088555" ]
0.5295228
13
Sets a new brugerSoegEgenskab
public function setBrugerSoegEgenskab(?\Digitaliseringskataloget\SF1500\Organisation6\Organisationsystem\BrugerSoegEgenskab $brugerSoegEgenskab = null) { $this->brugerSoegEgenskab = $brugerSoegEgenskab; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function setBeskrivelse($beskrivelse)\n {\n $this->beskrivelse = stripslashes($beskrivelse);\n return $this;\n }", "public function setInteressefaellesskabSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\InteressefaellesskabSoegEgenskab $interessefaellesskabSoegEgenskab = null)\n {\n $this->interessefaellesskabSoegEgenskab = $interessefaellesskabSoegEgenskab;\n return $this;\n }", "public function setItSystemSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\ItSystemSoegEgenskab $itSystemSoegEgenskab = null)\n {\n $this->itSystemSoegEgenskab = $itSystemSoegEgenskab;\n return $this;\n }", "public function set_barbe($_barbe){\n $this->_barbe = $_barbe;\n\n return $this;\n }", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "function setBreve($sbreve = '')\n {\n $this->sbreve = $sbreve;\n }", "function __construct($reservierungsart)\r\n\t{\r\n\t\t$this->sql= new Sql;\r\n\t\t\r\n\t\t$this->reservierungsart = $reservierungsart;\r\n\t\t$call = \"Select * From tb_farbzuweisung WHERE Reservierungsart = '$reservierungsart'\";\r\n\t\t$ergebnis = $this->sql->call($call);\r\n\t\t\r\n\t\t$this->fk_Farbe_ID = $ergebnis['fk_Farbe_ID'];\r\n\t\t\r\n\t\t$this->farbe = new Farben($this->fk_Farbe_ID);\r\n\t}", "abstract public function set();", "public function __construct($pemilik,$merk){\n $this->pemilik = $pemilik;\n $this->merk = $merk;\n }", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "public function testSetEtage() {\n\n $obj = new DevisZbe();\n\n $obj->setEtage(\"etage\");\n $this->assertEquals(\"etage\", $obj->getEtage());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function setGeschaeftsguthaben($geschaeftsguthaben)\n {\n $this->geschaeftsguthaben = $geschaeftsguthaben;\n return $this;\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "function __construct($id=\"\") {\n //echo \"ciao\";\n \n $this->setNometabella(\"localita\");\n $this->tabella= array(\"nome\"=>\"\",\"provincia\"=>\"\",\"cap\"=>\"\",\"codice\"=>\"\",\"solodestinazione\"=>\"\");\n parent::__construct($id);\n}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "public function __construct($daten = array())\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n // $this->setEncoding();\n }", "public function testSetBatiment() {\n\n $obj = new DevisZbe();\n\n $obj->setBatiment(\"batiment\");\n $this->assertEquals(\"batiment\", $obj->getBatiment());\n }", "public function testSetCodeEtablissement() {\n\n $obj = new Employes();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function setErschliessungskosten($erschliessungskosten)\n {\n $this->erschliessungskosten = $erschliessungskosten;\n return $this;\n }", "public function testSetLibelle() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function __construct($angka)\n {\n $this->setTipe($angka);\n }", "public function __condtruct($pemilik, $merk){\n $this->pemilik = $pemilik;\n $this->merk = $merk;\n }", "public function __construct($boja,$tip)\n {\n $this->setBoja($boja);\n $this->setTip($tip);\n }", "function CreateArbeitspaket($adressse, $aufgabe,$beschreibung,$projekt,$zeit_geplant,$kostenstelle,$initiator,$abgabedatum=\"\")\n {\n if(($abgabe != \"\") && ($beschreibung != \"\") && ($projekt != \"\") && ($zeit_geplant != \"\") && ($kostenstelle != \"\") && ($initiator != \"\")){\n $this->app->DB->Insert('INSERT INTO arbeitspakete (adresse, aufgabe, beschreibung, projekt, zeit_geplant, kostenstelle, initiator, abgabedatum) VALUES ( '.$adresse.',\"'.$aufgabe.'\", \"'.$beschreibung.'\", '.$projekt.', '.$zeit_geplant.','.$kostenstelle.', '.$initiator.',\"'.$abgabedatum.'\")');\n return 1;\n }else\n return 0;\n }", "public function testSetLibelle() {\n\n $obj = new Materiels();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testSetRib() {\n\n $obj = new Employes();\n\n $obj->setRib(\"rib\");\n $this->assertEquals(\"rib\", $obj->getRib());\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Collaborateurs();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function testSetEtat() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "public function __construct($boja, $registracija)\n {\n // parent::__construct($boja,$tip);\n $this->setBoja($boja);\n // rucno stavljamo difoltnu vrednost za tip, ne prosledjujemo konstruktoru u ovom slucaju\n $this->setTip(\"automobil\");\n $this->setRegistracija($registracija);\n }", "public function setOrganisationSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\OrganisationSoegEgenskab $organisationSoegEgenskab = null)\n {\n $this->organisationSoegEgenskab = $organisationSoegEgenskab;\n return $this;\n }", "public function __construct($tabela) {\n $this->tabela = $tabela;\n parent::__construct();\n }", "function setChambrehospi($chambre){\n $this->chambre = $chambre;\n }", "public function addNewKlant(){\n\n\t\tif(empty($this->tussenvoegsels)){\n\t\t\t$this->tussenvoegsel = NULL;}\n\n\t\t$values = \"'\".$this->achternaam.\"', '\".$this->voorletters.\"', '\".$this->tussenvoegsels.\"', '\".$this->roepnaam.\"', '\".$this->geboortedatum.\"', '\".$this->adres.\"', '\".$this->postcode.\"', '\".$this->woonplaats.\"', '\".$this->gebruikersnaam.\"', '\".md5($this->wachtwoord).\"'\";\n\t\t$db = new database();\n\t\t$db->insert(\"klant\",\"achternaam, voorletters, tussenvoegsels, roepnaam, geboortedatum, adres, postcode, woonplaats, gebruikersnaam, wachtwoord\", $values\n\t\t\t);\n\t\techo \"geregistreerd\";\n\t}", "public function __construct()\n {\n $this->name = \"Альбион\";\n $this->description = \"Центральная галактика, по слухам прародина предтеч.\";\n $this->color_test = \"#80787E\";\n $this->arraySistems = \n [\n [1,1,1],\n [1,1,1],\n [1,1,1]\n ];\n\n parent::__construct(); \n }", "function change_summer($betriebsart){\n\t\tconnectsql();\n\t\t// --- Write Data to DB ---\n\t\t$sql_query = \"UPDATE poolsettings SET `summer1`=$betriebsart\";\n\t\tmysql_query($sql_query) or syslog(LOG_WARNING,\"** kein Schreiben durch $job in DB! **\". mysql_error());\n\t\t//Close Connection to MySQL\n\t\tmysql_close();\n}", "public function testSetLibelle() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "private function set_record($br, $data) {\n $br->setTitle($data['title']);\n $br->setFirstname($data['firstname']);\n $br->setLastname($data['lastname']);\n $br->setEmail($data['email']);\n $br->setAddress1($data['address1']);\n $br->setAddress2($data['address2']);\n $br->setCity($data['city']);\n $br->setPostcode($data['postcode']);\n $br->setCounty($data['county']);\n $br->setCountry('GB');\n $br->setPhone($data['phone']);\n $br->setEinfo($data['einfo']);\n }", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function initialize()\n {\n // attributes\n $this->setName('gs_ingegeven_samenstellingen');\n $this->setPhpName('GsIngegevenSamenstellingen');\n $this->setClassname('PharmaIntelligence\\\\GstandaardBundle\\\\Model\\\\GsIngegevenSamenstellingen');\n $this->setPackage('src.PharmaIntelligence.GstandaardBundle.Model');\n $this->setUseIdGenerator(false);\n // columns\n $this->addColumn('bestandnummer', 'Bestandnummer', 'INTEGER', false, null, null);\n $this->addColumn('mutatiekode', 'Mutatiekode', 'INTEGER', false, null, null);\n $this->addForeignPrimaryKey('handelsproduktkode', 'Handelsproduktkode', 'INTEGER' , 'gs_handelsproducten', 'handelsproduktkode', true, null, null);\n $this->addPrimaryKey('volgnummer', 'Volgnummer', 'INTEGER', true, null, null);\n $this->addColumn('aanduiding_werkzaamhulpstof', 'AanduidingWerkzaamhulpstof', 'VARCHAR', false, 255, null);\n $this->addForeignKey('generiekenaamkode', 'Generiekenaamkode', 'INTEGER', 'gs_generieke_namen', 'generiekenaamkode', false, null, null);\n $this->addColumn('hoeveelheid_werkzame_stof', 'HoeveelheidWerkzameStof', 'DECIMAL', false, 12, null);\n $this->addForeignKey('eenh_hvh_werkzstof_thesaurus_1', 'EenhHvhWerkzstofThesaurus1', 'INTEGER', 'gs_thesauri_totaal', 'thesaurusnummer', false, null, null);\n $this->addForeignKey('eenhhoeveelheid_werkzame_stof_kode', 'EenhhoeveelheidWerkzameStofKode', 'INTEGER', 'gs_thesauri_totaal', 'thesaurus_itemnummer', false, null, null);\n $this->addColumn('stamnaamcode', 'Stamnaamcode', 'INTEGER', false, null, null);\n $this->addForeignKey('stamtoedieningsweg_thesaurus_58', 'StamtoedieningswegThesaurus58', 'INTEGER', 'gs_thesauri_totaal', 'thesaurusnummer', false, null, null);\n $this->addForeignKey('stamtoedieningsweg_code', 'StamtoedieningswegCode', 'INTEGER', 'gs_thesauri_totaal', 'thesaurus_itemnummer', false, null, null);\n // validators\n }", "public function __construct() {\r\n parent::__construct();\r\n parent::set_tabel('jadwal', 'kd_jadwal');\r\n }", "public function sbl_append($beer)\n {\n $q = \"REPLACE INTO sbl_beer (\n nr,\n Artikelid,\n Varnummer,\n Namn,\n Namn2,\n Prisinklmoms,\n Volymiml,\n PrisPerLiter,\n Saljstart,\n Slutlev,\n Varugrupp,\n Forpackning,\n Forslutning,\n Ursprung,\n Ursprunglandnamn,\n Producent,\n Leverantor,\n Argang,\n Provadargang,\n Alkoholhalt,\n Modul,\n Sortiment,\n Ekologisk,\n Koscher\n ) VALUES (\n $beer->nr,\n $beer->Artikelid,\n $beer->Varnummer,\n \\\"\".mysql_escape_string($beer->Namn).\"\\\",\n \\\"\".mysql_escape_string($beer->Namn2).\"\\\",\n $beer->Prisinklmoms,\n $beer->Volymiml,\n $beer->PrisPerLiter,\n \\\"\".mysql_escape_string($beer->Saljstart).\"\\\",\n \\\"\".mysql_escape_string($beer->Slutlev).\"\\\",\n \\\"\".mysql_escape_string($beer->Varugrupp).\"\\\",\n \\\"\".mysql_escape_string($beer->Forpackning).\"\\\",\n \\\"\".mysql_escape_string($beer->Forslutning).\"\\\",\n \\\"\".mysql_escape_string($beer->Ursprung).\"\\\",\n \\\"\".mysql_escape_string($beer->Ursprunglandnamn).\"\\\",\n \\\"\".mysql_escape_string($beer->Producent).\"\\\",\n \\\"\".mysql_escape_string($beer->Leverantor).\"\\\",\n \\\"\".mysql_escape_string($beer->Argang).\"\\\",\n \\\"\".mysql_escape_string($beer->Provadargang).\"\\\",\n \\\"\".mysql_escape_string($beer->Alkoholhalt).\"\\\",\n \\\"\".mysql_escape_string($beer->Modul).\"\\\",\n \\\"\".mysql_escape_string($beer->Sortiment).\"\\\",\n $beer->Ekologisk,\n $beer->Koscher\n )\";\n\n $this->query($q);\n }", "public function set_dataGraf(){\n\n }", "public function setBobotNilai($bobot_nilai);", "public function testSetAvecCodeBarre() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setAvecCodeBarre(true);\n $this->assertEquals(true, $obj->getAvecCodeBarre());\n }", "public function testSetSelectionFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionFournisseur(\"selectionFournisseur\");\n $this->assertEquals(\"selectionFournisseur\", $obj->getSelectionFournisseur());\n }", "public function setBukaera($data)\n {\n if ($data == '0000-00-00') {\n $data = null;\n }\n if ($data === 'CURRENT_TIMESTAMP' || is_null($data)) {\n $data = \\Zend_Date::now()->setTimezone('UTC');\n }\n\n if ($data instanceof \\Zend_Date) {\n\n $data = new \\DateTime($data->toString('yyyy-MM-dd HH:mm:ss'), new \\DateTimeZone($data->getTimezone()));\n\n } elseif (!is_null($data) && !$data instanceof \\DateTime) {\n\n $data = new \\DateTime($data, new \\DateTimeZone('UTC'));\n }\n\n if (is_null($data)) {\n throw new \\InvalidArgumentException(_('Required values cannot be null'));\n }\n if ($this->_bukaera != $data) {\n $this->_logChange('bukaera');\n }\n\n $this->_bukaera = $data;\n return $this;\n }", "function __construct(){\n $this->valorBruto = 0;\n $this->valorImpostos = 0;\n\n $this->itens = array(); // gera um array pra guardar os itens\n $this->acoesAoGerar = array();\n }", "public function testSetCodeFamilleFrn() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamilleFrn(\"codeFamilleFrn\");\n $this->assertEquals(\"codeFamilleFrn\", $obj->getCodeFamilleFrn());\n }", "public function setObjet($objet)\n {\n $this->objet = $objet;\n\n return $this;\n }", "public function set_atletas_talla_ropa_buzo($atletas_talla_ropa_buzo) {\n $atletas_talla_ropa_u = strtoupper($atletas_talla_ropa_buzo);\n\n if (in_array($atletas_talla_ropa_u, AtletasModel::$_TALLAS_ROPA)) {\n $this->atletas_talla_ropa_buzo = $atletas_talla_ropa_u;\n } else {\n $this->atletas_talla_ropa_buzo = '??';\n }\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function setPembelajaranRelatedByBelKe15(Pembelajaran $v = null)\n {\n if ($v === null) {\n $this->setBelKe15(NULL);\n } else {\n $this->setBelKe15($v->getPembelajaranId());\n }\n\n $this->aPembelajaranRelatedByBelKe15 = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Pembelajaran object, it will not be re-added.\n if ($v !== null) {\n $v->addJadwalRelatedByBelKe15($this);\n }\n\n\n return $this;\n }", "public function __construct() {\n\t\t$this->aktionen = new Aktionen();\n $this->attribute = [];\n $this->styles = [];\n $this->hinweis = null;\n\t}", "public function edit(Bien $bien)\n {\n //\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function setPembelajaranRelatedByBelKe20(Pembelajaran $v = null)\n {\n if ($v === null) {\n $this->setBelKe20(NULL);\n } else {\n $this->setBelKe20($v->getPembelajaranId());\n }\n\n $this->aPembelajaranRelatedByBelKe20 = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Pembelajaran object, it will not be re-added.\n if ($v !== null) {\n $v->addJadwalRelatedByBelKe20($this);\n }\n\n\n return $this;\n }", "public function set_aberto($_aberto)\n {\n $this->_aberto = $_aberto;\n\n return $this;\n }", "public function setSabor(Request $request)\n {\n $element = TcSabor::create($request->all());\n return response()->json($element, 201);\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "public function testSetCumBrutNonAbattu() {\n\n $obj = new Employes();\n\n $obj->setCumBrutNonAbattu(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBrutNonAbattu());\n }", "public function registreerBeheerder() {\n $beheerder = new stdClass();\n $beheerder->voornaam = strip_tags($this->input->post('voornaam'));\n $beheerder->naam = strip_tags($this->input->post('naam'));\n $beheerder->email = strip_tags($this->input->post('email'));\n $beheerder->paswoord = sha1(strip_tags($this->input->post('paswoord')));\n $beheerder->soort = \"Beheerder\";\n $this->load->model('persoon_model');\n $data['beheerder'] = $this->persoon_model->insert($beheerder);\n\n redirect('persoon/index');\n }", "public function __construct($absensi)\n {\n $this->absensi = $absensi;\n }", "public function setPembelajaranRelatedByBelKe14(Pembelajaran $v = null)\n {\n if ($v === null) {\n $this->setBelKe14(NULL);\n } else {\n $this->setBelKe14($v->getPembelajaranId());\n }\n\n $this->aPembelajaranRelatedByBelKe14 = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Pembelajaran object, it will not be re-added.\n if ($v !== null) {\n $v->addJadwalRelatedByBelKe14($this);\n }\n\n\n return $this;\n }", "function cl_bensetiquetaimpressa() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"bensetiquetaimpressa\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function setPembelajaranRelatedByBelKe16(Pembelajaran $v = null)\n {\n if ($v === null) {\n $this->setBelKe16(NULL);\n } else {\n $this->setBelKe16($v->getPembelajaranId());\n }\n\n $this->aPembelajaranRelatedByBelKe16 = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Pembelajaran object, it will not be re-added.\n if ($v !== null) {\n $v->addJadwalRelatedByBelKe16($this);\n }\n\n\n return $this;\n }", "public function setOrganisationFunktionSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\OrganisationFunktionSoegEgenskab $organisationFunktionSoegEgenskab = null)\n {\n $this->organisationFunktionSoegEgenskab = $organisationFunktionSoegEgenskab;\n return $this;\n }", "function AddArtikelAuftrag($artikel,$auftrag)\n {\n\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "public function setPembelajaranRelatedByBelKe19(Pembelajaran $v = null)\n {\n if ($v === null) {\n $this->setBelKe19(NULL);\n } else {\n $this->setBelKe19($v->getPembelajaranId());\n }\n\n $this->aPembelajaranRelatedByBelKe19 = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Pembelajaran object, it will not be re-added.\n if ($v !== null) {\n $v->addJadwalRelatedByBelKe19($this);\n }\n\n\n return $this;\n }", "public function setBentukLembaga(BentukLembaga $v = null)\n {\n if ($v === null) {\n $this->setBentukLembagaId(NULL);\n } else {\n $this->setBentukLembagaId($v->getBentukLembagaId());\n }\n\n $this->aBentukLembaga = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the BentukLembaga object, it will not be re-added.\n if ($v !== null) {\n $v->addSekolahPaud($this);\n }\n\n\n return $this;\n }", "public function setTestValues()\r\n {\r\n $fname = array(\"Jesper\", \"Nicolai\", \"Alex\", \"Stefan\", \"Helmut\", \"Elvis\");\r\n $lname = array(\"Gødvad\", \"Lundgaard\", \"Killing\", \"Meyer\", \"Schottmüller\", \"Presly\");\r\n $city = array(\"Copenhagen\", \"Århus\", \"Collonge\", \"Bremen\", \"SecretPlace\" );\r\n $country = array(\"Denmark\", \"Germany\", \"France\", \"Ümlaudia\", \"Graceland\");\r\n $road = array(\" Straße\", \" Road\", \"vej\", \" Boulevard\");\r\n \r\n $this->number = rand(1000,1010);\r\n $this->name = $fname[rand(0,5)] . \" \" . $lname[rand(0,5)];\r\n $this->email = \"[email protected]\";\r\n $this->address= \"Ilias\" . $road[rand(0,3)] .\" \" . rand(1,100);\r\n $this->postalcode = rand(2000,7000);\r\n $this->city = $city[rand(0,3)];\r\n $this->country = $country[rand(0,4)];\r\n $this->phone = \"+\" . rand(1,45) . \" \" . rand(100,999) . \" \" . rand(1000, 9999);\r\n $this->ean = 0;\r\n $this->website = ilERPDebtor::website; \r\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function set_superficie(int $_superficie){\n $this->_superficie = $_superficie;\n\n return $this;\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function __set($atrib, $value){\n\t\t$this->$atrib = $value;\n\t}", "public function setNome($nome){$this->nome = $nome;}", "public function testSetRib() {\n\n $obj = new Collaborateurs();\n\n $obj->setRib(\"rib\");\n $this->assertEquals(\"rib\", $obj->getRib());\n }", "public function testSetFicheSignee() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setFicheSignee(true);\n $this->assertEquals(true, $obj->getFicheSignee());\n }", "protected function simpanStokObatAlkesOut2($modObatAlkesPasien){\n\t\t$format = new MyFormatter;\n $oa = ObatalkesM::model()->findByPk($modObatAlkesPasien->obatalkes_id);\n\t\t//$modStokOa = StokobatalkesT::model()->findByPk($stokobatalkesasal_id);\n\t\t$modStokOaNew = new StokobatalkesT;\n $modStokOaNew->attributes = $oa->attributes;\n\t\t$modStokOaNew->attributes = $modObatAlkesPasien->attributes; //duplicate\n\t\t// $modStokOaNew->unsetIdTransaksi(); //new / autoincrement pk\n\t\t$modStokOaNew->qtystok_in = 0;\n\t\t$modStokOaNew->qtystok_out = $modObatAlkesPasien->qty_oa;\n\t\t$modStokOaNew->obatalkespasien_id = $modObatAlkesPasien->obatalkespasien_id;\n\t\t//$modStokOaNew->stokobatalkesasal_id = $stokobatalkesasal_id;\n\t\t$modStokOaNew->create_time = date('Y-m-d H:i:s');\n\t\t$modStokOaNew->update_time = $modStokOaNew->tglterima = date('Y-m-d H:i:s');\n\t\t$modStokOaNew->create_loginpemakai_id = Yii::app()->user->id;\n\t\t$modStokOaNew->update_loginpemakai_id = Yii::app()->user->id;\n\t\t$modStokOaNew->create_ruangan = Yii::app()->user->ruangan_id;\n \n //var_dump($modStokOaNew->validate());\n //var_dump($modStokOaNew->errors);\n //var_dump($modStokOaNew->attributes); die;\n\t\t\n\t\tif($modStokOaNew->validate()){ \n\t\t\t$modStokOaNew->save();\n\t\t\t//$modStokOaNew->setStokOaAktifBerdasarkanStok();\n\t\t} else {\n\t\t\t$this->stokobatalkestersimpan &= false;\n\t\t}\n\t\treturn $modStokOaNew; \n\t}", "public function setPembelajaranRelatedByBelKe05(Pembelajaran $v = null)\n {\n if ($v === null) {\n $this->setBelKe05(NULL);\n } else {\n $this->setBelKe05($v->getPembelajaranId());\n }\n\n $this->aPembelajaranRelatedByBelKe05 = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Pembelajaran object, it will not be re-added.\n if ($v !== null) {\n $v->addJadwalRelatedByBelKe05($this);\n }\n\n\n return $this;\n }", "public function __construct($daten = array())\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n }", "public function testSetCumBrutAbatNonLim() {\n\n $obj = new Employes();\n\n $obj->setCumBrutAbatNonLim(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBrutAbatNonLim());\n }", "public function setPembelajaranRelatedByBelKe18(Pembelajaran $v = null)\n {\n if ($v === null) {\n $this->setBelKe18(NULL);\n } else {\n $this->setBelKe18($v->getPembelajaranId());\n }\n\n $this->aPembelajaranRelatedByBelKe18 = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Pembelajaran object, it will not be re-added.\n if ($v !== null) {\n $v->addJadwalRelatedByBelKe18($this);\n }\n\n\n return $this;\n }", "public function setGesamtmietebrutto($gesamtmietebrutto)\n {\n $this->gesamtmietebrutto = $gesamtmietebrutto;\n return $this;\n }", "public function __construct()\n {\n $this->branche = new Settings();\n }", "function setInstancia($tabla){\r\n\t\t//DB_DataObject::debugLevel(1);\r\n\t\t//Crea una nueva instancia de $tabla a partir de DataObject\r\n\t\t$objDBO = DB_DataObject::Factory($tabla);\r\n\t\t\r\n\t\t$campos = $objDBO->table();\r\n\t\tunset($campos[\"id\"]);\r\n\t\tunset($campos[\"fecha\"]);\r\n\t\t\r\n\t\t//Asigna los valores\r\n\t\tforeach($campos as $key => $value){\r\n\t\t\t$objDBO->$key = utf8_decode($this->$key);\r\n\t\t}\r\n\t\t$objDBO->fecha = date(\"Y-m-d H:i:s\");\r\n\t\t$objDBO->find();\r\n\t\tif($objDBO->fetch()){\r\n\t\t\t$ret = $objDBO->id;\r\n\t\t}else{\r\n\t\t\t$ret = $objDBO->insert();\r\n\t\t}\r\n\t\t\r\n\t\t//Libera el objeto DBO\r\n\t\t$objDBO->free();\r\n\t\t\r\n\r\n\t\treturn ($ret);\r\n\t}", "public function _construct(){\n\t\t$this->marque = 'Peugeot';\n\t\t$this->couleur = 'blanc';\n\t\t$this->vitesse = 50;\n\t}", "public function testSetSuperviseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuperviseur(true);\n $this->assertEquals(true, $obj->getSuperviseur());\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function __construct($nombre,$edad,$sueldo){\n parent::__construct($nombre,$edad);\n $this->sueldo=$sueldo;\n }", "public function __construct($nom,$prenom,$adresse,$ville,$cp,$tel,$anniv,$login,$mdp,$rib,$email,$telB,$idB,$idA)\n {\n parent::__construct($nom,$prenom,$adresse,$ville,$cp,$tel,$anniv,$login,$mdp,$rib,$email,$telB);\n $this->id_banque = $idB;\n $this->num_appart = $idA;\n }", "public function edit(MalzemeGrubu $MalzemeGrubu)\n {\n\n }" ]
[ "0.631509", "0.598548", "0.5941457", "0.58644736", "0.5591374", "0.5577968", "0.5480713", "0.546306", "0.54055375", "0.53879565", "0.5377916", "0.53150284", "0.5296843", "0.52843165", "0.52782583", "0.52714735", "0.52624923", "0.526196", "0.52392006", "0.5219043", "0.52042496", "0.5195906", "0.5172795", "0.51711184", "0.51522106", "0.51447797", "0.51234376", "0.51140314", "0.51132256", "0.51079863", "0.50926304", "0.5091543", "0.50798833", "0.5077629", "0.50723904", "0.50436455", "0.50429404", "0.50380194", "0.5037804", "0.50315183", "0.5026955", "0.50194484", "0.5015238", "0.50150204", "0.50113493", "0.5011208", "0.4992827", "0.49819547", "0.49743494", "0.4974016", "0.49718088", "0.49677318", "0.49550357", "0.4954493", "0.4947831", "0.4933684", "0.4932293", "0.49322847", "0.492575", "0.4922566", "0.4908141", "0.4900865", "0.4896245", "0.48897174", "0.48851442", "0.48776385", "0.48747596", "0.48737025", "0.48735872", "0.48646894", "0.48614937", "0.48587787", "0.48584434", "0.4847069", "0.48444816", "0.48431814", "0.48429418", "0.48417294", "0.48406032", "0.48378322", "0.48308516", "0.4828525", "0.48278126", "0.48268187", "0.48245883", "0.48193625", "0.4818322", "0.48173243", "0.4816313", "0.48115066", "0.4811405", "0.48081467", "0.48076367", "0.4803494", "0.48017785", "0.48000997", "0.47939488", "0.4793759", "0.47865275", "0.47821382" ]
0.6608439
0
Sets a new interessefaellesskabSoegEgenskab
public function setInteressefaellesskabSoegEgenskab(?\Digitaliseringskataloget\SF1500\Organisation6\Organisationsystem\InteressefaellesskabSoegEgenskab $interessefaellesskabSoegEgenskab = null) { $this->interessefaellesskabSoegEgenskab = $interessefaellesskabSoegEgenskab; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($absensi)\n {\n $this->absensi = $absensi;\n }", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function __construct()\n {\n $this->name = \"Альбион\";\n $this->description = \"Центральная галактика, по слухам прародина предтеч.\";\n $this->color_test = \"#80787E\";\n $this->arraySistems = \n [\n [1,1,1],\n [1,1,1],\n [1,1,1]\n ];\n\n parent::__construct(); \n }", "function __construct($id=\"\") {\n //echo \"ciao\";\n \n $this->setNometabella(\"localita\");\n $this->tabella= array(\"nome\"=>\"\",\"provincia\"=>\"\",\"cap\"=>\"\",\"codice\"=>\"\",\"solodestinazione\"=>\"\");\n parent::__construct($id);\n}", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function setItSystemSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\ItSystemSoegEgenskab $itSystemSoegEgenskab = null)\n {\n $this->itSystemSoegEgenskab = $itSystemSoegEgenskab;\n return $this;\n }", "function __construct(){\n $this->valorBruto = 0;\n $this->valorImpostos = 0;\n\n $this->itens = array(); // gera um array pra guardar os itens\n $this->acoesAoGerar = array();\n }", "public function __construct() {\n\t\t$this->aktionen = new Aktionen();\n $this->attribute = [];\n $this->styles = [];\n $this->hinweis = null;\n\t}", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function testSetBic() {\n\n $obj = new Collaborateurs();\n\n $obj->setBic(\"bic\");\n $this->assertEquals(\"bic\", $obj->getBic());\n }", "abstract public function set();", "public function __construct($pemilik,$merk){\n $this->pemilik = $pemilik;\n $this->merk = $merk;\n }", "public function __construct($daten = array())\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n // $this->setEncoding();\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function testSetIban() {\n\n $obj = new Collaborateurs();\n\n $obj->setIban(\"iban\");\n $this->assertEquals(\"iban\", $obj->getIban());\n }", "public function __construct($cokolwiek) {\n return $this->description=$cokolwiek;//jakie efekt teraz bedzie\n }", "function cl_bensetiquetaimpressa() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"bensetiquetaimpressa\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function __condtruct($pemilik, $merk){\n $this->pemilik = $pemilik;\n $this->merk = $merk;\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function set_barbe($_barbe){\n $this->_barbe = $_barbe;\n\n return $this;\n }", "public function __construct($angka)\n {\n $this->setTipe($angka);\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function __construct() {\n $this->chambre = new Chambrehospi();\n }", "public function edit(Bien $bien)\n {\n //\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function __construct($arreglo,$idcj)\n {\n $this->arreglo = $arreglo;\n $this->idcj = $idcj;\n }", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function __construct($boja, $registracija)\n {\n // parent::__construct($boja,$tip);\n $this->setBoja($boja);\n // rucno stavljamo difoltnu vrednost za tip, ne prosledjujemo konstruktoru u ovom slucaju\n $this->setTip(\"automobil\");\n $this->setRegistracija($registracija);\n }", "function __construct($_caja, $_codigoEstanteria, $_leja) {\r\n if($_caja instanceof CajaSorpresa){\r\n parent::__construct($_caja->getCodigo(), $_caja->getAnchura(),$_caja->getAltura(), $_caja->getProfundidad(), $_caja->getColor(), $_caja->getContenido(), $_caja->getDevolucion());\r\n $this->sorpresa=$_caja;\r\n $this->estanteria=$_codigoEstanteria;\r\n $this->leja=$_leja;\r\n }\r\n }", "public function __construct($boja,$tip)\n {\n $this->setBoja($boja);\n $this->setTip($tip);\n }", "public function _construct(){\n\t\t$this->marque = 'Peugeot';\n\t\t$this->couleur = 'blanc';\n\t\t$this->vitesse = 50;\n\t}", "public function edit(jawaban_soal $jawaban_soal)\n {\n //\n }", "public function setKaina($x) {\n $this->kaina = $x; //privati reiksme tai kaina\n }", "public function setAb($ab)\n {\n $this->ab = $ab;\n\n return $this;\n }", "function SetKey( $i ) { $this->_key = $i; $this->SetValue('_key', $i ); }", "function\t__construct( $_id=-1) {\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr::__construct(...): \") ;\n\t\tAppObject::__construct( \"AbKorr\", \"AbKorrNr\") ;\n\t\tif ( ! isset( $_SESSION['Sess_AbKorr_startRow'])) {\n\t\t\t$this->setStartRow( 0) ;\n\t\t\t$this->setRowCount( 10) ;\n\t\t\t$_SESSION['Sess_AbKorr_startRow']\t=\t$this->getStartRow() ;\t\n\t\t\t$_SESSION['Sess_AbKorr_rowCount']\t=\t$this->getRowCount() ;\t\n\t\t} else {\n\t\t\t$this->setStartRow( $_SESSION['Sess_AbKorr_startRow']) ;\t\n\t\t\t$this->setRowCount( $_SESSION['Sess_AbKorr_rowCount']) ;\t\n\t\t}\n\t\tif ( $_id >= 0) {\n\t\t\t$this->setId\t=\t$_id ;\n\t\t} else {\n\t\t}\n\t}", "public function init(){\n $this->documento='760';\n }", "function setId_asignatura($iid_asignatura)\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "function setInstancia($tabla){\r\n\t\t//DB_DataObject::debugLevel(1);\r\n\t\t//Crea una nueva instancia de $tabla a partir de DataObject\r\n\t\t$objDBO = DB_DataObject::Factory($tabla);\r\n\t\t\r\n\t\t$campos = $objDBO->table();\r\n\t\tunset($campos[\"id\"]);\r\n\t\tunset($campos[\"fecha\"]);\r\n\t\t\r\n\t\t//Asigna los valores\r\n\t\tforeach($campos as $key => $value){\r\n\t\t\t$objDBO->$key = utf8_decode($this->$key);\r\n\t\t}\r\n\t\t$objDBO->fecha = date(\"Y-m-d H:i:s\");\r\n\t\t$objDBO->find();\r\n\t\tif($objDBO->fetch()){\r\n\t\t\t$ret = $objDBO->id;\r\n\t\t}else{\r\n\t\t\t$ret = $objDBO->insert();\r\n\t\t}\r\n\t\t\r\n\t\t//Libera el objeto DBO\r\n\t\t$objDBO->free();\r\n\t\t\r\n\r\n\t\treturn ($ret);\r\n\t}", "public function __construct()\n\n {\n parent::__construct();\n\n $this->tablename=\"etat_compte\";\n $this->ide = 'null' ;\n $this->idfa = 0 ;\n $this->idmouv = 0 ;\n $this->depense = 0 ;\n $this->gains = 0 ;\n $this->stock = 0 ;\n $this->datee = date(\"\") ;\n }", "public function testSetImprimante() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setImprimante(\"imprimante\");\n $this->assertEquals(\"imprimante\", $obj->getImprimante());\n }", "public function setBobotNilai($bobot_nilai);", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "function nustatome_kintamuosius ($a, $b, $c){\n $this -> modelis = $a;\n $this -> marke = $b;\n $this -> gamybosMetai = $c;\n $this -> spalva = \"Raudona\";\n $this -> duruSkaicius = 5;\n\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "public function set_superficie(int $_superficie){\n $this->_superficie = $_superficie;\n\n return $this;\n }", "function setAllIm($i, $j, $k) {/*{{{*/\n $this->setI($i);\n $this->setJ($j);\n $this->setK($k);\n }", "public function testSetEmploi() {\n\n $obj = new Employes();\n\n $obj->setEmploi(\"emploi\");\n $this->assertEquals(\"emploi\", $obj->getEmploi());\n }", "function setId_asignatura($iid_asignatura = '')\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function edit(Cuti $cuti)\n {\n //\n }", "public function testSetEtat() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "private function setExercicio(){\n\t\t$this->Enunciado = $this->Data['enunciado'];\n\t\t$this->A = $this->Data['opA'];\n\t\t$this->B = $this->Data['opB'];\n\t\t$this->C = $this->Data['opC'];\n\t\t$this->D = $this->Data['opD'];\n\t\t$this->E = $this->Data['opE'];\n\t\t$this->Correta = $this->Data['correta'];\n\n\t\t$this->Query = ['c_enumexer' => $this->Enunciado,\n\t\t\t\t\t\t'c_altaexer' => $this->A,\n\t\t\t\t\t\t'c_altbexer' => $this->B,\n\t\t\t\t\t\t'c_altcexer' => $this->C,\n\t\t\t\t\t\t'c_altdexer' => $this->D,\n\t\t\t\t\t\t'c_alteexer' => $this->E,\n\t\t\t\t\t\t'c_correxer' => $this->Correta];\n\n\t}", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); \r\n\r\n//zapis do uc_kolize_table pro kazdou nastalou s_kolizi\r\n foreach ($idcka_skolizi as $id_skolize) { //zapisovana policka jsou v $pole\r\n //echo \"policko: \" . $pole['uc_kolize_table§' . $id_skolize . '_revidovano'];\r\n $kolize = new Projektor2_Table_UcKolizeData ($iducast, (int)$id_skolize,\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano'],\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano_pozn'],\r\n null, 1,\r\n null,null,null,null,null) ;\r\n // echo \"v Zapis_kolize_temp\" . var_dump ($kolize);\r\n $kolize->Zapis_jednu_kolizi(); //kdyz je v tabulce uc_kolize_table, tak prepsat, kdyz neni, tak insert\r\n }\r\n\r\n}", "function setChambrehospi($chambre){\n $this->chambre = $chambre;\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function set_new_instance( $ile )\n {\n $_SESSION['logg'][] = 'Ustanawiam nowa instancje DB ['.$ile.']: <BR>'.\"\\n\".$_SESSION['nl'];\n\n $this -> instances[$ile ] = $this -> db_connect( $ile, dbName, dbHost, dbUser, dbPass );\n\n $this -> instancesF[$ile ] = -1;\n $this -> instances_count = $this -> instances_count + 1;\n\n return $ile;\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "public function __construct($nome,$cognome)\n {\n // $a++\n // $this->contatore // errato perchè riferito all'istanza\n $this->id = self::$contatore++;\n //$this->nome = $nome;\n $this->setNome($nome);\n $this->setCognome($cognome);\n }", "public function testSetCodeIntervenant() {\n\n $obj = new Materiels();\n\n $obj->setCodeIntervenant(\"codeIntervenant\");\n $this->assertEquals(\"codeIntervenant\", $obj->getCodeIntervenant());\n }", "public function __construct($_prezime,$_ime,$_pol,$_bojakose,$_bojaociju,$_rasa,$_datumrodjenja,$_mestorodjenja) {\n \n $this->prezime=$_prezime;\n $this->ime=$_ime;\n $this->pol=$_pol;\n $this->boja_kose=$_bojakose;\n $this->boja_ociju=$_bojaociju;\n $this->rasa=$_rasa;\n $this->datum_rodjenja=$_datumrodjenja;\n $this->mesto_rodjenja=$_mestorodjenja;\n }", "function setIdadeFilho( $iIndiceFilho, $iIdade ) {\n $this->{\"iIdadeFilho$iIndiceFilho\"} = $iIdade;\n }", "public function testSetJacp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJacp(10);\n $this->assertEquals(10, $obj->getJacp());\n }", "public function __construct($_cognome, $_nome, $_matricola)\n {\n // matricola è un attributo della classe padre 'Dipendente'\n // richiamo il costruttore della classe padre con i suoi parametri\n parent::__construct($_cognome, $_nome, $_matricola);\n\n $this -> data_nascita = \"non presente\";\n $this -> email = \"[email protected]\";\n $this -> telefono = \"0000000000\";\n\n echo 'Creo un Dipendente di classe: <strong>'. __CLASS__ . '</strong><br />';\n\n\n }", "public function testSetCodePenibilite() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setCodePenibilite(\"codePenibilite\");\n $this->assertEquals(\"codePenibilite\", $obj->getCodePenibilite());\n }", "function makeClone()\n {\n $this->id = 0;\n }", "public function __construct($judul =\"Judul\",$penulis =\"penulis\",$penerbit =\"penerbit\",$harga =0,$jmlHalaman=0,$waktuMain=0,$tipe){\n // Construct merupakan sebuah method spesial (khusus) karena method yang otomatis di jalankan ketika sebuah class di Instantiasi (Objek) nya,\n // ketika kita membuat objek dengan keyword new , pada saat itu juga ada sebuah method yang di jalankan yaitu constructor.\n // echo \"Assalamu'alaikum\";\n $this->judul = $judul;\n $this->penulis = $penulis;\n $this->penerbit = $penerbit;\n $this->harga = $harga;\n $this->jmlHalaman = $jmlHalaman;\n $this->waktuMain = $waktuMain;\n $this->tipe = $tipe;\n }", "function inicializa(){\n $this->sem=array('Sun'=>1,'Mon'=>2,'Tue'=>3,'Wed'=>4,'Thu'=>5,'Fri'=>6,'Sat'=>7);\n $this->mes=array('1'=>'JANEIRO','2'=>'FEVEREIRO','3'=>'MARÇO','4'=>'ABRIL','5'=>'MAIO','6'=>'JUNHO','7'=>'JULHO','8'=>'AGOSTO','9'=>'SETEMBRO','10'=>'OUTUBRO','11'=>'NOVEMBRO','12'=>'DEZEMBRO');\n }", "public function __construct($cikkID)\n {\n $this->cikkID = $cikkID;\n }", "public function testSetInterdireEnvoiPostit() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEnvoiPostit(true);\n $this->assertEquals(true, $obj->getInterdireEnvoiPostit());\n }", "public function __construct($pessoa, $chave)\n {\n $this->pessoa = $pessoa;\n $this->chave = $chave;\n }", "public function setInscrit($millesime, $eleveId, $inscrit)\r\n {\r\n $oData = $this->getObjData();\r\n $oData->exchangeArray(array(\r\n 'millesime' => $millesime,\r\n 'eleveId' => $eleveId,\r\n 'inscrit' => $inscrit\r\n ));\r\n parent::saveRecord($oData);\r\n }", "function cl_escolabase() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"escolabase\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"].\"?ed77_i_escola=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_escola\"].\"&ed18_c_nome=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed18_c_nome\"].\"&ed31_c_descr=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed31_c_descr\"].\"&ed77_i_base=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_base\"]);\n }", "public function testSetCodeEtablissement() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function __construct($nom,$prenom,$adresse,$ville,$cp,$tel,$anniv,$login,$mdp,$rib,$email,$telB,$idB,$idA)\n {\n parent::__construct($nom,$prenom,$adresse,$ville,$cp,$tel,$anniv,$login,$mdp,$rib,$email,$telB);\n $this->id_banque = $idB;\n $this->num_appart = $idA;\n }", "public function set_element($elm) {\n $this->elements[$elm->id] = $elm;\n }", "public function __construct($tabela) {\n $this->tabela = $tabela;\n parent::__construct();\n }", "function setId_serie($iid_serie)\n {\n $this->iid_serie = $iid_serie;\n }", "private function CsomagHozzaadasa()\r\n {\r\n foreach (Lap::Nevkeszlet() as $nev)\r\n {\r\n foreach (Lap::Szinkeszlet() as $szin)\r\n {\r\n $this->lapok[]=new Lap($szin,$nev);\r\n }\r\n }\r\n }", "public function __construct($inhalt = \"\") {\n\t\t parent::__construct();\n\t\t $this->inhalt \t= $inhalt;\n\t}", "public function __clone()\n { \n trigger_error('La clonación no permitida', E_USER_ERROR); \n }", "public function __construct($daten = array())\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n }", "public function __construct($nombre,$edad,$sueldo){\n parent::__construct($nombre,$edad);\n $this->sueldo=$sueldo;\n }", "public function __construct($stri_name,$stri_value) \n { \n //construction de l'indentifiant\n self::$int_nb_instance++;\n $this->int_id=self::$int_nb_instance;\n \n $this->stri_width=\"100px\";\n \n $this->initSubObject($stri_name,$stri_value);\n $this->initJavascript();\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "public function setIdea(){\n $query=\"INSERT INTO idea (nombre_idea, id_categoria, fecha_limite, desc_idea, enVenta, id_correo, importe_venta, cv_equipo, importe_solicitado, imagen)\n VALUES('\".$this->getNombre_Idea().\"',\n '\".$this->getId_Categoria().\"',\n '\".$this->getFecha_Limite().\"',\n '\".$this->getDesc_idea().\"',\n \t\t\t\t\t '\".$this->getEnVenta().\"',\n \t\t\t\t\t '\".$this->getId_Correo().\"',\n \t\t\t\t\t '\".$this->getImporte_Venta().\"',\n \t\t\t\t\t '\".$this->getCv_Equipo().\"',\n\t\t\t\t\t\t\t '\".$this->getImporte_solicitado().\"',\n '\".$this->getImagen().\"');\";\n if($this->db()->query($query) == false)\n\t\t\t throw new Exception('MySQL: Error al realizar la inserción SQL. setIdea()');\n\n $query=\"UPDATE idea SET enVenta = NULL WHERE idea.enVenta=0\";\n if($this->db()->query($query) == false)\n throw new Exception('MySQL: Error al realizar la inserción SQL. Update');\n\n $query=\"UPDATE idea SET importe_venta = NULL WHERE idea.importe_venta=0\";\n if($this->db()->query($query) == false)\n throw new Exception('MySQL: Error al realizar la inserción SQL. Update');\n\n //Consigue el ID de la BBDD\n $query = $this->getBy('nombre_idea', $this->getNombre_Idea());\n\n $this->setId_idea($query[0]['id_idea']);\n\t}", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function setBrugerSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\BrugerSoegEgenskab $brugerSoegEgenskab = null)\n {\n $this->brugerSoegEgenskab = $brugerSoegEgenskab;\n return $this;\n }", "function __construct($i = 0, $c = 0, $r = 0, $n = 0, $ni = 0)\n {\n $this->id = $i;\n $this->col = $c;\n $this->row = $r;\n $this->number = $n;\n $this->idNiche = $ni;\n }", "function __construct() \n\t{\n\t\tparent::__construct();\n\n\t\t$this->attributes['id']\t\t= $this->createID('KOPERASI');\n\n\t\tif(isset($this->ext_appends))\n\t\t{\n\t\t\t$this->appends \t\t\t= array_merge($this->appends, $this->ext_appends);\n\t\t}\n\n\t}", "public function __construct() {\r\n parent::__construct(\"tr_angka_kredit_tahunan\");\r\n $this->primary_key = \"id_akt\";\r\n $this->attribute_labels = array_merge_recursive($this->_continuously_attribute_label, $this->attribute_labels);\r\n $this->rules = array_merge_recursive($this->_continuously_rules, $this->rules);\r\n }", "public function testSetInterdireEditionValoriseJrnTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEditionValoriseJrnTemps(true);\n $this->assertEquals(true, $obj->getInterdireEditionValoriseJrnTemps());\n }", "public function testSetAvecMiseEnSomm() {\n\n $obj = new AppelsEnCours();\n\n $obj->setAvecMiseEnSomm(true);\n $this->assertEquals(true, $obj->getAvecMiseEnSomm());\n }" ]
[ "0.576902", "0.5578742", "0.54356354", "0.54074144", "0.5394288", "0.53935", "0.5321104", "0.5285257", "0.5270227", "0.52538097", "0.52518827", "0.5220283", "0.52164", "0.5179266", "0.5164634", "0.51489156", "0.5119781", "0.5088769", "0.50804365", "0.50666374", "0.5061231", "0.5060959", "0.50446767", "0.5041518", "0.50369716", "0.5026208", "0.5026208", "0.50129795", "0.50127923", "0.49948817", "0.49892136", "0.4964391", "0.49533492", "0.4952906", "0.49517754", "0.4948342", "0.49478364", "0.4935681", "0.49341184", "0.49288893", "0.49204174", "0.49124932", "0.49082124", "0.49048808", "0.4891194", "0.48904404", "0.4882805", "0.4881541", "0.4880547", "0.48766887", "0.4875774", "0.48681515", "0.4858564", "0.4858196", "0.485786", "0.48574817", "0.48538524", "0.48513812", "0.48483214", "0.48478478", "0.4847403", "0.48445648", "0.48415416", "0.48413503", "0.48363304", "0.48322913", "0.48267144", "0.48218954", "0.48212707", "0.48192984", "0.48106834", "0.48088816", "0.48068768", "0.48066083", "0.48061296", "0.48023322", "0.47981858", "0.4790409", "0.47832993", "0.47813544", "0.47770432", "0.4774568", "0.47664857", "0.47661698", "0.476254", "0.47542801", "0.4750138", "0.474966", "0.47479802", "0.47457775", "0.47439823", "0.47439823", "0.47421774", "0.47390231", "0.47374803", "0.47325662", "0.47315356", "0.4728131", "0.47250292", "0.47248054" ]
0.6949871
0
Sets a new itSystemSoegEgenskab
public function setItSystemSoegEgenskab(?\Digitaliseringskataloget\SF1500\Organisation6\Organisationsystem\ItSystemSoegEgenskab $itSystemSoegEgenskab = null) { $this->itSystemSoegEgenskab = $itSystemSoegEgenskab; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInteressefaellesskabSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\InteressefaellesskabSoegEgenskab $interessefaellesskabSoegEgenskab = null)\n {\n $this->interessefaellesskabSoegEgenskab = $interessefaellesskabSoegEgenskab;\n return $this;\n }", "public function setSystem($system)\n {\n $this->system = $system;\n }", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "private function setEC(EC $ec) {\n $this->ec = $ec;\n }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function set_element($elm) {\n $this->elements[$elm->id] = $elm;\n }", "function Cgn_SystemTicket($m='main', $s='main', $e='main') {\n\t\t$this->module = $m;\n\t\t$this->service = $s;\n\t\t$this->event = $e;\n\t\t$this->filename = $s .'.php';\n\t\t$this->className = 'Cgn_Service_'.str_replace('-', '', ucfirst($m)).'_'.ucfirst($s);\n\t}", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function setModel(ECash_Models_Application $model)\n\t\t{\n\t\t\t//throw new Exception('what are you doing?');\n\t\t\t$this->model = $model;\n\t\t\t$this->have_model = TRUE;\n\t\t}", "public function setBrugerSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\BrugerSoegEgenskab $brugerSoegEgenskab = null)\n {\n $this->brugerSoegEgenskab = $brugerSoegEgenskab;\n return $this;\n }", "public function setTicketSystem(?string $value): void {\n $this->getBackingStore()->set('ticketSystem', $value);\n }", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "public function set_escenario(Request $request)\n {\n $transporte_id=$request->get('transporte_id');\n $transporte=Transporte::find($transporte_id);\n $escenario_id=$request->get('escenario');\n $escenario=Escenario::findOrFail($escenario_id);\n $precio=$request->get('precio');\n $transporte->escenarios()->attach($escenario_id,['precio'=>$precio]);\n\n Session::flash('message','Se agregó \"'.$escenario->escenario.'\" al \"'.$transporte->destino.'\", con un costo de $'.$precio.'');\n return redirect()->route('admin.transportes.index');\n }", "public function testSetEtat() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "public function __construct()\n {\n $this->name = \"Альбион\";\n $this->description = \"Центральная галактика, по слухам прародина предтеч.\";\n $this->color_test = \"#80787E\";\n $this->arraySistems = \n [\n [1,1,1],\n [1,1,1],\n [1,1,1]\n ];\n\n parent::__construct(); \n }", "function inicializa(){\n $this->sem=array('Sun'=>1,'Mon'=>2,'Tue'=>3,'Wed'=>4,'Thu'=>5,'Fri'=>6,'Sat'=>7);\n $this->mes=array('1'=>'JANEIRO','2'=>'FEVEREIRO','3'=>'MARÇO','4'=>'ABRIL','5'=>'MAIO','6'=>'JUNHO','7'=>'JULHO','8'=>'AGOSTO','9'=>'SETEMBRO','10'=>'OUTUBRO','11'=>'NOVEMBRO','12'=>'DEZEMBRO');\n }", "function __construct($id=\"\") {\n //echo \"ciao\";\n \n $this->setNometabella(\"localita\");\n $this->tabella= array(\"nome\"=>\"\",\"provincia\"=>\"\",\"cap\"=>\"\",\"codice\"=>\"\",\"solodestinazione\"=>\"\");\n parent::__construct($id);\n}", "function __construct($KodeMataKuliah, $SKS){\r\n\t\t\t$this->KodeMataKuliah = $KodeMataKuliah;\r\n\t\t\t$this->SKS = $SKS;\r\n\t\t}", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function testSetCodeEtablissement() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function __construct($absensi)\n {\n $this->absensi = $absensi;\n }", "function __construct(){\n $this->valorBruto = 0;\n $this->valorImpostos = 0;\n\n $this->itens = array(); // gera um array pra guardar os itens\n $this->acoesAoGerar = array();\n }", "public function setEstab_id($estab_id)\n {\n $this->estab_id = $estab_id;\n\n return $this;\n }", "abstract public function set();", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function setOrganisationSoegEgenskab(?\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisationsystem\\OrganisationSoegEgenskab $organisationSoegEgenskab = null)\n {\n $this->organisationSoegEgenskab = $organisationSoegEgenskab;\n return $this;\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function __construct($pemilik,$merk){\n $this->pemilik = $pemilik;\n $this->merk = $merk;\n }", "function setAdmin() {\n\t\t$this->_extension_high = \"\";\n\t\t$this->_extension_low = \"\";\n\t\t$this->_deptname = \"\";\n\t\t$this->_sections = array(\"*\");\n\t}", "protected function simpanStokObatAlkesOut2($modObatAlkesPasien){\n\t\t$format = new MyFormatter;\n $oa = ObatalkesM::model()->findByPk($modObatAlkesPasien->obatalkes_id);\n\t\t//$modStokOa = StokobatalkesT::model()->findByPk($stokobatalkesasal_id);\n\t\t$modStokOaNew = new StokobatalkesT;\n $modStokOaNew->attributes = $oa->attributes;\n\t\t$modStokOaNew->attributes = $modObatAlkesPasien->attributes; //duplicate\n\t\t// $modStokOaNew->unsetIdTransaksi(); //new / autoincrement pk\n\t\t$modStokOaNew->qtystok_in = 0;\n\t\t$modStokOaNew->qtystok_out = $modObatAlkesPasien->qty_oa;\n\t\t$modStokOaNew->obatalkespasien_id = $modObatAlkesPasien->obatalkespasien_id;\n\t\t//$modStokOaNew->stokobatalkesasal_id = $stokobatalkesasal_id;\n\t\t$modStokOaNew->create_time = date('Y-m-d H:i:s');\n\t\t$modStokOaNew->update_time = $modStokOaNew->tglterima = date('Y-m-d H:i:s');\n\t\t$modStokOaNew->create_loginpemakai_id = Yii::app()->user->id;\n\t\t$modStokOaNew->update_loginpemakai_id = Yii::app()->user->id;\n\t\t$modStokOaNew->create_ruangan = Yii::app()->user->ruangan_id;\n \n //var_dump($modStokOaNew->validate());\n //var_dump($modStokOaNew->errors);\n //var_dump($modStokOaNew->attributes); die;\n\t\t\n\t\tif($modStokOaNew->validate()){ \n\t\t\t$modStokOaNew->save();\n\t\t\t//$modStokOaNew->setStokOaAktifBerdasarkanStok();\n\t\t} else {\n\t\t\t$this->stokobatalkestersimpan &= false;\n\t\t}\n\t\treturn $modStokOaNew; \n\t}", "public function setSLUhrzeit($uhrzeit) {\n\t\t$this->data['var SLUhrzeit'] = '\"'.$uhrzeit.'\"';\n\t}", "public function __construct()\n\n {\n parent::__construct();\n\n $this->tablename=\"etat_compte\";\n $this->ide = 'null' ;\n $this->idfa = 0 ;\n $this->idmouv = 0 ;\n $this->depense = 0 ;\n $this->gains = 0 ;\n $this->stock = 0 ;\n $this->datee = date(\"\") ;\n }", "public function init(){\n $this->documento='760';\n }", "public function testSetCodeEtablissement() {\n\n $obj = new Employes();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function salirSistema( ) {\n $this->setComando(\"OFF\");\n }", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "function set_entity($ent){\n $this -> table = $ent;\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setInstance(DobleOS $os);", "public function setSabor(Request $request)\n {\n $element = TcSabor::create($request->all());\n return response()->json($element, 201);\n }", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function __construct($daten = array())\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n // $this->setEncoding();\n }", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "private function set_game($iGame) {\r\n $this->game = $iGame;\r\n }", "public function SetHostEnvio($hostEnvio){\n\t\t\t\n\t\t\t\t$this->hostEnvio = $hostEnvio;\n\t\t\t\n\t\t}", "function init_bees(){ \n $_SESSION['bee_s'] = [];\n /// Création des abeilles reines\n for( $i = 0; $i < BEE_QWEEN_NB; $i++){\n $_SESSION['bee_s'][] = new QweenBee();\n }\n /// Création des abeilles travailleuses\n for( $i = 0; $i < BEE_WORKER_NB; $i++){\n $_SESSION['bee_s'][] = new WorkerBee();\n }\n /// Création des abbeilles drones\n for( $i = 0; $i < BEE_DRONE_NB; $i++){\n $_SESSION['bee_s'][] = new DroneBee();\n }\n }", "public function modify ($est){\r\n \r\n $sql = \"UPDATE ESTADO_USUARIO SET cod_estado = \".$est->getCod_estado().\", \r\n nom_estado = '\".$est->getNom_estado().\"' \r\n where cod_estado = \".$est->getCod_estado().\";\";\r\n pg_Exec($this->conexion,$sql);\r\n }", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }", "public function initEtablissements()\n {\n $this->collEtablissements = new PropelObjectCollection();\n $this->collEtablissements->setModel('Etablissement');\n }", "function setSyncItemsCodeEan()\n {\n }", "public function __construct($steamModel){\n $sM = $steamModel;\n \n $sB['system'] = array(\n 'mF' => array (\n 'boiler' => 0,\n 'boilerLoss' => 0,\n 'condTurbine' => 0,\n 'condTurbineLoss' => 0,\n 'hpmpTurbine' => 0,\n 'hplpTurbine' => 0,\n 'mplpTurbine' => 0,\n 'hpHeatLoss' => 0,\n 'hpProcessLoss' => -($sM->hpProcessSteam->massFlow - $sM->hpCondInitial->massFlow),\n 'mpHeatLoss' => 0,\n 'mpProcessLoss' => -($sM->mpProcessSteam->massFlow - $sM->mpCondInitial->massFlow),\n 'lpHeatLoss' => 0,\n 'lpProcessLoss' => -($sM->lpProcessSteam->massFlow - $sM->lpCondInitial->massFlow), \n 'lpVentedSteam' => -$sM->lpVentedSteam->massFlow, \n 'makeupWater' => $sM->makeupWater->massFlow,\n 'blowdownDump' => -$sM->blowdownFlashLiquid->massFlow,\n 'condensateFlash' => -$sM->condReturnVent->massFlow,\n 'condensateHeatLoss' => 0,\n 'daVent' => -$sM->deaerator->daVentSteam->massFlow, \n ),\n 'eF' => array(\n 'boiler' => $sM->boiler->fuelEnergy,\n 'boilerLoss' => -($sM->boiler->fuelEnergy - $sM->boiler->boilerEnergy),\n 'condTurbine' => -$sM->turbineCondModel->energyOut,\n 'condTurbineLoss' => -($sM->turbineCondModel->outletSteam->energyFlow - $sM->turbineCondSteamCooled->energyFlow),\n 'hpmpTurbine' => -$sM->turbineHpMpModel->energyOut,\n 'hplpTurbine' => -$sM->turbineHpLpModel->energyOut,\n 'mplpTurbine' => -$sM->turbineMpLpModel->energyOut,\n 'hpHeatLoss' => -$sM->hpHeader->heatLoss->energyFlowLoss,\n 'hpProcessLoss' => -($sM->hpProcessSteam->energyFlow - $sM->hpCondInitial->energyFlow),\n 'mpHeatLoss' => -$sM->mpHeader->heatLoss->energyFlowLoss,\n 'mpProcessLoss' => -($sM->mpProcessSteam->energyFlow - $sM->mpCondInitial->energyFlow),\n 'lpHeatLoss' => -$sM->lpHeader->heatLoss->energyFlowLoss,\n 'lpProcessLoss' => -($sM->lpProcessSteam->energyFlow - $sM->lpCondInitial->energyFlow), \n 'lpVentedSteam' => -$sM->lpVentedSteam->energyFlow, \n 'makeupWater' => $sM->makeupWater->energyFlow,\n 'blowdownDump' => -$sM->blowdownFlashLiquid->energyFlow,\n 'condensateFlash' => -$sM->condReturnVent->energyFlow,\n 'condensateHeatLoss' => -( $sM->lpCondFinal->energyFlow - $sM->condensate->energyFlow ),\n 'daVent' => -$sM->deaerator->daVentSteam->energyFlow, \n ));\n\n $sB['hpHeader'] = array(\n 'mF' => array (\n 'boiler' => $sM->boiler->outletSteam->massFlow,\n 'condTurbine' => -$sM->turbineCondModel->inletSteam->massFlow,\n 'hpmpTurbine' => -$sM->turbineHpMpModel->inletSteam->massFlow,\n 'hplpTurbine' => -$sM->turbineHpLpModel->inletSteam->massFlow,\n 'hpTmpPRV' => -$sM->hpTmpPRV->inletSteam->massFlow,\n 'hpProcessSteam' => -$sM->hpProcessSteam->massFlow,\n 'heatLoss' => 0,\n ),\n 'eF' => array (\n 'boiler' => $sM->boiler->outletSteam->energyFlow,\n 'condTurbine' => -$sM->turbineCondModel->inletSteam->energyFlow,\n 'hpmpTurbine' => -$sM->turbineHpMpModel->inletSteam->energyFlow,\n 'hplpTurbine' => -$sM->turbineHpLpModel->inletSteam->energyFlow,\n 'hpTmpPRV' => -$sM->hpTmpPRV->inletSteam->energyFlow,\n 'hpProcessSteam' => -$sM->hpProcessSteam->energyFlow,\n 'heatLoss' => -$sM->hpHeader->heatLoss->energyFlowLoss,\n ),\n );\n\n $sB['mpHeader'] = array(\n 'mF' => array (\n 'hpTmpPRV' => $sM->hpTmpPRV->inletSteam->massFlow,\n 'hpTmpPRVdesup' => number_format(0,2),\n 'hpmpTurbine' => $sM->turbineHpMpModel->outletSteam->massFlow,\n 'hpCondGasToMp' => $sM->hpCondGasToMp->massFlow,\n 'mpTlpPRV' => -$sM->mpTlpPRV->inletSteam->massFlow,\n 'mplpTurbine' => -$sM->turbineMpLpModel->inletSteam->massFlow,\n 'mpProcessSteam' => -$sM->mpProcessSteam->massFlow,\n 'heatLoss' => 0,\n ),\n 'eF' => array (\n 'hpTmpPRV' => $sM->hpTmpPRV->inletSteam->energyFlow,\n 'hpTmpPRVdesup' => number_format(0,2),\n 'hpmpTurbine' => $sM->turbineHpMpModel->outletSteam->energyFlow,\n 'hpCondGasToMp' => $sM->hpCondGasToMp->energyFlow,\n 'mpTlpPRV' => -$sM->mpTlpPRV->inletSteam->energyFlow,\n 'mplpTurbine' => -$sM->turbineMpLpModel->inletSteam->energyFlow,\n 'mpProcessSteam' => -$sM->mpProcessSteam->energyFlow,\n 'heatLoss' => -$sM->mpHeader->heatLoss->energyFlowLoss,\n ),\n );\n if (isset($sM->hpTmpPRV->desuperheatFluid->massFlow)){\n $sB['mpHeader']['mF']['hpTmpPRVdesup'] = $sM->hpTmpPRV->desuperheatFluid->massFlow;\n $sB['mpHeader']['eF']['hpTmpPRVdesup'] = $sM->hpTmpPRV->desuperheatFluid->energyFlow;\n }\n\n $sB['lpHeader'] = array(\n 'mF' => array (\n 'mpTlpPRV' => $sM->mpTlpPRV->inletSteam->massFlow,\n 'mpTlpPRVdesup' => number_format(0,2),\n 'mplpTurbine' => $sM->turbineMpLpModel->outletSteam->massFlow,\n 'hplpTurbine' => $sM->turbineHpLpModel->outletSteam->massFlow,\n 'mpCondGasToLp' => $sM->mpCondGasToLp->massFlow,\n 'blowdownGasToLp' => $sM->blowdownGasToLp->massFlow,\n 'daSteam' => -$sM->deaerator->daSteamFeed->massFlow, \n 'lpProcessSteam' => -$sM->lpProcessSteam->massFlow, \n 'heatLoss' => 0, \n 'lpVentedSteam' => -$sM->lpVentedSteam->massFlow, \n ),\n 'eF' => array (\n 'mpTlpPRV' => $sM->mpTlpPRV->inletSteam->energyFlow,\n 'mpTlpPRVdesup' => number_format(0,2),\n 'mplpTurbine' => $sM->turbineMpLpModel->outletSteam->energyFlow,\n 'hplpTurbine' => $sM->turbineHpLpModel->outletSteam->energyFlow,\n 'mpCondGasToLp' => $sM->mpCondGasToLp->energyFlow,\n 'blowdownGasToLp' => $sM->blowdownGasToLp->energyFlow,\n 'daSteam' => -$sM->deaerator->daSteamFeed->energyFlow, \n 'lpProcessSteam' => -$sM->lpProcessSteam->energyFlow,\n 'heatLoss' => -$sM->lpHeader->heatLoss->energyFlowLoss,\n 'lpVentedSteam' => -$sM->lpVentedSteam->energyFlow, \n ),\n );\n if (isset($sM->mpTlpPRV->desuperheatFluid->massFlow)){\n $sB['lpHeader']['mF']['mpTlpPRVdesup'] = $sM->mpTlpPRV->desuperheatFluid->massFlow;\n $sB['lpHeader']['eF']['mpTlpPRVdesup'] = $sM->mpTlpPRV->desuperheatFluid->energyFlow;\n }\n\n $sB['condensateReturn'] = array(\n 'mF' => array (\n 'condensate' => $sM->condensateInitReturn->massFlow,\n 'condensateFlash' => -$sM->condReturnVent->massFlow,\n 'makeupWater' => $sM->makeupWater->massFlow,\n 'condTurbine' => $sM->turbineCondSteamCooled->massFlow,\n 'daFeed' => -$sM->deaerator->daWaterFeed->massFlow,\n ),\n 'eF' => array (\n 'condensate' => $sM->condensateInitReturn->energyFlow,\n 'condensateFlash' => -$sM->condReturnVent->energyFlow,\n 'makeupWater' => $sM->makeupWater->energyFlow,\n 'condTurbine' => $sM->turbineCondSteamCooled->energyFlow,\n 'daFeed' => -$sM->deaerator->daWaterFeed->energyFlow, \n ),\n );\n $sB['feedwater'] = array(\n 'mF' => array (\n 'daFeed' => $sM->deaerator->feedwater->massFlow,\n 'desuperLp' => number_format(0,2),\n 'desuperMp' => number_format(0,2),\n 'boiler' => -$sM->boiler->feedwater->massFlow,\n ),\n 'eF' => array (\n 'daFeed' => $sM->deaerator->feedwater->energyFlow,\n 'desuperLp' => number_format(0,2),\n 'desuperMp' => number_format(0,2),\n 'boiler' => -$sM->boiler->feedwater->energyFlow, \n ),\n );\n if (isset($sM->mpTlpPRV->desuperheatFluid->massFlow)){\n $sB['feedwater']['mF']['desuperLp'] = -$sM->mpTlpPRV->desuperheatFluid->massFlow;\n $sB['feedwater']['eF']['desuperLp'] = -$sM->mpTlpPRV->desuperheatFluid->energyFlow;\n }\n\n if (isset($sM->hpTmpPRV->desuperheatFluid->massFlow)){\n $sB['feedwater']['mF']['desuperMp'] = -$sM->hpTmpPRV->desuperheatFluid->massFlow;\n $sB['feedwater']['eF']['desuperMp'] = -$sM->hpTmpPRV->desuperheatFluid->energyFlow;\n }\n $this->sB = $sB; \n }", "private function set_game($iGame) {\n $this->game = $iGame;\n }", "public function testSetEmploi() {\n\n $obj = new Employes();\n\n $obj->setEmploi(\"emploi\");\n $this->assertEquals(\"emploi\", $obj->getEmploi());\n }", "protected function setDocument() \n\t{\n\t\t$isNew = $this->item->id == 0;\n\t\t$document = JFactory::getDocument();\n\t\t$document->setTitle($isNew ? JText::_('COM_HELLOWORLD_HELLOWORLD_CREATING') : JText::_('COM_HELLOWORLD_HELLOWORLD_EDITING'));\n\t\t$document->addScript(JURI::root() . $this->script);\n\t\t$document->addScript(JURI::root() . \"/administrator/components/com_sportsmanagement/views/sportsmanagement/submitbutton.js\");\n\t\tJText::script('COM_HELLOWORLD_HELLOWORLD_ERROR_UNACCEPTABLE');\n\t}", "public function __construct() {\r\n $this->name = \"Striking IV\";\r\n }", "function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }", "public function initialize()\n {\n // attributes\n $this->setName('gs_ingegeven_samenstellingen');\n $this->setPhpName('GsIngegevenSamenstellingen');\n $this->setClassname('PharmaIntelligence\\\\GstandaardBundle\\\\Model\\\\GsIngegevenSamenstellingen');\n $this->setPackage('src.PharmaIntelligence.GstandaardBundle.Model');\n $this->setUseIdGenerator(false);\n // columns\n $this->addColumn('bestandnummer', 'Bestandnummer', 'INTEGER', false, null, null);\n $this->addColumn('mutatiekode', 'Mutatiekode', 'INTEGER', false, null, null);\n $this->addForeignPrimaryKey('handelsproduktkode', 'Handelsproduktkode', 'INTEGER' , 'gs_handelsproducten', 'handelsproduktkode', true, null, null);\n $this->addPrimaryKey('volgnummer', 'Volgnummer', 'INTEGER', true, null, null);\n $this->addColumn('aanduiding_werkzaamhulpstof', 'AanduidingWerkzaamhulpstof', 'VARCHAR', false, 255, null);\n $this->addForeignKey('generiekenaamkode', 'Generiekenaamkode', 'INTEGER', 'gs_generieke_namen', 'generiekenaamkode', false, null, null);\n $this->addColumn('hoeveelheid_werkzame_stof', 'HoeveelheidWerkzameStof', 'DECIMAL', false, 12, null);\n $this->addForeignKey('eenh_hvh_werkzstof_thesaurus_1', 'EenhHvhWerkzstofThesaurus1', 'INTEGER', 'gs_thesauri_totaal', 'thesaurusnummer', false, null, null);\n $this->addForeignKey('eenhhoeveelheid_werkzame_stof_kode', 'EenhhoeveelheidWerkzameStofKode', 'INTEGER', 'gs_thesauri_totaal', 'thesaurus_itemnummer', false, null, null);\n $this->addColumn('stamnaamcode', 'Stamnaamcode', 'INTEGER', false, null, null);\n $this->addForeignKey('stamtoedieningsweg_thesaurus_58', 'StamtoedieningswegThesaurus58', 'INTEGER', 'gs_thesauri_totaal', 'thesaurusnummer', false, null, null);\n $this->addForeignKey('stamtoedieningsweg_code', 'StamtoedieningswegCode', 'INTEGER', 'gs_thesauri_totaal', 'thesaurus_itemnummer', false, null, null);\n // validators\n }", "protected function set_default_value(){\n $this->set_view('sarung/admin/index');\n $this->set_min_power( 100 );\n\t\t$this->set_title('Session');\n\t\t$this->set_body_attribute( \" class='admin admin_sarung_body' \" );\n $this->set_table_name('session');\n \n $this->set_perkiraan_santri_name( 'perkiraan_santri' );\n $this->set_session_name ( 'session_name');\n $this->set_awal_name ( 'awal_name');\n $this->set_akhir_name ( 'akhir_name' );\n $this->set_nilai_name ( 'nilai_name') ;\n $this->set_model_name ( 'model_name');\n \n }", "function setSwimMeet($swimmeet)\r\n {\r\n $this->_swimmeet = $swimmeet ;\r\n }", "function __construct() {\n\t\tparent::__construct();\n $this->includeModel('CursoEspecial');\n $this->vista->setTitle('Cursos Especiales');\n \n\t\t$this->CursoEspecial = new CursoEspecial();\n\t\t$this->TPrograma = new TPrograma();\n\t }", "public function _setEntity($current, $new){\n trigger_error('Setting entity is not allowed', E_USER_ERROR);\n }", "public function __condtruct($pemilik, $merk){\n $this->pemilik = $pemilik;\n $this->merk = $merk;\n }", "public function addInstanceDefault(){\n\t\tif(ID_EMPRESA=='system')\n\t\t\treturn $this->addInstanceSystem();\n\n\t\t$this->checarEmpresa();\n\t\t$cSics = $this->getDatabaseInfor(mysqlDinamico::TSYSTEM_SICS);\n\t\tif($cSics!=false){\n\t\t\tif($cSics['data_validade']=='0000-00-00'){\n\t\t\t\t$this->plano_venceu = false;\n\t\t\t\t$this->plano_expirou = false;\n\t\t\t\t$this->bloquear_login = false;\n\t\t\t\tcontrollerRest::createSession('dataValidade', \"31/12/9999\");\n\t\t\t\tcontrollerRest::createSession('dataVencimento', \"31/12/9999\");\n\t\t\t\tcontrollerRest::createSession('diffVal', 9999);\n\t\t\t\tcontrollerRest::createSession('diffVenc', 9999);\n\t\t\t} else {\n\t\t\t\t//Ver Validades\n\t\t\t\t$dataAtual = new DateTime(date('Y-m-d'));\n\t\t\t\t$dataValidade = new DateTime($cSics['data_validade']);\n\t\t\t\t//Data de vencimento = data de validade + PRAZO_VALIDADE\n\t\t\t\t$dataVencimento = clone $dataValidade;\n\t\t\t\t$dataVencimento->add(new DateInterval('P'.PRAZO_VALIDADE.'D'));\n\t\t\t\t//Calcula a diferença entre a data atual e a data de validade e formata para mostrar os dias.\n\t\t\t\t$intervaloVal = $dataAtual->diff($dataValidade);\n\t\t\t\t$diffVal = $intervaloVal->format(\"%r%a\"); // Armazena a diferença em dias com número signed\n\t\t\t\t//Calcula a diferença entre a data atual e a data de vencimento e formata para mostrar os dias.\n\t\t\t\t$intervaloVenc = $dataAtual->diff($dataVencimento);\n\t\t\t\t$diffVenc = $intervaloVenc->format(\"%r%a\"); // Armazena a diferença em dias com número signed\n\t\t\t\t//Armazena a validade e a diferença em dias para o término da validade, para serem exibidas para o cliente\n\t\t\t\tcontrollerRest::createSession('dataValidade', $dataValidade->format(\"d/m/Y\"));\n\t\t\t\tcontrollerRest::createSession('dataVencimento', $dataVencimento->format(\"d/m/Y\"));\n\t\t\t\tcontrollerRest::createSession('diffVal', $diffVal);\n\t\t\t\tcontrollerRest::createSession('diffVenc', $diffVenc);\n\t\t\t\t/*Se a diferença for negativa, significa que expirou a validade. Neste caso,\n\t\t\t\t * verifica se está dentro do prazo de PRAZO_VALIDADE dias depois e se não, bloqueia o login.*/\n\t\t\t\tif($diffVal < 0){\n\t\t\t\t\tif($diffVenc < 0){\n\t\t\t\t\t\tif(isset(controllerRest::getSession()['aut']['ID_EMPRESA']))\n\t\t\t\t\t\t\tcontrollerRest::unsetSession(array('aut','ID_EMPRESA'));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->plano_venceu = false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->plano_expirou = false;\n\t\t\t\t\t$this->plano_venceu = false;\n\t\t\t\t\t$this->bloquear_login = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Descriptografar senha do banco\n\t\t\t$senha_banco = application::getDecrypt($cSics['senha_banco']);\n\n\t\t\tdatabase::addInstance(\n\t\t\t\t$cSics['banco'],\n\t\t\t\t\"default\",\n\t\t\t\t\"mysql\",\n\t\t\t\t$cSics['ipservidor'],\n\t\t\t\t$cSics['porta'],\n\t\t\t\t$cSics['usuario_banco'],\n\t\t\t\t$senha_banco\n\t\t\t);\n\n\t\t\tif(!defined('USA_PROJETOTSP')){\n\t\t\t\ttry {\n\t\t\t\t\t$sql = \"SELECT usa_projetotsp FROM parametro LIMIT 1\";\n\t\t\t\t\t$param = array();\n\t\t\t\t\t$result = database::runPrepared($sql, $param, 'default');\n\t\t\t\t\tlist($usa_projetotsp) = $result->fetch();\n\t\t\t\t\t$usa_projetotsp = strtoupper($usa_projetotsp)=='S';\n\t\t\t\t} catch (\\Exception $e) {\n\t\t\t\t\t$usa_projetotsp = false;\n\t\t\t\t}\n\n\t\t\t\tif($usa_projetotsp){\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$cProjetoTSP = $this->getDatabaseInfor(mysqlDinamico::TSYSTEM_PROJETOTSP);\n\t\t\t\t\t} catch (\\Exception $e) {\n\t\t\t\t\t\t$usa_projetotsp = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tdefine('USA_PROJETOTSP', $usa_projetotsp);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function __construct() {\n\t\t$this->aktionen = new Aktionen();\n $this->attribute = [];\n $this->styles = [];\n $this->hinweis = null;\n\t}", "function setId_serie($iid_serie)\n {\n $this->iid_serie = $iid_serie;\n }", "public function __construct($angka)\n {\n $this->setTipe($angka);\n }", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "function setToolSettings() {\n /*reserved for future use*/\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSekolahId($value);\n break;\n case 1:\n $this->setSemesterId($value);\n break;\n case 2:\n $this->setIdRuang($value);\n break;\n case 3:\n $this->setHari($value);\n break;\n case 4:\n $this->setBelKe01($value);\n break;\n case 5:\n $this->setBelKe02($value);\n break;\n case 6:\n $this->setBelKe03($value);\n break;\n case 7:\n $this->setBelKe04($value);\n break;\n case 8:\n $this->setBelKe05($value);\n break;\n case 9:\n $this->setBelKe06($value);\n break;\n case 10:\n $this->setBelKe07($value);\n break;\n case 11:\n $this->setBelKe08($value);\n break;\n case 12:\n $this->setBelKe09($value);\n break;\n case 13:\n $this->setBelKe10($value);\n break;\n case 14:\n $this->setBelKe11($value);\n break;\n case 15:\n $this->setBelKe12($value);\n break;\n case 16:\n $this->setBelKe13($value);\n break;\n case 17:\n $this->setBelKe14($value);\n break;\n case 18:\n $this->setBelKe15($value);\n break;\n case 19:\n $this->setBelKe16($value);\n break;\n case 20:\n $this->setBelKe17($value);\n break;\n case 21:\n $this->setBelKe18($value);\n break;\n case 22:\n $this->setBelKe19($value);\n break;\n case 23:\n $this->setBelKe20($value);\n break;\n case 24:\n $this->setCreateDate($value);\n break;\n case 25:\n $this->setLastUpdate($value);\n break;\n case 26:\n $this->setSoftDelete($value);\n break;\n case 27:\n $this->setLastSync($value);\n break;\n case 28:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }", "public function setIetf(string $ietf) : self\n {\n $this->initialized['ietf'] = true;\n $this->ietf = $ietf;\n return $this;\n }", "function __construct() \n\t{\n\t\tparent::__construct();\n\n\t\t$this->attributes['id']\t\t= $this->createID('KOPERASI');\n\n\t\tif(isset($this->ext_appends))\n\t\t{\n\t\t\t$this->appends \t\t\t= array_merge($this->appends, $this->ext_appends);\n\t\t}\n\n\t}", "public function __construct(Especialista $model)\n\t{\n\t\t$this->model = $model;\n\t}", "public function setEquipment($value) {\n if (empty($value))\n throw new InvalidArgumentException('An equipment cannot be empty');\n if (strlen($value) > 64)\n throw new Exception('An equipment cannot be longer than 64 characters');\n $this->equipment = $value;\n return $this;\n\t}", "public function getEstab_id()\n {\n return $this->estab_id;\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function setAutonomousSystem($val)\n {\n $this->_propDict[\"autonomousSystem\"] = $val;\n return $this;\n }", "public function __construct()\n {\n $this->set(array());\n }", "function setChambrehospi($chambre){\n $this->chambre = $chambre;\n }", "public function testSetSituationFam() {\n\n $obj = new Employes();\n\n $obj->setSituationFam(\"situationFam\");\n $this->assertEquals(\"situationFam\", $obj->getSituationFam());\n }", "public function __construct() {\n $this->chambre = new Chambrehospi();\n }", "public function testSetEtblEffectif() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblEffectif(10);\n $this->assertEquals(10, $obj->getEtblEffectif());\n }", "function set_tema($prop,$valor,$replace=TRUE){\n $CI =& get_instance();\n $CI->load->library('sistema');\n if($replace):\n $CI->sistema->tema[$prop] = $valor;\n else:\n if(!isset($CI->sistema->tema[$prop]))$CI->sistema->tema[$prop] = '' ;\n $CI->sistema->tema[$prop] .= $valor;\n endif;\n}", "public function testSetAvecMiseEnSomm() {\n\n $obj = new AppelsEnCours();\n\n $obj->setAvecMiseEnSomm(true);\n $this->assertEquals(true, $obj->getAvecMiseEnSomm());\n }", "function evt__agregar()\n\t{\n\t\t$this->set_pantalla('pant_edicion');\n\t}", "public function SetExe($exe);", "public function setInscrit($millesime, $eleveId, $inscrit)\r\n {\r\n $oData = $this->getObjData();\r\n $oData->exchangeArray(array(\r\n 'millesime' => $millesime,\r\n 'eleveId' => $eleveId,\r\n 'inscrit' => $inscrit\r\n ));\r\n parent::saveRecord($oData);\r\n }", "public function init()\n {\n $this->_equipo = new Application_Model_DeporEquipo();\n }", "function __construct() {\n\t\t$this -> modelo = new categoriaBss();\n\t}", "function cl_bensetiquetaimpressa() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"bensetiquetaimpressa\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function setterSetsTcemain() {\n\t\t\n\t\t$TCE = $this->controller->getTCE();\n\t\t\n\t\t$this->assertInstanceOf(t3lib_TCEmain, $TCE);\n\t}" ]
[ "0.5718736", "0.54230565", "0.53450125", "0.5292212", "0.51965165", "0.5151355", "0.5147576", "0.5060291", "0.5052695", "0.5034472", "0.5020664", "0.5016013", "0.5007753", "0.5005001", "0.49873668", "0.4972972", "0.49568653", "0.49120185", "0.4899648", "0.48954803", "0.48589927", "0.48534158", "0.48526013", "0.48475096", "0.4844918", "0.4843275", "0.48382574", "0.48316935", "0.48245823", "0.48218217", "0.48096907", "0.48073998", "0.48061445", "0.48061445", "0.4802891", "0.47964388", "0.4793373", "0.47879797", "0.47818267", "0.47784063", "0.47599122", "0.47592843", "0.47559252", "0.47555345", "0.47414395", "0.47222167", "0.47204012", "0.4712902", "0.46938738", "0.46924636", "0.468946", "0.46780777", "0.46685565", "0.46565384", "0.46551636", "0.46551636", "0.46474692", "0.46452126", "0.4644943", "0.46406153", "0.46395755", "0.46390367", "0.46331957", "0.46308306", "0.46296546", "0.4628179", "0.46207955", "0.4619613", "0.46177694", "0.46159008", "0.46078104", "0.46056408", "0.460442", "0.46023953", "0.46013346", "0.45947388", "0.4573976", "0.45716268", "0.45713803", "0.45700672", "0.4569761", "0.4567742", "0.45668837", "0.4566351", "0.45660353", "0.4565287", "0.45605084", "0.45583928", "0.45579174", "0.4556352", "0.45556766", "0.45477825", "0.45460004", "0.45449108", "0.4535999", "0.4531366", "0.4523229", "0.45215747", "0.45199704", "0.45198408" ]
0.73801684
0
Handle the blog category "created" event.
public function created(BlogCategory $blogCategory) { # ПОПАДАЕМ ПОСЛЕ СОЗДАНИЯ ЗАПИСИ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function created(BlogCategory $blogCategory)\n {\n //\n }", "public function created(Category $category)\n {\n //\n }", "public function created(Category $category)\n {\n //\n }", "public function created(Category $category)\n {\n //\n }", "public function create()\n {\n return view ('backend.pages.blog.category.create');\n }", "public function category()\n\t{\n\t\t$crud = $this->generate_crud('blog_categories');\n\t\t$crud->columns('title');\n\t\t$this->mPageTitle = 'Blog Categories';\n\t\t$this->mViewData['crud_note'] = modules::run('adminlte/widget/btn', 'Sort Order', 'blog/category_sortable');\n\t\t$this->render_crud();\n\t}", "public function createCategory();", "public function category_add() {\n\t\t// Setup validation\n\t\t$this->data['validation'] = \"\";\n\t\t$this->data['category']\t= array('name' => '', 'url_name' => '');\n\t\t\n\t\t// Handle POST\n\t\tif ($this->mojo->input->post('category')) {\n\t\t\t// Get the category data\n\t\t\t$this->data['category']\t= $this->mojo->input->post('category');\n\t\t\t\n\t\t\t// Insert it!\n\t\t\tif ($this->mojo->blog_model->insert_category($this->data['category'])) {\n\t\t\t\t// It's success\n\t\t\t\t$response['result'] = 'success';\n\t\t\t\t$response['reveal_page'] = site_url('admin/addons/blog/categories_all');\n\t\t\t\t$response['message'] = 'Successfully created category';\n\t\t\t\t\n\t\t\t\texit($this->mojo->javascript->generate_json($response));\n\t\t\t} else {\n\t\t\t\t// There have been validation errors\n\t\t\t\t$response['result'] = 'error';\n\t\t\t\t$response['message'] = $this->mojo->blog_model->validation_errors;\n\t\t\t\t\n\t\t\t\t// Output the response\n\t\t\t\texit($this->mojo->javascript->generate_json($response));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Show the view\n\t\t$this->_view('category_add');\n\t}", "public function create()\n {\n $category = CategoryModel::all();\n return view('backend.blog.create',compact('category'));\n }", "public function created(Category $category)\n {\n $category->created_by_user_id = Auth::id();\n }", "function ccategories_create()\n\t{\n\t\tlusers_require(\"categories/create\");\n\n\t\t$post_data = linput_post();\n\t\t$post_data = linput_post_checkbox($post_data, \"content\");\n\t\t$content = $post_data[\"content\"];\n\n\t\tif (hform_validate(array(\"name\", \"link\", \"parentid\")))\n\t\t{\n\t\t\t$cat_created = mcategories_create($post_data);\n\t\t\tif ($content) $content_created = mcontent_create($post_data);\n\t\t\telse $content_created = false;\n\n\t\t\tif (($cat_created && !$content) || ($content && $cat_created && $content_created))\n\t\t\t{\n\t\t\t\tlcache_delete_all();\n\t\t\t\thmessage_set(l(\"Category successfully created.\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ($cat_created) mcategories_delete($post_data[\"link\"]);\n\t\t\t\tif ($content_created) mcontent_delete($post_data[\"link\"]);\n\t\t\t\thmessage_set(l(\"Category create error.\") . \" \" . l(\"Link already in use.\"));\n\t\t\t}\n\n\t\t\tluri_redirect(\"main/user/admin/categories\");\n\t\t}\n\t\telse luri_redirect(\"main/user/admin/categories_create\", l(\"All fields marked with * are required.\"));\n\t}", "public function create()\n {\n // return view('admin.post.category.create');\n }", "function wp_ajax_press_this_add_category()\n {\n }", "public function create()\n {\n\n return view('admin.pages.blog.categories.create');\n }", "public function create()\n {\n return view('blog_categories.create');\n }", "public function create()\n {\n $categories = Category::all();\n if(count($categories) == 0)\n {\n session()->flash('info', 'You need to have a category to create a new post');\n return redirect()->route('category.create');\n }\n return view('admin.BlogPost.create')->with('category',$categories)->with('tags',Tag::all());\n }", "public function create()\n {\n //\n $cat = Category::where('type', 'blog')->get();\n return view('admin.blog.create',compact('cat'));\n }", "public function store(BlogCategoryCreateRequest $request)\n {\n $data = $request->all();\n if (is_null($data['slug'])) {\n $data['slug'] = Str::slug($data['title']);\n }\n $item = new BlogCategory($data);\n $item->save();\n\n if ($item) {\n return redirect()->route('blog.admin.categories.create')->with('success', 'Успешно сохраненою');\n } else {\n return back()->withInput()->withErrors(['msg' => 'Ошибка сохранения']);\n }\n }", "public function categoryAction()\n\t{\n\t\t$id = (int) $this->getRequest()->getParam('id');\n\t\t$this->view->category = $this->_blogService->findCategory($id);\n\t}", "public function add_postAction() {\r\n\t\t$info = $this->getPost(array('sort', 'title', 'img', 'status', 'hits'));\r\n\t\t$info = $this->_cookData($info);\r\n\t\t$result = Game_Service_Category::addCategory($info);\r\n\t\tif (!$result) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功');\r\n\t}", "public function create() {\n\t\t// Setup some variables\n\t\t$this->data['validation'] = '';\n\t\t$this->data['entry'] = array('title' => '', 'url_title' => '', 'content' => '', 'status' => '', 'category_id' => '');\n\t\t$this->data['statuses'] = array('' => '---', 'published' => 'Published', 'draft' => 'Draft', 'review' => 'Review');\n\t\t$this->data['categories'] = $this->mojo->blog_model->categories_dropdown();\n\t\t\n\t\t// Handle entry submission\n\t\tif ($this->mojo->input->post('entry')) {\n\t\t\t// Get the entry data and set some stuff\n\t\t\t$this->data['entry']\t\t \t\t= $this->mojo->input->post('entry');\n\t\t\t$this->data['entry']['author_id'] \t= $this->mojo->session->userdata('id');\n\t\t\t$this->data['entry']['date']\t\t= date('Y-m-d H:i:s');\n\t\t\t$this->data['entry']['status']\t\t= ($this->data['entry']['status']) ? $this->data['entry']['status'] : 'published';\n\t\t\t\n\t\t\t// Insert it!\n\t\t\tif ($this->mojo->blog_model->insert($this->data['entry'])) {\n\t\t\t\t// It's success\n\t\t\t\t$response['result'] = 'success';\n\t\t\t\t$response['reveal_page'] = site_url('admin/addons/blog/index');\n\t\t\t\t$response['message'] = 'Successfully created new entry';\n\t\t\t\t\n\t\t\t\texit($this->mojo->javascript->generate_json($response));\n\t\t\t} else {\n\t\t\t\t// There have been validation errors\n\t\t\t\t$response['result'] = 'error';\n\t\t\t\t$response['message'] = $this->mojo->blog_model->validation_errors;\n\t\t\t\t\n\t\t\t\t// Output the response\n\t\t\t\texit($this->mojo->javascript->generate_json($response));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Load that bitchin' view\n\t\t$this->_view('create');\n\t}", "public function create()\n {\n return view('admin.blogcategory.add');\n }", "public function create()\n {\n $data['categories']=BlogCategory::get();\n \n return view('admin.blog.create',$data);\n }", "public function run()\n {\n Category::create(\n [\n 'name' => 'uncategorized',\n 'slug' => 'uncategorized'\n ],\n [\n 'name' => 'Entertainment',\n 'slug' => 'entertainment'\n ],\n [\n 'name' => 'Social',\n 'slug' => 'social'\n ],\n [\n 'name' => 'Main',\n 'slug' => 'main'\n ]\n );\n }", "public function store(CreateBlogCategoryRequest $request)\n {\n $input = $request->all();\n\n $blogCategory = $this->blogCategoryRepository->create($input);\n\n Flash::success('Blog Category saved successfully.');\n\n return redirect(route('blogCategories.index'));\n }", "public function createAction()\n {\n\n if (!$this->request->isPost()) {\n return $this->dispatcher->forward(array(\n \"controller\" => \"article_categories\",\n \"action\" => \"index\"\n ));\n }\n\n $category = new Categories();\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 foreach ($category->getMessages() as $message) {\n $this->flash->error($message);\n }\n return $this->dispatcher->forward(array(\n \"controller\" => \"article_categories\",\n \"action\" => \"new\"\n ));\n }\n\n $this->flash->success(\"category was created successfully\");\n return $this->dispatcher->forward(array(\n \"controller\" => \"article_categories\",\n \"action\" => \"index\"\n ));\n\n }", "function delivery_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'delivery_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'delivery_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so delivery_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so delivery_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "public function new_category() {\n\t\t$this->use_layout=false;\n\t\t$cat = new CmsCategory;\n\t\t$cat->name = Request::get(\"cat\");\n\t\t$cat->save();\n\t\tif(!$this->all_categories = $cat->clear()->all()) $this->all_categories=array();\t\t\n\t\t$this->cat_list = $this->render_partial(\"cat_list\");\t\n\t}", "public function run()\n {\n $category = new BlogCategory();\n $category->title = 'Uncategorized';\n $category->save();\n\n $category = new BlogCategory();\n $category->title = 'News';\n $category->save();\n\n $category = new BlogCategory();\n $category->title = 'Reviews';\n $category->save();\n\n $category = new BlogCategory();\n $category->title = 'Articles';\n $category->save();\n }", "public function create()\n {\n\n if(!empty($this->data)){\n\n if($this->Blog->save($this->data)){\n $this->Session->setFlash(__('Your blog has been created'), 'success');\n $this->redirect(\"/blogs/edit/{$this->Blog->id}\");\n }else{\n $this->Session->setFlash(__('There was a problem creating your blog'), 'error');\n }\n }\n\n $this->set('syntaxes', $this->Blog->listSyntaxTypes());\n $this->set('postAccesses', $this->Blog->listPostAccess());\n $this->set('title_for_layout', 'Create a Blog');\n\n\n }", "public function created(SubCategories $subCategories)\n {\n //\n }", "public function run()\n {\n $categories = [\n [\n 'title' => '最新资讯'\n ],\n [\n 'title' => '金融新规'\n ],\n [\n 'title' => '理财知识库'\n ]\n ];\n\n foreach ($categories as $item) {\n ArticleCategory::create($item);\n }\n }", "public function run()\n {\n \\App\\Category::create(['name' => 'Root category']);\n }", "public function create()\n {\n $blogPostCategories = BlogPostCategory::all();\n return view('admin.blog_post.create',compact('blogPostCategories'));\n }", "function smart_foundation_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'smart_foundation_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'smart_foundation_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so smart_foundation_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so smart_foundation_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "function bt_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'hide_empty' => 1,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'all_the_cool_cats', $all_the_cool_cats );\n\t}\n\n\tif ( '1' != $all_the_cool_cats ) {\n\t\t// This blog has more than 1 category so _s_categorized_blog should return true\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so _s_categorized_blog should return false\n\t\treturn false;\n\t}\n}", "public function create()\n {\n SEO::setTitle(trans('alpaca::category.create_category'));\n SEO::metatags()->addMeta('robots', 'noindex,nofollow');\n\n return view('alpaca::category.create');\n }", "public function create()\n {\n $categories = Category::get();\n return view('admin.pages.blog.create', compact('categories'));\n }", "public function create()\n {\n if ($this->request->getPost()) {\n $data = [\n 'name' => $this->request->getPost('category_name'),\n 'parent_id' => ($this->request->getPost('parent_category')) ? $this->request->getPost('parent_category') : NULL\n ];\n }\n\n $res = $this->model->insert($data);\n if ($res) {\n session()->setFlashdata('message', 'Category has been created successfully.');\n } else {\n session()->setFlashdata('message', 'Category cannot be created. Please try again Later.');\n }\n\n return $this->response->redirect('/category');\n }", "public function create()\n\t{\n\t\treturn view('backend.articlecategorys.create');\n\t}", "public function create()\n {\n return view('blogcategories.create');\n }", "private function createCategoryTree()\n {\n // create category\n CategoryUtil::createCategory('/__SYSTEM__/Modules', 'PostCalendar', null, $this->__('PostCalendar'), $this->__('Calendar for Zikula'));\n // create subcategory\n CategoryUtil::createCategory('/__SYSTEM__/Modules/PostCalendar', 'Events', null, $this->__('Events'), $this->__('Initial sub-category created on install'), array('color' => '#99ccff'));\n // get the category path to insert PostCalendar categories\n $rootcat = CategoryUtil::getCategoryByPath('/__SYSTEM__/Modules/PostCalendar');\n if ($rootcat) {\n // create an entry in the categories registry to the Main property\n if (!CategoryRegistryUtil::insertEntry('PostCalendar', 'CalendarEvent', 'Main', $rootcat['id'])) {\n throw new Zikula_Exception(\"Cannot insert Category Registry entry.\");\n }\n } else {\n $this->throwNotFound(\"Root category not found.\");\n }\n }", "public function run()\n {\n \\App\\Models\\BlogCategory::create([\n 'name' => 'Eventos'\n ]);\n\n \\App\\Models\\BlogCategory::create([\n 'name' => 'Notícias'\n ]);\n\n \\App\\Models\\BlogCategory::create([\n 'name' => 'Novidades'\n ]);\n\n \\App\\Models\\BlogCategory::create([\n 'name' => 'Avisos'\n ]);\n\n \\App\\Models\\BlogCategory::create([\n 'name' => 'Dia a Dia'\n ]);\n }", "public function create()\n {\n $blogCategory = BlogCategory::all();\n\n $data = [\n 'blogCategorys' => $blogCategory\n ];\n\n return view('blog_posts.create',$data);\n }", "public function store(BlogCategoryCreateRequest $request)\n {\n $data = $request->input();\n\n // Ушло в обсервер\n// if(empty($data['slug'])) {\n// $data['slug'] = Str::slug($data['title']);\n// }\n\n //Создаст объект и добавит в БД\n// $item = new BlogCategory($data);\n// $item->save();\n\n //\n\n $item = (new BlogCategory($data))->create($data); //второй вариант\n\n if($item) {\n return redirect()->route('blog.admin.categories.edit', [$item->id])\n ->with(['success' => 'Успешно сохранено']);\n } else {\n return back()->withErrors(['msg' => 'Ошибка сохранения'])\n -withInput();\n }\n }", "public function create()\n {\n $item = new BlogCategory();\n $category_list = $this->blogCategoryAcme->getForComboBox();\n\n\n return view('blog.admin.categories.create', compact('item', 'category_list'));\n }", "public function created(Post $post)\n {\n //\n }", "public function create()\n {\n return view(\"admin.pages.blog-category.create\", [\n \"languages\" => Language::all(),\n ]);\n }", "public function created(Post $post)\n {\n $post->recordActivity('created');\n }", "function create(){\n\t\t$sql = \"insert into tbl_post (category_id,title,rank,slug,status,bodytext,image,created_by,modified_by,created_date,modified_date) \n\n\t\tvalues('$this->category_id','$this->title','$this->rank','$this->slug','$this->status','$this->bodytext','$this->image','$this->created_by','$this->modified_by','$this->created_date','$this->modified_date')\";\n\t\t\n\t\t$st = $this->insert($sql);\n\t\t\n\t\tif (is_integer($st)) {\n\t\t\tforeach($this->tags as $tag){\n\t\t\t\t$sql = \"insert into tbl_tag_post(post_id,tag_id) values('$st','$tag')\";\n\t\t\t\t$this->insert($sql);\n\t\t\t}\n\t\t\treturn \"Post Inserted with id $st\";\n\t\t}else{\n\t\t\techo \"Failed to insert Post\";\n\t\t}\n\t}", "public function run()\n {\n PostCategory::create([\n \t'title'\t=> 'General',\n ]);\n\n PostCategory::create([\n \t'title'\t=> 'Banking',\n ]);\n\n PostCategory::create([\n \t'title'\t=> 'Mobile & Broadband',\n ]);\n\n PostCategory::create([\n \t'title'\t=> 'Travel',\n ]);\n\n $postsCategories = PostCategory::get();\n\n foreach ($postsCategories as $postCategory) {\n $postCategory->addTranslation([\n 'translatable_attribute' => 'title',\n 'translation' => $this->translatedNames[$postCategory->title]\n ]);\n }\n }", "function circle_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'circle_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'circle_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so circle_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so circle_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "public function create()\n {\n return view('admin.post_categories.create');\n }", "public function create()\n {\n return view('admin.post_categories.create');\n }", "public function create()\n {\n $this->viewData['create'] = [\n 'categories' => Category::all(),\n ];\n\n return parent::contentCreate();\n }", "public function process()\n {\n $this->addCategory(self::ROOT_CATEGORY_ID, $this->_categories);\n }", "public function create()\n {\n $Categories = blog_category::all();\n // $selectedCategory = blog_post::first()->categories_id;\n return view('post.create',compact('Categories'));\n }", "public function create()\n {\n return view(config('app.theme').'.admin.category.create');\n }", "public function create()\n {\n\n $categories = $this->categoryModel->getCategories();\n $tags = $this->tagModel->getTags();\n\n $data = [\n 'title' =>'',\n 'slug' => '',\n 'body' => '',\n 'created_at' => '',\n 'categories' => $categories,\n 'tags' => $tags,\n 'date'=>'',\n 'image' => '',\n 'user_id' =>'',\n 'status' =>'',\n\n ];\n $this->view('articles/create', $data);\n\n\n }", "public function run()\n {\n $categories = ['Video', 'News', 'Discounts', 'Gear', 'Fitness'];\n foreach ($categories as $category){\n $blog_category = new BlogCategory();\n $blog_category->name = $category;\n $blog_category->slug = str_slug($category);\n $blog_category->save();\n }\n }", "public function create() {\n// user must be logged in\n if (User::is_logged_in()) {\n// preventing double submitting\n $token = md5(time());\n $_SESSION[$token] = true;\n\n// get all categories for the select box in form\n $categories = Category::all();\n// show post creation form\n require_once('views/posts/create.php');\n }\n }", "public function executeAddCategoryNewPost(HTTPRequest $request)\n {\n $this->addCategory($request);\n $this->app->getHttpResponse()->redirect('/admin/addPost');\n }", "public function handle($request)\n {\n if(isset($request['image'])) {\n $request = array_merge($request, [\n 'image' => $this->handleFile($request['image'])\n ]);\n }\n\n $Category = $this->CategoryRepository->create($request);\n\n return $Category;\n }", "public static function func_ajax_add_category() {\n\t\t\t \n\t\t\t\tglobal $wpdb;\n\t\t\t\t\n\t\t\t\tif(!defined('DOING_AJAX')){\n wp_redirect (site_url());\n exit;\n } else {\n $self = self::sanitize($_POST['name']);\n $day = self::sanitize($_POST['day']);\n $desc = self::sanitize($_POST['description']);\n $wpdb->query($wpdb->prepare( \"INSERT INTO \".$wpdb->prefix.self::$table_name .\" VALUES (%d, %s, %s, %s)\", null, $self,$day,$desc ));\n die();\n\t\t\t\t}\n\t\t\n\t\t}", "public function post()\n\t{\n\t\t$crud = $this->generate_crud('blog_posts');\n\t\t$crud->columns('author_id', 'category_id', 'title', 'image_url', 'tags', 'publish_time', 'status');\n\t\t$crud->set_field_upload('image_url', UPLOAD_BLOG_POST);\n\t\t$crud->set_relation('category_id', 'blog_categories', 'title');\n\t\t$crud->set_relation_n_n('tags', 'blog_posts_tags', 'blog_tags', 'post_id', 'tag_id', 'title');\n\t\t\n\t\t$state = $crud->getState();\n\t\tif ($state==='add')\n\t\t{\n\t\t\t$crud->field_type('author_id', 'hidden', $this->mUser->id);\n\t\t\t$this->unset_crud_fields('status');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$crud->set_relation('author_id', 'admin_users', '{first_name} {last_name}');\n\t\t}\n\n\t\t$this->mPageTitle = 'Blog Posts';\n\t\t$this->render_crud();\n\t}", "public function create()\n {\n $categories = Category::all();\n\n return view('back-end.blogs.create', compact('categories'));\n }", "public function create()\n {\n //\n $post['title'] = 'Create your post';\n //return view('blog.create',compact('post'));\n\n // adding data for the category element\n // get the columns name and id to choose a category\n $cats = Category::orderBy('name')->pluck('name', 'id');\n $tags = Tag::orderBy('name')->pluck('name', 'id');\n\n return view('blog.create', compact('cats','post','tags'));\n\n }", "public function create()\n {\n $blog_categories = BlogCategory::all()->sortBy('name');\n $tags = array();\n\n foreach (Blog::all()->pluck('tags')->toArray() as $key) {\n if (!empty($key))\n $tags = array_merge($tags, $key);\n }\n $tags = array_unique($tags);\n\n\n return view('admin.blog_add')->with([\n 'blog_categories' => $blog_categories,\n 'tags' => $tags,\n ]);\n }", "public function run()\r\n {\r\n foreach($this->categories As $id => $category) {\r\n\r\n $cat = App\\Models\\Category::create($category);\r\n } \r\n }", "function gravit_categorized_blog() {\r\r\n\tif ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {\r\r\n\t\t// Create an array of all the categories that are attached to posts.\r\r\n\t\t$all_the_cool_cats = get_categories( array(\r\r\n\t\t\t'hide_empty' => 1,\r\r\n\t\t) );\r\r\n\r\r\n\t\t// Count the number of categories that are attached to the posts.\r\r\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\r\r\n\r\r\n\t\tset_transient( 'all_the_cool_cats', $all_the_cool_cats );\r\r\n\t}\r\r\n\r\r\n\tif ( '1' != $all_the_cool_cats ) {\r\r\n\t\t// This blog has more than 1 category so gravit_categorized_blog should return true.\r\r\n\t\treturn true;\r\r\n\t} else {\r\r\n\t\t// This blog has only 1 category so gravit_categorized_blog should return false.\r\r\n\t\treturn false;\r\r\n\t}\r\r\n}", "public function createAction()\n {\n if (!$this->request->isPost()) {\n return $this->response->redirect('category/list');\n }\n\n $manager = $this->getDI()->get('core_category_manager');\n $form = $manager->getForm();\n\n if ($form->isValid($this->request->getPost())) {\n try {\n $manager = $this->getDI()->get('core_category_manager');\n\n //$post_data contains an array with locales as indices.\n //Ex: $post_data['translation']['en'], $post_data['translation']['gr'] etc...\n $post_data = $this->request->getPost();\n \n\n //Add category_is_active flag to the post data. \n //Along with the translations we have all the data we need to create a category\n $data = array_merge($post_data, ['category_is_active' => 1]);\n\n /*\n Example final $data array:\n $data = array(3) {\n [\"translations\"]=>\n array(2) {\n [\"en\"]=>\n array(3) {\n [\"category_translation_name\"]=>\n string(15) \"Category name 3\"\n [\"category_translation_slug\"]=>\n string(0) \"\"\n [\"category_translation_lang\"]=>\n string(2) \"en\"\n }\n [\"gr\"]=>\n array(3) {\n [\"category_translation_name\"]=>\n string(18) \"Onoma Kathgorias 3\"\n [\"category_translation_slug\"]=>\n string(0) \"\"\n [\"category_translation_lang\"]=>\n string(2) \"gr\"\n }\n }\n [\"csrf\"]=>\n string(15) \"W0jJtkHlOEwqnDm\"\n [\"category_is_active\"]=>\n int(1)\n }\n */\n $manager->create($data);\n $this->flashSession->success('Object was created successfully');\n\n return $this->response->redirect('category/list');\n } catch (\\Exception $e) {\n $this->flash->error($e->getMessage());\n\n return $this->dispatcher->forward(['action' => 'add']);\n }\n } else {\n foreach ($form->getMessages() as $message) {\n $this->flash->error($message->getMessage());\n }\n\n return $this->dispatcher->forward(['action' => 'add', 'controller' => 'category']);\n }\n }", "function getName() { return 'TestPostAddCategory'; }", "public function created(ShopBlog $shopBlog)\n {\n //\n }", "function root_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'root_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'root_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so root_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so root_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "public static function create()\n {\n if(isset($_POST['create_post']) && Html::form()->validate())\n {\n $postId = Blog::post()->insert(array(\n 'user_id' => User::current()->id,\n 'title' => $_POST['title'],\n 'slug' => String::slugify($_POST['title']),\n 'body' => $_POST['body']\n ));\n\n if($postId)\n {\n foreach($_POST['category_id'] as $catId)\n {\n Db::table('categories_posts')->insert(array(\n 'category_id' => $catId,\n 'post_id' => $postId\n ));\n }\n\n Message::ok('Post created successfully.');\n $_POST = array(); // Clear form\n }\n else\n Message::error('Error creating post. Please try again.');\n }\n\n $formData[] = array(\n 'fields' => array(\n 'title' => array(\n 'title' => 'Title',\n 'type' => 'text',\n 'validate' => array('required')\n ),\n 'body' => array(\n 'title' => 'Body',\n 'type' => 'textarea',\n 'attributes' => array('class' => 'tinymce')\n ),\n 'category_id[]' => array(\n 'title' => 'Category',\n 'type' => 'select',\n 'options' => self::_getSelectCategories(),\n 'attributes' => array(\n 'multiple' => 'multiple'\n ),\n 'validate' => array('required')\n ),\n 'create_post' => array(\n 'type' => 'submit',\n 'value' => 'Create Post'\n )\n )\n );\n\n return array(\n 'title' => 'Create Post',\n 'content' => Html::form()->build($formData)\n );\n }", "function ppo_categorized_blog() {\n if (false === ( $all_the_cool_cats = get_transient('ppo_category_count') )) {\n // Create an array of all the categories that are attached to posts\n $all_the_cool_cats = get_categories(array(\n 'hide_empty' => 1,\n ));\n\n // Count the number of categories that are attached to the posts\n $all_the_cool_cats = count($all_the_cool_cats);\n\n set_transient('ppo_category_count', $all_the_cool_cats);\n }\n\n if (1 !== (int) $all_the_cool_cats) {\n // This blog has more than 1 category so ppo_categorized_blog should return true\n return true;\n } else {\n // This blog has only 1 category so ppo_categorized_blog should return false\n return false;\n }\n}", "public function create()\n {\n\n //\n $categories = Category::pluck('name','id')->all();\n return view('admin.manage-blog.create',compact('categories'));\n\n }", "public function create(){\nreturn view('blog_categories.create');\n}", "public function create()\n {\n $categories = category::all();\n return view('admin.posts.add',compact('categories'));\n }", "public function actionCreate()\n {\n $model = new ArticleCategory();\n $articleCategories = ArticleCategory::getCategories();\n $locales = LocaleHelper::getAvailableLocales();\n\n if ($model->load(Yii::$app->request->post(), null) && $model->save()) {\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n 'categories' => $articleCategories,\n 'locales' => $locales\n ]);\n\n }", "public function create()\n {\n return view (\"admin.category.create\");\n }", "function client_portal_categorized_blog() {\n\n\t$category_count = get_transient( 'client_portal_categories' );\n\n\tif ( false === $category_count ) {\n\n\t\t$category_count_query = get_categories(\n\t\t\tarray(\n\t\t\t\t'fields' => 'count',\n\t\t\t)\n\t\t);\n\n\t\t$category_count = (int) $category_count_query[0];\n\n\t\tset_transient( 'client_portal_categories', $category_count );\n\t}\n\n\treturn $category_count > 1;\n}", "public function created(Post $post)\n {\n // Category\n Category::find($post->category)->increment('num');\n\n // Tag\n Tag::whereIn('id', explode(',', $post->tags))->increment('num');\n\n // Archive\n Archive::updateOrCreate(\n ['month' => $post->archive],\n ['num' => 0]\n )->increment('num');\n }", "public function create()\n {\n $data['menu'] = 'blog';\n $data['blog_categories'] = BlogCategory::get();\n return view('admin.blog.create', $data);\n }", "public function forum_create() {\n\n if ( ! in('slug') ) ferror(-50020, 'category_nicename(Forum ID) is not provided');\n if ( ! in('category_description') ) wp_send_json_error(['code'=>-50021,'message'=>'category_description is not provided']);\n if ( ! in('cat_name') ) wp_send_json_error(['code'=>-50022,'message'=>'cat_name(Forum Name) is not provided']);\n\n /**\n * Put category parent ID\n */\n if ( ! $category_parent = in('category_parent') ) {\n $category_parent = get_category_by_slug( FORUM_CATEGORY_SLUG )->term_id;\n }\n $catarr = array(\n 'cat_name' =>in('cat_name'),\n 'category_description' => in('category_description'),\n 'category_nicename' => in('slug'),\n 'category_parent' => $category_parent\n );\n\n $term_ID = $this->createOrUpdate( $catarr );\n\n if ( is_wp_error( $term_ID ) ) {\n wp_send_json_error( ['code'=>-4100, 'message'=>$term_ID->get_error_message()] );\n }\n\n $this->updateMeta( $term_ID );\n $this->response();\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'title'=>'required|string|min:3|max:255',\n ]);\n\n BlogCategory::create([\n 'title'=>$request->title,\n 'slug'=>str_slug($request->title),\n ]);\n toastr()->success('Blog category add successful');\n return redirect()->back();\n }", "public function post_after_article() {\n\t\tglobal $post;\n\t\t$categories = get_the_category( $post->ID );\n\t\t?>\n\n\t\t<div class=\"section section-blog-info\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-md-6\">\n\t\t\t\t\t<div class=\"entry-categories\"><?php esc_html_e( 'Categories:', 'hestia' ); ?>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\tforeach ( $categories as $category ) {\n\t\t\t\t\t\t\techo '<span class=\"label label-primary\"><a href=\"' . esc_url( get_category_link( $category->term_id ) ) . '\">' . esc_html( $category->name ) . '</a></span>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\t\t\t\t\t</div>\n\t\t\t\t\t<?php the_tags( '<div class=\"entry-tags\">' . esc_html__( 'Tags: ', 'hestia' ) . '<span class=\"entry-tag\">', '</span><span class=\"entry-tag\">', '</span></div>' ); ?>\n\t\t\t\t</div>\n\t\t\t\t<?php do_action( 'hestia_blog_social_icons' ); ?>\n\t\t\t</div>\n\t\t\t<hr>\n\t\t\t<?php\n\t\t\t$this->maybe_render_author_box();\n\t\t\tif ( comments_open() || get_comments_number() ) :\n\t\t\t\tcomments_template();\n\t\t\tendif;\n\t\t\t?>\n\t\t</div>\n\t\t<?php\n\t}", "public function create(){\n $listcat=Blog_categories::all();\n return view ('blog_posts.create',['categories'=>$listcat]);\n }", "public function onAwardcategoriesAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "public function addPost(){\n\n if ($this->input->post(\"category_create\") === null){\n $this->view->redirect(\"/categories/manage\");\n }\n\n if (!$this->auth->isLogged()) {\n $this->view->redirect(\"/user/login\", \"You can not add new categories if you are not logged in!\");\n }\n\n if (!$this->auth->isInRole(\"admin\")) {\n $this->view->redirect(\"/user/login\", \"You can not manage categories if you are not Admin!\");\n }\n\n $categoryName = $this->input->post(\"category_name\");\n\n $this->validate->setRule(\"minlength\",$categoryName,3, \"Category name length must be more then 3 symbols!\");\n\n if ($this->validate->validate() === false){\n $error = $this->validate->getErrors();\n $this->view->redirect(\"/categories/manage\",$error);\n }\n\n $categoryModel = new CategoriesModel();\n try{\n if ($categoryModel->hasCategory($categoryName)){\n $this->view->redirect(\"/categories/manage\",\"This categories already exist!\");\n }\n\n if($categoryModel->addNewCategory($categoryName)){\n $this->view->redirect(\"/categories/manage\",\"Category created successfully!\",\"success\");\n }\n }catch (\\Exception $exception){\n $this->view->redirect(\"/categories/manage\",$exception);\n }\n }", "public function actionCreate()\n {\n $model = new PostsCategory();\n\n if ($model->load(Yii::$app->request->post())) {\n $ret = ActiveForm::validate($model);\n if(!$this->commit){\n return $ret;\n }else{\n $model->save();\n $msg = \"添加主题分类[$model->name]成功\";\n Utils::adminLog('create', $msg);\n return ['status' => true, 'message' => $msg];\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "protected function run()\n {\n $slug = $this->get('slug');\n\n $category = $this->categories->findBySlug($slug);\n\n $creator = User::current();\n $now = Carbon::now();\n\n $conversation = (object) [\n 'poster' => $creator->username,\n 'title' => $this->get('subject'),\n 'posted' => $now,\n 'last_post' => $now,\n 'last_poster' => $creator->username,\n 'category_slug' => $category->slug,\n ];\n\n $post = (new Post([\n 'poster'\t=> $creator->username,\n 'poster_id'\t=> $creator->id,\n 'message'\t=> $this->get('message'),\n 'posted'\t=> $now,\n ]));\n\n $this->categories->addNewTopic($category, $conversation, $post->toArray());\n\n $this->raise(new UserHasPosted($creator, $post));\n }", "public function store(StoreCategory $request, $blogid)\n {\n $categoryPost = new CategoryPost();\n $categoryPost->name = $request->name;\n\n if (CategoryPost::where('slug', Str::slug($request->name))->exists()) {\n $categoryPost->slug = Str::slug($request->name.'-'.Random::string());\n } else {\n $categoryPost->slug = Str::slug($request->name);\n }\n\n $categoryPost->description = $request->description;\n $categoryPost->blog_id = $blogid;\n $categoryPost->save();\n\n return redirect()->route('dashblog.category.index', ['id' => $blogid])->with('success', 'Kategory Berhasil di buat');\n }", "public function create()\n {\n return view('admin.pages.category.add');\n }", "public function run()\n {\n ItemCategory::create([\n 'name' => 'Default',\n 'description' => 'Default category',\n 'created_by' => 1,\n 'created_at' => Carbon::now()\n ]);\n }", "public function DiscussionsController_MarkCategoryViewed_Create($Sender, $CategoryID) {\n\t\tif (strlen($CategoryID) > 0 && (int)$CategoryID > 0) {\n $CategoryModel = new CategoryModel();\n\t\t\t$this->MarkCategoryRead($CategoryModel, $CategoryID);\n\t\t\t$this->RecursiveMarkCategoryRead($CategoryModel, CategoryModel::Categories(), array($CategoryID));\n\t\t}\n \n\t\tRedirect(Gdn::Request()->GetValueFrom(Gdn_Request::INPUT_SERVER, 'HTTP_REFERER'));\n\t}", "public function create()\n {\n return \\view(\"pages.admin.category.create\");\n }", "public function create()\n {\n return view('backEnd.category.create');\n }", "public function newAction()\n {\n\t\tTag::appendTitle('Add New Category');\n }", "public function postCategory($slug) {\n // 'name' che è il nome per esteso della categoria\n // 'slug' che è lo slug ricavato dal nome per esteso della categoria\n // questa funzione riceve in ingresso lo slug ($slug) della categoria\n // e deve ricavare l'elenco di tutti i posts che hanno quella categoria associata\n // identificati dallo slug ricevuto come parametro in ingresso.\n // Poi la funzione richiama una view e le passa l'elenco di tutti i posts trovati\n // e l'oggetto categoria, quella identificata dallo slug ricevuto in ingresso\n\n // cerco nella colonna 'slug' della mia tabella 'categories', la categoria (record) con slug uguale al parametro ricevuto\n $category = Category::where('slug', $slug)->first();\n\n // verifico se la select fatta sul DB mi ha ritornato qualcosa per la categoria ricercata tramite slug\n // ad esempio l'utente potrebbe modificare la stringa nella barra indirizzi, alterando il nome\n // dello slug e scrivendo un qualcosa che non esiste e non corrisponde a nessuna categoria del DB\n if (!empty($category)) {\n // qui sfrutto la relazione fra categorie e posts, cioè la relazione fra le entità/modelli\n // Category e Post. Nella classe Category è definito un metodo posts()\n // (cioè col nome dell'entità verso la quale è definita la relazione)\n // posts() ritorna $this->hasMany('App\\Post');\n // chiamo la proprietà posts (in questa maniera'$category->posts')\n // che restituisce i post che sono legati da relazione in base alla categoria\n $posts_by_category = $category->posts;\n\n // chiamo una view per visualizzare tutti i post della categoria ricercata,\n // gli passo la categoria e l'elenco dei posts\n return view('public.posts.posts-by-category', [\n 'category' => $category,\n 'posts' => $posts_by_category\n ]);\n } else {\n // ritorno la pagina di errore \"Page not found\" poichè lo slug ricevuto in ingresso\n // non corrisponde a nessuna categoria presente nel mio DB (tabella 'categories')\n return abort(404);\n }\n }" ]
[ "0.75223494", "0.6698444", "0.6661626", "0.6661626", "0.6362654", "0.626188", "0.6228993", "0.6196854", "0.6154896", "0.60739994", "0.6016805", "0.60099787", "0.59607136", "0.59602344", "0.5934691", "0.5910312", "0.58929914", "0.58851683", "0.5883242", "0.58804995", "0.5874264", "0.5865913", "0.58096457", "0.5803252", "0.5799456", "0.579942", "0.5781317", "0.577296", "0.5750367", "0.5749053", "0.5740294", "0.57401186", "0.5737133", "0.5734321", "0.5725579", "0.57157594", "0.5714026", "0.57126004", "0.5709021", "0.57066166", "0.57036394", "0.57007474", "0.56982577", "0.56893486", "0.56828666", "0.567184", "0.56661206", "0.56541455", "0.56534433", "0.56515104", "0.5648947", "0.5642636", "0.5639031", "0.5639031", "0.56386656", "0.5636911", "0.5633725", "0.5632017", "0.56309134", "0.5630356", "0.5629738", "0.5605647", "0.5604782", "0.5600276", "0.5597186", "0.5596771", "0.5586583", "0.55851555", "0.55845857", "0.5572132", "0.5567014", "0.5561905", "0.5561641", "0.5560602", "0.55487746", "0.5545535", "0.55441505", "0.552952", "0.5526567", "0.5515273", "0.5513306", "0.55114126", "0.5500164", "0.5494535", "0.5492786", "0.54875726", "0.54825115", "0.54801977", "0.5480097", "0.54775876", "0.5467149", "0.5460055", "0.54524744", "0.54448646", "0.544144", "0.54375345", "0.5436996", "0.5434589", "0.54339886", "0.5424861" ]
0.7122024
1
Handle the blog category "updated" event.
public function updated(BlogCategory $blogCategory) { # ПОПАДАЕМ ПОСЛЕ ОБНОВЛЕНИЯ ЗАПИСИ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updated(BlogCategory $blogCategory)\n {\n //\n }", "public function updated(Category $category)\n {\n //\n }", "public function updated(Category $category)\n {\n //\n }", "public function updateCategory()\n {\n Category::findOrFail($this->category_id)->update([\n 'category_name' => $this->categoryName,\n 'slug' => Str::slug($this->categoryName),\n 'class' => $this->class,\n\n ]);\n }", "function wp_update_category($catarr)\n {\n }", "public function multi_entry_category_update()\n {\n // Does the user have permission?\n if ( !ee()->publisher_helper->allowed_group('can_access_content'))\n {\n show_error(lang('unauthorized_access'));\n }\n\n $entries = ee()->input->post('entry_ids', TRUE);\n $cat_ids = ee()->input->post('category', TRUE);\n $type = ee()->input->post('type', TRUE);\n $entry_ids = array();\n\n if ( !$entries || !$type)\n {\n show_error(lang('unauthorized_to_edit'));\n }\n\n if ( !$cat_ids || !is_array($cat_ids) || empty($cat_ids))\n {\n return ee()->output->show_user_error('submission', lang('no_categories_selected'));\n }\n\n // For the entries affected, sync publisher_category_posts to category_posts\n\n foreach (explode('|', trim($entries)) as $entry_id)\n {\n $entry_ids[] = $entry_id;\n }\n\n // default states\n $default_language_id = ee()->publisher_model->default_language_id;;\n $default_view_status = ee()->publisher_setting->default_view_status();\n $states = array();\n\n foreach($entry_ids as $entry_id)\n {\n // we'll always have a state for the default language and status\n $states = array(array(\n 'publisher_lang_id' => $default_language_id,\n 'publisher_status' => $default_view_status\n ));\n\n if ($type == 'add')\n {\n // Adding categories\n // ----------------------------------------------------------------\n\n // We want to add categories to all the open and draft versions\n // of an entry without changing existing category selections\n\n // for each entry, look up existing distinct states\n $query = ee()->db->distinct()\n ->select('publisher_lang_id, publisher_status')\n ->where('entry_id', $entry_id)\n ->get('publisher_titles');\n\n if ($query->num_rows() > 0)\n {\n $result = $query->result_array();\n\n foreach($result as $row)\n {\n if (FALSE === ($row['publisher_lang_id'] == $default_language_id && $row['publisher_status'] == $default_view_status))\n {\n $states[] = array(\n 'publisher_lang_id' => $row['publisher_lang_id'],\n 'publisher_status' => $row['publisher_status']\n );\n }\n }\n }\n\n // build an an array of records to insert into publisher_category_posts\n $data = array();\n\n foreach($states as $state)\n {\n // add the new categories\n foreach($cat_ids as $cat_id)\n {\n $data[] = array(\n 'entry_id' => $entry_id,\n 'cat_id' => $cat_id,\n 'publisher_lang_id' => $state['publisher_lang_id'],\n 'publisher_status' => $state['publisher_status']\n );\n }\n }\n\n // delete any relationships with the newly added categories that already exist\n // for this entry so that we don't end up with duplicate rows\n ee()->db->where('entry_id', $entry_id)\n ->where_in('cat_id', $cat_ids)\n ->delete('publisher_category_posts');\n\n // (re)insert the categories with the appropriate states\n ee()->db->insert_batch('publisher_category_posts', $data);\n }\n\n elseif($type == 'remove')\n {\n // Removing categories\n // ----------------------------------------------------------------\n\n // we're simply removing the selected categories from all versions of the entry\n ee()->db->where('entry_id', $entry_id)\n ->where_in('cat_id', $cat_ids)\n ->delete('publisher_category_posts');\n }\n }\n }", "function update_category_cache()\n {\n }", "public function update(Request $request, BlogCategory $blogCategory)\n {\n $this->validate($request, [\n \"name.*\" => \"required|string\",\n \"slug\" => \"required|string\",\n ]);\n\n $data = [\n \"slug\" => $request->slug,\n ];\n foreach ($request->name as $key => $name) {\n $data[\"name\"][$key] = $name;\n }\n $blogCategory->fill($data);\n if ($blogCategory->save()) {\n Toastr::success(\"Blog Category Successfully updated\", \"Success\");\n } else {\n Toastr::error(\"Something Went Wrong\", \"Error\");\n }\n return redirect()->back();\n }", "public function update_gallery_category_post()\n {\n prevent_author();\n\n //validate inputs\n $this->form_validation->set_rules('name', trans(\"category_name\"), 'required|xss_clean|max_length[200]');\n\n if ($this->form_validation->run() === false) {\n $this->session->set_flashdata('errors', validation_errors());\n $this->session->set_flashdata('form_data', $this->gallery_category_model->input_values());\n redirect($this->agent->referrer());\n } else {\n //category id\n $id = $this->input->post('category_id', true);\n if ($this->gallery_category_model->update_category($id)) {\n $this->session->set_flashdata('success', trans(\"category\") . \" \" . trans(\"msg_suc_updated\"));\n redirect('admin_category/gallery_categories');\n } else {\n $this->session->set_flashdata('form_data', $this->gallery_category_model->input_values());\n $this->session->set_flashdata('error', trans(\"msg_error\"));\n redirect($this->agent->referrer());\n }\n }\n }", "public function update()\n {\n $category = CategoryService::load(\\Request::input('id'))->update(\\Request::all());\n \\Msg::success($category->name . ' has been <strong>updated</strong>');\n return redir('account/categories');\n }", "public function update(Request $request ,Category $update){\n $update -> category_name_en = $request -> blog_category_name_en;\n $update -> category_name_lng = $request -> blog_category_name_lng;\n $update -> category_name_en_slug = strtolower(str_replace(' ' , '-' , $request -> blog_category_name_en));\n $update -> category_name_lng_slug = str_replace(' ' , '-' , $request -> blog_category_name_lng);\n $update -> update();\n return true;\n }", "public function updated(Category $category)\n {\n //\n // 1. Update Status\n Product::where('category_id', $category->id)->update([\n 'status' => $category->status\n ]); \n }", "function multi_entry_category_update()\n\t{\n\t\tif ( ! $this->cp->allowed_group('can_access_content'))\n\t\t{\n\t\t\tshow_error($this->lang->line('unauthorized_access'));\n\t\t}\n\n\t\tif ($this->input->get_post('entry_ids') === FALSE OR $this->input->get_post('type') === FALSE)\n\t\t{\n\t\t\treturn $this->dsp->no_access_message($this->lang->line('unauthorized_to_edit'));\n\t\t}\n\n\t\tif ($this->input->get_post('category') === FALSE OR ! is_array($_POST['category']) OR count($_POST['category']) == 0)\n\t\t{\n\t\t\treturn $this->output->show_user_error('submission', $this->lang->line('no_categories_selected'));\n\t\t}\n\n\t\t/** ---------------------------------\n\t\t/**\t Fetch categories\n\t\t/** ---------------------------------*/\n\n\t\t// We do this first so we can destroy the category index from\n\t\t// the $_POST array since we use a separate table to store categories in\n\t\t\n\t\t$this->api->instantiate('channel_categories');\n\n\t\tforeach ($_POST['category'] as $cat_id)\n\t\t{\n\t\t\t$this->api_channel_categories->cat_parents[] = $cat_id;\n\t\t}\n\n\t\tif ($this->api_channel_categories->assign_cat_parent == TRUE)\n\t\t{\n\t\t\t$this->api_channel_categories->fetch_category_parents($_POST['category']);\n\t\t}\n\n\t\t$this->api_channel_categories->cat_parents = array_unique($this->api_channel_categories->cat_parents);\n\n\t\tsort($this->api_channel_categories->cat_parents);\n\n\t\tunset($_POST['category']);\n\n\t\t$ids = array();\n\n\t\tforeach (explode('|', $_POST['entry_ids']) as $entry_id)\n\t\t{\n\t\t\t$ids[] = $this->db->escape_str($entry_id);\n\t\t}\n\n\t\tunset($_POST['entry_ids']);\n\n\t\t$entries_string = implode(\"','\", $ids);\n\n\t\t/** -----------------------------\n\t\t/**\t Get Category Group IDs\n\t\t/** -----------------------------*/\n\t\t$query = $this->db->query(\"SELECT DISTINCT exp_channels.cat_group FROM exp_channels, exp_channel_titles\n\t\t\t\t\t\t\t WHERE exp_channel_titles.channel_id = exp_channels.channel_id\n\t\t\t\t\t\t\t AND exp_channel_titles.entry_id IN ('\".$entries_string.\"')\");\n\n\t\t$valid = 'n';\n\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\t$valid = 'y';\n\t\t\t$last = explode('|', $query->row('cat_group') );\n\n\t\t\tforeach($query->result_array() as $row)\n\t\t\t{\n\t\t\t\t$valid_cats = array_intersect($last, explode('|', $row['cat_group']));\n\n\t\t\t\tif (count($valid_cats) == 0)\n\t\t\t\t{\n\t\t\t\t\t$valid = 'n';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($valid == 'n')\n\t\t{\n\t\t\treturn $this->dsp->show_user_error($this->lang->line('no_category_group_match'));\n\t\t}\n\n\t\t/** -----------------------------\n\t\t/**\t Remove Valid Cats, Then Add...\n\t\t/** -----------------------------*/\n\n\t\t$valid_cat_ids = array();\n\t\t$query = $this->db->query(\"SELECT cat_id FROM exp_categories\n\t\t\t\t\t\t\t WHERE group_id IN ('\".implode(\"','\", $valid_cats).\"')\n\t\t\t\t\t\t\t AND cat_id IN ('\".implode(\"','\", $this->api_channel_categories->cat_parents).\"')\");\n\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\tforeach($query->result_array() as $row)\n\t\t\t{\n\t\t\t\t$this->db->query(\"DELETE FROM exp_category_posts WHERE cat_id = \".$row['cat_id'].\" AND entry_id IN ('\".$entries_string.\"')\");\n\t\t\t\t$valid_cat_ids[] = $row['cat_id'];\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($this->input->get_post('type') == 'add')\n\t\t{\n\t\t\t$insert_cats = array_intersect($this->api_channel_categories->cat_parents, $valid_cat_ids);\n\t\t\t// How brutish...\n\t\t\tforeach($ids as $id)\n\t\t\t{\n\t\t\t\tforeach($insert_cats as $val)\n\t\t\t\t{\n\t\t\t\t\t$this->db->query($this->db->insert_string('exp_category_posts', array('entry_id' => $id, 'cat_id' => $val)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t/** ---------------------------------\n\t\t/**\t Clear caches if needed\n\t\t/** ---------------------------------*/\n\n\t\tif ($this->config->item('new_posts_clear_caches') == 'y')\n\t\t{\n\t\t\t$this->functions->clear_caching('all');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->functions->clear_caching('sql');\n\t\t}\n\t\t\n\t\t$this->session->set_flashdata('message_success', $this->lang->line('multi_entries_updated'));\n\t\t$this->functions->redirect(BASE.AMP.'C=content_edit');\n\t}", "public function updated(ShopBlog $shopBlog)\n {\n //\n }", "public function updated(Category $category)\n {\n $category->updated_by_user_id = Auth::id();\n }", "function update_category_detail($siteData, $category_id) {\n $this->db->where('id', $category_id);\n $this->db->update('category', $siteData);\n }", "public function update(Request $request, BlogCategory $blogCategory)\n {\n $this->validate($request,[\n 'name'=>'required|unique:blog_categories,name,'.$blogCategory->id\n ]);\n\n $blogCategory->name=$request->name;\n $blogCategory->slug=Str::slug($request->name);\n $blogCategory->save();\n\n $notification=array(\n 'messege'=>'Updated Successfully',\n 'alert-type'=>'success'\n );\n\n return redirect()->route('admin.blog-category.index')->with($notification);\n }", "function sensible_category() {\n wp_update_term(1, 'category', array(\n 'name' => 'News',\n 'slug' => 'news', \n 'description' => 'News'\n ));\n }", "public function update(UpdateCategory $request, $blogid, $id)\n {\n $category = CategoryPost::findOrFail($id);\n CategoryService::unCategory($category);\n\n $category->name = $request->name;\n $category->description = $request->description;\n $category->save();\n\n return redirect()->route('dashblog.category.index', ['blogid' => $blogid])\n ->with('success', __('dashblog-category.update'));\n }", "public function updateCategories()\n {\n $this->updateCategoriesByType();\n $this->updateCategoriesByParent();\n $this->updateCategoriesByID();\n }", "public function update(Request $request, $slug){\n if(!checkRole(getUserGrade(2)))\n {\n prepareBlockUserMessage();\n return back();\n }\n $record = LmsCategory::getRecordWithSlug($slug);\n\n $rules = [\n 'category' \t => 'bail|required|max:60' ,\n ];\n /**\n * Check if the title of the record is changed, \n * if changed update the slug value based on the new title\n */\n $name = $request->category;\n if($name != $record->category)\n $record->slug = $record->makeSlug($name,TRUE);\n\n //Validate the overall request\n $this->validate($request, $rules);\n $record->category \t\t\t= $name;\n $record->description\t\t= $request->description;\n $record->record_updated_by \t= Auth::user()->id;\n $record->save();\n $file_name = 'catimage';\n if ($request->hasFile($file_name)){\n\n $rules = array( $file_name => 'mimes:jpeg,jpg,png,gif|max:10000' );\n $this->validate($request, $rules);\n\n $record->image = $this->processUpload($request, $record,$file_name);\n $record->save();\n }\n\n flash('success','record_updated_successfully', 'success');\n return redirect(URL_LMS_CATEGORIES);\n }", "public function categories_update($param = null)\r\n {\r\n if (isset($_POST[\"cat_id\"]) && !empty($_POST[\"cat_id\"])) {\r\n $action = $_POST[\"cat_id\"];\r\n $newValue = $_POST[\"cat_descr\"];\r\n $update = Category::find($action)->update(['cat_descr' => $newValue]);\r\n echo $update;\r\n\r\n } else {\r\n echo json_encode([\"error\" => \"ERROR\"]);\r\n }\r\n }", "public function update(Request $request, Postcategory $postcategory)\n {\n //\n }", "public function updated(BlogPost $modelsBlogPost)\n {\n //\n }", "function ccontent_update()\n\t{\n\t\tlusers_require('content/update');\n\n\t\t$post_data = linput_post();\n\t\t$post_data['time'] = date('Y-m-d', strtotime($post_data['date'])) . ' ' . date('H:i:s', strtotime($post_data['time']));\n\n\t\tif (hform_validate(array('name', 'link', 'body')))\n\t\t{\n\t\t\t$cat = mcontent_get_cat($post_data['id']);\n\n\t\t\tlimage_upload_many(lconf_get('content', 'images'), $post_data['link']);\n\n\t\t\tmcontent_update($post_data['id'], $post_data);\n\t\t\t// Check if link is default uri and change default uri too if needed\n\t\t\tif ($cat['link'] == lconf_dbget('default_uri')) lcrud_update(llang_table('settings'), array('name' => 'default_uri'), array('value' => $post_data['link']));\n\t\t\t// Do not update name for category from here\n\t\t\tunset($post_data['name']);\n\t\t\tmcategories_update($cat['id'], $post_data);\n\t\t\t// Update comments too\n\t\t\tlcrud_update(llang_table('comments'), array('module' => CONT, 'module_item' => $cat['link']), array('module_item' => $post_data['link']));\n\n\t\t\tlcache_delete_all();\n\n\t\t\tluri_redirect('main/user/admin/content', l('Content successfully updated.'));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$content = mcontent_read($post_data['id']);\n\t\t\tluri_sredirect(lroute_get_uri('main/user_item/admin/content_update') . '/' . $content['link'], l('All fields marked with * are required.'));\n\t\t}\n\t}", "public function update(BlogCategoryUpdateRequest $request, $id)\n {\n $item = $this->blogCategoryRepository->getEdit($id);\n\n if(empty($item)){\n return back()\n ->withErrors(['msg' => \"Запись id=[{$id}] не найдена\"])\n ->withInput();\n\n }\n\n $data = $request->all();\n $result = $item->update($data);\n\n /* update() Аналогично коду ниже\n $result = $item\n ->fill($data)\n ->save(); */\n\n if($result){\n return redirect()\n ->route('blog.admin.categories.edit', $item->id)\n ->with(['success' => 'Успешно сохранено']); //Добавление в сессию переменной success\n // для дальнейшего его вывода во вьюхе командой session(success)\n } else {\n return redirect()\n ->withErrors(['msg' => 'Ошибка соединения'])\n ->withInput();\n }\n }", "public function update_category ($data) {\n\t\t$slug = \\Illuminate\\Support\\Str::slug($data->category, '-');\n\t\t$category = Category::find($data->category_id);\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 update(StoreCategoryRequest $request, $id)\n {\n $data = $request->all();\n // get info category\n $category = $this->category->find($id);\n // Handel category\n $moving_method = $request->get('moving_method');\n $related_id = $request->get('related_id');\n // Get parent category info\n if ($moving_method != 'none') {\n $parent = Category::find($related_id);\n if ($category->isSelfOrAncestorOf($parent)) {\n return redirect()->back()->withErrors(['Không được phép dời một nhóm vào chính nó hoặc nhóm con !'])->withInput();\n }\n $category->$moving_method($parent);\n }\n if ($request->has('related_id'))\n if ($request->hasFile('image')) {\n $upload = $request->file('image');\n if (!$upload->isValid()) {\n return redirect()->back()->withErrors([trans('general.ajax.not_request_ajax')])->withInput();\n }\n // Delete Image Of Categories\n if ($category->image) {\n File::delete('upload/categories/' . $category->image);\n }\n // End Delete\n $ext = $upload->getClientOriginalExtension();\n $newFile = str_slug($request->get('title_alias')) . '-' . time() . '.' . $ext;\n $location = public_path('upload/' . with($category->getImageFolder()));\n $upload->move($location, $newFile);\n $data['image'] = $newFile;\n }\n // Update a category\n $category->update($data);\n event(new UpdatedContentEvent( 'Category', $request, $category ));\n if ($request->get('submit') == 'save') {\n return redirect()->route('admin::categories.indexSpec', [$request->component])->with('status', trans('notices.update_success_message'));\n } else {\n return redirect()->route('admin::categories.edit', $id)->with('status', trans('notices.update_success_message'));\n }\n }", "public function updated(SubCategories $subCategories)\n {\n //\n }", "function wpmu_update_blogs_date() {\n\t$site_id = get_current_blog_id();\n\n\tupdate_blog_details( $site_id, array( 'last_updated' => current_time( 'mysql', true ) ) );\n\t/**\n\t * Fires after the blog details are updated.\n\t *\n\t * @since MU (3.0.0)\n\t *\n\t * @param int $blog_id Site ID.\n\t */\n\tdo_action( 'wpmu_blog_updated', $site_id );\n}", "public function edit_postAction() {\r\n\t\t$info = $this->getPost(array('id', 'sort', 'title', 'img', 'status', 'hits'));\r\n\t\t$info = $this->_cookData($info);\r\n\t\t$ret = Game_Service_Category::updateCategory($info, intval($info['id']));\r\n\t\tif (!$ret) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功.'); \t\t\r\n\t}", "protected function updateAndPersistBlog() {}", "public function update(BlogCategoryUpdateRequest $request, $id)\n {\n\n $item = BlogCategory::find($id);\n\n if (empty($item)) {\n return back()->withErrors(['msg' => \"Запись id=$id не найдена\"])->withInput();\n }\n\n $data = $request->all();\n\n $result = $item->fill($data)->save();\n\n if ($result) {\n return redirect()->route('blog.admin.categories.edit', $item->id)->with('success', 'Категория успешно обновлена');\n } else {\n return back()->withErrors(['msg' => 'Ошибка обновления'])->withInput();\n }\n }", "public function update(CategoryRequest $request, $slug)\n {\n try {\n $data = $request->all();\n $category = Category::with(['image'])->where('slug', $slug)->first();\n if ($category) {\n $category->update($data);\n return response()->json(['status' => 'success', 'message' => 'Category updated successfully!', 'category' => $category], JsonResponse::HTTP_OK);\n } else {\n return response()->json(['message' => 'No category was found'], JsonResponse::HTTP_CONFLICT);\n }\n } catch (\\Exception $e) {\n return response()->json(['message' => $e->getMessage()], JsonResponse::HTTP_CONFLICT);\n }\n }", "public function updateCate()\n\t{\n\t\tif (cookie('staffAccount') != '') {\n\t\t\t$category = $_POST['upcategory'];\n\t\t\t$category_id = $_POST['upcategory_id'];\n\t\t\t$sql = \" update lib_book_species set category = '{$category}' where category in \n\t\t\t\t\t(select category from lib_category where category_id = {$category_id});\n\t\t\t\t\tupdate lib_category set category='\" . $category . \"' where category_id='\" . $category_id . \"';\n\t\t\t\t\t\";\n\t\t\t$cate = D('Category');\n\t\t\t$return = $cate->execute($sql);\n\n\t\t\tif ($return) {\n\t\t\t\t$json = json_encode(array(\n\t\t\t\t\t'code' => 'fail',\n\t\t\t\t\t'msg' => 'Modify successfully!'\n\t\t\t\t));\n\t\t\t\techo $json;\n\n\t\t\t} else {\n\t\t\t\t$json = json_encode(array(\n\t\t\t\t\t'code' => 'fail',\n\t\t\t\t\t'msg' => 'SQL Error!'\n\t\t\t\t));\n\t\t\t\techo $json;\n\t\t\t}\n\n\t\t} else {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'fail',\n\t\t\t\t'msg' => 'Please Login!'\n\t\t\t));\n\t\t\techo $json;\n\t\t}\n\t}", "public function update(BlogCategoryUpdateRequest $request, $id)\n {\n// $rules = [\n// 'title' => 'required|min:5|max:200',\n// 'slug' => 'max:200',\n// 'description' => 'string|max:500|min:3',\n// 'parent_id' => 'required|integer|exists:blog_categories,id',\n// ];\n\n\n //$validateData = $this->validate($request, $rules);\n\n //$validateData = $request->validate($rules);\n\n //$item = BlogCategory::find($id);\n $item = $this->blogCategoryRepository->getEdit($id);\n\n if(empty($item)) {\n return back()\n ->withErrors(['msg' => \"Запись id=[{$id}] не найдена\"]) //запись в сессию\n ->withInput(); //на шаг назад с возвратом предыдущих данных(введенных юзером)\n }\n\n $data = $request->all();\n\n// Ушло в обсеревер\n// if(empty($data['slug'])) {\n// $data['slug'] = Str::slug($data['title']);\n// }\n\n $result = $item->fill($data)->save();\n //$result = $item->update($data);\n\n if($result) {\n return redirect()\n ->route('blog.admin.categories.edit', $item->id)\n ->with(['success' => 'Успешно сохранено']);\n } else {\n return back()\n ->withErrors(['msg' => 'Ошибка сохранения'])\n ->withInput();\n }\n }", "public function update(categoryRequest $request, Category $category)\n {\n $image = $request->file('img');\n\n if ( $image != null ){\n //new image upload\n $image = $this->fileHandler->fileUploadedBackend($request->file('img'),$this->storeName,'img');\n $request['image'] = $image;\n // old image unlink\n if($request->oldImg = null){\n $this->fileHandler->imageDeleteBackend($request->oldImg,$this->storeName);\n }\n \n }\n\n $request['slug'] = strtolower(str_replace(' ', '-', $request->name));\n $request['status'] = ($request->status)?1:0;\n $update = $category->update($request->all());\n if($update){\n return Redirect::route('category.index')->with('success','Category Updated Successfully.');\n }else{\n return Redirect::route('category.index')->with('warning','Category could not be update.');\n }\n }", "public function testUpdateItemSubCategory()\n {\n }", "function update_category_detail($siteData,$category_id)\n\t{\n\t\t$this->db->where('id', $category_id);\n\t\t$this->db->update('category', $siteData); \n\t\t\n\t}", "public function update(UpdateCategoryRequest $request, $id)\n {\n try {\n\n /*\n |\n | store a new category \n |\n */\n $category = Category::find($id);\n \n $category->category_name = $request->get('category_name');\n $category->category_slug = $request->get('category_slug');\n $category->category_description = $request->get('category_description', '');\n\n if ($request->has('category_icon') && !empty($request->get('category_icon'))) {\n $category->category_icon = $request->get('category_icon');\n }\n $category->status = ($request->get('status') == self::STATUS_ON) ? self::ACTIVE_STATUS : self::INACTIVE_STATUS;\n $category->lang_id = $this->getLocalId();\n $category->save();\n\n $response = ['code' => Response::HTTP_OK, 'message' => trans('message.category_success')];\n } catch (QueryException $e) {\n\n $response = ['code' => $e->getCode(), 'message' => $e->getMessage()];\n\n ActivityLogs::create(['payload' => json_encode($response)]);\n } catch (Exception $e) {\n\n $response = ['code' => Response::HTTP_UNPROCESSABLE_ENTITY, 'message' => $e->getMessage()];\n }\n \n return Redirect::route('categories.index')->with('success', $response);\n }", "public function update(UpdateCategoryRequest $request)\n {\n $category = Apiato::call('Category@UpdateCategoryAction', [$request]);\n\n // ..\n }", "public function update(Request $request, Kategoriartikelblog $kategoriartikelblog)\n {\n //\n }", "public function UpdatePost_Category(Request $request){\n $postId = Post::query()->find($request->postID);\n $postId->categories()->detach($request->OldcategoryId);\n $postId->categories()->attach($request->categoryId); \n\n }", "public static function updateCategory($a_obj)\n\t{\n\t\tinclude_once('./Services/Calendar/classes/class.ilCalendarCategory.php');\n\t\tinclude_once('./Services/Calendar/classes/class.ilCalendarAppointmentColors.php');\n\t\t\n\t\tif($cat = ilCalendarCategory::_getInstanceByObjId($a_obj->getId()))\n\t\t{\n\t\t\t$cat->setTitle($a_obj->getTitle());\n\t\t\t$cat->update();\n\t\t}\n\t\treturn true;\n\t}", "public function executeAddCategoryUpdate(HTTPRequest $request)\n {\n $this->addCategory($request);\n $this->app->getHttpResponse()->redirect('/admin/updatePost-' . $request->postData('postId'));\n\n }", "public function actionUpdate($id = '') {\n $model = $id ? $this->loadModel($id) : new Category;\n // Uncomment the following line if AJAX validation is needed\n if (Helper::post('Category')) {\n // validate\n Helper::performAjaxValidation($model, 'category-form');\n // assign value\n $model->attributes = Helper::post('Category');\n $size = array(\n 'wOnIndex' => '250',\n 'hOnIndex' => '159',\n 'typeSize' => ''\n );\n $uploadImage = Helper::uploadImage($model, 'image', 'Category', true, false, $size);\n $model->image = $uploadImage;\n if ($model->save()) {\n Helper::setFlash('SUCCESS_MESSAGE', 'Successfully.');\n // rebuild Cache\n Cache::model()->getCacheDependency(array(\n 'name' => 'cache-category-' . $model->alias,\n 'description' => 'cache for Category ' . $model->alias\n ));\n $this->redirect(array('/Admin/default/deleteall'));\n }\n }\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function update(Request $request, Category $category)\n {\n //\n }", "public function onPageUpdate( Page $pageObj ){\n if( $pageObj->getCollectionTypeHandle() === 'news_post' ){\n // we don't actually have to do anything in here, the way it works is adjust\n // the constant as noted above\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'category_name' => 'required'\n ]);\n\n // save\n $blog_category = BlogCategory::find($id);\n $blog_category->category_name = $request->input('category_name');\n $blog_category->save();\n\n return redirect('/blogs')->with('success','Blog Category Updated Successfully');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title'=>'required|string|min:3|max:255',\n ]);\n\n BlogCategory::where('id', $id)->update([\n 'title'=>$request->title,\n 'slug'=>str_slug($request->title),\n ]);\n\n return redirect()->back()->with('message', 'Blog category updated successful');\n }", "public function update($id)\n\t{\n\t\t$category = Category::find($id);\n\n\t\t$img = $this->save_file(Input::file('thumbnail'), 60, 25, 'categories');\n\t\tif($img == ''){\n\t\t\t$img = $category->thumbnail;\n\t\t}\n\t\t//滚动图像\n\t\t$slides = array();\n\t\tif(Input::hasFile('slides')){\n\t\t\tforeach(Input::file('slides') as $file){\n\t\t\t\t$slides[] = $this->save_file($file, 50, 14, 'categories');\n\t\t\t}\n\t\t}\n\t\t$slide = serialize($slides);\n\t\tif(empty($slides)){\n\t\t\t$slide = $category->slides;\n\t\t}\n\n\t\t$credentials = Input::except('thumbnail', 'slides');\n\t\t$credentials['thumbnail'] = $img;\n\t\t$credentials['slides'] = $slide;\n\n if( $category->update($credentials) )\n {\n return Redirect::route('admin.categories.index')\n ->with('success', Lang::get('cpanel::common.update_success'));\n }\n\n return Redirect::back()\n ->withInput()\n ->withErrors($category->errors());\n\t}", "public function save_category_posts($entry_id, $meta, $data)\n {\n $categories = array();\n\n // Channel:Form/Safecracker\n if (isset($data['categories']))\n {\n $categories = $data['categories'];\n }\n // Normal Entry Save\n elseif (isset($data['revision_post']['category']))\n {\n $categories = $data['revision_post']['category'];\n }\n\n $publisher_save_status = ee()->input->post('publisher_save_status');\n\n // Insert new categories.\n $this->_save_category_posts($entry_id, $publisher_save_status, $categories);\n\n // If option is enabled, and saving as open, delete drafts and save new draft rows too.\n if(\n $publisher_save_status == PUBLISHER_STATUS_OPEN &&\n ee()->publisher_setting->sync_drafts()\n ){\n $this->_save_category_posts($entry_id, 'draft', $categories);\n }\n\n // Get open records, and re-insert them into category_posts, otherwise\n // we get draft category assignments added to the core table.\n if(\n $publisher_save_status == PUBLISHER_STATUS_DRAFT &&\n ($categories = $this->get_category_posts($entry_id, PUBLISHER_STATUS_OPEN))\n ){\n // First delete all category assignments for this entry.\n ee()->db->where('entry_id', $entry_id)\n ->delete('category_posts');\n\n foreach ($categories as $category)\n {\n $data = array(\n 'cat_id' => $category,\n 'entry_id' => $entry_id\n );\n\n $qry = ee()->db->where($data)->get('category_posts');\n\n if ($qry->num_rows() == 0)\n {\n ee()->db->insert('category_posts', $data);\n }\n }\n }\n }", "public function postUpdate(Request $request, $id)\n\t{\n\t\t$response['status'] = 'error';\n\t\t$response['message'] = trans('categories.not_updated');\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\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 (Model_Categories::updateCategory($id, $data) === TRUE)\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.updated');\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_updated');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn response()->json($response);\n\t}", "public function update()\n {\n $model = $this->model()::findOrFail(request('_id'));\n $data = array_merge(request()->all(), ['slug' => request('name')]);\n $category = $model->update($data);\n return redirect()->route('admin.'.$this->table().'.index');\n }", "public function update(Request $request)\n {\n //\n $this->validate($request, [\n 'slug' => 'required|alpha_dash|max:80|unique:categories,slug,' . $request->id,\n 'name' => 'required|string|max:60',\n 'description' => 'string|nullable',\n ]);\n\n $category = Category::find($request->id);\n $category->slug = $request->slug;\n $category->name = $request->name;\n \n if($category->update()){\n return redirect()->route('edit.category', ['id' => $category->id])->with(['success' => 'edited']);\n } else {\n return redirect()->route('index.category')->with(['error' => 'error']);\n }\n }", "public function update(){\n $service_category = new OsServiceCategoryModel($this->params['service_category']['id']);\n $service_category->set_data($this->params['service_category']);\n if($service_category->save()){\n $response_html = __('Service Category Updated. ID: ', 'latepoint') . $service_category->id;\n $status = LATEPOINT_STATUS_SUCCESS;\n }else{\n $response_html = $service_category->get_error_messages();\n $status = LATEPOINT_STATUS_ERROR;\n }\n if($this->get_return_format() == 'json'){\n $this->send_json(array('status' => $status, 'message' => $response_html));\n }\n }", "public function update(Request $request, Category $category)\n {\n //отвечает за обновление\n //не включаем в обновление поле slug - оно не должно меняться\n $category->update($request->except('slug'));\n return redirect()->route('admin.category.index');\n }", "public function onUpdate(Event $e)\n {\n /* @var $post \\Blog\\Entity\\PostInterface */\n $post = $e->getParam('post');\n $instance = $post->getInstance();\n\n if ($post->getId() === null) {\n $this->getAliasManager()->flush($post);\n }\n\n $url = $this->getAliasManager()->getRouter()->assemble(\n ['post' => $post->getId()],\n ['name' => 'blog/post/view']\n );\n\n $this->getAliasManager()->autoAlias('blogPost', $url, $post, $instance);\n }", "public function update($id, UpdateBlogCategoryRequest $request)\n {\n $blogCategory = $this->blogCategoryRepository->find($id);\n\n if (empty($blogCategory)) {\n Flash::error('Blog Category not found');\n\n return redirect(route('blogCategories.index'));\n }\n\n $blogCategory = $this->blogCategoryRepository->update($request->all(), $id);\n\n Flash::success('Blog Category updated successfully.');\n\n return redirect(route('blogCategories.index'));\n }", "function logicUpdate($id)\n {\n $id = FilterUtils::sanitizeVar($id, FILTER_VALIDATE_INT);\n\n if ($id === NULL || $id === false) {\n return array(\n 'error' => 'Invalid category id'\n );\n }\n\n $category = $this->categoryDAO->findById($id);\n foreach ($category->getFeeds() as $feed) {\n $this->feedController->update($feed->getId());\n }\n }", "public function update(CatelogsRequest $request, $id)\n {\n $request->merge(['slug' => str_slug($request->name,'-')]);\n $category = Categorylist::findOrFail($id);\n $category->update($request->all());\n return redirect()->route('category.index');\n }", "public function testUpdateCategoryUsingPUT()\n {\n }", "public function edit(BlogCategory $blogCategory)\n {\n //\n }", "function fm_update_links_cats($catid) {\r\n\t// Changes all associated links to deleted cat to 0\r\n\tif ($linkcats = get_records('fmanager_link', \"category\", $catid)) {\r\n\t\tforeach ($linkcats as $lc) {\t\t\r\n\t\t\t$lc->category = 0;\r\n\t\t\tif (!update_record('fmanager_link', $lc)) {\r\n\t\t\t\terror(get_string(\"errnoupdate\",'block_file_manager'));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "public function update(BlogsUpdateRequest $request,Blog $blog)\n {\n\n $blog->update([\n 'blog_category_id'=>$request->blog_category_id,\n 'name'=>$request->name,\n 'description_short'=>$request->description_short,\n 'description_full'=>$request->description_full,\n 'tags'=>$request->tags,\n 'amount'=>$request->amount,\n ]);\n\n session()->flash('success','Post Updaated.');\n return redirect(route('bloggalleryview',$blog->id));\n }", "public function _postUpdate()\n\t{\n\t\t$this->notifyObservers(__FUNCTION__);\n\t}", "function updateCategory($id) {\n\t$request = Slim::getInstance()->request();\n\t$body = $request->getBody();\n\t$category = json_decode($body);\n\t$sql = \"UPDATE category SET name=:name, description=:description WHERE id=:id\";\n\ttry {\n\t\t$db = getConnection();\n\t\t$stmt = $db->prepare($sql); \n\t\t$stmt->bindParam(\"name\", $category->name);\n\t\t$stmt->bindParam(\"description\", $category->description);\n\t\t$stmt->bindParam(\"id\", $id);\n\t\t$stmt->execute();\n\t\t$db = null;\n\t\techo json_encode($category);\n\t} catch(PDOException $e) {\n\t\techo '{\"error\":{\"text\":'. $e->getMessage() .'}}'; \n\t}\n}", "function accouk_display_post_last_updated() {\n\n $show_last_updated = array(\n 'web',\n 'ecommerce',\n 'development'\n );\n\n global $main_category;\n\n if(!in_array($main_category['slug'], $show_last_updated))\n return;\n\n if(get_the_date('d-m-Y') === get_the_modified_date('d-m-Y'))\n return;\n\n echo '<div class=\"last-updated-date\">Last updated '; the_modified_date(); echo '</div>';\n\n}", "public function updateAction(BlogEntry $blogEntry) {\n\t\t$this->blogEntryRepository->update($blogEntry);\n\t\t$this->flashMessageContainer->add('Updated the blog.');\n\t\t$this->redirect('index');\n\t}", "public function updateBlogPost() {\r\n\r\n\t\t$getid = $_GET['id'];\r\n\t\t$updtitle = $_POST['admblogtitle'];\r\n\t\t$updintro = $_POST['admblogintro'];\r\n\t\t$updcontent = $_POST['admblogcontent'];\r\n\r\n\t\ttry {\r\n\t\t\t// PDO initialiseren met attributes\r\n\t\t\t$stmt = new PDO(\"mysql:host=localhost;dbname=demo\", 'root', '');\r\n\t\t\t$stmt->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n\r\n\t\t\t// query om post op te halen\r\n\t\t\t$query = $stmt->prepare(\r\n\t\t\t\t\t\"UPDATE `evdnl_blog_posts_yc` SET title='$updtitle', intro='$updintro', content='$updcontent' WHERE `id` = '$getid' LIMIT 1;\r\n\t\t\t\t\t UPDATE `evdnl_blog_posts_yc` SET modify_date=CURRENT_TIMESTAMP WHERE `id` = '$getid' LIMIT 1\"\r\n\t\t\t\t\t);\r\n\t\t\t$query->execute();\r\n\r\n\t\t\techo $stmt->rowCount() . \" records UPDATED successfully\";\r\n\r\n\t\t\t// header aanroepen om leeg formulier te tonen\r\n\t\t}\r\n\t\tcatch (PDOException $e) {\r\n\t\t\t$e->getMessage();\r\n\t\t}\r\n\t}", "public function categoryAction()\n\t{\n\t\t$id = (int) $this->getRequest()->getParam('id');\n\t\t$this->view->category = $this->_blogService->findCategory($id);\n\t}", "public function updateCategory(array $data, int $id): void\n {\n }", "public function update(Request $request, HistoryCategory $historyCategory)\n {\n //\n }", "public function updated(AccountingDivisionCategory $accountingDivisionCategory)\n {\n //\n }", "public function after_update() {}", "public function column_lastupdated($blog)\n {\n }", "public function update(Request $request, Category $Category)\n {\n //\n }", "public function update(ChildCategoryUpdateRequest $request, $slug)\n {\n // get child category by slug\n $childCategory = ChildCategory::findBySlug($slug);\n\n // if child category doesnt exist return error message\n if (!$childCategory) return response()->json(['message' => 'Child Category does not exist..']);\n\n // update child category data\n $childCategory->slug = null;\n $childCategory->name = $request->name;\n $childCategory->parent_category_id = $request->parent_category_id;\n\n // save the new child category data\n $childCategory->save();\n\n // return success message\n $response = ['message', 'Child Category update success'];\n return response()->json($response, 200);\n }", "function _update_blog_date_on_post_publish($new_status, $old_status, $post)\n {\n }", "public function updateCategory(Request $request,$cat_id)\n {\n // validate input of category name..\n $request->validate([\n 'category_name' => 'required|max:255'\n ]);\n // update category by cat_id..\n $data = array();\n $data['category_name'] = $request->category_name;\n //$data['updated_at'] = Carbon::now();\n $update_category = DB::table('categories')->where('id',$cat_id)->update($data);\n if ($update_category)\n {\n // Display a toaster Updated message..\n $notification = array(\n 'message' => 'Category Updated successfully.',\n 'alert-type' => 'success'\n );\n return Redirect()->route('categories')->with($notification);\n }else {\n // Display a toaster No Updated message..\n $notification = array(\n 'message' => 'Nothing Data To Update.',\n 'alert-type' => 'warning'\n );\n return Redirect()->route('categories')->with($notification);\n }\n }", "public function published_category($category_id){\n \n DB::table('tbl_category')\n ->where('category_id', $category_id)\n ->update(['publication_status' => 1]); \n return Redirect::to('/manage-category');\n }", "public function update(Request $request, CategoryDomain $categoryDomain)\n {\n //\n }", "protected function _registerCatalogCategoryEvent(Mage_Index_Model_Event $event)\n {\n switch ($event->getType()) {\n case Mage_Index_Model_Event::TYPE_SAVE:\n /** @var $category Mage_Catalog_Model_Category */\n $category = $event->getDataObject();\n $productIds = $category->getAffectedProductIds();\n if ($category->dataHasChangedFor('is_active') && ! $category->getData('is_active')) {\n $event->addNewData('catalogsearch_delete_category_id', array_merge(array($category->getId()), $category->getAllChildren(TRUE)));\n if ($productIds) {\n $event->addNewData('catalogsearch_update_product_id', $productIds);\n }\n } elseif ($productIds) {\n $event->addNewData('catalogsearch_update_product_id', $productIds);\n $event->addNewData('catalogsearch_update_category_id', array($category->getId()));\n } elseif ($movedCategoryId = $category->getMovedCategoryId()) {\n $event->addNewData('catalogsearch_update_category_id', array($movedCategoryId));\n } else {\n $rebuildIndex = FALSE;\n foreach (array_merge(self::$_predefinedCategoryAttributes, array('is_active')) as $attribute) {\n if ($category->dataHasChangedFor($attribute)) {\n $rebuildIndex = TRUE;\n break;\n }\n }\n if ( ! $rebuildIndex) {\n foreach (Mage::helper('algoliasearch')->getCategoryAdditionalAttributes($category->getStoreId()) as $attribute) {\n if ($category->dataHasChangedFor($attribute['attribute'])) {\n $rebuildIndex = TRUE;\n break;\n }\n }\n }\n if ($rebuildIndex) {\n $event->addNewData('catalogsearch_update_category_id', array($category->getId()));\n }\n }\n break;\n case Mage_Index_Model_Event::TYPE_DELETE:\n /** @var $category Mage_Catalog_Model_Category */\n $category = $event->getDataObject();\n $event->addNewData('catalogsearch_delete_category_id', $category->getId());\n break;\n }\n\n return $this;\n }", "public function updating(Category $category)\n {\n $category->teams()->update(['teams.status' => $category->status]);\n $category->activities()->update(['activities.status' => $category->status]);\n $category->events()->update(['events.status' => $category->status]);\n $category->allUsers()->update(['users.status' => $category->status]);\n $category->coaches()->update(['coahes.status' => $category->status]);\n }", "public function categoryUpdated($categoryId, $categoryName, $type = 'all')\n {\n $key = 'getCategoryByName' . $categoryName . $categoryId . language;\n // self::$cache->delete($key);\n }", "public function handleRestUpdatePost($post)\n {\n if (\"publish\" == $post->post_status) {\n $this->indexPost($post->ID);\n }\n }", "public function update(CategoryRequest $request, Category $category)\n {\n $category->update([\n 'categoryname' => $request->input('categoryname'),\n 'categorydescription' => $request->input('categorydescription'),\n ]);\n \n if($request->new_photo){\n if($category->categoryphoto){\n unlink($category->categoryphoto);\n }\n $position = strpos($request->new_photo, ';');\n $sub = substr($request->new_photo, 0, $position);\n $file_extension = explode('/', $sub)[1];\n $name = time().\".\".$file_extension;\n $img = Image::make($request->new_photo)->resize(240,200);\n $upload_path = 'photos/category/';\n $image_url = $upload_path.$name;\n $img->save($image_url);\n $category->update([\n 'categoryphoto' => $image_url,\n ]);\n }\n\n return response()->json([\n 'type' => 'success',\n 'message' => \"data updated\",\n ],200);\n }", "public function postUpdateCallback()\n {\n $this->performPostUpdateCallback();\n }", "public function postUpdateCallback()\n {\n $this->performPostUpdateCallback();\n }", "public function update(Request $request, $category)\n {\n $request->validate([\n 'name' => 'required|string|unique:categories,name,' . $category,\n 'slug' => 'required'\n ]);\n\n Category::whereId($category)->first()->update([\n 'name' => $request->name,\n 'slug' => make_slug($request->slug, '-'),\n 'description' => $request->description,\n 'status' => $request->status\n ]);\n\n return back()->with([\n 'url' => 'cats.index',\n 'type' => 'success',\n 'message' => 'تم تعديل القسم بنجاح '\n ]);\n }", "public function update(Request $request, Catalogue $catalogue, Category $category)\n {\n $this->validate($request, [\n 'title' => 'required|max:100|unique:catalogues,title,' . $category->id,\n 'description' => 'required|max:1000',\n 'status' => 'required|max:10',\n 'image' => 'image'\n ],[\n 'title.required' => 'El título es requerido.',\n 'title.unique' => 'El título que has introducido ya existe.',\n 'title.max' => 'El titulo solo acepta un máximo de 250 caracteres.',\n 'description.required' => 'La descripción es requerida.',\n 'image.image' => 'Es necesario introducir una imagen.'\n ]);\n\n $this->verificaCatalogue($catalogue, $category);\n\n $category->fill($request->intersect(['title', 'description', 'image', 'status']));\n\n if ($request->hasFile('image')){\n\n $img = $request->file('image');\n $file_route = time() . '_' . $img->getClientOriginalName();\n\n Storage::disk('imgCategories')->put($file_route, file_get_contents($img->getRealPath()));\n\n $category->image = $file_route;\n }\n\n if ($category->isClean()) {\n return Redirect::back()->with('message', 'Debe especificar al menos un valor diferente para actualizar.');\n }\n\n $category->user_id = Auth::user()->id;\n\n if ($category->save()) {\n return Redirect::back()->with('message', 'Categoría editada correctamente.');\n }\n }" ]
[ "0.73130655", "0.66730237", "0.6661564", "0.65830755", "0.6246236", "0.6075652", "0.5891221", "0.58715236", "0.5832291", "0.5822952", "0.57896024", "0.57783824", "0.5728552", "0.5720402", "0.5699764", "0.5695626", "0.5688151", "0.5646902", "0.56235224", "0.56153464", "0.5607972", "0.55866975", "0.55773675", "0.55681014", "0.55525404", "0.5538891", "0.5536958", "0.55291057", "0.550996", "0.5505524", "0.5475125", "0.54678947", "0.5450286", "0.5429495", "0.5425484", "0.5425362", "0.54230195", "0.5418431", "0.54056066", "0.5402469", "0.5394343", "0.5381295", "0.5378469", "0.53627074", "0.53625196", "0.5351407", "0.5341632", "0.5341632", "0.5341632", "0.5341632", "0.5341632", "0.5341632", "0.5341632", "0.5341632", "0.5341632", "0.5341632", "0.533212", "0.53255165", "0.53161174", "0.5311657", "0.5303886", "0.5295106", "0.52726847", "0.5262841", "0.5262238", "0.5262001", "0.52594125", "0.5237939", "0.52359813", "0.52235246", "0.5222686", "0.52196705", "0.5217878", "0.52159154", "0.52139837", "0.52136195", "0.52135587", "0.52066994", "0.5204708", "0.52030945", "0.51986754", "0.5192953", "0.5178886", "0.5169572", "0.5165425", "0.51647246", "0.5164061", "0.51626694", "0.51617986", "0.51409096", "0.5138481", "0.5135813", "0.5126435", "0.5123986", "0.51227266", "0.51202464", "0.511717", "0.511717", "0.5110392", "0.5109528" ]
0.6784312
1
Handle the blog category "deleted" event.
public function deleted(BlogCategory $blogCategory) { # ПОПАДАЕМ ПОСЛЕ УДАЛЕНИЯ ЗАПИСИ (softDeleted) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleted(BlogCategory $blogCategory)\n {\n //\n }", "public function deleted(Category $category)\n {\n //\n }", "public function deleted(Category $category)\n {\n //\n }", "public function forceDeleted(BlogCategory $blogCategory)\n {\n //\n }", "protected function handleDelete($request) {\n //get view mount\n $queryViewMount = DB::table('categories')->where('id', $request->_id_cat)->first();\n DB::table('categories')->where('id', $request->_id_cat)->update(['comment' => (int)$queryViewMount -> comment -1]);\n DB::table('comments')->where('id', $request->_id)->delete();\n session::flash('notify', 'Delete successful');\n }", "public function deleted(BlogPost $blogPost)\n\t{\n\t\t//\n\t}", "public function forceDeleted(BlogCategory $blogCategory)\n {\n # ПОПАДАЕМ ПОСЛЕ ПРЯМОГО УДАЛЕНИЯ ЗАПИСИ\n }", "public function delete_gallery_category_post()\n {\n prevent_author();\n\n $id = $this->input->post('category_id', true);\n\n //check if category has posts\n if ($this->gallery_image_model->get_category_image_count($id) > 0) {\n $this->session->set_flashdata('error', trans(\"msg_delete_images\"));\n redirect($this->agent->referrer());\n }\n\n if ($this->gallery_category_model->delete_category($id)) {\n $this->session->set_flashdata('success', trans(\"category\") . \" \" . trans(\"msg_suc_deleted\"));\n redirect($this->agent->referrer());\n } else {\n $this->session->set_flashdata('error', trans(\"msg_error\"));\n redirect($this->agent->referrer());\n }\n }", "public function handleDeleted(Deleted $event): void\n {\n $entity = $event->entity();\n\n $this->scheduleRemovingOldDocuments($entity);\n\n $this->elasticsearchManager->commit();\n }", "public function onAfterDelete() {\n\t\tparent::onAfterDelete();\n\n\t\tif($this->isPublished()) {\n\t\t\t$this->doUnpublish();\n\t\t}\n\t}", "public function deleted(Category $category)\n {\n // Removing Entries from the Cache\n $this->clearCache($category);\n }", "public function deletePost(){\n\n if (!$this->auth->isLogged()) {\n $this->view->redirect(\"/user/login\", \"You can not add new categories if you are not logged in!\");\n }\n\n if (!$this->auth->isInRole(\"admin\")) {\n $this->view->redirect(\"/user/login\", \"You can not manage categories if you are not Admin!\");\n }\n\n if ($this->input->post(\"delete_category\") === null){\n $this->view->redirect(\"/categories/manage\");\n }\n\n if (empty($this->input->get(0,\"int\"))){\n $this->view->redirect(\"/categories/manage\");\n }\n\n $categoryId = $this->input->get(0,\"int\");\n\n $categoryModel = new CategoriesModel();\n try{\n if (!$categoryModel->existCategoryId($categoryId)){\n $this->view->redirect(\"/categories/manage\",\"This categories do not exist!\");\n }\n if ($categoryModel->deleteCategory($categoryId)){\n $this->view->redirect(\"/categories/manage\",\"Category deleted successfully!\",\"success\");\n }\n } catch (\\Exception $exception) {\n $this->view->redirect(\"/categories/manage\", $exception->getMessage());\n }\n }", "public function delete(): void\n {\n $query_lang = 'DELETE FROM '. rex::getTablePrefix() .'d2u_linkbox_categories '\n .'WHERE category_id = '. $this->category_id;\n $result_lang = rex_sql::factory();\n $result_lang->setQuery($query_lang);\n }", "public function deleted(Category $category)\n {\n $category->deleted_by_user_id = Auth::id();\n }", "public function onWikiDelete(WikiWasDeleted $event)\n {\n try {\n $this->wiki->withTrashed()->find($event->wiki['id'])->deleteFromIndex();\n } catch (\\Exception $e) {\n app('log')->warning($e->getMessage());\n }\n }", "public function deleted(ShopBlog $shopBlog)\n {\n //\n }", "public static function deleted($callback)\n {\n self::listenEvent('deleted', $callback);\n }", "protected function afterDelete()\n {\n parent::afterDelete();\n //Comment::model()->deleteAll('post_id='.$this->id);\n VideoTag::model()->updateFrequency($this->tags, '');\n }", "public function deleteAction()\n {\n // enforce permissions.\n $this->acl->check('categories', 'manage');\n\n // require post request method.\n $request = $this->getRequest();\n if (!$request->isPost()) {\n throw new P4Cms_AccessDeniedException(\n \"Cannot delete category. Request method must be http post.\"\n );\n }\n\n $id = $request->getParam('id', $request->getParam('category'));\n $category = Category_Model_Category::fetch($id);\n $category->delete();\n\n $this->view->category = $category;\n }", "protected function _postDelete() {}", "protected function _postDelete() {}", "public function destroy($slug)\n {\n $category=Category::withTrashed()->where('slug',$slug)->first();\n $blog=Blog::where('category_id',$category->id)->first();\n \n if($category->deleted_at)\n {\n $category->forcedelete();\n session()->flash('danger','Category permanent deleted');\n }\n else\n {\n if($blog!=null)\n {\n session()->flash('warning','This category has a blog. So, It will not be deleted !');\n }\n else\n {\n $category->delete();\n session()->flash('warning','Category Soft deleted!');\n \n }\n }\n return redirect()->back();\n }", "public function destroy(Category $category)\n {\n $Blog = Category::findorfail($id)->delete();\n return redirect()->back()->withSuccess('Category Deleted Successfully!');\n }", "public function forceDeleted(Category $category)\n {\n //\n }", "function cat_delete_link()\n{\n return Parrot::getInstance()->getUrl(\"admin/category/\" . discussion::encode_title(cat_title()) . \"/delete\");\n}", "protected function _delete() {\r\n\t\tif ($this -> _disableHooks)\r\n\t\t\treturn;\r\n\r\n\t\t//Delete Blog Member\r\n\t\t$become_table = Engine_Api::_() -> getDbTable('becomes', 'ynblog');\r\n\t\t$become_selected = $become_table -> select() -> where('blog_id = ?', $this -> getIdentity());\r\n\t\tforeach ($become_table->fetchAll($become_selected) as $blog_become) {\r\n\t\t\t$blog_become -> delete();\r\n\t\t}\r\n\r\n\t\tparent::_delete();\r\n\t}", "function product_category_delete(){\n\t\tglobal $tpl, $config, $meta, $_r, $_l, $_u;\n\t\t\n\t\tmysql_q(\"DELETE FROM product_category WHERE id='\".add_slash($_r['id']).\"'\");\n\n\t\tredirect(\"product_category.htm\", \"\");\n\t}", "public function forceDeleted(Category $category)\n {\n //\n }", "public function forceDeleted(Category $category)\n {\n //\n }", "function delete_blog( $blog_id )\n\t{\n\t\tdo_action( 'deactivate_blog', $blog_id );\n\t\tupdate_blog_status( $blog_id, 'deleted', '1' );\n\t}", "public function deleted(Post $post)\n {\n $post->recordActivity('deleted');\n }", "public function delete() {\n $sql = sprintf(\"DELETE FROM category WHERE id=%d\", $this->id);\n self::$connection->execute($sql);\n }", "protected function afterDelete()\n\t{\n\t\tparent::afterDelete();\n\t\tComment::model()->deleteAll('photo_id='.$this->id);\n\t\tTag::model()->updateFrequency($this->tags, '');\n\t}", "public function deleted_post($post_id)\n {\n }", "public function deleteAction() {\n\t\t// if($post->delete()) {\n\t\t// \tSession::message([\"Post <strong>$post->name</strong> deleted!\" , \"success\"]);\n\t\t// \tredirect_to('/posts/index');\n\t\t// } else {\n\t\t// \tSession::message([\"Error saving! \" . $error->get_errors() , \"success\"]);\n\t\t// }\n\t}", "public function destroy(BlogCategory $blogCategory)\n {\n if ($blogCategory->delete()) {\n Toastr::success(\"Blog Category Successfully Deleted\", \"Success\");\n } else {\n Toastr::error(\"Something Went Wrong\", \"Error\");\n }\n return redirect()->back();\n }", "public function processDelete(): void \n {\n if ($this->delete()) { // The tag is deleted in the database storage.\n auth()->user()->logActivity($this, 'Tags', 'Has deleted an issue tag with the name ' . $this->name);\n flash(\"The ticket tag with the name <strong>{$this->name}</strong> has been deleted in the application.\")->info()->important();\n }\n }", "public function deleted() {\n // TODO Implement this\n }", "public function destroy(Postcategory $postcategory)\n {\n //\n }", "protected function handleDoDelete() {\n\t\t\tif ($this->verifyRequest('DELETE') && $this->verifyParams()) {\n\t\t\t\tif ($this->blnAuthenticated) {\n\t\t\t\t\tif ($intEventId = str_replace('.' . $this->strFormat, '', $this->objUrl->getSegment(3))) {\n\t\t\t\t\t\t$objUserEvent = $this->initModel();\n\t\t\t\t\t\tif ($objUserEvent->loadById($intEventId) && $objUserEvent->count()) {\n\t\t\t\t\t\t\tif ($objUserEvent->current()->get('userid') == AppRegistry::get('UserLogin')->getUserId()) {\n\t\t\t\t\t\t\t\tif ($objUserEvent->destroy()) {\n\t\t\t\t\t\t\t\t\tCoreAlert::alert('The event was deleted successfully.');\n\t\t\t\t\t\t\t\t\t$this->blnSuccess = true;\n\t\t\t\t\t\t\t\t\t$this->intStatusCode = 200;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('There was an error deleting the event'));\n\t\t\t\t\t\t\t\t\t$this->error(400);\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\ttrigger_error(AppLanguage::translate('Invalid event permissions'));\n\t\t\t\t\t\t\t\t$this->error(401);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('There was an error loading the event data'));\n\t\t\t\t\t\t\t$this->error(400);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttrigger_error(AppLanguage::translate('Missing event ID'));\n\t\t\t\t\t\t$this->error(401);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error(AppLanguage::translate('Missing or invalid authentication'));\n\t\t\t\t\t$this->error(401);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->error(400);\n\t\t\t}\n\t\t}", "public function csstoolkit_ondelete_callback($dc)\r\n\t{\r\n\t\t$objFile = new File('web/bundles/csstoolkit/css/'.$dc->id.'.css');\r\n\t\tif ($objFile->exists()) {\r\n\t\t\t$objFile->delete();\r\n\t\t}\r\n\t}", "protected function afterDelete()\r\n {\r\n }", "public function delete(Request $request)\n {\n if(isset($request['cancel'])) return redirect(\"blog/{$request['id']}\");\n if(!($blog = Blog::find($request['id'])))\n return redirect('blog')->withErrors('Post does not exist');\n\n if($blog->user_id != Auth::id() && !User::find(Auth::id())->admin)\n return redirect('blog')->withErrors('Unable to delete post not owned by current user');\n\n if(isset($request['delete'])) {\n Blog::destroy($request['id']);\n return redirect('blog');\n }\n\n\n return view('blog/delete', ['blog' => $blog]);\n }", "public function delete() {\n BlogPost::remove($_GET['blogid']);\n $blogposts = BlogPost::all('BlogID', 'desc');\n require_once('views/blogs/readAll.php');\n }", "function ccategories_delete($category)\n\t{\n\t\tlusers_require(\"categories/delete\");\n\n\t\t$content = mcategories_get_content($category);\n\t\tmcategories_delete($category);\n\t\tmcontent_delete($content[\"id\"]);\n\n\t\tlcache_delete_all();\n\n\t\tluri_redirect(\"main/user/admin/categories\", l(\"Category successfully deleted.\"));\n\t}", "public function destroy(Category $category)\n {\n $category->delete();\n\n //event(new CategoryDeleted($post));\n\n return redirect()->route('admin.categories.index')->withFlashSuccess(__('alerts.backend.posts.deleted'));\n }", "public function onAfterDelete() {\r\n\t\tparent::onAfterDelete();\r\n\t\t$this->zlog('Delete');\r\n\t}", "public function delete($id){\n\n if($this->Blog->delete($id)){\n $this->Session->setFlash(__('Your blog and blog posts have been removed'), 'success');\n $this->redirect($this->referer());\n }else{\n $this->Session->setFlash(__('There was a problem removing your blog'), 'error');\n $this->redirect($this->referer());\n }\n\n }", "protected function afterDelete()\n {\n }", "public function action_delete()\n {\n if($this->category->has_subcategories())\n {\n // Response faile info\n $this->request->response = View::factory('error', array(\n 'message' => '该分类有子分类,无法删除', \n ));\n }\n else\n {\n if($this->category->delete())\n {\n // Delete successfully\n // Delete search results as well\n $this->request->redirect('category/tree');\n }\n else\n {\n // Failed\n $this->request->response = View::factory('error', array(\n 'message' => '删除失败', \n ));\n }\n }\n }", "public function deletecategory(){\n\t\n\t\t$id = $this->request->getParameter(\"actionid\");\n\t\t$modelCategory = new CaCategory();\n\t\t$modelCategory->delete($id);\n\t\n\t\t// generate view\n\t\t$this->redirect(\"catalogadmin/categories\");\n\t}", "public function deleteAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Game_Service_Category::getCategory($id);\r\n\t\tif ($info && $info['id'] == 0) $this->output(-1, '无法删除');\r\n\t\t$result = Game_Service_Category::deleteCategory($id);\r\n\t\tif (!$result) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功');\r\n\t}", "public function delete()\n {\n if (!$this->auth->isLogged()) {\n $this->view->redirect(\"/user/login\", \"You can not manage categories if you are not logged in!\");\n }\n if (!$this->auth->isInRole(\"admin\")) {\n $this->view->redirect(\"/user/login\", \"You can not manage categories if you are not Admin!\");\n }\n\n if (empty($this->input->get(0,\"int\"))){\n $this->view->redirect(\"/categories/manage\");\n }\n\n $categoryId = $this->input->get(0,\"int\");\n\n $categoryModel = new CategoriesModel();\n\n if (!$categoryModel->existCategoryId($categoryId)){\n $this->view->redirect(\"/categories/manage\",\"This categories do not exist!\");\n }\n\n try{\n $categoryName = $categoryModel->getCategoryNameById($categoryId);\n\n $this->view->render(\"admin/categories/delete\",[\n \"name\"=> $categoryName,\n \"id\"=> $categoryId\n ]\n );\n }catch (\\Exception $exception) {\n $this->view->redirect(\"/categories/manage\", $exception->getMessage());\n }\n\n }", "protected function _afterDelete()\r\n {\r\n $this->updatePostCommentCount();\r\n parent::_afterDelete();\r\n\r\n }", "protected function onDeleted()\n {\n return true;\n }", "public function deleting(BlogPost $blogPost)\n\t{\n\t\t//\n\t}", "public function destroy(BlogCategory $blogCategory)\n {\n $blogCategory->delete();\n $notification=array(\n 'messege'=>'Deleted Successfully',\n 'alert-type'=>'success'\n );\n\n return redirect()->route('admin.blog-category.index')->with($notification);\n }", "public function delete_blog()\n\t\t{\n\t\t\tif($this->uri->segment(3)===FALSE)\n\t\t\t{\n\t\t\t\t$blog_id = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$blog_id = $this->uri->segment(3);\n\t\t\t}\n\n\t\t\t$result = $this->Blog_Modal->delete_single_blog($blog_id);\n\t\t\tif($result)\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('Delete', 'Record Delete Successfully....');\n\t\t\t\tredirect('Blog/viewblog');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('Delete', 'Record Not Deleted....');\n\t\t\t\tredirect('Blog/viewblog');\n\t\t\t}\n\t\t}", "public static function deleted($event) {\n\n\t\t$account = $event->getSubject();\n\n\t}", "public function destroy(Kategoriartikelblog $kategoriartikelblog)\n {\n //\n }", "private function course_content_deleted($event) {\n global $DB;\n $courseid = $event->courseid;\n $DB->delete_records('repository_gdrive_references', array('courseid' => $courseid));\n }", "protected function _postDelete()\n\t{\n\t\t//register events\n\t\t\\Base\\Event::trigger('user.delete',$this->id);\n\t\t//end events\n\t}", "public function onAfterDelete();", "public function _postDelete()\n\t{\n\t\t$this->notifyObservers(__FUNCTION__);\n\t}", "protected function afterDelete()\n {\n parent::afterDelete();\n Tag::model()->updateFrequency($this->tags, '');\n }", "public function deleted(AccountingDivisionCategory $accountingDivisionCategory)\n {\n //\n }", "public function interceptDelete()\n\t{\n\t\t$user = $this->getService('com://admin/ninjaboard.model.people')->getMe();\n\t\t$rows = $this->getModel()->getList();\n\t\tforeach($rows as $row)\n\t\t{\n\t\t\t$topic = $this->getService('com://site/ninjaboard.model.topics')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($row->ninjaboard_topic_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\t\t\t$forum = $this->getService('com://site/ninjaboard.model.forums')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($topic->forum_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\n\t\t\t// @TODO we migth want to add an option later, wether or not to allow users to delete their own post.\n\t\t\tif($forum->post_permissions < 3 && $row->created_by != $user->id) {\n\t\t\t\tJError::raiseError(403, JText::_('COM_NINJABOARD_YOU_DONT_HAVE_THE_PERMISSIONS_TO_DELETE_OTHERS_TOPICS'));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function delete(){\n\n\t\t$sql = new Sql();\n\n\t\t$sql->query(\"DELETE FROM tb_categories WHERE idcategory=:idcategory\",array(\n\t\t\t\":idcategory\"=>$this->getidcategory()\n\t\t));\n\n\t\tCategory::updateFile();\n\t}", "public function on_delete() {\n $this->remove_dir();\n }", "public function onEntryDeleted(MarkdownFieldType $fieldType)\n {\n if (!$fieldType->getLocale()) {\n $this->dispatch(new DeleteDirectory($fieldType));\n }\n }", "protected function _postDelete()\n\t{\n\t}", "public function handleDelete()\n {\n Craft::$app->getDb()->createCommand()\n ->delete(Table::REVISIONS, ['id' => $this->owner->revisionId])\n ->execute();\n }", "public function forceDeleted(BlogPost $blogPost)\n\t{\n\t\t//\n\t}", "public function deleteCategory($cat_id)\n {\n DB::table('categories')->where('id',$cat_id)->delete();\n // Display a toaster Deleted message..\n $notification = array(\n 'message' => 'Category Deleted successfully.',\n 'alert-type' => 'success'\n );\n return Redirect()->back()->with($notification);\n }", "public function destroy(Category $category)\n {\n // dd($category);\n try{\n $category->delete();\n $message='Category deleted Successfully';\n $flag='success';\n }\n catch(\\Illuminate\\Database\\QueryException $e)\n {\n $message =\"Category cannot be deleted as it has some post attach to it\";\n $flag='error';\n\n }\n\n session()->flash($flag,$message);\n return redirect(route('categories.index'));\n\n \n }", "public function executeRemovePostCategory(HTTPRequest $request)\n {\n $this->manager->getManagerOf('Category')->removePostCategory($request->getData('postId'), $request->getData('categoryId'));\n Session::getInstance()->setFlash('success', 'La catégorie a bien été supprimée de cet article.');\n $this->app->getHttpResponse()->redirect('/admin/updatePost-' . $request->getData('postId'));\n }", "public function deleted(EntryInterface $entry)\n {\n //$this->dispatch(new DeleteStream($entry));\n\n parent::deleted($entry);\n }", "public function delete($slug) {\n\t\tif (!$this->session->userdata('is_logged_in')) {\n\t\t\tredirect('login');\n\t\t}\n\n\t\t$data['post'] = $this->Posts_model->get_post($slug);\n\t\tif ($this->session->userdata('user_id') == $data['post']->author_id) {\n\t\t\t$this->Posts_model->delete_post($slug);\n\t\t\t$this->session->set_flashdata('post_deleted', 'The post has been deleted');\n\t\t\tredirect('/');\n\t\t} else {\n\t\t\t/* If the current user is not the author\n\t\t\tof the post do not alow delete */\n\t\t\tredirect('/' . $slug);\n\t\t}\n\t}", "public function handle_deletion_cache( $post_id ) {\n\t\tif ( get_post_status( $post_id ) !== 'publish' ) {\n\t\t\treturn;\n\t\t}\n\n\t\tself::$cache_trigger_url = get_permalink( $post_id );\n\t\tself::$status_before = 'publish';\n\t\tself::$status_after = 'delete';\n\t\tself::$suppress_notification = true;\n\t\tself::$which_cloudflare_method = __METHOD__;\n\n\t\tself::purge_cloudflare_cache();\n\t}", "abstract public static function deleted($callback);", "public static function onContentDelete($event)\n {\n \n foreach (ReportContent::model()->findAllByAttributes(array('object_model' => get_class($event->sender), 'object_id' => $event->sender->id)) as $report) {\n $report->delete();\n }\n }", "public function handle(LanguageRemoved $event) {\n\t\tLangText::query()->where('lang_code', $event->iso_code)->delete();\n\t}", "public function destroy($id)\n {\n $record = Category::findOrFail($id);\n\n \n if($record->posts()->count())\n {\n flash()->error('This Category Has posts ');\n }\n $record->delete();\n\n flash()->success('Category deleted successfully');\n\n return redirect(route('category.index'));\n }", "public function destroy($id)\n {\n if (auth()->user()->super !== 1){\n return redirect('/dashboard')->with('error','You can not delete this item');\n }\n $blog_category = BlogCategory::find($id);\n\n $blog_category->delete();\n return redirect('/blogs')->with('success','Blog Category Removed');\n }", "public function onEntryTranslationDeleted(MarkdownFieldType $fieldType)\n {\n $this->dispatch(new DeleteDirectory($fieldType));\n }", "public function deleted(Article $article)\n {\n //\n }", "function delete_post()\n {\n $this->Admin_model->procedure = 'POST_DELETE';\n\n echo $this->p_post_id_delete;\n\n\n $rs = $this->Admin_model->delete($this->p_post_id_delete);\n\n //redirect('admin/Posts/display_cat');\n }", "public function afterDelete()\n\t{\n\t\tif (parent::beforeDelete()) {\n\t\t\tComment::deleteAll('comment_id='.$this->id.' AND comment_table=\"'.Workflow::MODULE_BLOG.'\"');\n\t\t\tTag::updateFrequency($this->tags, '');\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function handle(PostDeleting $event)\n {\n if ($event->post->isForceDeleting()) {\n $event->post->deleteSeo();\n }\n }", "public function deleteAction($cat_id)\n\t{\n\t\t\n\t\t$objCat = new Category();\n\t\t$objCat = $objCat->delete($cat_id);\n\t\t\t\t\n\t\tredirect(\"dashboard/category/list\");\n\t}", "protected function afterDelete()\n {\n if($this->status==Comment::STATUS_APPROVED)\n Post::model()->updateCounters(array('commentCount'=>-1), \"id={$this->postId}\");\n }", "function delete($id){\n\n\t\t$where = array('id' => $id);\n\t\t$updateData = array('status_id' => DELETE);\n\n\t\t$result = $this->base_model->updateCommon($this->primaryTable, $updateData, $where);\n\n\t\t$this->setSessionSuccessMessage('Document Category deleted successfully.');\n\t\tredirect(base_url('admin/document/category/'));\n\t}", "public function category_delete(Request $request)\n {\n $id = $request->id;\n\n $op = $request->op; // get operation number \n\n switch($op) {\n /** Event Categories */\n case 1:\n $model = new Category;\n $entity_id = 1;\n break;\n\n /** Sponsor Categories */\n case 2:\n $model = new SponsorCategory;\n $entity_id = 12;\n break;\n\n /** Offer Categories */\n case 3:\n $model = new OfferCategory;\n $entity_id = 7;\n break;\n\n /** Doctors Specialization Categories */\n case 4:\n $model = new DoctorsCategory;\n $entity_id = 11;\n break;\n\n default:\n return redirect()->back();\n break;\n }\n\n // delete from localization - Arabic version\n try {\n EntityLocalization::where('entity_id', $entity_id)->where('item_id', $id)->delete();\n } catch (\\Exception $ex) {\n return response()->json(['error', 'error deleting arabic']);\n }\n\n // delete from interests - English version\n try {\n $model::where('id', $id)->delete();\n } catch (\\Exception $ex) {\n return response()->json(['error', 'error deleting english']);\n }\n\n // return success response\n return response()->json(['success', 'success']);\n }", "public function tagDelete($id) {\n DB::beginTransaction();\n try {\n $cat = Category::find($id);\n $cat->posts()->detach();\n $cat->delete();\n } catch (ValidationException $e) {\n DB::rollback();\n return redirect()->back()->with('errorMess', 'Có lỗi xảy ra, vui lòng thử lại sau!');\n }\n DB::commit();\n return redirect()->back()->with('Mess', 'Xóa thành công!');\n }", "protected function postDeleteHook($object) { }", "public function onDelete(): void\n {\n if ($this->globals->getUpdated() !== (int) $_GET['id']) {\n $this->_entity->delete($_GET['id']);\n $this->globals->setUpdated($_GET['id']);\n $this->globals->unsetAlert();\n }\n }", "public function delete($event): void;", "public function executeDelete(sfWebRequest $request)\n {\n $this->forward404Unless($forum_categories = Doctrine::getTable('ForumCategories')->find(array($request->getParameter('id'))), sprintf('Object forum_categories does not exist (%s).', $request->getParameter('id')));\n\n $oForumCategories = new ForumCategories();\n $oForumCategories->changeStatus($request->getParameter('id'),\"Deleted\");\n $this->getUser()->setFlash('errMsg', \"Deletion successful.\");\n $this->redirect('Forums/index');\n }", "public function deleted(Category $category)\n {\n // Delete all products\n Product::where('category_id', $category->id)->delete();\n }", "public function getAllDeletedWithCategory();" ]
[ "0.7552081", "0.6816169", "0.6774611", "0.6756149", "0.6628631", "0.64983225", "0.6482234", "0.6435042", "0.6354558", "0.63398045", "0.6284901", "0.6236919", "0.6224998", "0.620079", "0.6144247", "0.6127965", "0.6122118", "0.61148167", "0.60770875", "0.600813", "0.6007495", "0.59981656", "0.59767187", "0.5968471", "0.5966204", "0.5949216", "0.59374475", "0.59304315", "0.59304315", "0.5929337", "0.5925497", "0.59216315", "0.5913595", "0.5902519", "0.58891386", "0.588585", "0.5871552", "0.5859919", "0.5851646", "0.58292824", "0.5827275", "0.5824646", "0.58151555", "0.5811195", "0.58096445", "0.5808546", "0.58045006", "0.58028644", "0.5801602", "0.5798694", "0.57851285", "0.57775486", "0.5770641", "0.5770562", "0.57584494", "0.5757817", "0.5750258", "0.5747485", "0.57362574", "0.5733002", "0.5731333", "0.573122", "0.57310474", "0.57272124", "0.57010853", "0.5699274", "0.56937057", "0.5691066", "0.56822455", "0.5677727", "0.56758946", "0.5672284", "0.5667922", "0.5666828", "0.56597716", "0.56580615", "0.56565547", "0.56524336", "0.56486905", "0.56432086", "0.5632485", "0.56302464", "0.5625212", "0.5622616", "0.56160015", "0.56080496", "0.5596149", "0.55945015", "0.55908954", "0.55903333", "0.55895483", "0.55736893", "0.55721086", "0.55719286", "0.55710006", "0.55641115", "0.5562314", "0.55605173", "0.5558031", "0.5549891" ]
0.6985034
1
Handle the blog category "restored" event.
public function restored(BlogCategory $blogCategory) { # ПОПАДАЕМ ПОСЛЕ ВОССТАНОВЛЕНИЯ ЗАПИСИ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function restored(BlogCategory $blogCategory)\n {\n //\n }", "public function restored(Category $category)\n {\n //\n }", "public function restored(Category $category)\n {\n //\n }", "public function restored(BlogPost $blogPost)\n\t{\n\t\t//\n\t}", "function restore_current_blog()\n {\n }", "public function restored(ShopBlog $shopBlog)\n {\n //\n }", "public function restored(CategoryTranslation $categoryTranslation)\n {\n //\n }", "public function restored(Post $post)\n {\n $post->recordActivity('restored');\n }", "public function restored(BlogPost $modelsBlogPost)\n {\n //\n }", "public function restored(Post $post)\n {\n //\n }", "public function restored(Post $post)\n {\n //\n }", "protected function after_restore_course() {\n // Add tool_carcastc related files, no need to maching itemname with itemid.\n $this->add_related_files('tool_carcastc', 'rowfile', 'itemid');\n }", "public function restored(AccountingDivisionCategory $accountingDivisionCategory)\n {\n //\n }", "public function restored(SubCategories $subCategories)\n {\n //\n }", "public function restored(Auditable $model)\n {\n Auditor::execute($model->setAuditEvent('restored'));\n\n // Once the model is restored, we need to put everything back\n // as before, in case a legitimate update event is fired\n static::$restoring = false;\n }", "public function restored(Article $article)\n {\n //\n }", "public function restored(CandidacyHistory $candidacyHistory)\n {\n //\n }", "public function restored(Conversation $conversation)\n {\n //\n }", "function restore_current_blog_in_action( $value ) {\n\trestore_current_blog();\n\n\treturn $value;\n}", "protected function onRestored()\n {\n return true;\n }", "public function restore(User $user, Blog $blog)\n {\n //\n }", "public function restoreDeleted(CategoryRequest $request, $id)\n {\n\n $category = Category::withTrashed()->find($id);\n if (isset($category)) {\n\n $operationStatus = $category->restore();\n\n if ($operationStatus) {\n $request->session()->flash('flash_notification.message', 'Category successfully Activated. ');\n $request->session()->flash('flash_notification.level', 'success');\n return redirect()->route('admin.category.deleted');\n } else {\n $request->session()->flash('flash_notification.message', 'An error occurred, please try again later. ');\n $request->session()->flash('flash_notification.level', 'danger');\n return redirect()->route('admin.category.deleted');\n }\n } else {\n $request->session()->flash('flash_notification.message', 'An error occurred, please try again later. ');\n $request->session()->flash('flash_notification.level', 'danger');\n return redirect()->route('admin.category.deleted');\n }\n }", "public function restored(Brand $brand)\n {\n //\n }", "public function restore() {\n self::restoreAll($this->chapterID);\n }", "public function restored(Channel $channel)\n {\n //\n }", "public function restored(Document $document)\n {\n //\n }", "public function SubcategoryRestore($id){\n SubCategory::onlyTrashed()->findOrFail($id)->restore();\n return back()->with('success', 'Subcategory Restore Successfully.');\n }", "public function restore($id)\n {\n $category = CategoryService::restore($id);\n \\Msg::success($category->name . ' has been <strong>restored</strong>');\n return redir('account/categories');\n }", "public function after_restore() {\n global $DB;\n\n // Get the blockid.\n $blockid = $this->get_blockid();\n\n // Extract block configdata and update it to point to the new activities\n if ($configdata = $DB->get_field('block_instances', 'configdata', array('id' => $blockid))) {\n\n $config = unserialize(base64_decode($configdata));\n $update = false;\n $types = array('collectpresentations', 'collectworkshops', 'collectsponsoreds',\n 'conference', 'workshops', 'reception', 'publish',\n 'registerdelegates', 'registerpresenters');\n foreach ($types as $type) {\n if ($this->after_restore_fix_cmid($config, $type)) {\n $update = true;\n }\n }\n\n // cache number of sections in this course\n $numsections = self::get_numesctions($this->get_courseid());\n\n $types = array('review', 'revise');\n foreach ($types as $type) {\n if ($this->after_restore_fix_sectionnum($config, $type, $numsections)) {\n $update = true;\n }\n }\n\n if ($update) {\n $configdata = base64_encode(serialize($config));\n $DB->set_field('block_instances', 'configdata', $configdata, array('id' => $blockid));\n }\n }\n }", "public function after_restore($restore) {\n global $DB;\n\n $data = $this->get_decoded_data();\n if ($newitem = \\restore_dbops::get_backup_ids_record($restore->get_restoreid(), 'course_module', $data->dateitem)) {\n $data->dateitem = $newitem->newitemid;\n try {\n $DB->set_field('customcert_elements', 'data', $this->save_unique_data($data), array('id' => $this->get_id()));\n } catch (\\dml_exception $e) {\n unset($e);\n }\n }\n }", "public function restoring(Auditable $model)\n {\n // When restoring a model, an updated event is also fired.\n // By keeping track of the main event that took place,\n // we avoid creating a second audit with wrong values\n static::$restoring = true;\n }", "private function recreateCategory(): void\n {\n $this->category = $this->categoryFactory->create();\n $this->category->load(2);\n }", "function restore_blog_in_rest( $response, $handler, $request ) {\n\t$route = $request->get_route();\n\n\t// Only switch to blog for the media endpoint.\n\tif ( strpos( $route, '/wp/v2/media' ) !== false ) {\n\t\trestore_current_blog();\n\t}\n\n\treturn $response;\n}", "public function restored(Chapter $chapter)\n {\n //\n }", "public function after_restore(){\n \tglobal $DB;\n \t\n \t\n \t$pagemenuid = $this->get_activityid();\n\n \tif ($modulelinks = $DB->get_records('pagemenu_links', array('pagemenuid' => $pagemenuid))){\n \t\tforeach($modulelinks as $ml){\n \t\t\t\n \t\t\t$ml->previd = $this->get_mappingid('pagemenu_links', $ml->previd);\n \t\t\t$ml->nextid = $this->get_mappingid('pagemenu_links', $ml->nextid);\n\n\t\t\t\tif ($ml->type == 'module'){\n\t \t\t\tif ($link = $DB->get_record('pagemenu_link_data', array('linkid' => $ml->id))){\n\t \t\t\t\t$link->value = $this->get_mappingid('course_module', $link->value);\n\t \t\t\t\t$DB->update_record('pagemenu_link_data', $link);\n\t \t\t\t} else {\n\t\t\t\t\t\t$this->get_logger()->process(\"Failed to restore dependency for pagemenu link '$ml->name'. \", backup::LOG_ERROR); \t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$DB->update_record('pagemenu_links', $ml);\n \t\t}\n \t} \t \t\n }", "public function restored(Subscription $subscription)\n {\n //\n }", "public function restored(TraHangNhaCungCap $traHangNhaCungCap)\n {\n //\n }", "public function restored(PurchaseReceipt $purchaseReceipt)\n {\n //\n }", "public function restoring($model)\n\t{\n\t}", "public function restored(Installment $installment)\n {\n //\n }", "public function handleTransactionRollback(TransactionRolledBack $event)\n {\n Log::debug('rollback');\n }", "public function restored(Exchange $exchange)\n {\n //\n }", "function wp_restore_post_revision($post_id, $revision_id)\n {\n }", "public function recovery($id){\n $delete = Category::withTrashed()->find($id)->restore();\n }", "public function postRollback() {\n $containers = variable_get('forum_containers', array());\n $remaining = array();\n foreach ($containers as $container) {\n if (!in_array($container, $this->deletedContainers) && !in_array($container, $remaining)) {\n $remaining[] = $container;\n }\n }\n variable_set('forum_containers', $remaining);\n }", "public function restore($restorePosts = true) {\n\t\tself::restoreAll($this->threadID, $restorePosts);\n\t}", "public function restore(User $user, PortfolioCategory $portfolioCategory)\n {\n //\n }", "public function restore(User $usera, blog $blog)\n {\n //\n }", "function restore_current_blog() {\n\tglobal $wpdb;\n\n\tif ( empty( $GLOBALS['_wp_switched_stack'] ) ) {\n\t\treturn false;\n\t}\n\n\t$blog = array_pop( $GLOBALS['_wp_switched_stack'] );\n\t$blog_id = get_current_blog_id();\n\n\tif ( $blog_id == $blog ) {\n\t\t/** This filter is documented in wp-includes/ms-blogs.php */\n\t\tdo_action( 'switch_blog', $blog, $blog );\n\t\t// If we still have items in the switched stack, consider ourselves still 'switched'\n\t\t$GLOBALS['switched'] = ! empty( $GLOBALS['_wp_switched_stack'] );\n\t\treturn true;\n\t}\n\n\t$wpdb->set_blog_id( $blog );\n\t$prev_blog_id = $blog_id;\n\t$GLOBALS['blog_id'] = $blog;\n\t$GLOBALS['table_prefix'] = $wpdb->get_blog_prefix();\n\n\tif ( function_exists( 'wp_cache_switch_to_blog' ) ) {\n\t\twp_cache_switch_to_blog( $blog );\n\t} else {\n\t\tglobal $wp_object_cache;\n\n\t\tif ( is_object( $wp_object_cache ) && isset( $wp_object_cache->global_groups ) ) {\n\t\t\t$global_groups = $wp_object_cache->global_groups;\n\t\t} else {\n\t\t\t$global_groups = false;\n\t\t}\n\n\t\twp_cache_init();\n\n\t\tif ( function_exists( 'wp_cache_add_global_groups' ) ) {\n\t\t\tif ( is_array( $global_groups ) ) {\n\t\t\t\twp_cache_add_global_groups( $global_groups );\n\t\t\t} else {\n\t\t\t\twp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites', 'site-details' ) );\n\t\t\t}\n\t\t\twp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );\n\t\t}\n\t}\n\n\t/** This filter is documented in wp-includes/ms-blogs.php */\n\tdo_action( 'switch_blog', $blog, $prev_blog_id );\n\n\t// If we still have items in the switched stack, consider ourselves still 'switched'\n\t$GLOBALS['switched'] = ! empty( $GLOBALS['_wp_switched_stack'] );\n\n\treturn true;\n}", "public function restored(TradeCancel $tradeCancel)\n {\n //\n }", "public function restored(Comment $comment)\n {\n //\n }", "public function restored(History $history)\n {\n //\n }", "public function undoRestore ()\n {\n if (file_exists ( $this->_previewFilename ))\n {\n unlink($this->_previewFilename);\n }\n }", "public function restored(Carousel $carousel)\n {\n //\n }", "public function _post_action($command, $data, $extra_info) {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable\n\t\t// Here, we're restoring to the current (default) blog before we switched\n\t\tif ($this->switched) restore_current_blog();\n\t}", "public function restored(Dispatch $dispatch)\n {\n //\n }", "public function afterRestoreResponse($data)\n {\n }", "public function restored(Media $media)\n {\n //\n }", "public function restore(Customer $customer, Post $post)\n {\n //\n }", "public function restore(Request $request, $id)\n {\n $servicecategory = ServiceCategory::withTrashed()->findOrFail($id);\n\n $servicecategory->restore();\n\n return Redirect::back();\n }", "function dokan_store_category_delete_transient( $post_id ) {\n\n $post_tmp = get_post( $post_id );\n $seller_id = $post_tmp->post_author;\n\n //delete store category transient\n delete_transient( 'dokan-store-category-'.$seller_id );\n}", "public function restored(Currency $currency)\n {\n //\n }", "public function restored(InDay $inDay)\n {\n //\n }", "public function restored(Stock $stock)\n {\n //\n }", "public function restoring(Post $post)\n {\n //-- we restore comments and picture before restore post\n\n $post->comments()->restore();\n $post->picture()->restore();\n }", "function root_category_transient_flusher() {\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn;\n\t}\n\t// Like, beat it. Dig?\n\tdelete_transient( 'root_categories' );\n}", "public function onAfterDelete() {\n\t\tparent::onAfterDelete();\n\n\t\tif($this->isPublished()) {\n\t\t\t$this->doUnpublish();\n\t\t}\n\t}", "function emc_category_transient_flusher() {\r\n\t// Like, beat it. Dig?\r\n\tdelete_transient( 'all_the_cool_cats' );\r\n}", "public function restored($artistAlias)\n {\n parent::restored($artistAlias);\n\n Log::Info(\"Restored artist alias\", ['artist alias' => $artistAlias->id, 'artist' => $artistAlias->artist->id]);\n }", "public function restored(Job $job)\n {\n //\n }", "public function restored(Activity $activity)\n {\n //\n }", "function restoreArticle($accountId, $articleId)\n {\n // update the database\n mysql_query(\"UPDATE argus_saved_articles SET status='SAVED' WHERE account_id = '\".$accountId.\"' AND saved_article_id = '\".$articleId.\"'\") or die(mysql_error());\n \n return;\n }", "function restore()\n {\n }", "public function handle_changeset_trash_request()\n {\n }", "protected function postFixtureRestore()\n {\n }", "public function updraft_ajaxrestore() {\n\t\t$this->prepare_restore();\n\t\tdie();\n\t}", "public function restored(Ticket $ticket)\n {\n //\n }", "public function restore() {}", "public function restored(Credit $credit)\n {\n //\n }", "public function restore()\n {\n //\n }", "public function restore()\n {\n }", "function gravit_category_transient_flusher() {\r\r\n\t// Like, beat it. Dig?\r\r\n\tdelete_transient( 'all_the_cool_cats' );\r\r\n}", "public function restored(Region $region)\n {\n //\n }", "private function rollback() {\n\t\tEE::warning( 'Exiting gracefully after rolling back. This may take some time.' );\n\t\tif ( $this->level > 0 ) {\n\t\t\t$this->delete_site();\n\t\t}\n\t\tEE::success( 'Rollback complete. Exiting now.' );\n\t\texit;\n\t}", "public function restored(Historia $historia)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restored(Bank $bank)\n {\n //\n }", "function revert_site() {\n if ( MAIN_SITE != \"\" ) {\n restore_current_blog();\n }\n}", "public function restored(AwardSeason $awardSeason)\n {\n //\n }", "public function restored(Label $label)\n {\n //\n }", "public function postRemove(LifecycleEventArgs $eventArgs)\n {\n // we set the postRemove heritage roles management\n $this->_Heritage_roles($eventArgs);\n \n // we set the postRemove languages management\n $this->_locales_language_json_file($eventArgs);\n \n // we set the postRemove Cache Url Generator management\n $this->_updateCacheUrlGenerator($eventArgs); \n }", "public function restored(Expense $expense)\n {\n //\n }", "protected static function restore() {}", "public function restored(Item $item)\n {\n //\n }", "public function restored(Item $item)\n {\n //\n }", "public function restored(Holiday $holiday)\n {\n //\n }", "public function restore_previous_locale()\n {\n }" ]
[ "0.72649026", "0.65432936", "0.65432936", "0.6214389", "0.6169603", "0.60192096", "0.5998172", "0.5957952", "0.58951604", "0.5768473", "0.5768473", "0.56988853", "0.5641622", "0.559001", "0.55132025", "0.5377838", "0.5370091", "0.5353559", "0.5271694", "0.52396286", "0.52384734", "0.5229602", "0.5200653", "0.5192397", "0.5191166", "0.5181001", "0.5176441", "0.5159649", "0.5151716", "0.5150075", "0.5146535", "0.5132959", "0.51155293", "0.5101851", "0.5072795", "0.5042145", "0.50358075", "0.49929103", "0.49911472", "0.4987158", "0.49861136", "0.49622962", "0.49585697", "0.49463394", "0.49435323", "0.4940695", "0.49398375", "0.49384224", "0.49363303", "0.49256173", "0.49253252", "0.4904595", "0.48978502", "0.48900893", "0.48834735", "0.48764437", "0.4872299", "0.4848686", "0.48443466", "0.48381293", "0.48283482", "0.48257446", "0.48220018", "0.48156157", "0.48100793", "0.48072124", "0.47966558", "0.47955763", "0.4793415", "0.4790589", "0.47784108", "0.47760993", "0.47739422", "0.4773824", "0.47712308", "0.47681957", "0.47626135", "0.4762472", "0.47593758", "0.4754803", "0.47421783", "0.4728188", "0.4723737", "0.47178313", "0.47144133", "0.4714378", "0.4714378", "0.4714378", "0.4714378", "0.47081187", "0.47032145", "0.46997252", "0.46978945", "0.46955922", "0.46946087", "0.46820164", "0.46799108", "0.46799108", "0.46793282", "0.4673141" ]
0.7003671
1
Handle the blog category "force deleted" event.
public function forceDeleted(BlogCategory $blogCategory) { # ПОПАДАЕМ ПОСЛЕ ПРЯМОГО УДАЛЕНИЯ ЗАПИСИ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forceDeleted(BlogCategory $blogCategory)\n {\n //\n }", "public function forceDeleted(Category $category)\n {\n //\n }", "public function deleted(BlogCategory $blogCategory)\n {\n //\n }", "public function forceDeleted(Category $category)\n {\n //\n }", "public function forceDeleted(Category $category)\n {\n //\n }", "public function deleted(BlogCategory $blogCategory)\n {\n # ПОПАДАЕМ ПОСЛЕ УДАЛЕНИЯ ЗАПИСИ (softDeleted)\n }", "protected function handleDelete($request) {\n //get view mount\n $queryViewMount = DB::table('categories')->where('id', $request->_id_cat)->first();\n DB::table('categories')->where('id', $request->_id_cat)->update(['comment' => (int)$queryViewMount -> comment -1]);\n DB::table('comments')->where('id', $request->_id)->delete();\n session::flash('notify', 'Delete successful');\n }", "public function onAfterDelete() {\n\t\tparent::onAfterDelete();\n\n\t\tif($this->isPublished()) {\n\t\t\t$this->doUnpublish();\n\t\t}\n\t}", "public function delete_gallery_category_post()\n {\n prevent_author();\n\n $id = $this->input->post('category_id', true);\n\n //check if category has posts\n if ($this->gallery_image_model->get_category_image_count($id) > 0) {\n $this->session->set_flashdata('error', trans(\"msg_delete_images\"));\n redirect($this->agent->referrer());\n }\n\n if ($this->gallery_category_model->delete_category($id)) {\n $this->session->set_flashdata('success', trans(\"category\") . \" \" . trans(\"msg_suc_deleted\"));\n redirect($this->agent->referrer());\n } else {\n $this->session->set_flashdata('error', trans(\"msg_error\"));\n redirect($this->agent->referrer());\n }\n }", "public function deleted(Category $category)\n {\n //\n }", "protected function afterDelete()\n {\n parent::afterDelete();\n //Comment::model()->deleteAll('post_id='.$this->id);\n VideoTag::model()->updateFrequency($this->tags, '');\n }", "public function deleted(Category $category)\n {\n //\n }", "public function forceDeleted(BlogPost $blogPost)\n\t{\n\t\t//\n\t}", "protected function _postDelete() {}", "protected function _postDelete() {}", "public function forceDeleted(BlogPost $modelsBlogPost)\n {\n //\n }", "protected function afterDelete()\n\t{\n\t\tparent::afterDelete();\n\t\tComment::model()->deleteAll('photo_id='.$this->id);\n\t\tTag::model()->updateFrequency($this->tags, '');\n\t}", "protected function afterDelete()\r\n {\r\n }", "protected function _afterDelete()\r\n {\r\n $this->updatePostCommentCount();\r\n parent::_afterDelete();\r\n\r\n }", "protected function afterDelete()\n {\n }", "public function forceDeleted(ShopBlog $shopBlog)\n {\n //\n }", "public function onBeforeDelete();", "public function forceDeleted(Post $post)\n {\n }", "function product_category_delete(){\n\t\tglobal $tpl, $config, $meta, $_r, $_l, $_u;\n\t\t\n\t\tmysql_q(\"DELETE FROM product_category WHERE id='\".add_slash($_r['id']).\"'\");\n\n\t\tredirect(\"product_category.htm\", \"\");\n\t}", "protected function afterDelete()\n {\n parent::afterDelete();\n Tag::model()->updateFrequency($this->tags, '');\n }", "public function forceDeleted(Post $post)\n {\n //\n }", "public function forceDeleted(Post $post)\n {\n //\n }", "public function deletePost(){\n\n if (!$this->auth->isLogged()) {\n $this->view->redirect(\"/user/login\", \"You can not add new categories if you are not logged in!\");\n }\n\n if (!$this->auth->isInRole(\"admin\")) {\n $this->view->redirect(\"/user/login\", \"You can not manage categories if you are not Admin!\");\n }\n\n if ($this->input->post(\"delete_category\") === null){\n $this->view->redirect(\"/categories/manage\");\n }\n\n if (empty($this->input->get(0,\"int\"))){\n $this->view->redirect(\"/categories/manage\");\n }\n\n $categoryId = $this->input->get(0,\"int\");\n\n $categoryModel = new CategoriesModel();\n try{\n if (!$categoryModel->existCategoryId($categoryId)){\n $this->view->redirect(\"/categories/manage\",\"This categories do not exist!\");\n }\n if ($categoryModel->deleteCategory($categoryId)){\n $this->view->redirect(\"/categories/manage\",\"Category deleted successfully!\",\"success\");\n }\n } catch (\\Exception $exception) {\n $this->view->redirect(\"/categories/manage\", $exception->getMessage());\n }\n }", "protected function MetaAfterDelete() {\n\t\t}", "public function onAfterDelete();", "protected function onDeleted()\n {\n return true;\n }", "public function onBeforeDelete() {\r\n\t\tparent::onBeforeDelete();\r\n\t}", "public function delete(): void\n {\n $query_lang = 'DELETE FROM '. rex::getTablePrefix() .'d2u_linkbox_categories '\n .'WHERE category_id = '. $this->category_id;\n $result_lang = rex_sql::factory();\n $result_lang->setQuery($query_lang);\n }", "public function forceDeleted(CategoryTranslation $categoryTranslation)\n {\n //\n }", "protected function _delete() {\r\n\t\tif ($this -> _disableHooks)\r\n\t\t\treturn;\r\n\r\n\t\t//Delete Blog Member\r\n\t\t$become_table = Engine_Api::_() -> getDbTable('becomes', 'ynblog');\r\n\t\t$become_selected = $become_table -> select() -> where('blog_id = ?', $this -> getIdentity());\r\n\t\tforeach ($become_table->fetchAll($become_selected) as $blog_become) {\r\n\t\t\t$blog_become -> delete();\r\n\t\t}\r\n\r\n\t\tparent::_delete();\r\n\t}", "public function delete() {\n $sql = sprintf(\"DELETE FROM category WHERE id=%d\", $this->id);\n self::$connection->execute($sql);\n }", "public function onAfterDelete() {\n if (!($this->owner instanceof \\SiteTree))\n {\n $this->doDeleteDocumentIfInSearch();\n }\n }", "public function onAfterDelete() {\r\n\t\tparent::onAfterDelete();\r\n\t\t$this->zlog('Delete');\r\n\t}", "public function onAfterDelete() {\n\t\tif (!$this->owner->ID || self::get_disabled() || self::version_exist($this->owner))\n\t\t\treturn;\n\t\t$this->onAfterDeleteCleaning();\n\t}", "public function afterDelete()\n\t{\n\t\tif (parent::beforeDelete()) {\n\t\t\tComment::deleteAll('comment_id='.$this->id.' AND comment_table=\"'.Workflow::MODULE_BLOG.'\"');\n\t\t\tTag::updateFrequency($this->tags, '');\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function deleted(Category $category)\n {\n $category->deleted_by_user_id = Auth::id();\n }", "function before_delete() {}", "protected function afterDelete()\n {\n if($this->status==Comment::STATUS_APPROVED)\n Post::model()->updateCounters(array('commentCount'=>-1), \"id={$this->postId}\");\n }", "protected function _postDelete()\n\t{\n\t}", "public function afterDelete() {\n $this->deleteMeta();\n parent::afterDelete();\n }", "public function deleted(Category $category)\n {\n // Removing Entries from the Cache\n $this->clearCache($category);\n }", "public function deleteAction()\n {\n // enforce permissions.\n $this->acl->check('categories', 'manage');\n\n // require post request method.\n $request = $this->getRequest();\n if (!$request->isPost()) {\n throw new P4Cms_AccessDeniedException(\n \"Cannot delete category. Request method must be http post.\"\n );\n }\n\n $id = $request->getParam('id', $request->getParam('category'));\n $category = Category_Model_Category::fetch($id);\n $category->delete();\n\n $this->view->category = $category;\n }", "protected function _preDelete() {}", "public function after_delete() {}", "public function forceDeleted(Conversation $conversation)\n {\n //\n }", "function cat_delete_link()\n{\n return Parrot::getInstance()->getUrl(\"admin/category/\" . discussion::encode_title(cat_title()) . \"/delete\");\n}", "public function interceptDelete()\n\t{\n\t\t$user = $this->getService('com://admin/ninjaboard.model.people')->getMe();\n\t\t$rows = $this->getModel()->getList();\n\t\tforeach($rows as $row)\n\t\t{\n\t\t\t$topic = $this->getService('com://site/ninjaboard.model.topics')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($row->ninjaboard_topic_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\t\t\t$forum = $this->getService('com://site/ninjaboard.model.forums')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($topic->forum_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\n\t\t\t// @TODO we migth want to add an option later, wether or not to allow users to delete their own post.\n\t\t\tif($forum->post_permissions < 3 && $row->created_by != $user->id) {\n\t\t\t\tJError::raiseError(403, JText::_('COM_NINJABOARD_YOU_DONT_HAVE_THE_PERMISSIONS_TO_DELETE_OTHERS_TOPICS'));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "protected function postDeleteHook($object) { }", "public function forceDeleted(Article $article)\n {\n //\n }", "public function csstoolkit_ondelete_callback($dc)\r\n\t{\r\n\t\t$objFile = new File('web/bundles/csstoolkit/css/'.$dc->id.'.css');\r\n\t\tif ($objFile->exists()) {\r\n\t\t\t$objFile->delete();\r\n\t\t}\r\n\t}", "public function deleted(BlogPost $blogPost)\n\t{\n\t\t//\n\t}", "public function forceDeleted(AccountingDivisionCategory $accountingDivisionCategory)\n {\n //\n }", "public function destroy($slug)\n {\n $category=Category::withTrashed()->where('slug',$slug)->first();\n $blog=Blog::where('category_id',$category->id)->first();\n \n if($category->deleted_at)\n {\n $category->forcedelete();\n session()->flash('danger','Category permanent deleted');\n }\n else\n {\n if($blog!=null)\n {\n session()->flash('warning','This category has a blog. So, It will not be deleted !');\n }\n else\n {\n $category->delete();\n session()->flash('warning','Category Soft deleted!');\n \n }\n }\n return redirect()->back();\n }", "public function deleted(ShopBlog $shopBlog)\n {\n //\n }", "protected function beforeDelete()\n {\n }", "public function deletecategory(){\n\t\n\t\t$id = $this->request->getParameter(\"actionid\");\n\t\t$modelCategory = new CaCategory();\n\t\t$modelCategory->delete($id);\n\t\n\t\t// generate view\n\t\t$this->redirect(\"catalogadmin/categories\");\n\t}", "protected function preDeleteHook($object) { }", "function after_delete() {}", "public function deleteClean() {\n\n $id = $this->request->get('category_id');\n\n // check category valid\n $category = ApplicationCategory::find($id)->first();\n\n $next_id = $this->request->get('next_category_id');\n\n\n $category_next = ApplicationCategory::find($next_id)->first();\n\n // check if exists.\n\n DB::table('apps')\n ->where('category_id', $id)\n ->update(['category_id' => $next_id]);\n\n $category->delete();\n\n return redirect('/develop/categories');\n\n\n }", "public function _postDelete()\n\t{\n\t\t$this->notifyObservers(__FUNCTION__);\n\t}", "public function preDelete() { }", "public function pre_delete()\r\n\t{\r\n\t\tparent::pre_delete();\r\n\t\t$Change = App::make('Change');\r\n\t\t$Change::where('fmodel', 'GalleryItem')\r\n\t\t\t ->where('fid', $this->id)\r\n\t\t\t ->delete();\r\n\t\t\t \r\n\t\t// Thumbs\r\n\t\t/*if($this->file) {\r\n\t\t\t# Should really check if these are used anywhere else, but no easy way to do that in other modules yet so just leaving them for now\r\n\t\t\t\r\n\t\t\t// Name\r\n\t\t\t$name = basename(public_path().$this->file);\r\n\t\t\t\r\n\t\t\t// Thumbs\r\n\t\t\t$thumbs = Config::get('galleries::thumbs');\r\n\t\t\tforeach($thumbs as $k => $v) {\r\n\t\t\t\tif(file_exists(public_path().$v['path'].$name)) unlink(public_path().$v['path'].$name);\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "public function delete_category()\r\n\t\t{\r\n\t\t\t$this->errno = DB_OK;\r\n\t\t\t\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t$this->con->query(\"START TRANSACTION;\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tTransaction is needed despite the one query as delete is on cascade\r\n\t\t\t\r\n\t\t\tif ( ! ( $result = $this->con->query ( \"DELETE FROM category WHERE cat_id=$this->cat_id\" ) ) )\r\n\t\t\t{\t\t\t\r\n\t\t\t\t$this->con->query(\"ROLLBACK;\");\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\t\t\r\n\t\t\t\treturn ;\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( $this->con->affected_rows == 0 )\r\n\t\t\t{\t\t\r\n\t\t\t\t$this->con->query(\"ROLLBACK;\");\r\n\t\t\t\t$this->errno = CATEGORY_DONT_EXIST;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tthis query should affect 1 row\t\t\t\r\n\t\t\t\treturn ;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t$this->con->query(\"COMMIT;\");\r\n\t\t\t\r\n\t\t}", "public function deleted() {\n // TODO Implement this\n }", "public static function forceDeleted($callback)\n {\n static::registerModelEvent('forceDeleted', $callback);\n }", "public function forceDeleted(Channel $channel)\n {\n //\n }", "public function forceDeleted(Channel $channel)\n {\n //\n }", "public function afterDelete()\n {\n if (parent::afterDelete()) {\n (new Query)->createCommand()\n ->delete('comment', ['id' => $this->id])\n ->execute();\n }\n }", "public function forceDeleted(Chapter $chapter)\n {\n //\n }", "public function onAfterDelete()\n\t{\n\t\t// attempt to save this entry to ensure relationship integrity.\n\t\t// TODO make sure everything is already dissociated when we hit this\n\t\t$last_author = $this->Author;\n\t\t$this->Author = NULL;\n\n\t\t$last_author->updateAuthorStats();\n\t\t$this->updateEntryStats();\n\t}", "public function deleteAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Game_Service_Category::getCategory($id);\r\n\t\tif ($info && $info['id'] == 0) $this->output(-1, '无法删除');\r\n\t\t$result = Game_Service_Category::deleteCategory($id);\r\n\t\tif (!$result) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功');\r\n\t}", "public function forceDeleted(Document $document)\n {\n //\n }", "public function delete(){\n\n\t\t$sql = new Sql();\n\n\t\t$sql->query(\"DELETE FROM tb_categories WHERE idcategory=:idcategory\",array(\n\t\t\t\":idcategory\"=>$this->getidcategory()\n\t\t));\n\n\t\tCategory::updateFile();\n\t}", "protected function _postDelete()\n\t{\n\t\t//register events\n\t\t\\Base\\Event::trigger('user.delete',$this->id);\n\t\t//end events\n\t}", "function delete( $catID=-1 )\r\n {\r\n\r\n if ( $catID == -1 )\r\n $catID = $this->ID;\r\n\r\n $category = new eZImageCategory( $catID );\r\n\r\n $categoryList = $category->getByParent( $category );\r\n\r\n foreach ( $categoryList as $category )\r\n {\r\n $category->delete();\r\n }\r\n\r\n foreach ( $this->images() as $image )\r\n {\r\n $image->delete();\r\n }\r\n\r\n $categoryID = $category->id();\r\n\r\n $db =& eZDB::globalDatabase();\r\n\r\n $db->begin( );\r\n\r\n $res1 = $db->query( \"DELETE FROM eZImageCatalogue_Category WHERE ID='$categoryID'\" );\r\n $res2 = $db->query( \"DELETE FROM eZImageCatalogue_CategoryPermission WHERE ObjectID='$this->ID'\" );\r\n\r\n if ( ( $res1 == false ) || ( $res2 == false ) )\r\n $db->rollback( );\r\n else\r\n $db->commit();\r\n\r\n }", "public function handle_deletion_cache( $post_id ) {\n\t\tif ( get_post_status( $post_id ) !== 'publish' ) {\n\t\t\treturn;\n\t\t}\n\n\t\tself::$cache_trigger_url = get_permalink( $post_id );\n\t\tself::$status_before = 'publish';\n\t\tself::$status_after = 'delete';\n\t\tself::$suppress_notification = true;\n\t\tself::$which_cloudflare_method = __METHOD__;\n\n\t\tself::purge_cloudflare_cache();\n\t}", "public function onBeforeDelete()\n\t{\n\t\t$site_pages = ee()->config->item('site_pages');\n\t\t$site_id = ee()->config->item('site_id');\n\n\t\t$entries = $this->getModelFacade()->get('ChannelEntry')\n\t\t\t->fields('entry_id', 'author_id')\n\t\t\t->filter('channel_id', $this->channel_id)\n\t\t\t->all();\n\n\t\tif ($site_pages !== FALSE && $entries)\n\t\t{\n\t\t\tif (count($site_pages[$site_id]) > 0)\n\t\t\t{\n\t\t\t\tforeach ($entries as $entry)\n\t\t\t\t{\n\t\t\t\t\tunset($site_pages[$site_id]['uris'][$entry->entry_id]);\n\t\t\t\t\tunset($site_pages[$site_id]['templates'][$entry->entry_id]);\n\t\t\t\t}\n\n\t\t\t\tee()->config->set_item('site_pages', $site_pages);\n\n\t\t\t\t$this->Site->site_pages = $site_pages;\n\t\t\t\t$this->Site->save();\n\t\t\t}\n\t\t}\n\t}", "public function forceDeleted(Brand $brand)\n {\n //\n }", "public function handleDelete()\n {\n Craft::$app->getDb()->createCommand()\n ->delete(Table::REVISIONS, ['id' => $this->owner->revisionId])\n ->execute();\n }", "public function hook_before_delete($id) {\n\n }", "public function _event_before_delete() {\n\t\tstatic::$_delete['roles'] = $this->roles;\n\t}", "public function on_delete() {\n $this->remove_dir();\n }", "public function beforeDelete(): void\n {\n switch ($this->deletionType) {\n case self::DELETION_TYPE_1:\n $this->deletionType1();\n break;\n case self::DELETION_TYPE_0:\n default:\n $this->deletionType0();\n break;\n }\n }", "public function deleteAction() {\n\t\t// if($post->delete()) {\n\t\t// \tSession::message([\"Post <strong>$post->name</strong> deleted!\" , \"success\"]);\n\t\t// \tredirect_to('/posts/index');\n\t\t// } else {\n\t\t// \tSession::message([\"Error saving! \" . $error->get_errors() , \"success\"]);\n\t\t// }\n\t}", "public function processDelete(): void \n {\n if ($this->delete()) { // The tag is deleted in the database storage.\n auth()->user()->logActivity($this, 'Tags', 'Has deleted an issue tag with the name ' . $this->name);\n flash(\"The ticket tag with the name <strong>{$this->name}</strong> has been deleted in the application.\")->info()->important();\n }\n }", "public function forceDeleted(Comment $comment)\n {\n //\n }", "public function hook_after_delete($id) {\n\n }", "protected function onDeleting()\n {\n return true;\n }", "public function handleDeleted(Deleted $event): void\n {\n $entity = $event->entity();\n\n $this->scheduleRemovingOldDocuments($entity);\n\n $this->elasticsearchManager->commit();\n }", "public function hook_before_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_before_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_before_delete($id) {\n\t //Your code here\n\n\t }", "public function forceDeleted(Food $food)\n {\n //\n }", "function delete_category($action, $id)\r\n{\r\n\tglobal $dropbox_cnf;\r\n\tglobal $_user, $is_courseAdmin, $is_courseTutor;\r\n\r\n\t// an additional check that might not be necessary\r\n\tif ($action=='deletereceivedcategory')\r\n\t{\r\n\t\t$sentreceived='received';\r\n\t\t$entries_table=$dropbox_cnf['tbl_post'];\r\n\t\t$id_field='file_id';\r\n\t}\r\n\telseif ($action=='deletesentcategory')\r\n\t{\r\n\t\t$sentreceived='sent';\r\n\t\t$entries_table=$dropbox_cnf['tbl_file'];\r\n\t\t$id_field='id';\r\n\t}\r\n\telse\r\n\t{\r\n\t\treturn get_lang('Error');\r\n\t}\r\n\r\n\t// step 1: delete the category\r\n\t$sql=\"DELETE FROM \".$dropbox_cnf['tbl_category'].\" WHERE cat_id='\".Database::escape_string($id).\"' AND $sentreceived='1'\";\r\n\t$result=api_sql_query($sql);\r\n\r\n\t// step 2: delete all the documents in this category\r\n\t$sql=\"SELECT * FROM \".$entries_table.\" WHERE cat_id='\".Database::escape_string($id).\"'\";\r\n\t$result=api_sql_query($sql);\r\n\r\n\twhile ($row=mysql_fetch_array($result))\r\n\t{\r\n\t\t$dropboxfile=new Dropbox_Person( $_user['user_id'], $is_courseAdmin, $is_courseTutor);\r\n\t\tif ($action=='deletereceivedcategory')\r\n\t\t{\r\n\t\t\t$dropboxfile->deleteReceivedWork($row[$id_field]);\r\n\t\t}\r\n\t\tif ($action=='deletesentcategory')\r\n\t\t{\r\n\t\t\t$dropboxfile->deleteSentWork($row[$id_field]);\r\n\t\t}\r\n\t}\r\n}", "function ccategories_delete($category)\n\t{\n\t\tlusers_require(\"categories/delete\");\n\n\t\t$content = mcategories_get_content($category);\n\t\tmcategories_delete($category);\n\t\tmcontent_delete($content[\"id\"]);\n\n\t\tlcache_delete_all();\n\n\t\tluri_redirect(\"main/user/admin/categories\", l(\"Category successfully deleted.\"));\n\t}" ]
[ "0.7492043", "0.70046467", "0.69624126", "0.6943701", "0.6943701", "0.6675738", "0.66446525", "0.66252023", "0.65652", "0.6549068", "0.6538489", "0.6506367", "0.6463943", "0.64293057", "0.6428951", "0.6361386", "0.63513476", "0.6345205", "0.63186806", "0.63098896", "0.6301011", "0.62967956", "0.6277212", "0.6249617", "0.62426424", "0.621572", "0.621572", "0.6210092", "0.61832535", "0.6180974", "0.6158977", "0.6138304", "0.6122604", "0.6107995", "0.60856843", "0.6070228", "0.606882", "0.60617894", "0.6047588", "0.6042869", "0.60412097", "0.6038337", "0.60275537", "0.6025096", "0.6021483", "0.6020434", "0.60130125", "0.60043025", "0.60020375", "0.5985923", "0.59841716", "0.5981584", "0.5977515", "0.59726834", "0.5950644", "0.5950612", "0.58989614", "0.5891699", "0.5872725", "0.58671445", "0.5859341", "0.5859", "0.5850909", "0.5846856", "0.5845766", "0.5835262", "0.5826115", "0.58201635", "0.58087844", "0.58052325", "0.58050644", "0.58050644", "0.5802205", "0.5794107", "0.57926315", "0.57903576", "0.5784722", "0.5781827", "0.5773823", "0.57672757", "0.57660085", "0.5763707", "0.57451606", "0.5744249", "0.57399356", "0.57240117", "0.5719311", "0.57173854", "0.5716307", "0.5712646", "0.570886", "0.57022035", "0.57010514", "0.56954384", "0.56895095", "0.56895095", "0.56895095", "0.5686922", "0.5674298", "0.56682855" ]
0.72233695
1
This function inserts a location entry into the location table
public function create_location($location_name) { $location=array('location_id'=>NULL, 'name'=>$location_name); if( !$this->db->insert('Location',$location)) { return FALSE; } return $this->db->insert_id(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert($location){\n $fields = array(\"location_name\");\n $values = array($location);\n $lastid = $this->db->insert(\"location_tabel\", $fields, $values);\n return $lastid;\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 insertLocation($data){\n\t\t$result = $this->db->insert('event_location', $data);\t// insert data into `users` table\n\t\treturn $result;\n }", "public function testInsertValidLocation() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoLocation = Location::getLocationByLocationId($this->getPDO(), $location->getLocationId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$this->assertEquals($pdoLocation->getLocationProfileId(), $this->profile->getProfileId());\n\t\t$this->assertEquals($pdoLocation->getLocationAttention(), $this->payAttention);\n\t\t$this->assertEquals($pdoLocation->getLocationCity(), $this->sinCity);\n\t\t$this->assertEquals($pdoLocation->getLocationName(), $this->granjalada);\n\t\t$this->assertEquals($pdoLocation->getLocationState(), $this->stateOfMind);\n\t\t$this->assertEquals($pdoLocation->getLocationStreetOne(), $this->warZone);\n\t\t$this->assertEquals($pdoLocation->getLocationStreetTwo(), $this->aptTwo);\n\t\t$this->assertEquals($pdoLocation->getLocationZipCode(), $this->whatHood);\n\t}", "function addLocation($location_details){\n\t if ($this->db->insert('pofloc',$location_details))\n\t\t\t{ \n\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\treturn FALSE;\n\t\t\t}\n }", "public function testInsertInvalidLocation() {\n\t\t// create a Location with a non null location id and watch it fail\n\t\t$location = new Location(RootsTableTest::INVALID_KEY, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\t}", "function insertLocation($uid,$tid,$latitude,$long,$area,$continent,$country,$pcode)\n {\n $sql = sprintf(\"INSERT INTO `location` (\n `uid` ,\n `tid` ,\n `latitude` ,\n `longitude`,\n `area`,\n `continent`,\n `country`,\n `pcode`\n )\n VALUES (\n '%d','%d','%s','%s','%s','%s','%s','%s'\n );\",\n $uid,$tid, $latitude, $long, $this->db->escape($area), $this->db->escape($continent), $this->db->escape($country), $this->db->escape($pcode)\n );\n $this->db->query($sql);\n }", "public function insert_location() {\n $location_id = $this->auth->generator(15);\n\n $data = array(\n 'location_id' => $location_id,\n 'location_name' => $this->input->post('location_name'),\n 'status' => 1\n );\n\n $result = $this->Locations->location_entry($data);\n\n if ($result == TRUE) {\n $this->session->set_userdata(array('message' => display('successfully_added')));\n if (isset($_POST['add-customer'])) {\n redirect(base_url('Clocation/manage_location'));\n } elseif (isset($_POST['add-customer-another'])) {\n redirect(base_url('Clocation'));\n }\n } else {\n $this->session->set_userdata(array('error_message' => display('already_inserted')));\n redirect(base_url('Clocation'));\n }\n }", "public function addLocation(string $location);", "private function insertTOlocationTable($LocationID,$geolocationComponent,$EventID){\n try{\n\n if($stmt=$this->DataBaseCon->prepare(\"INSERT INTO LocationDataSet (LocationID,Address,City,State,Country,EventID) VALUE (?,?,?,?,?,?)\")){\n $stmt->bind_param('ssssss',$LocationID,$geolocationComponent['completeAddress'],$geolocationComponent['city'],$geolocationComponent['state'],$geolocationComponent['country'],$EventID);\n $stmt->execute();\n $stmt->close();\n return true;\n }\n else{\n return false;\n }\n\n }catch(Expection $e){\n return false;\n }\n }", "private function storeLocation(GeoLocationItem $location)\n {\n try {\n $row = DB::table(IpInfoLocation::TABLE)\n ->where('ip', $location->ipAddress)\n ->first();\n\n // Dunno why, but updateOrInsert call just throws an undefined method error.\n // Probably something October specific\n if ($row) {\n return DB::table(IpInfoLocation::TABLE)\n ->where('ip', $location->ipAddress)\n ->update([\n 'ip' => $location->ipAddress,\n 'country_code' => $location->countryCode,\n 'country' => $location->countryName,\n 'state' => $location->regionName,\n 'city' => $location->cityName,\n 'zip' => $location->zipCode,\n 'latitude' => (float)$location->latitude,\n 'longitude' => (float)$location->longitude,\n 'timezone' => $location->timeZone,\n 'updated_at' => Carbon::now(),\n ]);\n }\n\n return DB::table(IpInfoLocation::TABLE)\n ->insert([\n 'ip' => $location->ipAddress,\n 'country_code' => $location->countryCode,\n 'country' => $location->countryName,\n 'state' => $location->regionName,\n 'city' => $location->cityName,\n 'zip' => $location->zipCode,\n 'latitude' => (float)$location->latitude,\n 'longitude' => (float)$location->longitude,\n 'timezone' => $location->timeZone,\n 'updated_at' => Carbon::now(),\n ]);\n\n } catch (PDOException $e) {\n // Concurrency problem, two requests at the same time try to insert the same value\n // Can just be ignored\n return false;\n }\n }", "public function create($location): void\n {\n $sql = \"INSERT INTO {$this->table} (description) \";\n $sql .= \"VALUES (:description);\";\n\n DBConnection::getInstance()\n ->prepare($sql)\n ->execute([\n \"description\" => $location->getDescription()\n ]);\n\n $location->setId($this->getInsertedId());\n }", "abstract public function insertCard(int $card_id, string $location, int $location_arg);", "function addLocation($mysqli) {\r\n\t\t// Letop we maken gebruik van sprintf. Kijk op php.net voor meer info.\r\n\t\t// Binnen sprintf staat %s voor een string, %d voor een decimaal (integer) en %f voor een float\r\n\r\n\t\t$sql = sprintf(\"INSERT INTO `Locations` (`StreetAddress`, `PostalCode`, `City`, `StateProvince`) VALUES ('%s', '%s', '%s', '%s')\", \r\n\t\t\t\t\t\t$mysqli->real_escape_string($_POST['StreetAddress']),\r\n\t\t\t\t\t\t$mysqli->real_escape_string($_POST['PostalCode']),\r\n\t\t\t\t\t\t$mysqli->real_escape_string($_POST['City']),\r\n\t\t\t\t\t\t$mysqli->real_escape_string($_POST['StateProvince']));\r\n\r\n\t\tif (!$result = $mysqli->query($sql)) {\r\n\t\t\thttp_response_code(503);\r\n\t\t\techo '<h1>Database Error</h1>';\r\n\t\t\texit(1);\r\n\t\t}\r\n\r\n\t\theader('location: /?action=locations'); // terugkeren naar locations\r\n\t\texit();\r\n\t}", "public function addUserLocation ($location)\n\t{\n\t\t$Statement = $this->Database->prepare(\"UPDATE users SET location = ? WHERE id = ?\");\n\t\t$Statement->execute(array($location, $this->id));\n\t}", "public function postInsert(\\Propel\\Runtime\\Connection\\ConnectionInterface $con = null) {\n parent::postInsert($con);\n SearchLocation::prepareForLocation($this, new SearchLocation())\n ->save($con);\n }", "function captureLocation() {\n global $connect, $latitude, $longitude;\n $statement = mysqli_prepare($connect, \"INSERT INTO locationTest (lat, lng) VALUES (?, ?)\");\n mysqli_stmt_bind_param($statement, \"ss\", $latitude, $longitude);\n mysqli_stmt_execute($statement);\n mysqli_stmt_close($statement); \n }", "public function insert_location($data)\n\t{\n\t\t$sql='SELECT location_id FROM location WHERE abs(`lat` - ?) <= 0.002 AND abs(`lon` - ?) <=0.002';\n\t\t$query=$this->db->query($sql,array($data['lat'],$data['lon']));\n\t\t\n\t\t$loc = array();\n\t\t\n\t\tif($query->num_rows() == 0)\n\t\t{\n\t\t\t$s='INSERT INTO location (`lat`, `lon`, `street_number`, `route`, `neighbourhood`, `sublocality`, `locality`) VALUES (?,?,?,?,?,?,?)';\n\t\t\t$q=$this->db->query($s,array($data['lat'],$data['lon'],$data['street_number'],\n\t\t\t$data['route'],$data['neighbourhood'],$data['sublocality'],$data['locality']));\n\t\t\t\n\t\t\t$s='SELECT location_id FROM location WHERE abs(`lat` - ?) <= 0.002 AND abs(`lon` - ?) <=0.002';\n\t\t\t$q=$this->db->query($s,array($data['lat'],$data['lon']))->row_array();\n\t\t\treturn $q['location_id'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result=$query->row_array();\n\t\t\treturn $result['location_id'];\n\t\t}\n\t}", "function addAlLocation($allocation_details){\n\t if ($this->db->insert('events_tt',$allocation_details))\n\t\t\t { \n\t\t\t return TRUE;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t return FALSE;\n\t\t\t }\n }", "function insertToStores($address, \n\t\t\t\t\t\t\t$city,\n\t\t\t\t\t\t\t$state,\n\t\t\t\t\t\t\t$zip,\n\t\t\t\t\t\t\t$telephone) {\n\t\t\n\t\t$insertQuery = \"INSERT INTO Stores (name,address,city,state,zip,telephone)\n\t\t VALUES ('$this->storeName','$address','$city','$state','$zip','$telephone')\";\n\t\tparent::executeQuery($insertQuery);\t\n\t}", "public function save () {\n\t\t\t$insert = $this->db->prepare(\"INSERT INTO LOCATED(nameLocation, idArt) \n\t\t\t\tVALUES (?, ?)\");\n\t\t\treturn $insert->execute(array($this->nameLocation, $this->idArt));\n\t\t}", "abstract public function insert();", "public function createLocation($locationInfo) {\n\t\t$params = array(\n\t\t\t$locationInfo['RoomName'],\n\t\t\t$locationInfo['RoomAbbr'],\n\t\t\t$locationInfo['RoomDesc'],\n\t\t\t$locationInfo['IsApproved'],\n\t\t\t$locationInfo['BuildingName']\n\t\t);\n\t\t$this->db->query(\"\n\t\t\tINSERT INTO Room \n\t\t\t\t(RoomName, RoomAbbr, RoomDesc, IsApproved, BuildingID)\n\t\t\tVALUES \n\t\t\t\t(?, ?, ?, ?, (SELECT BuildingID FROM Building WHERE BuildingName = ?));\n\t\t\tSELECT LAST_INSERT_ID();\", $params);\n\t\t$newID = $this->db->query('SELECT LAST_INSERT_ID() AS id')->row()->id;\n\t\treturn $newID;\n\t}", "public abstract function insert();", "public function testUpdateValidLocation() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n\t\t// edit the Location and update it in mySQL\n\t\t$location->setLocationStreetOne($this->warZone2);\n\t\t$location->update($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoLocation = Location::getLocationByLocationId($this->getPDO(), $location->getLocationId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$this->assertEquals($pdoLocation->getLocationProfileId(), $this->profile->getProfileId());\n\t\t$this->assertEquals($pdoLocation->getLocationAttention(), $this->payAttention);\n\t\t$this->assertEquals($pdoLocation->getLocationCity(), $this->sinCity);\n\t\t$this->assertEquals($pdoLocation->getLocationName(), $this->granjalada);\n\t\t$this->assertEquals($pdoLocation->getLocationState(), $this->stateOfMind);\n\t\t$this->assertEquals($pdoLocation->getLocationStreetOne(), $this->warZone2);\n\t\t$this->assertEquals($pdoLocation->getLocationStreetTwo(), $this->aptTwo);\n\t\t$this->assertEquals($pdoLocation->getLocationZipCode(), $this->whatHood);\n\t}", "public function insertGeo($id, $version, $uri, $name, $latitude, $longitude, $admin_code, $country_code)\n {\n if (! $id)\n {\n $id = $this->selectID();\n }\n $qq = 'insert_geo_place';\n $this->sdb->prepare($qq,\n 'insert into geo_place\n (id, version, uri, name, latitude, longitude, admin_code, country_code)\n values\n ($1, $2, $3, $4, $5, $6, $7, $8)');\n $result = $this->sdb->execute($qq,\n array($id,\n $version,\n $uri,\n $name,\n $latitude,\n $longitude,\n $admin_code,\n $country_code));\n $this->sdb->deallocate($qq);\n return $id;\n }", "public function insertLocation($file, &$locationArr) {\n $fileStream = fopen($file, 'r');\n ini_set('auto_detect_line_endings', TRUE);\n //Skip the header\n fgetcsv($fileStream);\n //Gets the parent folder of passed in $file\n $verifiedFile = dirname($file) . '\\LocationVerified.csv';\n $fileErrors = array();\n $count = 1;\n $insertedRows = 0;\n while(($data = fgetcsv($fileStream)) !== FALSE) {\n $count++;\n $errors = Validator::validateLocation($data);\n if(empty($errors)) {\n //No error write to verified file\n $locationArr[] = $data[0];\n $newFile = fopen($verifiedFile, 'a');\n fputcsv($newFile, $data);\n fclose($newFile);\n $insertedRows++;\n } else {\n $fileErrors[] = new FileRowError($count, $errors);\n }\n }\n fclose($fileStream);\n $_SESSION['location-lookup.csv'] = $insertedRows;\n\n $dbConnectorInstance = DatabaseConnector::getInstance();\n $dbConnector = $dbConnectorInstance->getConnection();\n $sql = 'LOAD DATA LOCAL INFILE ? INTO TABLE location FIELDS TERMINATED BY \\',\\' LINES TERMINATED BY \\'\\n\\'';\n\n\n try {\n $stmt = $dbConnector->prepare($sql);\n $stmt->bindParam(1, $verifiedFile);\n $stmt->execute();\n } catch (PDOException $pdoEx) {\n $this->logger->error('Error loading data from local file. ', $pdoEx);\n $fileErrors = NULL;\n }\n\n //Delete verified file upon completion of uploading\n unlink($verifiedFile);\n\n return $fileErrors;\n }", "public function addLocation( $city, $state, $zip )\n {\n $locationID = NULL;\n\t\t\t\t\n\t\tif( $city != \"\" && $state != \"\" && $zip != \"\" )\n\t\t{\t\t\n\t\t\t$this->findLocation( $city, $state, $zip );\n\t\t\t\n\t\t\tif( $this->locationID == 0 )\n\t\t\t{\t\t\n\t\t\t\t$core = Core::dbOpen();\n\t\t\t\t$sql = \"INSERT INTO program_locations (programID,city,state,zip)\n\t\t\t\t\t\t\t\tVALUES (:programID, :city, :state, :zip )\";\n\t\t\t\t$stmt = $core->dbh->prepare($sql);\n\t\t\t\t$stmt->bindParam(':programID', $this->programID);\n\t\t\t\t$stmt->bindParam(':city', $city);\n\t\t\t\t$stmt->bindParam(':state', $state);\n\t\t\t\t$stmt->bindParam(':zip', $zip);\n\t\t\t\tCore::dbClose();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif($stmt->execute())\n\t\t\t\t\t\t$locationID = $core->dbh->lastInsertId(); \n\t\t\t\t} catch (PDOException $e) {\n\t\t\t\t\techo \"Location add failed!\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$locationID = $this->locationID;\n\t\t\t}\n\t\t}\n return $locationID;\n }", "public function insert(Table $table, $row);", "public function insertOne($location) {\n\t\t$temp = $this;\n\t\t\n\t\twhile ($temp->next != NULL)\n\t\t\t$temp = $temp->next;\n\t\t\n\t\t$temp->next = new testsList($location);\n\t\t\n\t\t/*\n\t\t * This is where you will set the bounds for where you want the points located\n\t\t * \n\t\t * Set minimum and maximum latitude and longitude for the view\n\t\t */\n\t\tif (($location->getLat() < $this->minLatitude) && ($location->getLat() > 42.9811436))\n\t\t\t$this->minLatitude = $location->getLat();\n\t\t\n\t\tif (($location->getLng() < $this->minLongitude) && ($location->getLng() > -83.7412662))\n\t\t\t$this->minLongitude = $location->getLng();\n\t\t\n\t\tif (($location->getLat() > $this->maxLatitude) && ($location->getLat() < 43.0765585))\n\t\t\t$this->maxLatitude = $location->getLat();\n\t\t\n\t\tif (($location->getLng() > $this->maxLongitude) && ($location->getLng() < -83.6349159))\n\t\t\t$this->maxLongitude = $location->getLng();\n\t\t\n\t\tif ($location->getLead() > 15)\n\t\t\t$this->countDanger++;\n\t\t\n\t\t$this->listCount++;\n\t}", "public function add_location($rec){\n\t\t$doc = json_encode($this->_location($rec));\n\t\treturn $this->update($doc);\n\t}", "public function store(Request $request, Location $location)\n {\n $owner_id = auth()->user()->id;\n $company_id = CarCompany::where('owner_id', '=', $owner_id)->first()->id;\n\n $validatedData = $request->validate([\n 'location' => 'required|string',\n ]);\n\n $values = [\n 'location' => $request->input('location'),\n 'company_id' => $company_id\n ];\n $location->insert($values);\n\n return redirect()->back()->with('alert', 'Added successfully');\n }", "public function add_row($mark, $location, $nwork) {\n\t\t$data = array(\n 'oznaka' => $mark,\n 'lokacija' => $location,\n 'brm' => $nwork\n );\n\n\t\t$this->db->insert('sale', $data); //Note: All values are escaped automatically producing safer queries.\n\t}", "function insert_event($event_data, $location_data, $tag_data, $group_data, $event_owner_data) {\n\t\t//Check if location is in database\n\t\t$this->db->start_cache();\n\t\t$this->db->where('address_one', $location_data['address_one']);\n\t\t$this->db->where('address_two', $location_data['address_two']);\n\t\t$this->db->where('zipcode', $location_data['zipcode']);\n\t\t$loc_query = $this->db->get('location');\n\t\t$this->db->stop_cache();\n\t\t$this->db->flush_cache();\n\n\t\t//If location isnt in database yet\n\t\tif ($loc_query->num_rows() == 0){\n\t\t\t//get geocode from google if not in db\n\t\t\t$geocode = $this->getGeo(\n\t\t\t\t$location_data['address_one'] . \" \" .\n\t\t\t\t$location_data['address_two'] . \" \".\n\t\t\t\t$location_data['zipcode']\n\t\t\t\t);\n\t\t\tif (isset($geocode) && $geocode) {\n\t\t\t\t//add geocodes to address before insert\n\t\t\t\t$location_data['geolat'] = $geocode['lat'];\n\t\t\t\t$location_data['geolng'] = $geocode['lng'];\n\t\t\t\t$location_data['city'] = $geocode['city'];\n\t\t\t\t$location_data['state'] = $geocode['state'];\n\t\t\t\t//new location in db\n\t\t\t\t$location_success = $this->db->insert('location', $location_data);\n\t\t\t\t$location_id = $this->db->insert_id();\n\t\t\t} \n\t\t} else { //old location\n\t\t\t$locResult = $loc_query->result();\n\t\t\t$location_id = $locResult[0]->location_id;\n\t\t\t$location_success = true;\n\t\t}\n\t\t// Check that we have a valid location before updating db\n\t\tif ($location_success) {\n\t\t\t// insert values into organization\n\t\t\t$event_success = $this->db->insert('event', $event_data);\n\t\t\t// Get the event ID and add it to the owner_data array\n\t\t\t$event_id = $this->db->insert_id();\n\n\t\t\t//event_location\n\t\t\t$event_location['event_id'] = $event_id;\n\t\t\t$event_location['location_id'] = $location_id;\n\t\t\t$event_location_success = $this->db->insert('event_location',$event_location);\n\n\t\t\t//owner\n\t\t\t$event_owner_data['event_id'] = $event_id;\n\t\t\t$event_owner_success = $this->db->insert('event_owner', $event_owner_data);\n\n\t\t\t//attendee\n\t\t\t$attendee_data['user_id'] = $event_owner_data['owner_id'];\n\t\t\t$attendee_data['event_id'] = $event_id;\n\t\t\t$attendee_success = $this->db->insert('attendee', $attendee_data);\n\n\t\t\t// Get the tag ID\n\t\t\t$this->db->like('tag_title', $tag_data['tag_title']);\n\t\t\t$query = $this->db->get('tag');\n\t\t\t$tag_id_array = $query->result();\n\t\t\t$tag_id = $tag_id_array[0]->tag_id;\n\t\t\t$event_tag_data['event_id'] = $event_id;\n\t\t\t$event_tag_data['tag_id'] = $tag_id;\n\t\t\t$event_tag_success = $this->db->insert('event_tag', $event_tag_data);\n\t\t\t\n\t\t\t// organization_event\n\t\t\tif (is_numeric($group_data['org_id'])) {\n\t\t\t\t$group_data['event_id'] = $event_id;\n\t\t\t\t$group_success = $this->db->insert('organization_event', $group_data);\n\t\t\t} else {\n\t\t\t\t$group_success = true;\n\t\t\t}\n\t\t\t\n\t\t\t// return true only if all inserts were successful\n\t\t\treturn ($event_success &&\n\t\t\t\t$event_location_success &&\n\t\t\t\t$event_owner_success &&\n\t\t\t\t$attendee_success &&\n\t\t\t\t$event_tag_success &&\n\t\t\t\t$group_success);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function create($name,$location){\r\n lako::get('ljson')->save($location.\"/{$name}\",array(\r\n 'table' => $name,\r\n 'name' => $name,\r\n 'pkey' => 'id',\r\n 'fields'=> array(\r\n 'id' => array(\r\n 'datatype' => ''\r\n )\r\n ),\r\n 'relations' => array(\r\n 'data' => array(\r\n 'type' => '1-M',\r\n 'path' => ['id','field_id'],\r\n 'object' => 'wp_bp_xprofile_data'\r\n )\r\n )\r\n )\r\n );\r\n \r\n }", "public function store(Request $request)\n {\n //\n $request->validate([\n 'location' => 'required|unique:tbllocation',\n 'address' => 'required',\n ]);\n Location::create($request->all());\n return redirect()->route('loc.index')->with('success','Location added successfully.');\n }", "public function insertZone($info) {\n\t\t$this->insert ( $info );\n\t}", "public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}", "public function store(LocationRequest $request)\n {\n $this->location->code = $request->input('code');\n $this->location->parent_id = $request->input('parent');\n $this->location->latitude = $request->input('latitude');\n $this->location->longitude = $request->input('longitude');\n $this->location->sort = $request->input('sort');\n\n DB::beginTransaction();\n if ($this->location->save()) {\n $languages = [];\n foreach (config('settings.locales') as $lang) {\n $languages[] = [\n 'lang' => $lang,\n 'title' => $request->input(\"title.$lang\"),\n 'location_id' => $this->location->id\n ];\n }\n if ($this->location->languages()->createMany($languages)){\n DB::commit();\n return redirect()->route('admin.location.index')->with('status', 'Location saved successfully');\n }\n }\n DB::rollBack();\n return back()->with('error', 'Error');\n }", "public function insert()\n {\n $db = new Database();\n $db->insert(\n \"INSERT INTO position (poste) VALUES ( ? )\",\n [$this->poste]\n );\n }", "function Insert(GeolocalisationEntity $geo) {\r\n\r\n $req = \"INSERT INTO geolocalisation ( lon , lat ) VALUES ( '\" . $geo->getLon() . \"','\" . $geo->getLat() .\"')\";\r\n $id = mysql_query($req) or die(\"********** Erreur d'ajoute **********<br>\");\r\n echo \"********** Ajout avec succés **********<br>\";\r\n return mysql_insert_id();\r\n }", "protected function insert()\n\t{\n\t\t$this->autofill();\n\n\t\tparent::insert();\n\n\t}", "private function insertResponseIntoDatabase()\n {\n $sql = \"INSERT INTO weather(city, country, min, max, stamp, temp) \n VALUES (:city, :country, :min, :max, NOW(), :temp)\";\n\n $stmt = $this->pdo->prepare($sql);\n $stmt->bindParam(':city', $this->response['city']);\n $stmt->bindParam(':country', $this->response['country']);\n $stmt->bindParam(':min', $this->response['min']);\n $stmt->bindParam(':max', $this->response['max']);\n $stmt->bindParam(':temp', $this->response['temp']);\n $stmt->execute();\n }", "function addPoint()\r\n{\r\n\t// --------- GLOBALIZE ---------\r\n\tglobal $db;\r\n\t// The 1st alias\r\n\t$name = GET_INC('name');\r\n\t// City? Lng? Lat?\r\n\t$city = GET_INC('city');\r\n\t$lng = GET_INC('lng');\r\n\t$lat = GET_INC('lat');\r\n\t// We need user ID\r\n\t$uid = GET_INC('uid');\r\n\t// Query?\r\n\t// Looks simple...\r\n\t$db->connDB();\r\n\t// insert into db\r\n\t$db->insert('bus_station', \"NULL,{$city},{$lng},{$lat}\");\r\n\t// get ID\r\n\t$db->query('SELECT MAX(id) FROM bus_station;');\r\n\t$res = $db->fetch_array();\r\n\t// insert 1st alias\r\n\t$db->insert('bus_sname', \"{$res[0]},{$name}\");\r\n\t// close db\r\n\t$db->closeDB();\r\n}", "public function insert($table);", "protected function _insert()\n\t{\n\t}", "protected function saveInsert()\n {\n }", "public function testAddLocation(): void\n {\n $session = $this->getMinkSession();\n $this->login('dkatz', 'pr1test');\n $session->visit($this->getUrl('/Publisher/manage_location?id=4612')); // A Bruccoli Clark Layman Book\n $page = $session->getPage();\n $this->clickCss($page, '.add-location-link');\n $this->checkFor500Error();\n }", "public static function insert()\n {\n }", "public function store(LocationsRequest $locationRequest, County $county)\n {\n// $locationRequest['slug'] = Str::slug($locationRequest->name, '-');\n $county->locations()->create($locationRequest->all());\n return redirect()->route('backend.counties.locations.index', $county);\n }", "public function save(GameLocation $entity)\n {\n $em = $this->getEntityManager();\n\n $em->persist($entity);\n $em->flush();\n }", "public function insertStation($Name, $DistrictID, $Latitude, $Longitude, $ArbcAdrs, $Adrs, $ArbcName){\r\n $strSQL = \"INSERT INTO Stations (STTN_NAME, STTN_DIST_ID, STTN_LATT, STTN_LONG, STTN_ARBC_ADRS, STTN_ADRS, STTN_ARBC_NAME)\r\n VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n $inputs = array($Name, $DistrictID, $Latitude, $Longitude, $ArbcAdrs, $Adrs, $ArbcName);\r\n $query = $this->db->query($strSQL, $inputs);\r\n\r\n }", "public function addLocation($location)\n {\n $this->locations[] = $this->createLocationFromInput($location);\n }", "function create_location($connection , $organization_id , $primary , $address , $city , $state , $zip , $latitude , $longitude , $email1 = \"\", $email2 = \"\", $phone1 = \"\", $phone2 = \"\")\n{\n\t$sql = \"insert into organization_location set organization_id ={$organization_id}, primary ={$primary}, address ='{$address}', city ='{$city}', state ='{$state}', zip ='{$zip}', latitude = {$latitude}, longitude = {$longitude}, modified_time = now()\";\n\tif($email1 != \"\")\n\t\t$sql = $sql.\", email1 = '{$email1}'\";\n\tif($email2 != \"\")\n\t\t$sql = $sql.\", email2 = '{$email2}'\";\n\tif($phone1 != \"\")\n\t\t$sql = $sql.\", phone1 = '{$phone1}'\";\n\tif($phone2 != \"\")\n\t\t$sql = $sql.\", phone2 = '{$phone2}'\";\n\t$db_selected = mysql_select_db(Secure::DB_DATABASE, $connection);\n\n\tif(!($resource = @ mysql_query($sql, $connection)))\n\t\tshowerror();\n\t\t//echo $sql;\n\telse\n\t{\n\t\tif(!($return_values = @ mysql_query(\"select location_id from organization_location order by location_id DESC limit 1\", $connection)))\n\t\t\tshowerror();\n\t\telse\n\t\t{\n\t\t\t$return = mysql_fetch_array($return_values);\n\t\t\treturn $return[0];\n\t\t}\n\t}\n}", "public function insert($tblUpdate);", "public function insert($tableName, $data);", "private function insertStatement() {\n $altitude = empty($_POST['alt']) ? null : $_POST['alt'];\n $latitude = empty($_POST['lat']) ? null : $_POST['lat'];\n $longitude = empty($_POST['lon']) ? null : $_POST['lon'];\n\n $date_fallback = empty($_SERVER[\"REQUEST_TIME\"]) ? time() : $_SERVER[\"REQUEST_TIME\"];\n\n $date = empty($_POST['date']) ? $date_fallback : $_POST['date'];\n\n\n $status_table = TABLE_PREFIX.\"status\";\n $insert_stmt = $this->db_connection->prepare(\"INSERT INTO \"\n\t\t\t\t\t\t . $status_table\n\t\t\t\t\t\t . \" (message,ip,date,lon,lat,alt) VALUES (?,?,?,?,?,?)\");\n\n $insert_stmt->bind_param(\"ssiddd\",\n\t\t\t $_POST[\"message\"], \n\t\t\t $_SERVER['REMOTE_ADDR'], \n\t\t\t $date,\n\t\t\t $longitude,\n\t\t\t $latitude,\n\t\t\t $altitude );\n $insert_stmt->execute();\n\n $rows_inserted = $insert_stmt->affected_rows;\n\n if ( $rows_inserted ) {\n $this->log($rows_inserted.\" rows inserted\");\n return true;\n }\n else{\n $this->log(\"Insert error, 0 rows inserted\");\n return false;\n }\n \n }", "function insertRecord($ID, $info)\n{\n\tglobal $sitePosition, $currTime;\n\tglobal $shopID, $adminID, $adminIP;\n\n\tquery('Insert into `' . $sitePosition . '.ShopRecord` values (NULL, ' . $ID . ', \"' . escapeStr($info) . '\", ' . $adminID . ', ' . $shopID . ', ' . $adminIP . ', ' . $currTime . ')', false);\n}", "function insert_point($x,$y,$label){\n\tglobal $db;\n\t$pointid=point_exists($x,$y);\n\tif (!$urlid){\n\t\t$db->query(\"INSERT INTO `points` (`x`,`y`,`label`) VALUES ('$x','$y','$label');\",0);\n\t\t$urlid = mysql_insert_id();\n\n\t\treturn $urlid;\n\t}\n\telse {\n\t\treturn $urlid;\n\t}\n\t\n}", "public function insert() {\n\t$stmt = $this->_database->prepare('INSERT INTO planetterrains (planetid, terrainid, x, y) VALUES (?, ?, ?, ?)');\n\t$stmt->bind_param('iiii', $this->planetid, $this->terrainid, $this->x, $this->y);\n\t$stmt->execute();\n\t$this->refid = $this->_database->insert_id;\n\tif (\\is_array($this->deposit) && \\count($this->deposit) > 0) {\n\t $this->deposit[$this->refid]->terrainid = $this->refid;\n\t $this->deposit[$this->refid]->commit();\n\t}\n\telse if (!\\is_array($this->deposit)) {\n\t $this->deposit->terrainid = $this->refid;\n\t $this->deposit->commit();\n\t}\n }", "public function insertRow($row);", "public function addNewLocation($request)\n {\n $this->deliveryLocation->name = $request->name;\n $this->deliveryLocation->description = $request->description;\n $this->deliveryLocation->price = $request->price;\n if ($this->deliveryLocation->save()) {\n return \"saved\";\n }\n return 'can\\'t be saved';\n }", "function sqlqueryinsert($tableName, $columns, $values, $redirect)\n\t\t{\n\t\t\t$sqlinsert = \"insert into $tableName($columns) values($values)\";\n\t\t\t$sqlinsertquery = mysql_query($sqlinsert);\n\t\t\theader(\"location:\".$redirect);\n\t\t\texit;\n\t\t}", "public abstract function Insert();", "protected function _insert()\n {\n \n }", "protected function _insert()\n {\n \n }", "public function store()\n\t{\n\t\t/*$districtName = Input::get('district_name');\n\t\t$locationName = Input::get('location_name');*/\n\n\t\t$rules = array('district_name' => 'required',\n\t\t\t\t\t 'location_name' => 'required');\n\t\t$validator = Validator::make(Input::all(),$rules);\n\t\tif($validator->fails()){\n\t\t\treturn Redirect::to('admin/location')->withErrors($validator)->withInput(Input::all());\n\t\t}else{\n\t\t\t$this->location->add(Input::all(),$rules);\n\t\t\tSession::flash('message','Location Created Successfuly');\n\t\t\treturn Redirect::to('admin/location/');\n\t\t}\n\t}", "public function insert($data);", "public function testGetValidLocationByLocationId() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$results = Location::getLocationByLocationId($this->getPDO(), $location->getLocationId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$this->assertEquals($results->getLocationProfileId(), $this->profile->getProfileId());\n\t\t$this->assertEquals($results->getLocationAttention(), $this->payAttention);\n\t\t$this->assertEquals($results->getLocationCity(), $this->sinCity);\n\t\t$this->assertEquals($results->getLocationName(), $this->granjalada);\n\t\t$this->assertEquals($results->getLocationState(), $this->stateOfMind);\n\t\t$this->assertEquals($results->getLocationStreetOne(), $this->warZone);\n\t\t$this->assertEquals($results->getLocationStreetTwo(), $this->aptTwo);\n\t\t$this->assertEquals($results->getLocationZipCode(), $this->whatHood);\n\n\t}", "public function insert(...$field_values);", "public function run()\n {\n\t\t$locations = [\n [\n 'location_name' => 'WH - Default',\n 'is_default' => 1,\n 'created_by' => 1,\n ]\n ];\n \n foreach ($locations as $item)\n DB::table('locations')->insert($item);\n }", "abstract public function insertRecord($tableName, $record);", "public function updateWorkshopLocation()\n\t{\n\t\t\n\t\t$core = Core::dbOpen();\n\t\t\n\t\t// get workshopLocationID if exists\n\t\t$sql = \"SELECT workshopLocationID, locationID FROM workshop_location \n\t\t\t\t\t\tWHERE programID\t= :programID AND name\t= :name AND address = :address\";\n\t\t$stmt = $core->dbh->prepare($sql);\n\t\t$stmt->bindParam(':programID', $this->programID);\n\t\t$stmt->bindParam(':name', $this->name);\n\t\t$stmt->bindParam(':address', $this->address);\n\t\t\n\t\ttry {\n\t\t\tif ( $stmt->execute() && $stmt->RowCount() > 0 ) // location exists\n\t\t\t{\n\t\t\t\t$row = $stmt->fetch();\n\t\t\t\t$this->workshopLocationID = $row[\"workshopLocationID\"];\n\t\t\t\t\n\t\t\t\t// if the current location ID differs than what is in the location, update it\n\t\t\t\tif( $this->locationID != $row[\"locationID\"] ) {\t\t\t\t\n\t\t\t\t\t\t$sql = \"UPDATE workshop_location SET locationID = :locationID WHERE workshopLocationID = :id\";\n\t\t\t\t\t\t$stmt = $core->dbh->prepare($sql);\n\t\t\t\t\t\t$stmt->bindParam(':locationID', $this->locationID);\n\t\t\t\t\t\t$stmt->bindParam(':id', $this->workshopLocationID);\n\t\t\t\t\t\t$stmt->execute();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse // add it\n\t\t\t{\n\t\t\t\t$sql = \"INSERT INTO workshop_location (programID,name,address,locationID)\n\t\t \t \t VALUES (:programID, :name, :address, :locationID)\";\n\t\t\t\t$stmt = $core->dbh->prepare($sql);\n\t\t\t\t$stmt->bindParam(':programID', $this->programID);\n\t\t\t\t$stmt->bindParam(':locationID', $this->locationID);\n\t\t\t\t$stmt->bindParam(':name', $this->name);\n\t\t\t\t$stmt->bindParam(':address', $this->address);\n\t\t\t\tCore::dbClose();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif ( $stmt->execute() )\n\t\t\t\t\t\t$this->workshopLocationID = $core->dbh->lastInsertId(); \t\t\n\t\t\t\t\treturn true;\t\t\t\t\n\t\t\t\t} catch ( PDOException $e ) {\n\t\t\t\t\techo \"Add Workshop Location Failed\";\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( PDOException $e ) {\n\t\t\techo \"Get Workshop Location ID Failed\";\n\t\t}\n\t\treturn false;\n\t}", "public function postLocation($newLocation): object\n {\n try {\n $db = $this->dbConnect();\n $req = $db->prepare('INSERT INTO `location`(location_name, latitude, longitude, title, content, cover_img, creation_date) \n VALUES( :location_name, :latitude, :longitude, :title, :content, :cover_img, NOW())');\n\n $req->execute(array(\n 'location_name' => $newLocation->__toString(),\n 'latitude' => $newLocation->getLatitude(),\n 'longitude' => $newLocation->getLongitude(),\n 'title' => $newLocation->getTitle(),\n 'content' => $newLocation->getContent(),\n 'cover_img' => $newLocation->getCoverImg()\n ));\n\n /* Récupérer la valeur ID pour les lignes insérées sur l'objet $pdo*/\n $id_nouveau = $db->lastInsertId();\n $newLocation->setId($id_nouveau);\n\n $sql = 'INSERT INTO `location_urls` (location_id, location_url) VALUES ';\n\n $insertQuery = array();/* Insérer requête [] */\n $insertData = array(); /* Insérer données [] */\n $n = 0;\n foreach ($newLocation->getImages() as $image) {\n $insertQuery[] = '(:location_id' . $n . ', :location_url' . $n . ')';\n $insertData['location_id' . $n] = $newLocation->getId();\n $insertData['location_url' . $n] = $image; /*ce que je récupère en html*/\n $n++;\n }\n\n if (!empty($insertQuery)) {\n $sql .= implode(', ', $insertQuery); /* On insère la requête dans la méthode implode()*/\n $stmt = $db->prepare($sql);\n $stmt->execute($insertData);\n }\n return $req;\n } catch (\\PDOException $exception) {\n var_dump($db->errorInfo());\n die('Erreur : ' . $exception->getMessage());\n }\n }", "public function updateLocation()\n {\n $core = Core::dbOpen();\n $sql = \"UPDATE program_locations SET city = :city, state = :state, zip = :zip\n WHERE locationID = :id\";\n $stmt = $core->dbh->prepare($sql);\n $stmt->bindParam(':city', $this->city);\n $stmt->bindParam(':state', $this->state);\n $stmt->bindParam(':zip', $this->zip);\n $stmt->bindParam(':id', $this->locationID);\n \n Core::dbClose();\n \n try {\n if($stmt->execute()) {\n return true;\n }\n } catch (PDOException $e) {\n return false;\n }\n }", "public function writeToDatabase( $latitude, $longitude, $forecast ){\n\n // check for existing location\n try {\n $query = $this->pdo->prepare(\"\n SELECT\n id,\n latitude,\n longitude\n FROM\n $this->dbname.locations\n WHERE\n latitude = ? AND longitude = ?\n \");\n\n $query->execute([ $latitude, $longitude ]);\n $result = $query->fetch(\\PDO::FETCH_ASSOC);\n }\n catch(PDOException $error) {\n echo $error->getMessage() . \"\\n\";\n }\n\n // get id or insert if not exists\n if( !empty($result) ){\n $location_id = $result['id'];\n }\n else{\n try {\n $query = $this->pdo->prepare(\"\n INSERT INTO\n $this->dbname.locations (latitude, longitude, last_forecast_update)\n VALUES\n (?, ?, ?)\n \");\n $query->execute( [$latitude, $longitude, $forecast['time']] );\n $location_id = $this->pdo->lastInsertId();\n }\n catch(PDOException $error) {\n echo $error->getMessage() . \"\\n\";\n }\n }\n\n // save latest forecast\n try {\n $query = $this->pdo->prepare(\"\n INSERT INTO\n $this->dbname.forecasts (location_id, time, temperature, precipitation_intensity, precipitation_probability)\n VALUES (?, ?, ?, ?, ?)\n \");\n $query->execute([\n $location_id,\n $forecast['time'],\n $forecast['temperature'],\n $forecast['precipIntensity'],\n $forecast['precipProbability']\n ]);\n }\n catch(PDOException $error) {\n echo $error->getMessage() . \"\\n\";\n }\n $query = null;\n }", "function insert($sql){\n\n\t\tglobal $way;\n\t\t$way -> query($sql);\n\n\t}", "public function insertPoi($instance_id, $poi_id, $lon, $lat)\n {\n $poi_id = (int) $poi_id;\n $q = \"\n\t\tINSERT INTO poi(instance_id,poi_id, geom)\n\t\tVALUES('$instance_id','$poi_id', ST_GeomFromText('POINT($lon $lat )', 4326))\n\t\tON CONFLICT (instance_id,poi_id) DO\n\t\t UPDATE SET geom=ST_GeomFromText('POINT($lon $lat )', 4326)\n\t\t;\";\n $this->execute($q);\n }", "public function insertAction()\r\n\t{\r\n\t\tif ($this->request->getPost('submit')) {\r\n\t\t\t$name = $this->request->getPost('name');\r\n\t\t\t$phone = $this->request->getPost('phone');\r\n\t\t\t$arrPost = array('name' => $name, 'phone' => $phone);\r\n\t\t\t$room = new Room();\r\n\t\t\tif ($room->save($arrPost)) {\r\n\t\t\t\t$this->response->redirect(\"/users/index\", true);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public function insert($table, array $data);", "public function store(Request $request)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'code' => 'required|unique:locations,code',\n ]);\n\n $geometry = explode(',', rtrim(substr($request->input('geometry'),1),')'));\n // dd(floatval($geometry[0]));\n $location = new Location();\n $location->name = $request->input('name');\n $location->code = $request->input('code');\n $location->place_id = $request->input('place_id');\n $location->lat = floatval($geometry[1]);\n $location->lng = floatval($geometry[0]);\n if($request->input('parent') == NULL){\n $location->parent = 0;\n }else\n {\n $location->parent = $request->input('parent');\n }\n $location->save();\n\n\n return redirect()->route('locations.index')\n ->with('success','Location created successfully');\n }", "public function insert($techHit);", "public function store()\n\t{\n\t\t$validator = Validator::make(Input::all(), Location::$rules);\n \n \t\tif ($validator->passes()) {\n \t\t$location = new Location;\n \t\t\t$location->name = Input::get('name');\n \t\t\t$location->save();\n \n \t\t\treturn Redirect::to('app/locations')->with('message', 'Succesfully added');\n \t\t} \n \t\telse {\n \t\treturn Redirect::to('app/locations/create')->with('message', 'The following errors occurred')->withErrors($validator)->withInput(); \n \t\t}\n\t}", "public function insert($path, $values);", "public function insertRow() {\n global $schema;\n date_default_timezone_set(\"America/New_York\");\n $datetime = date('Y-m-d H:i:s');\n\n $statement = \"INSERT INTO $this->table (shortUrl,\";\n $marks = \"VALUES ('$this->shortUrl',\";\n $id = 0;\n foreach ($schema as $col) {\n $statement .= $col . \",\";\n $marks .=\"'\" . $this->response[$id++]['path'] . \"',\";\n }\n $statement .= 'entered) ';\n $marks .= '\"' . $datetime . '\")';\n $statement .= $marks;\n\n // Prepared statement for inserting row\n $stmt = $this->mysqli->prepare($statement);\n if (!$stmt->execute()) {\n $response = array('success' => FALSE, 'error' => 'Inserting failed!');\n header('Content-Type: application/json');\n echo json_encode($response);\n error_log($this->mysqli->error());\n }\n $stmt->close();\n }", "public function insert($zone, $file, $datasource = null);", "function insert() {\n $centinela = new Centinela();\n $flag = $centinela->accessTo('conf/conf_viazul_routes');\n if ($flag) {\n $result = $this->conn->insert();\n die($result);\n } else {\n $this->redirectError();\n }\n }", "public function insert($gunBbl);", "function test_deport_import_location()\n\t{\n\t\t$r = Item::get_by_slug(LOC_SLUG);\n\t\t// the pre condition ensures this will not be null\n\t\t$this->assertNotEqual($r, null);\n\t\t// delete it from the data base\n\t\t$r->sql_delete();\n\t\t// load it from the database and get NULL to verify its gone\n\t\t$r = Item::get_by_slug(LOC_SLUG);\n\t\t$this->assertEqual($r, null);\n\t\t// // now put it back in database - load from file and then insert\n\t\t$new_r = Item::get_by_trip_slug('rtw', LOC_SLUG);\n\t\t$new_r->sql_insert();\n\t\t// finally test it is in database\n\t\t$r = Item::get_by_slug(LOC_SLUG);\n\t\t$this->assertNotEqual($r, null);\n\t}", "public function getLocationId($location) {\r\n\t\tglobal $xname, $languages;\r\n\t\t$exists\t\t= false;\r\n\t\t\r\n\t\t// Check to see if exists in localidades table\r\n\t\t$localidadesQuery\t= \"SELECT id FROM {$xname}_localidades WHERE nombre = '{$location}'\";\r\n\t\t$localidadesSql\t\t= $this->db->query($localidadesQuery);\r\n\t\t\r\n\t\tif (is_object($localidadesSql) && $localidadesSql!='') {\r\n\t\t\t$localidadesRow\t\t= $localidadesSql->fetch_object();\r\n\t\t\tif (is_object($localidadesRow)) {\r\n\t\t\t\t$currentId \t\t\t= $localidadesRow->id;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Check to see if in new_entries table\r\n\t\t\t$entriesQuery\t= \"SELECT converted_id FROM {$xname}_new_entries WHERE entry = '{$location}'\";\r\n\t\t\t$entriesSql\t\t= $this->db->query($entriesQuery);\r\n\t\t\t\r\n\t\t\tif ($entriesSql) {\r\n\t\t\t\t$entriesRow\t\t= $entriesSql->fetch_object();\t\t\t\r\n\t\t\t\t$currentId \t\t= $entriesRow->converted_id;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// If it already exists in either localidades or new_entries, we return it, otherwise we enter it into both tables\r\n\t\tif (!empty($currentId)) {\r\n\t\t\t// Exists, so return id\r\n\t\t\treturn $currentId;\r\n\t\t} else {\r\n\t\t\t// Add it to table\r\n\t\t\t$insert\t= array();\r\n\t\t\tforeach ($languages as $l) {\r\n\t\t\t\t$insert['nombre'] = $location;\r\n\t\t\t}\r\n\t\t\t$newId = $this->db->insertQuery($insert, $xname . '_localidades');\r\n\t\t\t$this->log->write(Logger::INFO, 'New location: ' . $location);\r\n\t\t\t\r\n\t\t\t// Now add to new_entries table\r\n\t\t\t$insert\t\t\t\t\t= array();\r\n\t\t\t$insert['tabla']\t\t= $xname.'_localidades';\r\n\t\t\t$insert['entry']\t\t= $location;\r\n\t\t\t$insert['new_id']\t\t= $newId;\r\n\t\t\t$this->db->insertQuery($insert, $xname.'_new_entries');\r\n\t\t\treturn $insert['new_id'];\r\n\t\t}\r\n\t\t \r\n\t }", "public function run()\n {\n\n \\DB::table('locations')->delete();\n\n \\DB::table('locations')->insert(array (\n 0 =>\n array (\n 'id' => 104,\n 'name' => 'CVS Pharmacy 6946',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '4548 E. MAIN ST.|Whitehall, OH 43213',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.9555',\n 'longitude' => '-82.87762',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:42:32',\n 'location_type_id' => NULL,\n ),\n 1 =>\n array (\n 'id' => 131,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '2290 STRINGTOWN RD GROVE CITY, OH 43123',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43123',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.879444',\n 'longitude' => '-83.06496',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:42:39',\n 'location_type_id' => NULL,\n ),\n 2 =>\n array (\n 'id' => 189,\n 'name' => 'Equitas Health Pharmacy',\n 'bookinglink' => 'http://equitashealth.com/covidvaccine',\n 'phone' => '(614) 300-2334',\n 'address' => '736 E. Long Street Columbus, OH 43203',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43203',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.967213',\n 'longitude' => '-82.981544',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:43:02',\n 'location_type_id' => NULL,\n ),\n 3 =>\n array (\n 'id' => 305,\n 'name' => 'Giant Eagle Pharmacy #6501',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 939-5280',\n 'address' => '1250 N. Hamilton Rd Columbus, OH 43230',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43230',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.05199',\n 'longitude' => '-82.86392',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:43:15',\n 'location_type_id' => NULL,\n ),\n 4 =>\n array (\n 'id' => 307,\n 'name' => 'Giant Eagle Pharmacy #6504',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 923-0481',\n 'address' => '4747 Sawmill Rd|Columbus, OH 43220',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43220',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.063686',\n 'longitude' => '-83.09332',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:43:15',\n 'location_type_id' => NULL,\n ),\n 5 =>\n array (\n 'id' => 326,\n 'name' => 'Giant Eagle Pharmacy #6539',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 294-2344',\n 'address' => '840 W. 3rd Avenue Columbus, OH 43212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.984386',\n 'longitude' => '-83.02801',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:44:52',\n 'location_type_id' => NULL,\n ),\n 6 =>\n array (\n 'id' => 395,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(614) 211-5320',\n 'address' => '1365 Stoneridge Dr|Gahanna, OH 43230',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43230',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.054077',\n 'longitude' => '-82.86703',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:04',\n 'location_type_id' => NULL,\n ),\n 7 =>\n array (\n 'id' => 396,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1375 Chambers Road|Columbus, OH 43212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.993813',\n 'longitude' => '-83.04405',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:10',\n 'location_type_id' => NULL,\n ),\n 8 =>\n array (\n 'id' => 432,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2161 Eakin Road|Columbus, OH 43223',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43223',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.93302',\n 'longitude' => '-83.05418',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:46:04',\n 'location_type_id' => NULL,\n ),\n 9 =>\n array (\n 'id' => 439,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2525 Hilliard-Rome Road|Hilliard, OH 43026',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43026',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.001957',\n 'longitude' => '-83.15364',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:46:15',\n 'location_type_id' => NULL,\n ),\n 10 =>\n array (\n 'id' => 477,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4485 Refugee Road|Columbus, OH 43232',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43232',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.915325',\n 'longitude' => '-82.876854',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:47:27',\n 'location_type_id' => NULL,\n ),\n 11 =>\n array (\n 'id' => 486,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4656 Cemetery Road|Hilliard, OH 43026',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43026',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.031704',\n 'longitude' => '-83.14047',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:47:33',\n 'location_type_id' => NULL,\n ),\n 12 =>\n array (\n 'id' => 507,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5991 S Sunbury Rd #A Westerville, OH 43081',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43081',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.083385',\n 'longitude' => '-82.895645',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:03',\n 'location_type_id' => NULL,\n ),\n 13 =>\n array (\n 'id' => 531,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7625 Sawmill Road|Dublin, OH 43016',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43016',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.120846',\n 'longitude' => '-83.09027',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:42',\n 'location_type_id' => NULL,\n ),\n 14 =>\n array (\n 'id' => 546,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '8460 E MAIN ST|Reynoldsburg, OH 43068',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43068',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.955902',\n 'longitude' => '-82.777565',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:52',\n 'location_type_id' => NULL,\n ),\n 15 =>\n array (\n 'id' => 573,\n 'name' => 'Lower Lights Christian Health Center',\n 'bookinglink' => 'http://llchc.org/covid19vac/',\n 'phone' => '(614) 274-1455',\n 'address' => '1160 W. Broad St. Columbus, OH 43222',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43222',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.958447',\n 'longitude' => '-83.031715',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:49:14',\n 'location_type_id' => NULL,\n ),\n 16 =>\n array (\n 'id' => 926,\n 'name' => 'The Health Center at Faith Mission',\n 'bookinglink' => 'http://lssnetworkofhope.org/faithmission/services/health-c..',\n 'phone' => '(614) 224-6617',\n 'address' => '245 N Grant Avenue Columbus, OH 43215',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43215',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.96848',\n 'longitude' => '-82.99206',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:49',\n 'location_type_id' => NULL,\n ),\n 17 =>\n array (\n 'id' => 967,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 351-0266',\n 'address' => '1162 HARRISBURG PIKE|COLUMBUS, OH 43223-2847',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43223-2847',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.93232',\n 'longitude' => '-83.04797',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:49',\n 'location_type_id' => NULL,\n ),\n 18 =>\n array (\n 'id' => 62,\n 'name' => 'City of Shelby Health Department',\n 'bookinglink' => 'http://shelbycityhealth.org/',\n 'phone' => '(419) 342-5226',\n 'address' => '43 West Main Street Shelby, OH 44875',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44875',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.881344',\n 'longitude' => '-82.661224',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:19:19',\n 'location_type_id' => NULL,\n ),\n 19 =>\n array (\n 'id' => 103,\n 'name' => 'CVS Pharmacy 6186',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '2565 EAST MAIN ST.|Springfield, OH 45503',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45503',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.923347',\n 'longitude' => '-83.77038',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:19:58',\n 'location_type_id' => NULL,\n ),\n 20 =>\n array (\n 'id' => 368,\n 'name' => 'Knox Community Hospital',\n 'bookinglink' => 'http://kch.org',\n 'phone' => '(740) 399-3840',\n 'address' => '1330 Coshocton Road Mount Vernon, OH 43050',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43050',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Knox',\n 'latitude' => '40.402607',\n 'longitude' => '-82.44386',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:03:42',\n 'location_type_id' => NULL,\n ),\n 21 =>\n array (\n 'id' => 309,\n 'name' => 'Giant Eagle Pharmacy #6508',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 443-5232',\n 'address' => '280 East Whittier Street Columbus, OH 43206',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43206',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.94451',\n 'longitude' => '-82.989174',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:21:00',\n 'location_type_id' => NULL,\n ),\n 22 =>\n array (\n 'id' => 457,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3417 North High Street Columbus, OH 43214',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43214',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.031994',\n 'longitude' => '-83.015976',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:21:48',\n 'location_type_id' => NULL,\n ),\n 23 =>\n array (\n 'id' => 1094,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 522-6523',\n 'address' => '764 HEBRON RD|HEATH, OH 43056-1354',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43056-1354',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.03125',\n 'longitude' => '-82.438156',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:05:31',\n 'location_type_id' => NULL,\n ),\n 24 =>\n array (\n 'id' => 185,\n 'name' => 'East Dayton Health Center',\n 'bookinglink' => 'http://www.communityhealthdayton.org',\n 'phone' => '(937) 528-6850',\n 'address' => '2132 East Third Street Dayton, OH 45403',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45403',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.764114',\n 'longitude' => '-84.163536',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:24:43',\n 'location_type_id' => NULL,\n ),\n 25 =>\n array (\n 'id' => 250,\n 'name' => 'Giant Eagle Pharmacy #1475',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 385-2327',\n 'address' => '15937 State Route 170 East Liverpool, OH 43920',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43920',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.6701',\n 'longitude' => '-80.58535',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:22',\n 'location_type_id' => NULL,\n ),\n 26 =>\n array (\n 'id' => 259,\n 'name' => 'Giant Eagle Pharmacy #4016',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 874-3723',\n 'address' => '11031 State Route 212, N.E.|Bolivar, OH 44612',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44612',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.64029',\n 'longitude' => '-81.44353',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:37',\n 'location_type_id' => NULL,\n ),\n 27 =>\n array (\n 'id' => 340,\n 'name' => 'HealthSource Wilmington',\n 'bookinglink' => 'http://www.healthsourceofohio.org',\n 'phone' => '(937) 444-8009',\n 'address' => '140 West Main Street Wilmington, OH 45177',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45177',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clinton',\n 'latitude' => '39.445496',\n 'longitude' => '-83.830986',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:26:52',\n 'location_type_id' => NULL,\n ),\n 28 =>\n array (\n 'id' => 635,\n 'name' => 'Mercy Health St Anne Hospital Med Management',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(419) 407-2567',\n 'address' => '3404 West Sylvania Ave Toledo, OH 43623',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43623',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.691742',\n 'longitude' => '-83.625084',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:04',\n 'location_type_id' => NULL,\n ),\n 29 =>\n array (\n 'id' => 735,\n 'name' => 'Rite Aid Store 01186',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 323-5536',\n 'address' => '1805 SOUTH LIMESTONE STREET SPRINGFIELD, OH 45505',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45505',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.90358',\n 'longitude' => '-83.81066',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:30:21',\n 'location_type_id' => NULL,\n ),\n 30 =>\n array (\n 'id' => 785,\n 'name' => 'Rite Aid Store 02404',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 823-0850',\n 'address' => '1895 WEST STATE STREET ALLIANCE, OH 44601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.901882',\n 'longitude' => '-81.13445',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:30:54',\n 'location_type_id' => NULL,\n ),\n 31 =>\n array (\n 'id' => 835,\n 'name' => 'Rite Aid Store 03169',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 949-6239',\n 'address' => '4106 EAST LAKE ROAD SHEFFIELD LAKE, OH 44054',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44054',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.489586',\n 'longitude' => '-82.11287',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:21',\n 'location_type_id' => NULL,\n ),\n 32 =>\n array (\n 'id' => 839,\n 'name' => 'Rite Aid Store 03185',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 695-8055',\n 'address' => '940 ELIDA AVENUE|DELPHOS, OH 45833',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45833',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.84313',\n 'longitude' => '-84.32896',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:23',\n 'location_type_id' => NULL,\n ),\n 33 =>\n array (\n 'id' => 840,\n 'name' => 'Rite Aid Store 03192',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 492-6203',\n 'address' => '2574 EASTON STREET NE CANTON, OH 44721',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44721',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.87384',\n 'longitude' => '-81.33377',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:25',\n 'location_type_id' => NULL,\n ),\n 34 =>\n array (\n 'id' => 849,\n 'name' => 'Rite Aid Store 03700',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 456-4791',\n 'address' => '114 12TH STREET NE CANTON, OH 44704',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44704',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.809128',\n 'longitude' => '-81.371574',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:57',\n 'location_type_id' => NULL,\n ),\n 35 =>\n array (\n 'id' => 859,\n 'name' => 'Rite Aid Store 04683',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 244-1950',\n 'address' => '2709 BROADWAY AVENUE|LORAIN, OH 44052',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44052',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.445946',\n 'longitude' => '-82.165115',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:39',\n 'location_type_id' => NULL,\n ),\n 36 =>\n array (\n 'id' => 866,\n 'name' => 'Rite Aid Store 04814',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 683-8711',\n 'address' => '222 SOUTH MAIN STREET ORRVILLE, OH 44667',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44667',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.839092',\n 'longitude' => '-81.764275',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:16',\n 'location_type_id' => NULL,\n ),\n 37 =>\n array (\n 'id' => 876,\n 'name' => 'Rite Aid Store 06683',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 472-8027',\n 'address' => '3911 SECOR ROAD|TOLEDO, OH 43623',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43623',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.69065',\n 'longitude' => '-83.6232',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:36',\n 'location_type_id' => NULL,\n ),\n 38 =>\n array (\n 'id' => 896,\n 'name' => 'Shrivers Pharmacy #8',\n 'bookinglink' => 'http://www.shriverspharmacy.com',\n 'phone' => '(740) 216-4496',\n 'address' => '21 Hocking Mall|Logan, OH 43138',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43138',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hocking',\n 'latitude' => '39.54454',\n 'longitude' => '-82.43126',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:18',\n 'location_type_id' => NULL,\n ),\n 39 =>\n array (\n 'id' => 902,\n 'name' => 'Shrivers Pharmacy Zanesville',\n 'bookinglink' => 'http://www.shriverspharmacy.com',\n 'phone' => '(740) 452-3691',\n 'address' => '406 Brighton Blvd|Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.934387',\n 'longitude' => '-82.02218',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:27',\n 'location_type_id' => NULL,\n ),\n 40 =>\n array (\n 'id' => 909,\n 'name' => 'South Point Family Medical Center',\n 'bookinglink' => 'http://familymedicalcenters.org',\n 'phone' => '(740) 377-2712',\n 'address' => '55 Township Road 508 E South Point, OH 45680',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45680',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.415436',\n 'longitude' => '-82.50999',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:34',\n 'location_type_id' => NULL,\n ),\n 41 =>\n array (\n 'id' => 919,\n 'name' => 'Summa Health Akron Campus',\n 'bookinglink' => 'http://www.summahealth.org/vaccine',\n 'phone' => '(234) 867-7110',\n 'address' => '141 North Forge Street Akron, OH 44304',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44304',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.082012',\n 'longitude' => '-81.50208',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:54',\n 'location_type_id' => NULL,\n ),\n 42 =>\n array (\n 'id' => 32,\n 'name' => 'Brewster s Hometown Pharmacy',\n 'bookinglink' => 'http://www.brewstershometownpharmacy.com',\n 'phone' => '(740) 648-3020',\n 'address' => '2308 Sunfish Creek Road Piketon, OH 45661',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45661',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pike',\n 'latitude' => '39.016552',\n 'longitude' => '-83.128456',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:48',\n 'location_type_id' => NULL,\n ),\n 43 =>\n array (\n 'id' => 39,\n 'name' => 'Butler County General Health District',\n 'bookinglink' => 'http://health.bcohio.us/',\n 'phone' => '(513) 863-1770',\n 'address' => '301 S Third Street Hamilton, OH 45011',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45011',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.40262',\n 'longitude' => '-84.55872',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:19',\n 'location_type_id' => NULL,\n ),\n 44 =>\n array (\n 'id' => 51,\n 'name' => 'Champion Discount Pharmacy',\n 'bookinglink' => 'http://championdiscountpharmacy.com',\n 'phone' => '(234) 806-3137',\n 'address' => '4299 Mahoning Ave NW Warren, OH 44483',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44483',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.27788',\n 'longitude' => '-80.84259',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:10:21',\n 'location_type_id' => NULL,\n ),\n 45 =>\n array (\n 'id' => 60,\n 'name' => 'City of Cincinnati Health Department',\n 'bookinglink' => 'http://www.cincinnati-oh.gov/health/covid-19/vaccine-infor..',\n 'phone' => '(513) 357-7462',\n 'address' => '3101 Burnet Ave|Cincinnati, OH 45229',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45229',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.13523',\n 'longitude' => '-84.50102',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:11:22',\n 'location_type_id' => NULL,\n ),\n 46 =>\n array (\n 'id' => 73,\n 'name' => 'Community First Pharmacy at Lifespan',\n 'bookinglink' => 'http://www.community-first.org/pharmacy',\n 'phone' => '(513) 795-2835',\n 'address' => '1900 Fairgrove Ave|Hamilton, OH 45011',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45011',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.402874',\n 'longitude' => '-84.53558',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:52',\n 'location_type_id' => NULL,\n ),\n 47 =>\n array (\n 'id' => 81,\n 'name' => 'Crawford County Public Health',\n 'bookinglink' => 'http://www.crawfordhealth.org',\n 'phone' => '(419) 562-5871',\n 'address' => '1520 Isaac Beal Rd. Bucyrus, OH 44820',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44820',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.793327',\n 'longitude' => '-82.96899',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:19',\n 'location_type_id' => NULL,\n ),\n 48 =>\n array (\n 'id' => 89,\n 'name' => 'CVS Pharmacy 3476',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(937) 667-8428',\n 'address' => '914 W Main St|Tipp City, OH 45371',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45371',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Miami',\n 'latitude' => '39.96088',\n 'longitude' => '-84.184395',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:14:29',\n 'location_type_id' => NULL,\n ),\n 49 =>\n array (\n 'id' => 96,\n 'name' => 'CVS Pharmacy 6136',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '150 SOUTH MAIN STREET|Franklin, OH 45005',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45005',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.562634',\n 'longitude' => '-84.30219',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:15:21',\n 'location_type_id' => NULL,\n ),\n 50 =>\n array (\n 'id' => 110,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1695 N MAIN ST|NORTH CANTON, OH 44720',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.89596',\n 'longitude' => '-81.40632',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:10',\n 'location_type_id' => NULL,\n ),\n 51 =>\n array (\n 'id' => 924,\n 'name' => 'The Christ Hospital Joint and Spine Center',\n 'bookinglink' => 'http://www.thechristhospital.com/patient-resources/covid-..',\n 'phone' => '(513) 585-3881',\n 'address' => '2139 Auburn Ave|Cincinnati, OH 45219',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45219',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.121143',\n 'longitude' => '-84.508514',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:20',\n 'location_type_id' => NULL,\n ),\n 52 =>\n array (\n 'id' => 930,\n 'name' => 'Toledo Lucas County Health Department',\n 'bookinglink' => 'http://lucascountyhealth.com',\n 'phone' => '(419) 213-4100',\n 'address' => '635 N. Erie Street Toledo, OH 43604',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43604',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.65736',\n 'longitude' => '-83.53358',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:30',\n 'location_type_id' => NULL,\n ),\n 53 =>\n array (\n 'id' => 938,\n 'name' => 'Trumbull Regional Medical Center',\n 'bookinglink' => 'http://www.trumbullregional.org/',\n 'phone' => '(330) 841-9999',\n 'address' => '1350 East Market Street Warren, OH 44482',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44482',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.236454',\n 'longitude' => '-80.7989',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:38',\n 'location_type_id' => NULL,\n ),\n 54 =>\n array (\n 'id' => 946,\n 'name' => 'University Hospitals Management Services Center',\n 'bookinglink' => 'http://Uhhospitals.org/vaccine http://uhhospitals.org/vaccine',\n 'phone' => '(216) 844-3339',\n 'address' => '3605 Warrensville Center Rd Shaker Heights, OH 44122',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44122',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46403',\n 'longitude' => '-81.53617',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:18',\n 'location_type_id' => NULL,\n ),\n 55 =>\n array (\n 'id' => 959,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1013 N MAIN ST|BOWLING GREEN, OH 43402-1302',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43402-1302',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.386654',\n 'longitude' => '-83.65049',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:50',\n 'location_type_id' => NULL,\n ),\n 56 =>\n array (\n 'id' => 969,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 456-2694',\n 'address' => '1213 N BARRON ST EATON, OH 45320-1013',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45320-1013',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Preble',\n 'latitude' => '39.758293',\n 'longitude' => '-84.636505',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:57',\n 'location_type_id' => NULL,\n ),\n 57 =>\n array (\n 'id' => 989,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '16100 LAKESHORE BLVD|CLEVELAND, OH 44110',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44110',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.579575',\n 'longitude' => '-81.56872',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:35',\n 'location_type_id' => NULL,\n ),\n 58 =>\n array (\n 'id' => 999,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1910 S REYNOLDS RD TOLEDO, OH 43614-1438',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43614-1438',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.60536',\n 'longitude' => '-83.66479',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:40',\n 'location_type_id' => NULL,\n ),\n 59 =>\n array (\n 'id' => 1006,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(216) 751-4521',\n 'address' => '20200 VAN AKEN BLVD|SHAKER HEIGHTS, OH 44122-3623',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44122-3623',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46559',\n 'longitude' => '-81.537994',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:46',\n 'location_type_id' => NULL,\n ),\n 60 =>\n array (\n 'id' => 1023,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 244-0593',\n 'address' => '2730 Broadway|Lorain, OH 44052-4836',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44052-4836',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.44577',\n 'longitude' => '-82.1651',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:18',\n 'location_type_id' => NULL,\n ),\n 61 =>\n array (\n 'id' => 1038,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 372-4622',\n 'address' => '3390 ELM RD NE WARREN, OH 44483-2614',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44483-2614',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.26604',\n 'longitude' => '-80.78271',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:37',\n 'location_type_id' => NULL,\n ),\n 62 =>\n array (\n 'id' => 1048,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 270-5861',\n 'address' => '40 N MERIDIAN RD YOUNGSTOWN, OH 44509-2034',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44509-2034',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.103836',\n 'longitude' => '-80.7111',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:42',\n 'location_type_id' => NULL,\n ),\n 63 =>\n array (\n 'id' => 1075,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 433-1604',\n 'address' => '5901 SPRINGBORO PIKE|DAYTON, OH 45449-3249',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45449-3249',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.67009',\n 'longitude' => '-84.22218',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:08',\n 'location_type_id' => NULL,\n ),\n 64 =>\n array (\n 'id' => 1087,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(216) 525-0732',\n 'address' => '6900 ROCKSIDE RD|INDEPENDENCE, OH 44131-2324',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44131-2324',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.39452',\n 'longitude' => '-81.6436',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:14',\n 'location_type_id' => NULL,\n ),\n 65 =>\n array (\n 'id' => 1095,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 845-4903',\n 'address' => '7888 YORK RD|PARMA, OH 44130-7314',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44130-7314',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.35183',\n 'longitude' => '-81.75974',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:21',\n 'location_type_id' => NULL,\n ),\n 66 =>\n array (\n 'id' => 1102,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 779-2905',\n 'address' => '850 N BRIDGE ST CHILLICOTHE, OH 45601-1702',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45601-1702',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ross',\n 'latitude' => '39.346474',\n 'longitude' => '-82.97651',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:44',\n 'location_type_id' => NULL,\n ),\n 67 =>\n array (\n 'id' => 1110,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 681-9579',\n 'address' => '911 N MEMORIAL DR LANCASTER, OH 43130-1745',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130-1745',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.7242',\n 'longitude' => '-82.60829',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:56',\n 'location_type_id' => NULL,\n ),\n 68 =>\n array (\n 'id' => 1120,\n 'name' => 'Wayne County Health Department',\n 'bookinglink' => 'http://www.wayne-health.org/coronavirus',\n 'phone' => '(330) 264-9590',\n 'address' => '203 S. Walnut Street Wooster, OH 44691',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44691',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.796684',\n 'longitude' => '-81.941154',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:13',\n 'location_type_id' => NULL,\n ),\n 69 =>\n array (\n 'id' => 1131,\n 'name' => 'Wyandot County Public Health',\n 'bookinglink' => 'http://www.wyandotgetvaccinated.com',\n 'phone' => '(419) 294-3852',\n 'address' => '127 S. Sandusky Ave. Upper Sandusky, OH 43351',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43351',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wyandot',\n 'latitude' => '40.82597',\n 'longitude' => '-83.28137',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:54',\n 'location_type_id' => NULL,\n ),\n 70 =>\n array (\n 'id' => 118,\n 'name' => 'Discount Drug Mart Inc',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '12575 Chillicothe Rd|Chesterland, OH 44026',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44026',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.526085',\n 'longitude' => '-81.337906',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:44',\n 'location_type_id' => NULL,\n ),\n 71 =>\n array (\n 'id' => 126,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1763 E MAIN ST KENT, OH 44240',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44240',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.15424',\n 'longitude' => '-81.334946',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:33',\n 'location_type_id' => NULL,\n ),\n 72 =>\n array (\n 'id' => 135,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '2710 EASTON ST NE, STE A CANTON, OH 44721',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44721',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.873737',\n 'longitude' => '-81.331436',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:25',\n 'location_type_id' => NULL,\n ),\n 73 =>\n array (\n 'id' => 143,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '33552 DETROIT RD|AVON, OH 44011',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44011',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.453266',\n 'longitude' => '-81.987495',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:10',\n 'location_type_id' => NULL,\n ),\n 74 =>\n array (\n 'id' => 151,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '4208 LIBERTY AVE|VERMILION, OH 44089',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44089',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.424953',\n 'longitude' => '-82.332344',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:21:03',\n 'location_type_id' => NULL,\n ),\n 75 =>\n array (\n 'id' => 159,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '5500 WALLINGS RD|NORTH ROYALTON, OH 44133',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44133',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.330547',\n 'longitude' => '-81.7255',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:00',\n 'location_type_id' => NULL,\n ),\n 76 =>\n array (\n 'id' => 165,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '6160 BRECKSVILLE RD|INDEPENDENCE, OH 44131',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44131',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.396057',\n 'longitude' => '-81.639984',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:34',\n 'location_type_id' => NULL,\n ),\n 77 =>\n array (\n 'id' => 173,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '739 CARTER DR|GALION, OH 44833',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44833',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.740654',\n 'longitude' => '-82.801735',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:10',\n 'location_type_id' => NULL,\n ),\n 78 =>\n array (\n 'id' => 179,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '8191 COLUMBIA RD OLMSTED FALLS, OH 44138',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44138',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.372955',\n 'longitude' => '-81.90177',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:33',\n 'location_type_id' => NULL,\n ),\n 79 =>\n array (\n 'id' => 190,\n 'name' => 'Erie County Health Department',\n 'bookinglink' => 'http://www.eriecohealthohio.org',\n 'phone' => '(419) 626-5623',\n 'address' => '420 Superior Street|Sandusky, OH 44870',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44870',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Erie',\n 'latitude' => '41.448334',\n 'longitude' => '-82.74391',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:24:39',\n 'location_type_id' => NULL,\n ),\n 80 =>\n array (\n 'id' => 197,\n 'name' => 'Fayette County Public Health',\n 'bookinglink' => 'http://faycohd.org/c19vaccination/',\n 'phone' => '(740) 335-5910',\n 'address' => '317 S Fayette St Washington CH, OH 43160',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43160',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fayette',\n 'latitude' => '39.534695',\n 'longitude' => '-83.43663',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:16',\n 'location_type_id' => NULL,\n ),\n 81 =>\n array (\n 'id' => 208,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 533-9215',\n 'address' => '1848 STATE ROUTE 141|IRONTON, OH 45638',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45638',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.52721',\n 'longitude' => '-82.66267',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:16',\n 'location_type_id' => NULL,\n ),\n 82 =>\n array (\n 'id' => 215,\n 'name' => 'Fulton County Health Center',\n 'bookinglink' => 'http://www.fultoncountyhealthcenter.org/',\n 'phone' => '(419) 335-2015',\n 'address' => '725 South Shoop Avenue Wauseon, OH 43567',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43567',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fulton',\n 'latitude' => '41.540054',\n 'longitude' => '-84.13428',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:52',\n 'location_type_id' => NULL,\n ),\n 83 =>\n array (\n 'id' => 223,\n 'name' => 'Giant Eagle Pharmacy',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 634-0688',\n 'address' => '205 West Ave.|Tallmadge, OH 44278',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44278',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.101562',\n 'longitude' => '-81.44939',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:43',\n 'location_type_id' => NULL,\n ),\n 84 =>\n array (\n 'id' => 230,\n 'name' => 'Giant Eagle Pharmacy #0216',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 944-6963',\n 'address' => '30320 Lake Shore Blvd. Willowick, OH 44095',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44095',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.63764',\n 'longitude' => '-81.47598',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:30',\n 'location_type_id' => NULL,\n ),\n 85 =>\n array (\n 'id' => 238,\n 'name' => 'Giant Eagle Pharmacy #0440',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 297-2001',\n 'address' => '4401 Mayfield Rd. South Euclid, OH 44121',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44121',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.52024',\n 'longitude' => '-81.52102',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:05',\n 'location_type_id' => NULL,\n ),\n 86 =>\n array (\n 'id' => 246,\n 'name' => 'Giant Eagle Pharmacy #1417',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 466-3005',\n 'address' => '755 S. Broadway Avenue Geneva, OH 44041',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44041',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.794506',\n 'longitude' => '-80.94732',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:40',\n 'location_type_id' => NULL,\n ),\n 87 =>\n array (\n 'id' => 254,\n 'name' => 'Giant Eagle Pharmacy #1618',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 877-0221',\n 'address' => '907 West Maple Street Hartville, OH 44632',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44632',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.968006',\n 'longitude' => '-81.346985',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:30',\n 'location_type_id' => NULL,\n ),\n 88 =>\n array (\n 'id' => 255,\n 'name' => 'Giant Eagle Pharmacy #1620',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 896-9787',\n 'address' => '1700 Corporate Woods Parkway Uniontown, OH 44685',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44685',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '40.962013',\n 'longitude' => '-81.46777',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:30',\n 'location_type_id' => NULL,\n ),\n 89 =>\n array (\n 'id' => 265,\n 'name' => 'Giant Eagle Pharmacy #4034',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 452-5905',\n 'address' => '608 Raff Road, SW Canton, OH 44710',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44710',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.797318',\n 'longitude' => '-81.41694',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:31:30',\n 'location_type_id' => NULL,\n ),\n 90 =>\n array (\n 'id' => 274,\n 'name' => 'Giant Eagle Pharmacy #4088',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 526-1584',\n 'address' => '4343 Royalton Rd|Broadview Heights, OH 44147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.313896',\n 'longitude' => '-81.65907',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:29',\n 'location_type_id' => NULL,\n ),\n 91 =>\n array (\n 'id' => 283,\n 'name' => 'Giant Eagle Pharmacy #4387',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 493-9404',\n 'address' => '3100 Cromer Ave NW Canton, OH 44709',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44709',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.833603',\n 'longitude' => '-81.38279',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:26',\n 'location_type_id' => NULL,\n ),\n 92 =>\n array (\n 'id' => 290,\n 'name' => 'Giant Eagle Pharmacy #5839',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 721-8028',\n 'address' => '870 N Court Street Medina, OH 44256',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.15054',\n 'longitude' => '-81.86334',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:34:20',\n 'location_type_id' => NULL,\n ),\n 93 =>\n array (\n 'id' => 306,\n 'name' => 'Giant Eagle Pharmacy #6503',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(740) 657-1344',\n 'address' => '55 Meadow Park Avenue Lewis Center, OH 43035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.16184',\n 'longitude' => '-83.015816',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:36:02',\n 'location_type_id' => NULL,\n ),\n 94 =>\n array (\n 'id' => 329,\n 'name' => 'Hamilton City Main Firehouse',\n 'bookinglink' => 'http://www.hamilton-ohio.gov',\n 'phone' => '(513) 785-7080',\n 'address' => '77 Pershing Ave|Hamilton, OH 45011',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45011',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.39394',\n 'longitude' => '-84.56705',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:12',\n 'location_type_id' => NULL,\n ),\n 95 =>\n array (\n 'id' => 158,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '5298 DETROIT RD|SHEFFIELD VILLAGE, OH 44035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.4234044',\n 'longitude' => '-82.0777383',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:54',\n 'location_type_id' => NULL,\n ),\n 96 =>\n array (\n 'id' => 346,\n 'name' => 'Holmes County General Health District',\n 'bookinglink' => 'http://holmeshealth.org/',\n 'phone' => '(330) 674-5035',\n 'address' => '85 North Grant Street Suite B Millersburg, OH 44654',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44654',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Holmes',\n 'latitude' => '40.555317',\n 'longitude' => '-81.920746',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:21',\n 'location_type_id' => NULL,\n ),\n 97 =>\n array (\n 'id' => 355,\n 'name' => 'Hopewell Health Centers New Lexington',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 342-4192',\n 'address' => '2541 Panther Drive|New Lexington, OH 43764',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43764',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Perry',\n 'latitude' => '39.726322',\n 'longitude' => '-82.20609',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:48',\n 'location_type_id' => NULL,\n ),\n 98 =>\n array (\n 'id' => 363,\n 'name' => 'Joint Township District Memorial Hospital',\n 'bookinglink' => 'http://www.grandlakehealth.org/',\n 'phone' => '(419) 300-1132',\n 'address' => '200 Saint Clair Ave St. Marys, OH 45885',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45885',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Auglaize',\n 'latitude' => '40.543568',\n 'longitude' => '-84.37012',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:06',\n 'location_type_id' => NULL,\n ),\n 99 =>\n array (\n 'id' => 373,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '101 6th Street|Findlay, OH 45840',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45840',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.022346',\n 'longitude' => '-83.649956',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:36',\n 'location_type_id' => NULL,\n ),\n 100 =>\n array (\n 'id' => 381,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1095 S Main St Centerville, OH 45458',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45458',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.612484',\n 'longitude' => '-84.16031',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:40:26',\n 'location_type_id' => NULL,\n ),\n 101 =>\n array (\n 'id' => 399,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1428 Marion Waldo|Marion, OH 43302',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43302',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Marion',\n 'latitude' => '40.561638',\n 'longitude' => '-83.11897',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:03',\n 'location_type_id' => NULL,\n ),\n 102 =>\n array (\n 'id' => 410,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1621 N Memorial Dr Lancaster, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.73125',\n 'longitude' => '-82.61466',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:44',\n 'location_type_id' => NULL,\n ),\n 103 =>\n array (\n 'id' => 422,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1996 E. Tiffin Ave Findlay, OH 45840',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45840',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.054047',\n 'longitude' => '-83.60642',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:43:53',\n 'location_type_id' => NULL,\n ),\n 104 =>\n array (\n 'id' => 430,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2120 Beechmont Ave|Cincinnati, OH 45230',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45230',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.09286',\n 'longitude' => '-84.38699',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:44:42',\n 'location_type_id' => NULL,\n ),\n 105 =>\n array (\n 'id' => 442,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '264 S Hollywood Blvd Steubenville, OH 43952',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43952',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.372356',\n 'longitude' => '-80.642914',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:29',\n 'location_type_id' => NULL,\n ),\n 106 =>\n array (\n 'id' => 454,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3165 Dayton Xenia Rd Beavercreek, OH 45434',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45434',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.726627',\n 'longitude' => '-84.05333',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:25',\n 'location_type_id' => NULL,\n ),\n 107 =>\n array (\n 'id' => 469,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3760 Paxton Ave|Cincinnati, OH 45209',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45209',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.146206',\n 'longitude' => '-84.42971',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:14',\n 'location_type_id' => NULL,\n ),\n 108 =>\n array (\n 'id' => 480,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4506 Brandt Pike|Dayton, OH 45424',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45424',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.817177',\n 'longitude' => '-84.129364',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:57',\n 'location_type_id' => NULL,\n ),\n 109 =>\n array (\n 'id' => 489,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4925 Jackman|Toledo, OH 43613',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43613',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.705788',\n 'longitude' => '-83.58543',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:11',\n 'location_type_id' => NULL,\n ),\n 110 =>\n array (\n 'id' => 505,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5910 Harrison Ave|Cincinnati, OH 45248',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45248',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.17439',\n 'longitude' => '-84.64198',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:40',\n 'location_type_id' => NULL,\n ),\n 111 =>\n array (\n 'id' => 522,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7059 Orchard Centre Dr Holland, OH 43528',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43528',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.609512',\n 'longitude' => '-83.710495',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:12',\n 'location_type_id' => NULL,\n ),\n 112 =>\n array (\n 'id' => 526,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7300 Yankee Rd|Middletown, OH 45044',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45044',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.375443',\n 'longitude' => '-84.37619',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:35',\n 'location_type_id' => NULL,\n ),\n 113 =>\n array (\n 'id' => 535,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7855 Tylersville rd|West Chester, OH 45069',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45069',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.352547',\n 'longitude' => '-84.36014',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:30',\n 'location_type_id' => NULL,\n ),\n 114 =>\n array (\n 'id' => 545,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '8421 Winton Rd|Cincinnati, OH 45231',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45231',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.22037',\n 'longitude' => '-84.51786',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:16',\n 'location_type_id' => NULL,\n ),\n 115 =>\n array (\n 'id' => 555,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '919 E State St Athens, OH 45701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.336975',\n 'longitude' => '-82.06994',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:44',\n 'location_type_id' => NULL,\n ),\n 116 =>\n array (\n 'id' => 566,\n 'name' => 'Lima Memorial Hospital - Main Campus',\n 'bookinglink' => 'http://www.limamemorial.org/vaccine',\n 'phone' => '(419) 998-4491',\n 'address' => '1001 Bellefontaine Avenue|Lima, OH 45804',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45804',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.736187',\n 'longitude' => '-84.08863',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:52:40',\n 'location_type_id' => NULL,\n ),\n 117 =>\n array (\n 'id' => 576,\n 'name' => 'Mahoning County Public Health',\n 'bookinglink' => 'http://www.mahoninghealth.org',\n 'phone' => '(330) 270-2855',\n 'address' => '50 Westchester Drive|Youngstown, OH 44515',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44515',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.098045',\n 'longitude' => '-80.748566',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:27',\n 'location_type_id' => NULL,\n ),\n 118 =>\n array (\n 'id' => 585,\n 'name' => 'Marcs Pharmacy Alliance',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 829-2110',\n 'address' => '2444 W State Street Alliance, OH 44601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.901978',\n 'longitude' => '-81.15209',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:54:22',\n 'location_type_id' => NULL,\n ),\n 119 =>\n array (\n 'id' => 339,\n 'name' => 'HealthSource of Ohio Mt. Orab Pharmacy',\n 'bookinglink' => 'http://www.healthsourceofohio.org/',\n 'phone' => '(937) 444-8009',\n 'address' => '150 Healthpartners Circle Mt. Orab, OH 45154',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45154',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Brown',\n 'latitude' => '39.0450901',\n 'longitude' => '-83.9414783',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:18',\n 'location_type_id' => NULL,\n ),\n 120 =>\n array (\n 'id' => 353,\n 'name' => 'Hopewell Health Centers McArthur',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 596-5249',\n 'address' => '31891 State Route 93 North|McArthur, OH 45651',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45651',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Vinton',\n 'latitude' => '39.2620262',\n 'longitude' => '-82.4773442',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:20',\n 'location_type_id' => NULL,\n ),\n 121 =>\n array (\n 'id' => 413,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1700 W Park Square Xenia, OH 45385',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45385',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.6895898',\n 'longitude' => '-83.9583846',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:21',\n 'location_type_id' => NULL,\n ),\n 122 =>\n array (\n 'id' => 497,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5400 Cornerstone North Blvd Kettering, OH 45440',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45440',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.662357',\n 'longitude' => '-84.1037612',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:27',\n 'location_type_id' => NULL,\n ),\n 123 =>\n array (\n 'id' => 560,\n 'name' => 'KROGER PHARMACY 02900781',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6306 COUNTY ROAD 107|PROCTORVILLE, OH 45669',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45669',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.4369975',\n 'longitude' => '-82.3867145',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:30',\n 'location_type_id' => NULL,\n ),\n 124 =>\n array (\n 'id' => 674,\n 'name' => 'OhioHealth Blom Admin Campus COVID Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '3430 Ohio Health Pkwy Columbus, OH 43202',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43202',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0313548',\n 'longitude' => '-83.0267233',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:35',\n 'location_type_id' => NULL,\n ),\n 125 =>\n array (\n 'id' => 850,\n 'name' => 'Rite Aid Store 04010',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 884-6107',\n 'address' => '355 EAST MAIN STREET LEXINGTON, OH 44904',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44904',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.6814696',\n 'longitude' => '-82.5702301',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:40',\n 'location_type_id' => NULL,\n ),\n 126 =>\n array (\n 'id' => 964,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 751-1736',\n 'address' => '1101 HILL RD N PICKERINGTON, OH 43147-8887',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43147-8887',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.9104671',\n 'longitude' => '-82.7796269',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:47',\n 'location_type_id' => NULL,\n ),\n 127 =>\n array (\n 'id' => 1020,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 866-8218',\n 'address' => '2615 BRICE RD|REYNOLDSBURG, OH 43068-3420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43068-3420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.9271411',\n 'longitude' => '-82.8320012',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:49',\n 'location_type_id' => NULL,\n ),\n 128 =>\n array (\n 'id' => 1117,\n 'name' => 'Warren City Health District',\n 'bookinglink' => 'http://www.warren.org/living/departments/health',\n 'phone' => '(330) 841-2596',\n 'address' => '258 East Market Street Warren, OH 44481',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44481',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.2357001',\n 'longitude' => '-80.8150267',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:52',\n 'location_type_id' => NULL,\n ),\n 129 =>\n array (\n 'id' => 592,\n 'name' => 'Marcs Pharmacy Kamms Corner',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(216) 252-4747',\n 'address' => '17400 Lorain Avenue|Cleveland, OH 44111',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44111',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.450066',\n 'longitude' => '-81.81809',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:55:14',\n 'location_type_id' => NULL,\n ),\n 130 =>\n array (\n 'id' => 602,\n 'name' => 'Marcs Pharmacy South Euclid',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(216) 691-8990',\n 'address' => '4519 Mayfield Road South Euclid, OH 44121',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44121',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.519897',\n 'longitude' => '-81.51799',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:56:23',\n 'location_type_id' => NULL,\n ),\n 131 =>\n array (\n 'id' => 609,\n 'name' => 'Marcs Pharmcy Broadview Heights',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 746-1015',\n 'address' => '8003 Broadview Road Broadview Heights, OH 44147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.34814',\n 'longitude' => '-81.68458',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:15',\n 'location_type_id' => NULL,\n ),\n 132 =>\n array (\n 'id' => 614,\n 'name' => 'McFadden Pharmacy',\n 'bookinglink' => 'http://www.McFaddenPharmacy.com',\n 'phone' => '(740) 634-3231',\n 'address' => '115 E. Main St Bainbridge, OH 45601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ross',\n 'latitude' => '39.333763',\n 'longitude' => '-82.97839',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:52',\n 'location_type_id' => NULL,\n ),\n 133 =>\n array (\n 'id' => 615,\n 'name' => 'McLaren St. Lukes',\n 'bookinglink' => 'http://mclaren.org',\n 'phone' => '(419) 893-5900',\n 'address' => '5901 Monclova Rd|Maumee, OH 43537',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43537',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.558735',\n 'longitude' => '-83.681244',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:55',\n 'location_type_id' => NULL,\n ),\n 134 =>\n array (\n 'id' => 616,\n 'name' => 'Medina County Health Department',\n 'bookinglink' => 'http://www.medinahealth.org/vaccine',\n 'phone' => '(330) 723-9688',\n 'address' => '4800 Ledgewood Drive|Medina, OH 44256',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.16083',\n 'longitude' => '-81.85839',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:56',\n 'location_type_id' => NULL,\n ),\n 135 =>\n array (\n 'id' => 617,\n 'name' => 'Meigs County Health Department',\n 'bookinglink' => 'http://www.meigs-health.com',\n 'phone' => '(740) 992-6626',\n 'address' => '112 E. Memorial Drive Suite A Pomeroy, OH 45769',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45769',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Meigs',\n 'latitude' => '39.033802',\n 'longitude' => '-82.05038',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:56',\n 'location_type_id' => NULL,\n ),\n 136 =>\n array (\n 'id' => 618,\n 'name' => 'Meijer',\n 'bookinglink' => 'http://www.meijer.com',\n 'phone' => '(513) 576-5510',\n 'address' => '1082 SR 28|Milford, OH 45150',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45150',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.194496',\n 'longitude' => '-84.23696',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:03',\n 'location_type_id' => NULL,\n ),\n 137 =>\n array (\n 'id' => 619,\n 'name' => 'Meijer',\n 'bookinglink' => 'http://www.meijer.com',\n 'phone' => '(740) 389-0510',\n 'address' => '2153 Marion Mount Gilead Rd Marion, OH 43302-8990',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43302-8990',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Marion',\n 'latitude' => '40.58148',\n 'longitude' => '-83.07149',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:04',\n 'location_type_id' => NULL,\n ),\n 138 =>\n array (\n 'id' => 620,\n 'name' => 'Meijer',\n 'bookinglink' => 'http://www.meijer.com',\n 'phone' => '(513) 943-5710',\n 'address' => '888 Eastgate North Rd Cincinnati, OH 45245',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45245',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.09619',\n 'longitude' => '-84.2652',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:04',\n 'location_type_id' => NULL,\n ),\n 139 =>\n array (\n 'id' => 623,\n 'name' => 'Memorial Health System Wayne St. Campus',\n 'bookinglink' => 'http://mhsystem.org',\n 'phone' => '(844) 887-4148',\n 'address' => '330 E. 8th St.|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.41208',\n 'longitude' => '-81.43871',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:07',\n 'location_type_id' => NULL,\n ),\n 140 =>\n array (\n 'id' => 624,\n 'name' => 'Mercer County Health District',\n 'bookinglink' => 'http://www.mchdohio.org',\n 'phone' => '(419) 586-3251',\n 'address' => '220 W. Livingston St., B152 Celina, OH 45822',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45822',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mercer',\n 'latitude' => '40.55',\n 'longitude' => '-84.57329',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:18',\n 'location_type_id' => NULL,\n ),\n 141 =>\n array (\n 'id' => 625,\n 'name' => 'Mercer Health Hospital',\n 'bookinglink' => 'http://www.mercer-health.com',\n 'phone' => '(567) 890-7188',\n 'address' => '800 W Main Street Coldwater, OH 45828',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45828',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mercer',\n 'latitude' => '40.479774',\n 'longitude' => '-84.638336',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:25',\n 'location_type_id' => NULL,\n ),\n 142 =>\n array (\n 'id' => 658,\n 'name' => 'Mt. Healthy Family Practice',\n 'bookinglink' => 'http://www.healthcare-connection.org',\n 'phone' => '(513) 554-4100',\n 'address' => '1411 Compton Road|Cincinnati, OH 45231',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45231',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.2315',\n 'longitude' => '-84.53878',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:02',\n 'location_type_id' => NULL,\n ),\n 143 =>\n array (\n 'id' => 668,\n 'name' => 'New Philadelphia City Health District',\n 'bookinglink' => 'http://www.newphilaoh.com/Health-Department',\n 'phone' => '(330) 364-4491',\n 'address' => '150 E. High Ave.|New Philadelphia, OH 44663',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44663',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.489883',\n 'longitude' => '-81.44731',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:02:07',\n 'location_type_id' => NULL,\n ),\n 144 =>\n array (\n 'id' => 678,\n 'name' => 'OhioHealth Mansfield COVID Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '770 Balgreen Dr. First Floor Mansfield, OH 44906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.738823',\n 'longitude' => '-82.5498',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:02:57',\n 'location_type_id' => NULL,\n ),\n 145 =>\n array (\n 'id' => 690,\n 'name' => 'Paulding County Health Department',\n 'bookinglink' => 'http://www.pauldingcountyhealth.com',\n 'phone' => '(419) 399-3921',\n 'address' => '800 E Perry|Paulding, OH 45879',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45879',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Paulding',\n 'latitude' => '41.131817',\n 'longitude' => '-84.57371',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:04:14',\n 'location_type_id' => NULL,\n ),\n 146 =>\n array (\n 'id' => 707,\n 'name' => 'ProMedica Defiance Regional Hospital',\n 'bookinglink' => 'http://www.promedica.org/location/promedica-defiance-re..',\n 'phone' => '(567) 585-0670',\n 'address' => '1200 Ralston Ave|Defiance, OH 43512',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43512',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Defiance',\n 'latitude' => '41.2996',\n 'longitude' => '-84.37383',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:33',\n 'location_type_id' => NULL,\n ),\n 147 =>\n array (\n 'id' => 718,\n 'name' => 'Riesbecks Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 450-7859',\n 'address' => '2200 June Parkway|South Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.90978',\n 'longitude' => '-82.01437',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:53',\n 'location_type_id' => NULL,\n ),\n 148 =>\n array (\n 'id' => 725,\n 'name' => 'Rite Aid Store 00195',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 797-9485',\n 'address' => '3527 CANFIELD ROAD|YOUNGSTOWN, OH 44511',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44511',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.063',\n 'longitude' => '-80.7099',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:35',\n 'location_type_id' => NULL,\n ),\n 149 =>\n array (\n 'id' => 733,\n 'name' => 'Rite Aid Store 01092',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 865-3130',\n 'address' => '2450 SOUTH REYNOLDS ROAD TOLEDO, OH 43614',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43614',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.596355',\n 'longitude' => '-83.664825',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:12',\n 'location_type_id' => NULL,\n ),\n 150 =>\n array (\n 'id' => 744,\n 'name' => 'Rite Aid Store 01570',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 281-6100',\n 'address' => '6512 FRANKLIN BOULEVARD|CLEVELAND, OH 44102',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44102',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.481827',\n 'longitude' => '-81.730576',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:19',\n 'location_type_id' => NULL,\n ),\n 151 =>\n array (\n 'id' => 786,\n 'name' => 'Rite Aid Store 02408',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 875-1429',\n 'address' => '613 W. MAIN STREET LOUISVILLE, OH 44641',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44641',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.83697',\n 'longitude' => '-81.26528',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:54',\n 'location_type_id' => NULL,\n ),\n 152 =>\n array (\n 'id' => 802,\n 'name' => 'Rite Aid Store 03016',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 369-8444',\n 'address' => '2840 YOUNGSTOWN ROAD SE WARREN, OH 44484',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44484',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.222027',\n 'longitude' => '-80.78381',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:47',\n 'location_type_id' => NULL,\n ),\n 153 =>\n array (\n 'id' => 810,\n 'name' => 'Rite Aid Store 03061',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 649-9709',\n 'address' => '4332 CLEVELAND AVENUE, NW CANTON, OH 44709',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44709',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.845676',\n 'longitude' => '-81.39186',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:28',\n 'location_type_id' => NULL,\n ),\n 154 =>\n array (\n 'id' => 817,\n 'name' => 'Rite Aid Store 03109',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 392-7555',\n 'address' => '1560 PARKMAN ROAD NW WARREN, OH 44485',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44485',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.244343',\n 'longitude' => '-80.84245',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:00',\n 'location_type_id' => NULL,\n ),\n 155 =>\n array (\n 'id' => 826,\n 'name' => 'Rite Aid Store 03146',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 747-2426',\n 'address' => '693 MCCARTNEY ROAD|YOUNGSTOWN, OH 44505',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44505',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.090347',\n 'longitude' => '-80.5861',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:41',\n 'location_type_id' => NULL,\n ),\n 156 =>\n array (\n 'id' => 574,\n 'name' => 'MAC Pharmacy',\n 'bookinglink' => 'http://www.macpharmacy.com',\n 'phone' => '(330) 375-5040',\n 'address' => '879 E Exchange St Akron, OH 44306',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44306',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.071106',\n 'longitude' => '-81.49408',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:06:22',\n 'location_type_id' => NULL,\n ),\n 157 =>\n array (\n 'id' => 1,\n 'name' => 'ACMC Health and Wellness Plaza',\n 'bookinglink' => 'http://www.acmchealth.org/',\n 'phone' => '(440) 994-2675',\n 'address' => '2211 Lake Avenue|Ashtabula, OH 44004',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44004',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.881935',\n 'longitude' => '-80.79818',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:44',\n 'location_type_id' => NULL,\n ),\n 158 =>\n array (\n 'id' => 2,\n 'name' => 'Acme Pharmacy',\n 'bookinglink' => 'http://www.acmestores.com',\n 'phone' => '(330) 644-0350',\n 'address' => '3235 Manchester Rd.|Akron, OH 44319',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44319',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.011623',\n 'longitude' => '-81.55432',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:56',\n 'location_type_id' => NULL,\n ),\n 159 =>\n array (\n 'id' => 3,\n 'name' => 'Acme Pharmacy',\n 'bookinglink' => 'http://www.acmestores.com',\n 'phone' => '(330) 666-3300',\n 'address' => '3979 Medina Rd.|Akron, OH 44333',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44333',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.13592',\n 'longitude' => '-81.64424',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:56',\n 'location_type_id' => NULL,\n ),\n 160 =>\n array (\n 'id' => 4,\n 'name' => 'Adams County Health Department',\n 'bookinglink' => 'http://www.adamscountyhealth.org',\n 'phone' => '(937) 544-5547',\n 'address' => '923 Sunrise Avenue West Union, OH 45693',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45693',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Adams',\n 'latitude' => '38.796234',\n 'longitude' => '-83.534584',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:56',\n 'location_type_id' => NULL,\n ),\n 161 =>\n array (\n 'id' => 5,\n 'name' => 'Adams County Regional Medical Center',\n 'bookinglink' => 'http://www.acrmc.com',\n 'phone' => '(937) 386-3400',\n 'address' => '230 Medical Center Drive Seaman, OH 45679',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45679',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Adams',\n 'latitude' => '38.933765',\n 'longitude' => '-83.58552',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:57',\n 'location_type_id' => NULL,\n ),\n 162 =>\n array (\n 'id' => 6,\n 'name' => 'Adena PACCAR Medical Education Center',\n 'bookinglink' => 'http://www.adena.org',\n 'phone' => '(740) 542-7233',\n 'address' => '446 Hospital Road|Chillicothe, OH 45601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ross',\n 'latitude' => '39.398144',\n 'longitude' => '-82.972534',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:57',\n 'location_type_id' => NULL,\n ),\n 163 =>\n array (\n 'id' => 7,\n 'name' => 'Akron General Health & Wellness Center, Bath',\n 'bookinglink' => 'http://my.clevelandclinic.org/landing/covid-19-vaccine',\n 'phone' => '(216) 444-2538',\n 'address' => '4125 Medina Rd|Akron, OH 44333',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44333',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.13593',\n 'longitude' => '-81.64555',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:57',\n 'location_type_id' => NULL,\n ),\n 164 =>\n array (\n 'id' => 8,\n 'name' => 'Alex Central Health Center',\n 'bookinglink' => 'http://communityhealthdayton.org/AlexCentralHC.php',\n 'phone' => '(937) 247-0304',\n 'address' => '5 S Alex Rd Miamisburg, OH 45342',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45342',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.630424',\n 'longitude' => '-84.29347',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:30:58',\n 'location_type_id' => NULL,\n ),\n 165 =>\n array (\n 'id' => 9,\n 'name' => 'Allen County Public Health',\n 'bookinglink' => 'http://www.allencountypublichealth.org',\n 'phone' => '(419) 228-4636',\n 'address' => '219 E Market Street Lima, OH 45801',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45801',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.740025',\n 'longitude' => '-84.10292',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:31:10',\n 'location_type_id' => NULL,\n ),\n 166 =>\n array (\n 'id' => 10,\n 'name' => 'Alliance Family Health Center',\n 'bookinglink' => 'http://alliancefamilyhealth.org',\n 'phone' => '(330) 249-7016',\n 'address' => '1401 South Arch Ave Alliance, OH 44601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.907963',\n 'longitude' => '-81.101326',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:31:19',\n 'location_type_id' => NULL,\n ),\n 167 =>\n array (\n 'id' => 11,\n 'name' => 'Alliance Senior Citizens Center',\n 'bookinglink' => 'http://www.cityofalliance.com/health',\n 'phone' => '(330) 821-3348',\n 'address' => '602 W. Vine|Alliance, OH 44601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.930477',\n 'longitude' => '-81.1156',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:06:32',\n 'location_type_id' => NULL,\n ),\n 168 =>\n array (\n 'id' => 15,\n 'name' => 'Ashville Apothecary',\n 'bookinglink' => 'http://www.apothecary-rx.com',\n 'phone' => '(740) 983-2501',\n 'address' => '3400 St Rt 752|Ashville, OH 43103',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43103',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pickaway',\n 'latitude' => '39.72358',\n 'longitude' => '-82.95532',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:07:01',\n 'location_type_id' => NULL,\n ),\n 169 =>\n array (\n 'id' => 17,\n 'name' => 'Atrium Medical Center',\n 'bookinglink' => 'http://www.premierhealth.com/vaccine',\n 'phone' => '(937) 276-4141',\n 'address' => '1 Medical Center Dr Middletown, OH 45005',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45005',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.496685',\n 'longitude' => '-84.31581',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:07:12',\n 'location_type_id' => NULL,\n ),\n 170 =>\n array (\n 'id' => 18,\n 'name' => 'Auglaize County Health Department',\n 'bookinglink' => 'http://www.auglaizehealth.org',\n 'phone' => '(419) 738-3410',\n 'address' => '813 Defiance Street|Wapakoneta, OH 45895',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45895',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Auglaize',\n 'latitude' => '40.57827',\n 'longitude' => '-84.20219',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:07:15',\n 'location_type_id' => NULL,\n ),\n 171 =>\n array (\n 'id' => 20,\n 'name' => 'Aultman Hospital',\n 'bookinglink' => 'http://www.aultman.org',\n 'phone' => '(330) 363-6400',\n 'address' => '2600 6th St. SW|Canton, OH 44710',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44710',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.796856',\n 'longitude' => '-81.40357',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:07:33',\n 'location_type_id' => NULL,\n ),\n 172 =>\n array (\n 'id' => 22,\n 'name' => 'Avita Health System - Galion Hospital',\n 'bookinglink' => 'http://avitahealth.org/',\n 'phone' => '(419) 468-0800',\n 'address' => '269 Portland Way S Galion, OH 44833',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44833',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.731102',\n 'longitude' => '-82.8033',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:07:50',\n 'location_type_id' => NULL,\n ),\n 173 =>\n array (\n 'id' => 23,\n 'name' => 'Avita Health System - Ontario Hospital',\n 'bookinglink' => 'http://avitahealth.org/',\n 'phone' => '(419) 468-0800',\n 'address' => '715 Richland Mall|Ontario, OH 44906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.771435',\n 'longitude' => '-82.591385',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:07:50',\n 'location_type_id' => NULL,\n ),\n 174 =>\n array (\n 'id' => 19,\n 'name' => 'Aultman Alliance Community Hospital',\n 'bookinglink' => 'http://www.aultmanalliance.org',\n 'phone' => '(330) 596-6075',\n 'address' => '200 East State Street Alliance, OH 44601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.9017',\n 'longitude' => '-81.103386',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:18:14',\n 'location_type_id' => NULL,\n ),\n 175 =>\n array (\n 'id' => 24,\n 'name' => 'AxessPointe Community Health Centers, Inc.',\n 'bookinglink' => 'http://www.axesspointe.org',\n 'phone' => '(330) 564-2477',\n 'address' => '1400 S Arlington Street Suite 38|Akron, OH 44306',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44306',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.032864',\n 'longitude' => '-81.4914',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:18:35',\n 'location_type_id' => NULL,\n ),\n 176 =>\n array (\n 'id' => 12,\n 'name' => 'Ashland County Health Department',\n 'bookinglink' => 'http://ashlandhealth.com',\n 'phone' => '(419) 282-4232',\n 'address' => '1763 State Route 60|Ashland, OH 44805',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44805',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashland',\n 'latitude' => '40.804832',\n 'longitude' => '-82.27034',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:23:10',\n 'location_type_id' => NULL,\n ),\n 177 =>\n array (\n 'id' => 14,\n 'name' => 'Ashtabula County Health Department',\n 'bookinglink' => 'http://www.ahstabulacountyhealth.com',\n 'phone' => '(440) 576-3023',\n 'address' => '12 West Jefferson Street Jefferson, OH 44047',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44047',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.73832',\n 'longitude' => '-80.770355',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:23:13',\n 'location_type_id' => NULL,\n ),\n 178 =>\n array (\n 'id' => 16,\n 'name' => 'Athens City-County Health Department',\n 'bookinglink' => 'http://athenspublichealth.org',\n 'phone' => '(740) 592-4431',\n 'address' => '278 West Union St. Athens, OH 45701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.329777',\n 'longitude' => '-82.1136',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:23:14',\n 'location_type_id' => NULL,\n ),\n 179 =>\n array (\n 'id' => 21,\n 'name' => 'Aultman Orrville Hospital',\n 'bookinglink' => 'http://www.aultmanorrville.org',\n 'phone' => '(330) 363-6400',\n 'address' => '832 South Main Street Orrville, OH 44667',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44667',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.8317694',\n 'longitude' => '-81.7637304',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:47',\n 'location_type_id' => NULL,\n ),\n 180 =>\n array (\n 'id' => 25,\n 'name' => 'Barnesville Family Health Center',\n 'bookinglink' => 'http://ohiohillshealthservices.com',\n 'phone' => '(740) 239-6447',\n 'address' => '101 East Main Street Barnesville, OH 43713',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43713',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '39.9880681',\n 'longitude' => '-81.1770322',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:48',\n 'location_type_id' => NULL,\n ),\n 181 =>\n array (\n 'id' => 13,\n 'name' => 'Ashtabula City Health Department',\n 'bookinglink' => 'http://www.cityofashtabula.com/health-department',\n 'phone' => '(440) 992-7123',\n 'address' => '4717 Main Ave., Ashtabula, OH 44004',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44044',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.8642085',\n 'longitude' => '-80.7831369',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:21:30',\n 'location_type_id' => NULL,\n ),\n 182 =>\n array (\n 'id' => 26,\n 'name' => 'Barnesville Hospital',\n 'bookinglink' => 'http://www.barnesvillehospital.com',\n 'phone' => '(740) 425-5255',\n 'address' => '639 W Main Street Barnesville, OH 43713',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43713',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '39.991737',\n 'longitude' => '-81.18784',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:24',\n 'location_type_id' => NULL,\n ),\n 183 =>\n array (\n 'id' => 27,\n 'name' => 'Beachwood Medical Center',\n 'bookinglink' => 'http://lakehealth.org/vaccine/',\n 'phone' => '(440) 375-8595',\n 'address' => '25501 Chagrin Blvd|Beachwood, OH 44122-5603',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44122-5603',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46443',\n 'longitude' => '-81.49776',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:25',\n 'location_type_id' => NULL,\n ),\n 184 =>\n array (\n 'id' => 28,\n 'name' => 'Belmont County Health Department',\n 'bookinglink' => 'http://belmontcountyhealth.com/',\n 'phone' => '(740) 695-1202',\n 'address' => '68501 Bannock Road St. Clairsville, OH 43950',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43950',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '40.079716',\n 'longitude' => '-80.97012',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:29',\n 'location_type_id' => NULL,\n ),\n 185 =>\n array (\n 'id' => 29,\n 'name' => 'Blanchard Valley Hospital',\n 'bookinglink' => 'http://www.bvhealthsystem.org',\n 'phone' => '(419) 423-4500',\n 'address' => '1900 S. Main St. Findlay, OH 45840',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45840',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.016582',\n 'longitude' => '-83.65035',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:40',\n 'location_type_id' => NULL,\n ),\n 186 =>\n array (\n 'id' => 30,\n 'name' => 'Bluffton Hospital',\n 'bookinglink' => 'http://www.bvhealthsystem.org',\n 'phone' => '(419) 358-9010',\n 'address' => '139 Garau St.|Bluffton, OH 45817',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45817',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.887154',\n 'longitude' => '-83.89757',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:40',\n 'location_type_id' => NULL,\n ),\n 187 =>\n array (\n 'id' => 31,\n 'name' => 'Bradfield Community Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(567) 825-0226',\n 'address' => '550 S. Collett St Lima, OH 45805',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45805',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.734646',\n 'longitude' => '-84.11913',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:45',\n 'location_type_id' => NULL,\n ),\n 188 =>\n array (\n 'id' => 33,\n 'name' => 'BREWSTERS HOMETOWN PHARMACY',\n 'bookinglink' => 'http://www.brewstershometownpharmacy.com',\n 'phone' => '(740) 648-3020',\n 'address' => '104 THORNTON DRIVE|PIKETON, OH 45661',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45661',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pike',\n 'latitude' => '39.061543',\n 'longitude' => '-83.0183',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:48',\n 'location_type_id' => NULL,\n ),\n 189 =>\n array (\n 'id' => 34,\n 'name' => 'Broadway Pharmacy',\n 'bookinglink' => 'http://www.broadwayrxpharmacy.com',\n 'phone' => '(216) 465-2333',\n 'address' => '6630 Broadway Ave|Cleveland, OH 44105',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44105',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46191',\n 'longitude' => '-81.64385',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:08:55',\n 'location_type_id' => NULL,\n ),\n 190 =>\n array (\n 'id' => 35,\n 'name' => 'Broughton Complex Elizabeth Sugden Building',\n 'bookinglink' => 'http://www.washingoongov.org',\n 'phone' => '(740) 374-2782',\n 'address' => '619 State Route 821|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.456936',\n 'longitude' => '-81.44883',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:01',\n 'location_type_id' => NULL,\n ),\n 191 =>\n array (\n 'id' => 36,\n 'name' => 'Brown County Health Department',\n 'bookinglink' => 'http://browncountyhealth.org',\n 'phone' => '(937) 378-6892',\n 'address' => '826 Mount Orab Pike Georgetown, OH 45121-9312',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45121-9312',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Brown',\n 'latitude' => '38.876137',\n 'longitude' => '-83.90115',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:02',\n 'location_type_id' => NULL,\n ),\n 192 =>\n array (\n 'id' => 37,\n 'name' => 'Bucyrus Health and Wellness',\n 'bookinglink' => 'http://www.tsfhs.org',\n 'phone' => '(419) 834-8889',\n 'address' => '2458 Stetzer Rd|Bucyrus, OH 44820',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44820',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.81553',\n 'longitude' => '-82.939476',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:08',\n 'location_type_id' => NULL,\n ),\n 193 =>\n array (\n 'id' => 38,\n 'name' => 'Bulldog Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 442-7701',\n 'address' => '2400 Collingwood|Toldeo, OH 43620',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43620',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.668587',\n 'longitude' => '-83.55517',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:10',\n 'location_type_id' => NULL,\n ),\n 194 =>\n array (\n 'id' => 40,\n 'name' => 'CAA East Liverpool Campus Building #1',\n 'bookinglink' => 'http://www.caaofcc.org',\n 'phone' => '(330) 386-7777',\n 'address' => '16480 St Clair Ave|East Liverpool, OH 43920-9124',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43920-9124',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.663044',\n 'longitude' => '-80.57472',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:21',\n 'location_type_id' => NULL,\n ),\n 195 =>\n array (\n 'id' => 41,\n 'name' => 'CAA Health and Dental center Melhorn Salineville',\n 'bookinglink' => 'http://www.caaofcc.org',\n 'phone' => '(330) 679-2640',\n 'address' => '103 W Main Street Salineville, OH 43945',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43945',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.62207',\n 'longitude' => '-80.84198',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:31',\n 'location_type_id' => NULL,\n ),\n 196 =>\n array (\n 'id' => 43,\n 'name' => 'Cambridge Guernsey County Health Department',\n 'bookinglink' => 'http://www.guernseycountyhealthdepartment.org',\n 'phone' => '(740) 439-3577',\n 'address' => '326 Highland Avenue|Cambridge, OH 43725-2530',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43725-2530',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Guernsey',\n 'latitude' => '40.027943',\n 'longitude' => '-81.57812',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:32',\n 'location_type_id' => NULL,\n ),\n 197 =>\n array (\n 'id' => 44,\n 'name' => 'Canton City Public Health',\n 'bookinglink' => 'http://cantonhealth.org',\n 'phone' => '(330) 451-6774',\n 'address' => '420 Market Avenue North Canton, OH 44702',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44702',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.800716',\n 'longitude' => '-81.373924',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:34',\n 'location_type_id' => NULL,\n ),\n 198 =>\n array (\n 'id' => 46,\n 'name' => 'Carroll County General Health District',\n 'bookinglink' => 'http://www.carroll-lhd.org/',\n 'phone' => '(330) 627-8928',\n 'address' => '301 Moody Ave|Carrollton, OH 44615',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44615',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Carroll',\n 'latitude' => '40.57643',\n 'longitude' => '-81.093216',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:44',\n 'location_type_id' => NULL,\n ),\n 199 =>\n array (\n 'id' => 48,\n 'name' => 'Cedar Care Village Pharmacy',\n 'bookinglink' => 'http://cedarcarerx.com',\n 'phone' => '(937) 766-2273',\n 'address' => '63 N Main Street Cedarville, OH 45314',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45314',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.79609',\n 'longitude' => '-83.82463',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:09:53',\n 'location_type_id' => NULL,\n ),\n 200 =>\n array (\n 'id' => 53,\n 'name' => 'Chesapeake Family Medical Center',\n 'bookinglink' => 'http://familymedicalcenters.org',\n 'phone' => '(740) 867-6687',\n 'address' => '717 3rd Avenue|Chesapeake, OH 45619',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45619',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.42702',\n 'longitude' => '-82.46113',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:10:33',\n 'location_type_id' => NULL,\n ),\n 201 =>\n array (\n 'id' => 55,\n 'name' => 'CHWC Hospital - Bryan, Ohio',\n 'bookinglink' => 'http://www.chwchospital.org',\n 'phone' => '(419) 630-2295',\n 'address' => '433 W. High Street Bryan, OH 43506',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43506',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Williams',\n 'latitude' => '41.4746',\n 'longitude' => '-84.55701',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:10:44',\n 'location_type_id' => NULL,\n ),\n 202 =>\n array (\n 'id' => 56,\n 'name' => 'Cincinnati Health Network',\n 'bookinglink' => 'http://www.cincinnatihealthnetwork.org',\n 'phone' => '(513) 317-2056',\n 'address' => '40 E. McMicken Avenue Cincinnati, OH 45202',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45202',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.11575',\n 'longitude' => '-84.51572',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:10:52',\n 'location_type_id' => NULL,\n ),\n 203 =>\n array (\n 'id' => 57,\n 'name' => 'Circle Health Services Midtown',\n 'bookinglink' => 'http://www.thecentersohio.org',\n 'phone' => '(216) 325-9355',\n 'address' => '4400 Euclid Avenue|Cleveland, OH 44103',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44103',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.50369',\n 'longitude' => '-81.65645',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:11:00',\n 'location_type_id' => NULL,\n ),\n 204 =>\n array (\n 'id' => 58,\n 'name' => 'Circle Health Services Uptown',\n 'bookinglink' => 'http://www.thecentersohio.org',\n 'phone' => '(216) 325-9355',\n 'address' => '12201 Euclid Avenue|Cleveland, OH 44106',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44106',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.5129',\n 'longitude' => '-81.60035',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:11:08',\n 'location_type_id' => NULL,\n ),\n 205 =>\n array (\n 'id' => 59,\n 'name' => 'Circleville Apothecary',\n 'bookinglink' => 'http://www.apothecary-rx.com',\n 'phone' => '(740) 420-3784',\n 'address' => '1200 N. Court St Circleville, OH 43113',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43113',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pickaway',\n 'latitude' => '39.621292',\n 'longitude' => '-82.94053',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:11:19',\n 'location_type_id' => NULL,\n ),\n 206 =>\n array (\n 'id' => 64,\n 'name' => 'Cleveland Clinic Fairview Hospital',\n 'bookinglink' => 'http://my.clevelandclinic.org/landing/covid-19-vaccine',\n 'phone' => '(216) 444-2538',\n 'address' => '18101 Lorain Ave|Cleveland, OH 44111',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44111',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.45098',\n 'longitude' => '-81.82342',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:11:45',\n 'location_type_id' => NULL,\n ),\n 207 =>\n array (\n 'id' => 65,\n 'name' => 'Cleveland Clinic Hillcrest Hospital',\n 'bookinglink' => 'http://my.clevelandclinic.org/landing/covid-19-vaccine',\n 'phone' => '(216) 444-2538',\n 'address' => '6777 Mayfield Road Mayfield Heights, OH 44124',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44124',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.520103',\n 'longitude' => '-81.43736',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:11:56',\n 'location_type_id' => NULL,\n ),\n 208 =>\n array (\n 'id' => 66,\n 'name' => 'Cleveland Clinic Medina Hospital',\n 'bookinglink' => 'http://my.clevelandclinic.org/landing/covid-19-vaccine',\n 'phone' => '(216) 444-2538',\n 'address' => '1000 E Washington St Medina, OH 44256',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.139072',\n 'longitude' => '-81.83863',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:01',\n 'location_type_id' => NULL,\n ),\n 209 =>\n array (\n 'id' => 67,\n 'name' => 'Cleveland Clinic Union Hospital',\n 'bookinglink' => 'http://my.clevelandclinic.org/locations/union-hospital',\n 'phone' => '(330) 364-0884',\n 'address' => '659 Boulevard|Dover, OH 44622',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44622',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.513813',\n 'longitude' => '-81.45648',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:03',\n 'location_type_id' => NULL,\n ),\n 210 =>\n array (\n 'id' => 68,\n 'name' => 'Cleveland Department of Public Health',\n 'bookinglink' => 'http://www.clevelandhealth.org/',\n 'phone' => '(216) 664-7357',\n 'address' => '4242 Lorain Ave|Cleveland, OH 44113',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44113',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.479633',\n 'longitude' => '-81.71544',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:08',\n 'location_type_id' => NULL,\n ),\n 211 =>\n array (\n 'id' => 69,\n 'name' => 'Clinton County Health District',\n 'bookinglink' => 'http://co.clinton.oh.us/departments/HealthDistrict',\n 'phone' => '(937) 382-3829',\n 'address' => '111 S Nelson Ave, Suite 1|Wilmington, OH 45177',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45177',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clinton',\n 'latitude' => '39.443268',\n 'longitude' => '-83.85176',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:19',\n 'location_type_id' => NULL,\n ),\n 212 =>\n array (\n 'id' => 49,\n 'name' => 'Center Street Community Health Records',\n 'bookinglink' => 'http://centerstreetclinic.org',\n 'phone' => '(740) 751-6380',\n 'address' => '136 West Center Street Marion, OH 43302',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43302',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Marion',\n 'latitude' => '40.58862',\n 'longitude' => '-83.12989',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:18:54',\n 'location_type_id' => NULL,\n ),\n 213 =>\n array (\n 'id' => 52,\n 'name' => 'Charles Drew Health Center',\n 'bookinglink' => 'http://www.communityhealthdayton.org',\n 'phone' => '(937) 461-4336',\n 'address' => '1323 West Third Street Dayton, OH 45402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.755398',\n 'longitude' => '-84.21691',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:19:07',\n 'location_type_id' => NULL,\n ),\n 214 =>\n array (\n 'id' => 42,\n 'name' => 'CAA Health Behavioral Health at Lisbon',\n 'bookinglink' => 'http://www.caaofcc.org',\n 'phone' => '(330) 424-5686',\n 'address' => '7880 Lincole Place|Lisbon, OH 44432',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44432',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.7866898',\n 'longitude' => '-80.7716522',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:48',\n 'location_type_id' => NULL,\n ),\n 215 =>\n array (\n 'id' => 45,\n 'name' => 'Capital Park Family Health',\n 'bookinglink' => 'http://heartofohiofamilyhealth.org',\n 'phone' => '(614) 235-5555',\n 'address' => '2365 Innis Road|Columbus, OH 43224',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43224',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0366697',\n 'longitude' => '-82.9520882',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:49',\n 'location_type_id' => NULL,\n ),\n 216 =>\n array (\n 'id' => 47,\n 'name' => 'CCGHD at Carroll County Transit',\n 'bookinglink' => 'http://www.carroll-lhd.org/',\n 'phone' => '(330) 627-8928',\n 'address' => '2205 Commerce Dr|Carrollton, OH 44615',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44615',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Carroll',\n 'latitude' => '40.6141452',\n 'longitude' => '-81.0699271',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:49',\n 'location_type_id' => NULL,\n ),\n 217 =>\n array (\n 'id' => 50,\n 'name' => 'Champaign Health District',\n 'bookinglink' => 'http://www.champaignhd.com/',\n 'phone' => '(937) 484-1667',\n 'address' => '1512 South Highway 68 Suite Q-100|Urbana, OH 43078',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43078',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Champaign',\n 'latitude' => '40.1083912',\n 'longitude' => '-83.7524298',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:50',\n 'location_type_id' => NULL,\n ),\n 218 =>\n array (\n 'id' => 54,\n 'name' => 'Children\\'s Hospital Medical Center of Akron',\n 'bookinglink' => 'http://akronchildrens.org',\n 'phone' => '(330) 543-2621',\n 'address' => 'One Perkins Akron, OH 44308',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44308',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.0790591',\n 'longitude' => '-81.5269298',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:50',\n 'location_type_id' => NULL,\n ),\n 219 =>\n array (\n 'id' => 61,\n 'name' => 'City of Middletown Health Department',\n 'bookinglink' => 'http://covid.cityofmiddletown.org',\n 'phone' => '(513) 425-1818',\n 'address' => '1 Donham Plaza|Middletown, OH 45042',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45042',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.5194194',\n 'longitude' => '-84.4016306',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:51',\n 'location_type_id' => NULL,\n ),\n 220 =>\n array (\n 'id' => 70,\n 'name' => 'Clinton Memorial Hospital',\n 'bookinglink' => 'http://www.cmhregional.com',\n 'phone' => '(937) 382-9610',\n 'address' => '610 W. Main St Wilmington, OH 45177',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45177',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clinton',\n 'latitude' => '39.44549',\n 'longitude' => '-83.83953',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:30',\n 'location_type_id' => NULL,\n ),\n 221 =>\n array (\n 'id' => 72,\n 'name' => 'Community First Pharmacy at Central Connections',\n 'bookinglink' => 'http://www.community-first.org/pharmacy',\n 'phone' => '(513) 795-2835',\n 'address' => '3907 Central Ave|Middletown, OH 45044',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45044',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.511177',\n 'longitude' => '-84.36226',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:51',\n 'location_type_id' => NULL,\n ),\n 222 =>\n array (\n 'id' => 74,\n 'name' => 'Community Memorial Hospital',\n 'bookinglink' => 'http://www.cmhosp.com',\n 'phone' => '(419) 542-6692',\n 'address' => '208 Columbus Street|Hicksville, OH 43526',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43526',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Defiance',\n 'latitude' => '41.300003',\n 'longitude' => '-84.75562',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:52',\n 'location_type_id' => NULL,\n ),\n 223 =>\n array (\n 'id' => 75,\n 'name' => 'Conneaut City Health Department',\n 'bookinglink' => 'http://conneautohio.gov/departments/health_department...',\n 'phone' => '(440) 593-3087',\n 'address' => '327 Mill Street|Conneaut, OH 44030',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44030',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.94533',\n 'longitude' => '-80.56024',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:53',\n 'location_type_id' => NULL,\n ),\n 224 =>\n array (\n 'id' => 76,\n 'name' => 'Corner Pharmacy, LLC',\n 'bookinglink' => 'http://cornerhealthmartpharmacy.com',\n 'phone' => '(937) 981-2454',\n 'address' => '259 Jefferson St|Greenfield, OH 45123',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45123',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Highland',\n 'latitude' => '39.351624',\n 'longitude' => '-83.3829',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:55',\n 'location_type_id' => NULL,\n ),\n 225 =>\n array (\n 'id' => 77,\n 'name' => 'Corwin Nixon Health Center',\n 'bookinglink' => 'http://www.communityhealthdayton.org',\n 'phone' => '(937) 228-0990',\n 'address' => '2351 Stanley Avenue|Dayton, OH 45404',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45404',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.7879',\n 'longitude' => '-84.174904',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:12:57',\n 'location_type_id' => NULL,\n ),\n 226 =>\n array (\n 'id' => 78,\n 'name' => 'Coshocton County Coronavirus Vaccination Clinic',\n 'bookinglink' => 'http://www.coshoctoncounty.net/covid',\n 'phone' => '(740) 622-2611',\n 'address' => '637 Chestnut St|Coshocton, OH 43812',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43812',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Coshocton',\n 'latitude' => '40.274853',\n 'longitude' => '-81.86073',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:02',\n 'location_type_id' => NULL,\n ),\n 227 =>\n array (\n 'id' => 79,\n 'name' => 'Coshocton COVID Vaccine Clinic',\n 'bookinglink' => 'http://coshoctoncounty.net/covid',\n 'phone' => '(740) 622-2611',\n 'address' => '637 Chestnut Street|Coshocton, OH 43812',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43812',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Coshocton',\n 'latitude' => '40.274853',\n 'longitude' => '-81.86073',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:08',\n 'location_type_id' => NULL,\n ),\n 228 =>\n array (\n 'id' => 80,\n 'name' => 'Coshocton Family Care',\n 'bookinglink' => 'http://coshoctonhospital.org',\n 'phone' => '(740) 622-0332',\n 'address' => '311 South 15th Street Coshocton, OH 43812',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43812',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Coshocton',\n 'latitude' => '40.272293',\n 'longitude' => '-81.847206',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:18',\n 'location_type_id' => NULL,\n ),\n 229 =>\n array (\n 'id' => 82,\n 'name' => 'Cuyahoga County Fairgrounds',\n 'bookinglink' => 'http://www.ccbh.net/vax',\n 'phone' => '(216) 202-2001',\n 'address' => '19201 E Bagley Rd, Middleburg Heights, OH 44130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.372204',\n 'longitude' => '-81.836784',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:30',\n 'location_type_id' => NULL,\n ),\n 230 =>\n array (\n 'id' => 83,\n 'name' => 'CVS Pharmacy 11155',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '2104 S. BYRNE RD|Toledo, OH 43614',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43614',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.601196',\n 'longitude' => '-83.62472',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:41',\n 'location_type_id' => NULL,\n ),\n 231 =>\n array (\n 'id' => 84,\n 'name' => 'CVS Pharmacy 11213',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '126 N. MAIN STREET|Bluffton, OH 45817',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45817',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.89404',\n 'longitude' => '-83.891014',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:51',\n 'location_type_id' => NULL,\n ),\n 232 =>\n array (\n 'id' => 85,\n 'name' => 'CVS Pharmacy 2486',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(330) 505-2601',\n 'address' => '1331 Youngstown-Warren Rd|Niles, OH 44446',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44446',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.203823',\n 'longitude' => '-80.73813',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:13:53',\n 'location_type_id' => NULL,\n ),\n 233 =>\n array (\n 'id' => 87,\n 'name' => 'CVS Pharmacy 3304',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '3933 PARKMAN ROAD NW|Warren, OH 44481',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44481',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.25908',\n 'longitude' => '-80.867516',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:14:15',\n 'location_type_id' => NULL,\n ),\n 234 =>\n array (\n 'id' => 88,\n 'name' => 'CVS Pharmacy 3402',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '115 NORTH COLLEGE ST.,|Piqua, OH 45356',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45356',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Miami',\n 'latitude' => '40.147247',\n 'longitude' => '-84.24913',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:14:19',\n 'location_type_id' => NULL,\n ),\n 235 =>\n array (\n 'id' => 90,\n 'name' => 'CVS Pharmacy 3996',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '2846 MAHONING AVE|Youngstown, OH 44509',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44509',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.10307',\n 'longitude' => '-80.701866',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:14:33',\n 'location_type_id' => NULL,\n ),\n 236 =>\n array (\n 'id' => 91,\n 'name' => 'CVS Pharmacy 4447',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(419) 227-7970',\n 'address' => '900 BELLEFONTAINE RD|Lima, OH 45804',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45804',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.736675',\n 'longitude' => '-84.089455',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:14:39',\n 'location_type_id' => NULL,\n ),\n 237 =>\n array (\n 'id' => 92,\n 'name' => 'CVS Pharmacy 5433',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '3733 Hamilton-Cleves Road|Hamilton, OH 45013',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45013',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.3242',\n 'longitude' => '-84.63653',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:14:48',\n 'location_type_id' => NULL,\n ),\n 238 =>\n array (\n 'id' => 93,\n 'name' => 'CVS Pharmacy 5813',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '463 TIFFAN AVE.|Findlay, OH 45840',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45840',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.04495',\n 'longitude' => '-83.642395',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:14:53',\n 'location_type_id' => NULL,\n ),\n 239 =>\n array (\n 'id' => 94,\n 'name' => 'CVS Pharmacy 6098',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '120 Main Street E Wilmington, OH 45177',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45177',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clinton',\n 'latitude' => '39.445477',\n 'longitude' => '-83.830605',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:15:04',\n 'location_type_id' => NULL,\n ),\n 240 =>\n array (\n 'id' => 95,\n 'name' => 'CVS Pharmacy 6111',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '5229 MONTGOMERY RD|Norwood, OH 45212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.169613',\n 'longitude' => '-84.4504',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:15:12',\n 'location_type_id' => NULL,\n ),\n 241 =>\n array (\n 'id' => 97,\n 'name' => 'CVS Pharmacy 6143',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4491',\n 'address' => '900 N BROAD STREET|Fairborn, OH 45324',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45324',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.83143',\n 'longitude' => '-84.02064',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:15:32',\n 'location_type_id' => NULL,\n ),\n 242 =>\n array (\n 'id' => 99,\n 'name' => 'CVS Pharmacy 6145',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '1300 North Barron Street Eaton, OH 45320',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45320',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Preble',\n 'latitude' => '39.758575',\n 'longitude' => '-84.63648',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:15:54',\n 'location_type_id' => NULL,\n ),\n 243 =>\n array (\n 'id' => 100,\n 'name' => 'CVS Pharmacy 6176',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '1049 WEST FOURTH STREET|Mansfield, OH 44906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.76596',\n 'longitude' => '-82.552505',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:16:05',\n 'location_type_id' => NULL,\n ),\n 244 =>\n array (\n 'id' => 102,\n 'name' => 'CVS Pharmacy 6179',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '324 FOURTH ST.|Sidney, OH 45365',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45365',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Shelby',\n 'latitude' => '40.28806',\n 'longitude' => '-84.17299',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:16:19',\n 'location_type_id' => NULL,\n ),\n 245 =>\n array (\n 'id' => 105,\n 'name' => 'Darke County General Health District',\n 'bookinglink' => 'http://darkecountyhealth.org/',\n 'phone' => '(937) 548-4196',\n 'address' => '300 Garst Ave|Greenville, OH 45331',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45331',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Darke',\n 'latitude' => '40.10756',\n 'longitude' => '-84.634674',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:16:31',\n 'location_type_id' => NULL,\n ),\n 246 =>\n array (\n 'id' => 106,\n 'name' => 'Davies Drugs',\n 'bookinglink' => 'http://www.daviesdrugs.com',\n 'phone' => '(330) 305-9075',\n 'address' => '6046 Whipple Ave NW Entrance B North Canton, OH 44720',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.86886',\n 'longitude' => '-81.42229',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:16:42',\n 'location_type_id' => NULL,\n ),\n 247 =>\n array (\n 'id' => 108,\n 'name' => 'Dayton Convention Center',\n 'bookinglink' => 'http://www.phdmc.org/',\n 'phone' => '(937) 225-6217',\n 'address' => '22 E. 5th St Dayton, OH 45402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.756832',\n 'longitude' => '-84.1906',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:16:59',\n 'location_type_id' => NULL,\n ),\n 248 =>\n array (\n 'id' => 111,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1005 HIGH ST|WADSWORTH, OH 44281',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44281',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.050625',\n 'longitude' => '-81.728806',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:11',\n 'location_type_id' => NULL,\n ),\n 249 =>\n array (\n 'id' => 112,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1062 W MCPHERSON HIGHWAY CLYDE, OH 43410',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43410',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Sandusky',\n 'latitude' => '41.31487',\n 'longitude' => '-82.99351',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:22',\n 'location_type_id' => NULL,\n ),\n 250 =>\n array (\n 'id' => 113,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '107 S CHESTNUT ST JEFFERSON, OH 44047',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44047',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.735985',\n 'longitude' => '-80.76946',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:25',\n 'location_type_id' => NULL,\n ),\n 251 =>\n array (\n 'id' => 114,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '110 CHESTNUT COMMONS DR ELYRIA, OH 44035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.344543',\n 'longitude' => '-82.06648',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:26',\n 'location_type_id' => NULL,\n ),\n 252 =>\n array (\n 'id' => 71,\n 'name' => 'Columbiana County Health Department',\n 'bookinglink' => 'http://www.columbiana-health.org',\n 'phone' => '(330) 424-0272',\n 'address' => '7360 State Route 45|Lisbon, OH 44432',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44432',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.79306',\n 'longitude' => '-80.77915',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:19:21',\n 'location_type_id' => NULL,\n ),\n 253 =>\n array (\n 'id' => 86,\n 'name' => 'CVS Pharmacy 3169',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(440) 466-4133',\n 'address' => '170 EAST MAIN ST|Geneva, OH 44041',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44041',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.806473',\n 'longitude' => '-80.944725',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:19:29',\n 'location_type_id' => NULL,\n ),\n 254 =>\n array (\n 'id' => 101,\n 'name' => 'CVS Pharmacy 6177',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '201 WEST MAIN STREET|Bellevue, OH 44811',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44811',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Sandusky',\n 'latitude' => '41.273888',\n 'longitude' => '-82.84165',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:23:59',\n 'location_type_id' => NULL,\n ),\n 255 =>\n array (\n 'id' => 98,\n 'name' => 'CVS Pharmacy 6144',\n 'bookinglink' => 'http://www.cvs.com/immunizations/covid-19-vaccine',\n 'phone' => '(888) 300-4419',\n 'address' => '2657 W. ALEX BELL RD|Moraine, OH 45459',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45459',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.6730914',\n 'longitude' => '-84.215926',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:51',\n 'location_type_id' => NULL,\n ),\n 256 =>\n array (\n 'id' => 107,\n 'name' => 'Davies Pharmacy',\n 'bookinglink' => 'http://www.daviesdrugs.com',\n 'phone' => '(330) 454-5151',\n 'address' => '2915 West Tuscarawas St Canton, OH 44708',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44708',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.7989221',\n 'longitude' => '-81.4071793',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:52',\n 'location_type_id' => NULL,\n ),\n 257 =>\n array (\n 'id' => 109,\n 'name' => 'Delaware Public Health District',\n 'bookinglink' => 'http://www.delawarehealth.org',\n 'phone' => '(740) 203-2040',\n 'address' => 'P.O. Box 570 Delaware, OH 43015',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43015',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.2986724',\n 'longitude' => '-83.067965',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:52',\n 'location_type_id' => NULL,\n ),\n 258 =>\n array (\n 'id' => 115,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1145 ALLIANCE RD NW MINERVA, OH 44657',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44657',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Carroll',\n 'latitude' => '40.71789',\n 'longitude' => '-81.11912',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:29',\n 'location_type_id' => NULL,\n ),\n 259 =>\n array (\n 'id' => 116,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1155 E WYANDOT AVE UPPER SANDUSKY, OH 43351',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43351',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wyandot',\n 'latitude' => '40.82972',\n 'longitude' => '-83.26138',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:40',\n 'location_type_id' => NULL,\n ),\n 260 =>\n array (\n 'id' => 117,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '12289 LEAVITT RD|OBERLIN, OH 44074',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44074',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.31033',\n 'longitude' => '-82.216805',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:40',\n 'location_type_id' => NULL,\n ),\n 261 =>\n array (\n 'id' => 119,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '13123 DETROIT AVE|LAKEWOOD, OH 44107',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44107',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.484627',\n 'longitude' => '-81.77984',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:50',\n 'location_type_id' => NULL,\n ),\n 262 =>\n array (\n 'id' => 120,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '135 HARDING ST|MEDINA, OH 44256',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.148964',\n 'longitude' => '-81.861984',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:51',\n 'location_type_id' => NULL,\n ),\n 263 =>\n array (\n 'id' => 121,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '13919 PROSPECT RD|STRONGSVILLE, OH 44149',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44149',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.313454',\n 'longitude' => '-81.857796',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:17:55',\n 'location_type_id' => NULL,\n ),\n 264 =>\n array (\n 'id' => 122,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '15412 DETROIT AVE|LAKEWOOD, OH 44107',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44107',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.485058',\n 'longitude' => '-81.80385',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:06',\n 'location_type_id' => NULL,\n ),\n 265 =>\n array (\n 'id' => 123,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1575 LYONS RD|CENTERVILLE, OH 45458',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45458',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.625687',\n 'longitude' => '-84.19945',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:06',\n 'location_type_id' => NULL,\n ),\n 266 =>\n array (\n 'id' => 124,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1631 CLAREMONT AVE|ASHLAND, OH 44805',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44805',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashland',\n 'latitude' => '40.85395',\n 'longitude' => '-82.33675',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:12',\n 'location_type_id' => NULL,\n ),\n 267 =>\n array (\n 'id' => 125,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '1673 PEARL RD|BRUNSWICK, OH 44212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.229637',\n 'longitude' => '-81.84141',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:23',\n 'location_type_id' => NULL,\n ),\n 268 =>\n array (\n 'id' => 127,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '17815 PURITAS AVE|CLEVELAND, OH 44135',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44135',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.433994',\n 'longitude' => '-81.82099',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:41',\n 'location_type_id' => NULL,\n ),\n 269 =>\n array (\n 'id' => 128,\n 'name' => 'Discount Drug Mart Inc',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '201 Cline St|Norwalk, OH 44857',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44857',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Huron',\n 'latitude' => '41.257774',\n 'longitude' => '-82.612495',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:41',\n 'location_type_id' => NULL,\n ),\n 270 =>\n array (\n 'id' => 129,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '219 MANSFIELD AVE|SHELBY, OH 44875',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44875',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.867462',\n 'longitude' => '-82.64279',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:46',\n 'location_type_id' => NULL,\n ),\n 271 =>\n array (\n 'id' => 130,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '2253 COLORADO AVE|LORAIN, OH 44052',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44052',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.465405',\n 'longitude' => '-82.14881',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:18:50',\n 'location_type_id' => NULL,\n ),\n 272 =>\n array (\n 'id' => 132,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '238 SECOND ST NW|NEW PHILADELPHIA, OH 44663',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44663',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.49283',\n 'longitude' => '-81.44697',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:01',\n 'location_type_id' => NULL,\n ),\n 273 =>\n array (\n 'id' => 133,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '240 W CENTRAL AVE SPRINGBORO, OH 45066',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45066',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.558506',\n 'longitude' => '-84.23887',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:08',\n 'location_type_id' => NULL,\n ),\n 274 =>\n array (\n 'id' => 136,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '27300 DETROIT RD|WESTLAKE, OH 44145',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44145',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.467243',\n 'longitude' => '-81.92207',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:33',\n 'location_type_id' => NULL,\n ),\n 275 =>\n array (\n 'id' => 138,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '3015 N WOOSTER AVE DOVER, OH 44622',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44622',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.551617',\n 'longitude' => '-81.495605',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:45',\n 'location_type_id' => NULL,\n ),\n 276 =>\n array (\n 'id' => 139,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '3032 N RIDGE RD E ASHTABULA, OH 44004',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44004',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.87786',\n 'longitude' => '-80.755806',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:52',\n 'location_type_id' => NULL,\n ),\n 277 =>\n array (\n 'id' => 140,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '307 W WALTON ST WILLARD, OH 44890',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44890',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Huron',\n 'latitude' => '41.04274',\n 'longitude' => '-82.72982',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:56',\n 'location_type_id' => NULL,\n ),\n 278 =>\n array (\n 'id' => 141,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '3100 GLENWOOD BLVD, STE 294|TWINSBURG, OH 44087',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44087',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.341633',\n 'longitude' => '-81.41755',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:19:58',\n 'location_type_id' => NULL,\n ),\n 279 =>\n array (\n 'id' => 142,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '33382 WALKER RD AVON LAKE, OH 44012',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44012',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.493343',\n 'longitude' => '-82.04587',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:05',\n 'location_type_id' => NULL,\n ),\n 280 =>\n array (\n 'id' => 144,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '34100 VINE ST|EASTLAKE, OH 44095',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44095',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.642517',\n 'longitude' => '-81.445656',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:16',\n 'location_type_id' => NULL,\n ),\n 281 =>\n array (\n 'id' => 145,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '3700 MILAN RD|SANDUSKY, OH 44870',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44870',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Erie',\n 'latitude' => '41.422745',\n 'longitude' => '-82.67864',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:27',\n 'location_type_id' => NULL,\n ),\n 282 =>\n array (\n 'id' => 146,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '38 S MEDINA LINE RD COPLEY, OH 44321',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44321',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.134834',\n 'longitude' => '-81.687004',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:28',\n 'location_type_id' => NULL,\n ),\n 283 =>\n array (\n 'id' => 148,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '4044 FISHCREEK RD|STOW, OH 44224',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44224',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.165165',\n 'longitude' => '-81.40366',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:42',\n 'location_type_id' => NULL,\n ),\n 284 =>\n array (\n 'id' => 149,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '4170 FULTON RD|CLEVELAND, OH 44144',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44144',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.44371',\n 'longitude' => '-81.72336',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:45',\n 'location_type_id' => NULL,\n ),\n 285 =>\n array (\n 'id' => 150,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '420 CLEVELAND RD E HURON, OH 44839',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44839',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Erie',\n 'latitude' => '41.38877',\n 'longitude' => '-82.54091',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:20:56',\n 'location_type_id' => NULL,\n ),\n 286 =>\n array (\n 'id' => 153,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '4730 HILLS AND DALES RD NW CANTON, OH 44708',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44708',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.833202',\n 'longitude' => '-81.43251',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:21:18',\n 'location_type_id' => NULL,\n ),\n 287 =>\n array (\n 'id' => 154,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '4925 PORTAGE ST NW NORTH CANTON, OH 44720',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.87947',\n 'longitude' => '-81.43963',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:21:29',\n 'location_type_id' => NULL,\n ),\n 288 =>\n array (\n 'id' => 155,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '500 ABBE RD N ELYRIA, OH 44035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.38763',\n 'longitude' => '-82.07748',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:21:40',\n 'location_type_id' => NULL,\n ),\n 289 =>\n array (\n 'id' => 156,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '525 W MARION RD MOUNT GILEAD, OH 43338',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43338',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Morrow',\n 'latitude' => '40.54873',\n 'longitude' => '-82.84518',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:21:45',\n 'location_type_id' => NULL,\n ),\n 290 =>\n array (\n 'id' => 157,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '5270 CENTER RD|BRUNSWICK, OH 44212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.237854',\n 'longitude' => '-81.87682',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:21:53',\n 'location_type_id' => NULL,\n ),\n 291 =>\n array (\n 'id' => 161,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '5863 DARROW RD|HUDSON, OH 44236',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44236',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.226074',\n 'longitude' => '-81.44041',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:16',\n 'location_type_id' => NULL,\n ),\n 292 =>\n array (\n 'id' => 147,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '3889 EAST 71ST ST CLEVELAND, OH 44105',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44105',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.452652',\n 'longitude' => '-81.63888',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:24:22',\n 'location_type_id' => NULL,\n ),\n 293 =>\n array (\n 'id' => 160,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '5599 N HAMILTON RD COLUMBUS, OH 43230',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43230',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.021847',\n 'longitude' => '-82.87624',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:24:36',\n 'location_type_id' => NULL,\n ),\n 294 =>\n array (\n 'id' => 134,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '24485 LORAIN RD|NORTH OLMSTED, OH 44070',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44070',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.4263081',\n 'longitude' => '-81.8928461',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:52',\n 'location_type_id' => NULL,\n ),\n 295 =>\n array (\n 'id' => 137,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '300 LEAVITT RD N AMHERST, OH 44001',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44001',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.4086958',\n 'longitude' => '-82.2105284',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:53',\n 'location_type_id' => NULL,\n ),\n 296 =>\n array (\n 'id' => 152,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '4441 STATE ROUTE 725|BELLBROOK, OH 45305',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45305',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.6375309',\n 'longitude' => '-84.108278',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:53',\n 'location_type_id' => NULL,\n ),\n 297 =>\n array (\n 'id' => 204,\n 'name' => 'Franklin County Public Health',\n 'bookinglink' => 'http://covid-19.myfcph.org/',\n 'phone' => '(614) 525-5225',\n 'address' => '1700 Morse Road|Columbus, OH 43229',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43229',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.06042',\n 'longitude' => '-82.97369',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:43:03',\n 'location_type_id' => NULL,\n ),\n 298 =>\n array (\n 'id' => 162,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '592 12TH ST NW CARROLLTON, OH 44615',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44615',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Carroll',\n 'latitude' => '40.58945',\n 'longitude' => '-81.091576',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:17',\n 'location_type_id' => NULL,\n ),\n 299 =>\n array (\n 'id' => 163,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '5923 WOOSTER PIKE|MEDINA, OH 44256',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.11304',\n 'longitude' => '-81.86408',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:18',\n 'location_type_id' => NULL,\n ),\n 300 =>\n array (\n 'id' => 164,\n 'name' => 'Discount Drug Mart Inc',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '6148 Dunham Rd|Maple Heights, OH 44137',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44137',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.392227',\n 'longitude' => '-81.57509',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:26',\n 'location_type_id' => NULL,\n ),\n 301 =>\n array (\n 'id' => 166,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '6172 TYLERSVILLE RD|MASON, OH 45040',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45040',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.351917',\n 'longitude' => '-84.332726',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:36',\n 'location_type_id' => NULL,\n ),\n 302 =>\n array (\n 'id' => 167,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '629 BEALL AVE|WOOSTER, OH 44691',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44691',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.805367',\n 'longitude' => '-81.93438',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:41',\n 'location_type_id' => NULL,\n ),\n 303 =>\n array (\n 'id' => 168,\n 'name' => 'Discount Drug Mart Inc',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '6476 York Rd|Parma Heights, OH 44130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.38323',\n 'longitude' => '-81.759735',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:49',\n 'location_type_id' => NULL,\n ),\n 304 =>\n array (\n 'id' => 169,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '655 PORTAGE TRAIL CUYAHOGA FALLS, OH 44221',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44221',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.13927',\n 'longitude' => '-81.49136',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:55',\n 'location_type_id' => NULL,\n ),\n 305 =>\n array (\n 'id' => 170,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '661 WOOSTER ST|LODI, OH 44254',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44254',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.027752',\n 'longitude' => '-82.000824',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:22:55',\n 'location_type_id' => NULL,\n ),\n 306 =>\n array (\n 'id' => 171,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '711 CANTON RD|AKRON, OH 44312',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44312',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.041183',\n 'longitude' => '-81.43497',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:03',\n 'location_type_id' => NULL,\n ),\n 307 =>\n array (\n 'id' => 172,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '725 EAST 200TH|EUCLID, OH 44119',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44119',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.586647',\n 'longitude' => '-81.54016',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:09',\n 'location_type_id' => NULL,\n ),\n 308 =>\n array (\n 'id' => 174,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '7617 DAYTON-SPRINGFIELD RD|FAIRBORN, OH 45324',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45324',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.85189',\n 'longitude' => '-83.978065',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:10',\n 'location_type_id' => NULL,\n ),\n 309 =>\n array (\n 'id' => 175,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '7626 STATE ROUTE 45|LISBON, OH 44432',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44432',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.78926',\n 'longitude' => '-80.77681',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:19',\n 'location_type_id' => NULL,\n ),\n 310 =>\n array (\n 'id' => 176,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '765 ALPHA DR|HIGHLAND HEIGHTS, OH 44143',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44143',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.54133',\n 'longitude' => '-81.45301',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:20',\n 'location_type_id' => NULL,\n ),\n 311 =>\n array (\n 'id' => 177,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '8023 CRILE RD|Concord, OH 44077',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44077',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.650566',\n 'longitude' => '-81.24048',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:20',\n 'location_type_id' => NULL,\n ),\n 312 =>\n array (\n 'id' => 178,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '814 N MAIN ST WELLINGTON, OH 44090',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44090',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.180607',\n 'longitude' => '-82.21722',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:27',\n 'location_type_id' => NULL,\n ),\n 313 =>\n array (\n 'id' => 181,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '8500 MENTOR AVE|MENTOR, OH 44060',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44060',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.6681',\n 'longitude' => '-81.33524',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:23:49',\n 'location_type_id' => NULL,\n ),\n 314 =>\n array (\n 'id' => 182,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '8951 S OLD STATE RD LEWIS CENTER, OH 43035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.151264',\n 'longitude' => '-82.99729',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:24:00',\n 'location_type_id' => NULL,\n ),\n 315 =>\n array (\n 'id' => 183,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '9318 BROADVIEW RD BROADVIEW HEIGHTS, OH 44147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.311806',\n 'longitude' => '-81.684685',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:24:06',\n 'location_type_id' => NULL,\n ),\n 316 =>\n array (\n 'id' => 184,\n 'name' => 'Dr. Gene Wright Community Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 221-3072',\n 'address' => '441 E. 8th St. Lima, OH 45804',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45804',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.711845',\n 'longitude' => '-84.09925',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:24:09',\n 'location_type_id' => NULL,\n ),\n 317 =>\n array (\n 'id' => 186,\n 'name' => 'East Liverpool City Health Department',\n 'bookinglink' => 'http://eastliverpool.com/departments/health-district/',\n 'phone' => '(330) 385-5123',\n 'address' => '126 W Sixth Street|East Liverpool, OH 43920',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43920',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.620483',\n 'longitude' => '-80.58038',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:24:24',\n 'location_type_id' => NULL,\n ),\n 318 =>\n array (\n 'id' => 188,\n 'name' => 'Equitas Health Pharmacy',\n 'bookinglink' => 'http://equitashealth.com/covidvaccine',\n 'phone' => '(513) 978-5858',\n 'address' => '2805 Gilbert Ave.|Cincinnati, OH 45206',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45206',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.129936',\n 'longitude' => '-84.48852',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:24:39',\n 'location_type_id' => NULL,\n ),\n 319 =>\n array (\n 'id' => 191,\n 'name' => 'Fairfield Community Health Center',\n 'bookinglink' => 'http://www.fairfieldchc.org',\n 'phone' => '(740) 277-6043',\n 'address' => '1155 E. Main St. Lancaster, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.713696',\n 'longitude' => '-82.57937',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:24:50',\n 'location_type_id' => NULL,\n ),\n 320 =>\n array (\n 'id' => 192,\n 'name' => 'Fairfield County Fairgrounds - Ed Sands Building',\n 'bookinglink' => 'http://www.myfdh.org',\n 'phone' => '(740) 652-2802',\n 'address' => '157 E. Fair Avenue Lancaster, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.723854',\n 'longitude' => '-82.59971',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:00',\n 'location_type_id' => NULL,\n ),\n 321 =>\n array (\n 'id' => 193,\n 'name' => 'Fairfield Medical Center',\n 'bookinglink' => 'http://www.fmchealth.org/covid-19-updates/',\n 'phone' => '(740) 687-8818',\n 'address' => '401 N Ewing Street Lancaster, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.717144',\n 'longitude' => '-82.57666',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:05',\n 'location_type_id' => NULL,\n ),\n 322 =>\n array (\n 'id' => 194,\n 'name' => 'Family Health Care of Northwest Ohio',\n 'bookinglink' => 'http://www.familyhealthnwo.org',\n 'phone' => '(419) 238-6747',\n 'address' => '1191 Westwood Drive Van Wert, OH 45891',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45891',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'VanWert',\n 'latitude' => '40.852455',\n 'longitude' => '-84.59476',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:05',\n 'location_type_id' => NULL,\n ),\n 323 =>\n array (\n 'id' => 195,\n 'name' => 'Family Health Services Darke County',\n 'bookinglink' => 'http://familyhealthservices.org',\n 'phone' => '(937) 548-9680',\n 'address' => '5735 Meeker Rd|Greenville, OH 45331',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45331',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Darke',\n 'latitude' => '40.07795',\n 'longitude' => '-84.627556',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:06',\n 'location_type_id' => NULL,\n ),\n 324 =>\n array (\n 'id' => 196,\n 'name' => 'Family Medical Care Community Health Center',\n 'bookinglink' => 'http://www.changeinc.org',\n 'phone' => '(304) 797-7733',\n 'address' => '200 Luray Drive|Wintersville, OH 43953-6996',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43953-6996',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.381233',\n 'longitude' => '-80.70311',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:06',\n 'location_type_id' => NULL,\n ),\n 325 =>\n array (\n 'id' => 199,\n 'name' => 'Firelands Regional Medical Center',\n 'bookinglink' => 'http://www.firelands.com',\n 'phone' => '(419) 557-7400',\n 'address' => '1111 Hayes Avenue|Sandusky, OH 44870',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44870',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Erie',\n 'latitude' => '41.44569',\n 'longitude' => '-82.70903',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:36',\n 'location_type_id' => NULL,\n ),\n 326 =>\n array (\n 'id' => 200,\n 'name' => 'Fisher-Titus Medical Center',\n 'bookinglink' => 'http://FisherTitus.org/coronavirus',\n 'phone' => '(419) 668-8101',\n 'address' => '272 Benedict Ave|Norwalk, OH 44857',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44857',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Huron',\n 'latitude' => '41.226414',\n 'longitude' => '-82.60233',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:40',\n 'location_type_id' => NULL,\n ),\n 327 =>\n array (\n 'id' => 201,\n 'name' => 'Five Points Primary Care',\n 'bookinglink' => 'http://www.tsfhs.org',\n 'phone' => '(419) 522-2239',\n 'address' => '200 Park Avenue West Mansfield, OH 44902',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44902',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.75889',\n 'longitude' => '-82.52325',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:46',\n 'location_type_id' => NULL,\n ),\n 328 =>\n array (\n 'id' => 202,\n 'name' => 'Five Rivers Family Health Center',\n 'bookinglink' => 'http://fiverivershealthcenters.org',\n 'phone' => '(937) 503-5664',\n 'address' => '2261 Philadelphia Dr|Dayton, OH 45406',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45406',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.788948',\n 'longitude' => '-84.235016',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:47',\n 'location_type_id' => NULL,\n ),\n 329 =>\n array (\n 'id' => 205,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 947-5018',\n 'address' => '101 JAMES RD|WAVERLY, OH 45690',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45690',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pike',\n 'latitude' => '39.1212',\n 'longitude' => '-82.99255',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:25:58',\n 'location_type_id' => NULL,\n ),\n 330 =>\n array (\n 'id' => 207,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 423-9561',\n 'address' => '1401 WASHINGTON BLVD|BELPRE, OH 45714',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45714',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.27547',\n 'longitude' => '-81.58838',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:11',\n 'location_type_id' => NULL,\n ),\n 331 =>\n array (\n 'id' => 206,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 384-2174',\n 'address' => '120 West Second ST Wellston, OH 45692',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45692',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jackson',\n 'latitude' => '39.12165',\n 'longitude' => '-82.53409',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:09',\n 'location_type_id' => NULL,\n ),\n 332 =>\n array (\n 'id' => 180,\n 'name' => 'DISCOUNT DRUG MART INC',\n 'bookinglink' => 'http://discount-drugmart.com/covid',\n 'phone' => '(844) 625-0843',\n 'address' => '845 HILL RD N PICKERINGTON, OH 43147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.9084531',\n 'longitude' => '-82.7778778',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:54',\n 'location_type_id' => NULL,\n ),\n 333 =>\n array (\n 'id' => 187,\n 'name' => 'East Liverpool City Hospital',\n 'bookinglink' => 'http://www.elch.org',\n 'phone' => '(330) 386-2023',\n 'address' => '425 West 5th Street|East Liverpool, OH 43920',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43920',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.6218488',\n 'longitude' => '-80.5861388',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:54',\n 'location_type_id' => NULL,\n ),\n 334 =>\n array (\n 'id' => 198,\n 'name' => 'FCMH Medical Arts Building 2',\n 'bookinglink' => 'http://www.fcmh.org',\n 'phone' => '(740) 333-2743',\n 'address' => '1510 Columbus Avenue|Washington Court House, OH 43160',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43160',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fayette',\n 'latitude' => '39.548893',\n 'longitude' => '-83.4264311',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:55',\n 'location_type_id' => NULL,\n ),\n 335 =>\n array (\n 'id' => 203,\n 'name' => 'Five Rivers Med Surg Clinic',\n 'bookinglink' => 'http://fiverivershealthcenters.org',\n 'phone' => '(937) 503-5664',\n 'address' => '725 S Ludlow S Ludlow St Dayton, OH 45402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.7506674',\n 'longitude' => '-84.1918491',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:55',\n 'location_type_id' => NULL,\n ),\n 336 =>\n array (\n 'id' => 209,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 441-0781',\n 'address' => '204 SECOND AVE|GALLIPOLIS, OH 45631',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45631',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Gallia',\n 'latitude' => '38.80539',\n 'longitude' => '-82.20919',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:17',\n 'location_type_id' => NULL,\n ),\n 337 =>\n array (\n 'id' => 210,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 886-7685',\n 'address' => '259 STATE STREET|PROCTORVILLE, OH 45669',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45669',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.438057',\n 'longitude' => '-82.380424',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:17',\n 'location_type_id' => NULL,\n ),\n 338 =>\n array (\n 'id' => 211,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 446-6620',\n 'address' => '2991 ST RT 160|GALLIPOLIS, OH 45631',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45631',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Gallia',\n 'latitude' => '38.84423',\n 'longitude' => '-82.23416',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:25',\n 'location_type_id' => NULL,\n ),\n 339 =>\n array (\n 'id' => 212,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 992-1536',\n 'address' => '700 E MAIN STREET POMEROY, OH 45769',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45769',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Meigs',\n 'latitude' => '39.03052',\n 'longitude' => '-82.01455',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:31',\n 'location_type_id' => NULL,\n ),\n 340 =>\n array (\n 'id' => 214,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 594-3092',\n 'address' => '8972 UNITED LANE|ATHENS, OH 45701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.28793',\n 'longitude' => '-82.1213',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:26:42',\n 'location_type_id' => NULL,\n ),\n 341 =>\n array (\n 'id' => 216,\n 'name' => 'Fulton County Health Department',\n 'bookinglink' => 'http://www.fultoncountyhealthdept.com',\n 'phone' => '(419) 337-0915',\n 'address' => '606 S. Shoop Ave. Wauseon, OH 43567',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43567',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fulton',\n 'latitude' => '41.540318',\n 'longitude' => '-84.13429',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:02',\n 'location_type_id' => NULL,\n ),\n 342 =>\n array (\n 'id' => 217,\n 'name' => 'Gahm\\'s Pharmacy',\n 'bookinglink' => 'http://www.facebook.com/groups/574453980126600/',\n 'phone' => '(740) 259-2442',\n 'address' => '50A Center Street Lucasville, OH 45648',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45648',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Scioto',\n 'latitude' => '38.875786',\n 'longitude' => '-82.99772',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:03',\n 'location_type_id' => NULL,\n ),\n 343 =>\n array (\n 'id' => 218,\n 'name' => 'Galion City Health Department',\n 'bookinglink' => 'http://Galionhealth.org',\n 'phone' => '(419) 468-1075',\n 'address' => '113 Harding Way East Galion, OHIO 44833',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44833',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.733902',\n 'longitude' => '-82.78917',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:12',\n 'location_type_id' => NULL,\n ),\n 344 =>\n array (\n 'id' => 219,\n 'name' => 'Gallia County General Health District',\n 'bookinglink' => 'http://www.galliacohealth.org/',\n 'phone' => '(740) 441-2950',\n 'address' => '499 Jackson Pike Suite D Gallipolis, OH 45631',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45631',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Gallia',\n 'latitude' => '38.84369',\n 'longitude' => '-82.24462',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:14',\n 'location_type_id' => NULL,\n ),\n 345 =>\n array (\n 'id' => 220,\n 'name' => 'Geauga Public Health',\n 'bookinglink' => 'http://www.gphohio.org',\n 'phone' => '(440) 279-1900',\n 'address' => '470 Center St., Bldg. 8|Chardon, OH 44024',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44024',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.589367',\n 'longitude' => '-81.22285',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:15',\n 'location_type_id' => NULL,\n ),\n 346 =>\n array (\n 'id' => 221,\n 'name' => 'Genesis HealthCare System',\n 'bookinglink' => 'http://www.genesishcs.org',\n 'phone' => '(740) 297-8610',\n 'address' => '2951 Maple Ave|Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.9758',\n 'longitude' => '-82.01436',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:21',\n 'location_type_id' => NULL,\n ),\n 347 =>\n array (\n 'id' => 224,\n 'name' => 'Giant Eagle Pharmacy',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 701-1004',\n 'address' => '8383 Tyler Blvd.|Mentor, OH 44060',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44060',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.670795',\n 'longitude' => '-81.36976',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:27:49',\n 'location_type_id' => NULL,\n ),\n 348 =>\n array (\n 'id' => 225,\n 'name' => 'Giant Eagle Pharmacy #0199',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 327-8085',\n 'address' => '34325 Center Ridge Rd North Ridgeville, OH 44039',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44039',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.397938',\n 'longitude' => '-81.99674',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:00',\n 'location_type_id' => NULL,\n ),\n 349 =>\n array (\n 'id' => 226,\n 'name' => 'Giant Eagle Pharmacy #0203',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 729-5457',\n 'address' => '12692 Chillicothe Road|Chesterland, OH 44026',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44026',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.523403',\n 'longitude' => '-81.33795',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:01',\n 'location_type_id' => NULL,\n ),\n 350 =>\n array (\n 'id' => 227,\n 'name' => 'Giant Eagle Pharmacy #0204',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 582-6430',\n 'address' => '6000 Royalton Road North Royalton, OH 44133',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44133',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.31389',\n 'longitude' => '-81.72492',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:10',\n 'location_type_id' => NULL,\n ),\n 351 =>\n array (\n 'id' => 228,\n 'name' => 'Giant Eagle Pharmacy #0208',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 920-3320',\n 'address' => '25105 Cedar Road|Lyndhurst, OH 44124',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44124',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.501286',\n 'longitude' => '-81.49986',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:14',\n 'location_type_id' => NULL,\n ),\n 352 =>\n array (\n 'id' => 229,\n 'name' => 'Giant Eagle Pharmacy #0209',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 439-1416',\n 'address' => '900 Northfield RD|Bedford, OH 44146',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44146',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.38834',\n 'longitude' => '-81.52455',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:19',\n 'location_type_id' => NULL,\n ),\n 353 =>\n array (\n 'id' => 231,\n 'name' => 'Giant Eagle Pharmacy #0217',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 885-3019',\n 'address' => '6869 Southland Drive Middleburg Heights, OH 44130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.3787',\n 'longitude' => '-81.78728',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:31',\n 'location_type_id' => NULL,\n ),\n 354 =>\n array (\n 'id' => 232,\n 'name' => 'Giant Eagle Pharmacy #0218',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 662-8466',\n 'address' => '5744 Transportation Blvd Garfield Heights, OH 44125',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44125',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.406097',\n 'longitude' => '-81.61175',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:31',\n 'location_type_id' => NULL,\n ),\n 355 =>\n array (\n 'id' => 233,\n 'name' => 'Giant Eagle Pharmacy #0220',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 282-7651',\n 'address' => '2201 Kresge Drive|Amherst, OH 44001',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44001',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.41665',\n 'longitude' => '-82.205605',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:31',\n 'location_type_id' => NULL,\n ),\n 356 =>\n array (\n 'id' => 234,\n 'name' => 'Giant Eagle Pharmacy #0224',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 405-7105',\n 'address' => '8960 Darrow RD|Twinsburg, OH 44087',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44087',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.309437',\n 'longitude' => '-81.44026',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:36',\n 'location_type_id' => NULL,\n ),\n 357 =>\n array (\n 'id' => 235,\n 'name' => 'Giant Eagle Pharmacy #0229',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 225-1159',\n 'address' => '3440 Center Road|Brunswick, OH 44212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.238297',\n 'longitude' => '-81.80918',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:45',\n 'location_type_id' => NULL,\n ),\n 358 =>\n array (\n 'id' => 236,\n 'name' => 'Giant Eagle Pharmacy #0230',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 941-5109',\n 'address' => '3050 W 117TH ST|Cleveland, OH 44111',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44111',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.469425',\n 'longitude' => '-81.76882',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:28:56',\n 'location_type_id' => NULL,\n ),\n 359 =>\n array (\n 'id' => 239,\n 'name' => 'Giant Eagle Pharmacy #0465',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 267-2185',\n 'address' => '14650 Snow Road|Brookpark, OH 44142',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44142',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.4046',\n 'longitude' => '-81.79751',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:07',\n 'location_type_id' => NULL,\n ),\n 360 =>\n array (\n 'id' => 240,\n 'name' => 'Giant Eagle Pharmacy #0515',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 708-1277',\n 'address' => '8515 Tanglewood Square Chagrin Falls, OH 44023',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44023',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.391064',\n 'longitude' => '-81.33775',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:08',\n 'location_type_id' => NULL,\n ),\n 361 =>\n array (\n 'id' => 241,\n 'name' => 'Giant Eagle Pharmacy #1216',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 871-5710',\n 'address' => '30275 Detroit Rd.|Westlake, OH 44145',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44145',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.462776',\n 'longitude' => '-81.956345',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:16',\n 'location_type_id' => NULL,\n ),\n 362 =>\n array (\n 'id' => 243,\n 'name' => 'Giant Eagle Pharmacy #1238',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 967-1220',\n 'address' => '4453 Liberty Avenue|Vermilion, OH 44089',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44089',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.424965',\n 'longitude' => '-82.34302',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:24',\n 'location_type_id' => NULL,\n ),\n 363 =>\n array (\n 'id' => 244,\n 'name' => 'Giant Eagle Pharmacy #1263',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 671-6550',\n 'address' => '15325 Edgecliff Ave.|Cleveland, OH 44111',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44111',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.464035',\n 'longitude' => '-81.80376',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:24',\n 'location_type_id' => NULL,\n ),\n 364 =>\n array (\n 'id' => 245,\n 'name' => 'Giant Eagle Pharmacy #1405',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 652-2158',\n 'address' => '48 Vienna Ave.|Niles, OH 44446',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44446',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.18361',\n 'longitude' => '-80.75902',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:29',\n 'location_type_id' => NULL,\n ),\n 365 =>\n array (\n 'id' => 247,\n 'name' => 'Giant Eagle Pharmacy #1419',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 372-7003',\n 'address' => '2061 Elm Rd|Warren, OH 44483',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44483',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.25354',\n 'longitude' => '-80.79255',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:49',\n 'location_type_id' => NULL,\n ),\n 366 =>\n array (\n 'id' => 249,\n 'name' => 'Giant Eagle Pharmacy #1435',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 448-6480',\n 'address' => '7229 Warren Sharon Road Brookfield, OH 44403',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44403',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.234615',\n 'longitude' => '-80.55649',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:29:58',\n 'location_type_id' => NULL,\n ),\n 367 =>\n array (\n 'id' => 251,\n 'name' => 'Giant Eagle Pharmacy #1478',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 757-4099',\n 'address' => '3130 Center Rd.|Poland, OH 44514',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44514',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.02374',\n 'longitude' => '-80.59265',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:10',\n 'location_type_id' => NULL,\n ),\n 368 =>\n array (\n 'id' => 252,\n 'name' => 'Giant Eagle Pharmacy #1479',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 385-7554',\n 'address' => '619 Bradshaw Avenue East Liverpool, OH 43920',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43920',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.620823',\n 'longitude' => '-80.57631',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:11',\n 'location_type_id' => NULL,\n ),\n 369 =>\n array (\n 'id' => 213,\n 'name' => 'Fruth Pharmacy',\n 'bookinglink' => 'http://www.fruthpharmacy.com',\n 'phone' => '(740) 992-6491',\n 'address' => '706 WEST MAIN STREET POMEROY, OH 45769',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45769',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Meigs',\n 'latitude' => '39.010475',\n 'longitude' => '-82.04474',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:11',\n 'location_type_id' => NULL,\n ),\n 370 =>\n array (\n 'id' => 222,\n 'name' => 'Giant Eagle Pharmacy',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 829-3192',\n 'address' => '1800 West State Street Alliance, OH 44601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.901863',\n 'longitude' => '-81.13279',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:14',\n 'location_type_id' => NULL,\n ),\n 371 =>\n array (\n 'id' => 237,\n 'name' => 'Giant Eagle Pharmacy #0231',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 934-5377',\n 'address' => '5231 Detroit Road Sheffield Village, OH 44054',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44054',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.4277923',\n 'longitude' => '-82.079355',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:56',\n 'location_type_id' => NULL,\n ),\n 372 =>\n array (\n 'id' => 242,\n 'name' => 'Giant Eagle Pharmacy #1217',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 306-0011',\n 'address' => '6079 Andrews Road|Mentor-on-the-Lake, OH 44060',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44060',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.7071077',\n 'longitude' => '-81.3592431',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:56',\n 'location_type_id' => NULL,\n ),\n 373 =>\n array (\n 'id' => 248,\n 'name' => 'Giant Eagle Pharmacy #1421',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 992-6165',\n 'address' => '2390 Prospect Avenue|Ashtabula, OH 44004',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44004',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.8516485',\n 'longitude' => '-80.8178819',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:57',\n 'location_type_id' => NULL,\n ),\n 374 =>\n array (\n 'id' => 256,\n 'name' => 'Giant Eagle Pharmacy #2108',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 826-9104',\n 'address' => '50 West Bridge St Berea, OH 44017',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44017',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.366573',\n 'longitude' => '-81.85561',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:31',\n 'location_type_id' => NULL,\n ),\n 375 =>\n array (\n 'id' => 257,\n 'name' => 'Giant Eagle Pharmacy #4002',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 759-9348',\n 'address' => '4700 Belmont Avenue|Youngstown, OH 44505',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44505',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.166462',\n 'longitude' => '-80.664795',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:36',\n 'location_type_id' => NULL,\n ),\n 376 =>\n array (\n 'id' => 258,\n 'name' => 'Giant Eagle Pharmacy #4009',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 739-4120',\n 'address' => '1825 Snow Road|Parma, OH 44134',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44134',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.405243',\n 'longitude' => '-81.692566',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:38',\n 'location_type_id' => NULL,\n ),\n 377 =>\n array (\n 'id' => 260,\n 'name' => 'Giant Eagle Pharmacy #4018',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 726-9518',\n 'address' => '478 Boardman-Canfield Rd.|Youngstown, OH 44512',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44512',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.02447',\n 'longitude' => '-80.67748',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:30:51',\n 'location_type_id' => NULL,\n ),\n 378 =>\n array (\n 'id' => 262,\n 'name' => 'Giant Eagle Pharmacy #4029',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 628-6067',\n 'address' => '2801 E. Waterloo Rd. Akron, OH 44312',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44312',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.031677',\n 'longitude' => '-81.430176',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:31:13',\n 'location_type_id' => NULL,\n ),\n 379 =>\n array (\n 'id' => 263,\n 'name' => 'Giant Eagle Pharmacy #4031',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 861-0849',\n 'address' => '41 5th Street, S.E. Barberton, OH 44203',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44203',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.00853',\n 'longitude' => '-81.58995',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:31:24',\n 'location_type_id' => NULL,\n ),\n 380 =>\n array (\n 'id' => 264,\n 'name' => 'Giant Eagle Pharmacy #4032',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 650-4093',\n 'address' => '1700 Norton Rd.|Stow, OH 44224',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44224',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.20293',\n 'longitude' => '-81.437904',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:31:26',\n 'location_type_id' => NULL,\n ),\n 381 =>\n array (\n 'id' => 266,\n 'name' => 'Giant Eagle Pharmacy #4036',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 928-8844',\n 'address' => '2687 State Road Cuyahoga Falls, OH 44223',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44223',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.148827',\n 'longitude' => '-81.508514',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:31:37',\n 'location_type_id' => NULL,\n ),\n 382 =>\n array (\n 'id' => 268,\n 'name' => 'Giant Eagle Pharmacy #4056',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 395-0505',\n 'address' => '2700 Mahoning Ave., NW Warren, OH 44483',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44483',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.25979',\n 'longitude' => '-80.8336',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:31:59',\n 'location_type_id' => NULL,\n ),\n 383 =>\n array (\n 'id' => 269,\n 'name' => 'Giant Eagle Pharmacy #4060',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 497-1385',\n 'address' => '6493 Strip Avenue NW North Canton, OH 44720',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.875324',\n 'longitude' => '-81.43199',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:00',\n 'location_type_id' => NULL,\n ),\n 384 =>\n array (\n 'id' => 272,\n 'name' => 'Giant Eagle Pharmacy #4078',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 793-9345',\n 'address' => '5220 Mahoning Avenue|Youngstown, OH 44515',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44515',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.0996',\n 'longitude' => '-80.75597',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:17',\n 'location_type_id' => NULL,\n ),\n 385 =>\n array (\n 'id' => 273,\n 'name' => 'Giant Eagle Pharmacy #4086',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 238-4111',\n 'address' => '15919 Pearl Road|StrongsvilleCuyahoga, OH 44136',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44136',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.300583',\n 'longitude' => '-81.83519',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:22',\n 'location_type_id' => NULL,\n ),\n 386 =>\n array (\n 'id' => 275,\n 'name' => 'Giant Eagle Pharmacy #4089',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 602-8490',\n 'address' => '515 Union Avenue|Dover, OH 44622',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44622',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.509888',\n 'longitude' => '-81.46684',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:33',\n 'location_type_id' => NULL,\n ),\n 387 =>\n array (\n 'id' => 276,\n 'name' => 'Giant Eagle Pharmacy #4095',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 325-7967',\n 'address' => '4246 State Rt. 44|Rootstown, OH 44272',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44272',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.10773',\n 'longitude' => '-81.242386',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:40',\n 'location_type_id' => NULL,\n ),\n 388 =>\n array (\n 'id' => 277,\n 'name' => 'Giant Eagle Pharmacy #4096',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 686-9121',\n 'address' => '4300 Kent Road|Stow, OH 44224',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44224',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.15695',\n 'longitude' => '-81.407585',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:48',\n 'location_type_id' => NULL,\n ),\n 389 =>\n array (\n 'id' => 278,\n 'name' => 'Giant Eagle Pharmacy #4097',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 428-6111',\n 'address' => '6556 N. Ridge Road Madison, OH 44057',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44057',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.80293',\n 'longitude' => '-81.05536',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:57',\n 'location_type_id' => NULL,\n ),\n 390 =>\n array (\n 'id' => 279,\n 'name' => 'Giant Eagle Pharmacy #4098',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 286-8680',\n 'address' => '351 Center St.|Chardon, OH 44024',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44024',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.585938',\n 'longitude' => '-81.2173',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:32:57',\n 'location_type_id' => NULL,\n ),\n 391 =>\n array (\n 'id' => 280,\n 'name' => 'Giant Eagle Pharmacy #4124',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 773-7772',\n 'address' => '484 E. Waterloo Rd. Akron, OH 44319',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44319',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.02888',\n 'longitude' => '-81.50985',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:04',\n 'location_type_id' => NULL,\n ),\n 392 =>\n array (\n 'id' => 282,\n 'name' => 'Giant Eagle Pharmacy #4152',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 833-4890',\n 'address' => '2032 Lincoln Way East Massillon, OH 44646',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44646',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.79865',\n 'longitude' => '-81.49583',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:26',\n 'location_type_id' => NULL,\n ),\n 393 =>\n array (\n 'id' => 284,\n 'name' => 'Giant Eagle Pharmacy #4601',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 336-8990',\n 'address' => '825 Ambassador Drive|Wadsworth, OH 44281',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44281',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.044792',\n 'longitude' => '-81.70169',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:26',\n 'location_type_id' => NULL,\n ),\n 394 =>\n array (\n 'id' => 285,\n 'name' => 'Giant Eagle Pharmacy #5810',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 356-3677',\n 'address' => '21593 Lorain Road Fairview Park, OH 44126',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44126',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.442833',\n 'longitude' => '-81.86078',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:37',\n 'location_type_id' => NULL,\n ),\n 395 =>\n array (\n 'id' => 286,\n 'name' => 'Giant Eagle Pharmacy #5817',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 888-7392',\n 'address' => '7939 Day Drive|Parma, OH 44129',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44129',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.38048',\n 'longitude' => '-81.74034',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:38',\n 'location_type_id' => NULL,\n ),\n 396 =>\n array (\n 'id' => 287,\n 'name' => 'Giant Eagle Pharmacy #5830',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 831-8080',\n 'address' => '24601 Chagrin Blvd.|Beachwood, OH 44122',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44122',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46448',\n 'longitude' => '-81.50582',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:48',\n 'location_type_id' => NULL,\n ),\n 397 =>\n array (\n 'id' => 288,\n 'name' => 'Giant Eagle Pharmacy #5831',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 226-1600',\n 'address' => '14100 Detroit Avenue|Lakewood, OH 44107',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44107',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.48556',\n 'longitude' => '-81.790474',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:33:58',\n 'location_type_id' => NULL,\n ),\n 398 =>\n array (\n 'id' => 289,\n 'name' => 'Giant Eagle Pharmacy #5836',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 449-3940',\n 'address' => '6259 Mayfield Road Mayfield Heights, OH 44124',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44124',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.520077',\n 'longitude' => '-81.45426',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:34:09',\n 'location_type_id' => NULL,\n ),\n 399 =>\n array (\n 'id' => 291,\n 'name' => 'Giant Eagle Pharmacy #5861',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 668-6605',\n 'address' => '3750 W. Market St. Fairlawn, OH 44333',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44333',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.13582',\n 'longitude' => '-81.63347',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:34:27',\n 'location_type_id' => NULL,\n ),\n 400 =>\n array (\n 'id' => 292,\n 'name' => 'Giant Eagle Pharmacy #5863',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 626-2407',\n 'address' => '1280 State Route 303|Streetsboro, OH 44241',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44241',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.23945',\n 'longitude' => '-81.35467',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:34:36',\n 'location_type_id' => NULL,\n ),\n 401 =>\n array (\n 'id' => 293,\n 'name' => 'Giant Eagle Pharmacy #5878',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 929-6372',\n 'address' => '230 Howe Road|Cuyahoga Falls, OH 44221',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44221',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.119236',\n 'longitude' => '-81.48325',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:34:37',\n 'location_type_id' => NULL,\n ),\n 402 =>\n array (\n 'id' => 296,\n 'name' => 'Giant Eagle Pharmacy #6359',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 777-6148',\n 'address' => '27264 Lorain Rd.|North Olmsted, OH 44070',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44070',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.415382',\n 'longitude' => '-81.92419',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:35:08',\n 'location_type_id' => NULL,\n ),\n 403 =>\n array (\n 'id' => 297,\n 'name' => 'Giant Eagle Pharmacy #6375',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 324-1742',\n 'address' => '320 Market Drive|Elyria, OH 44035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.391357',\n 'longitude' => '-82.10867',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:35:09',\n 'location_type_id' => NULL,\n ),\n 404 =>\n array (\n 'id' => 253,\n 'name' => 'Giant Eagle Pharmacy #1611',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 875-1135',\n 'address' => '108 West Main Street Louisville, OH 44641',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44641',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.837627',\n 'longitude' => '-81.26051',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:28',\n 'location_type_id' => NULL,\n ),\n 405 =>\n array (\n 'id' => 261,\n 'name' => 'Giant Eagle Pharmacy #4025',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 836-2036',\n 'address' => '2775 West Market Street Fairlawn, OH 44333',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44333',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.12643',\n 'longitude' => '-81.60632',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:42',\n 'location_type_id' => NULL,\n ),\n 406 =>\n array (\n 'id' => 267,\n 'name' => 'Giant Eagle Pharmacy #4051',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 856-1324',\n 'address' => '8202 East Market St. Warren, OH 44484',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44484',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.238354',\n 'longitude' => '-80.74359',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:45',\n 'location_type_id' => NULL,\n ),\n 407 =>\n array (\n 'id' => 270,\n 'name' => 'Giant Eagle Pharmacy #4064',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 332-0141',\n 'address' => '2401 East State Street Salem, OH 44460',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44460',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.900955',\n 'longitude' => '-80.82747',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:25:49',\n 'location_type_id' => NULL,\n ),\n 408 =>\n array (\n 'id' => 295,\n 'name' => 'Giant Eagle Pharmacy #6348',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 297-7366',\n 'address' => '909 East Main Street Ravenna, OH 44266',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44266',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.157253',\n 'longitude' => '-81.229',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:26:05',\n 'location_type_id' => NULL,\n ),\n 409 =>\n array (\n 'id' => 271,\n 'name' => 'Giant Eagle Pharmacy #4075',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 726-7142',\n 'address' => '1201 Doral Drive|Boardman, OH 44512',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44512',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.0269909',\n 'longitude' => '-80.6325181',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:57',\n 'location_type_id' => NULL,\n ),\n 410 =>\n array (\n 'id' => 281,\n 'name' => 'Giant Eagle Pharmacy #4133',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 632-5587',\n 'address' => '15400 West High St. Middlefield, OH 44062',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44062',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.4646301',\n 'longitude' => '-81.0915045',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:58',\n 'location_type_id' => NULL,\n ),\n 411 =>\n array (\n 'id' => 294,\n 'name' => 'Giant Eagle Pharmacy #6299',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 468-3263',\n 'address' => '290 East Aurora Road Northfield, OH 44067',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44067',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.3131984',\n 'longitude' => '-81.5293148',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:58',\n 'location_type_id' => NULL,\n ),\n 412 =>\n array (\n 'id' => 311,\n 'name' => 'Giant Eagle Pharmacy #6512',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 268-3223',\n 'address' => '2801 N. High Street Columbus, OH 43202',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43202',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.019543',\n 'longitude' => '-83.012695',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:43:37',\n 'location_type_id' => NULL,\n ),\n 413 =>\n array (\n 'id' => 315,\n 'name' => 'Giant Eagle Pharmacy #6517',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 337-0397',\n 'address' => '2900 Stelzer Road|Columbus, OH 43219',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43219',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.031563',\n 'longitude' => '-82.91044',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:43:59',\n 'location_type_id' => NULL,\n ),\n 414 =>\n array (\n 'id' => 317,\n 'name' => 'Giant Eagle Pharmacy #6520',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 717-9424',\n 'address' => '6700 Perimeter Loop|Dublin, OH 43017',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43017',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.102108',\n 'longitude' => '-83.157814',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:44:11',\n 'location_type_id' => NULL,\n ),\n 415 =>\n array (\n 'id' => 319,\n 'name' => 'Giant Eagle Pharmacy #6526',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 875-8591',\n 'address' => '2173 Stringtown Rd Grove City, OH 43123',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43123',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.878677',\n 'longitude' => '-83.06138',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:44:20',\n 'location_type_id' => NULL,\n ),\n 416 =>\n array (\n 'id' => 321,\n 'name' => 'Giant Eagle Pharmacy #6528',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 939-4102',\n 'address' => '5461 New Albany Road West New Albany, OH 43054',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43054',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.095753',\n 'longitude' => '-82.82544',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:44:26',\n 'location_type_id' => NULL,\n ),\n 417 =>\n array (\n 'id' => 324,\n 'name' => 'Giant Eagle Pharmacy #6537',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 836-8420',\n 'address' => '3841 S. Hamilton Road Groveport, OH 43125',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43125',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.900665',\n 'longitude' => '-82.88204',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:44:41',\n 'location_type_id' => NULL,\n ),\n 418 =>\n array (\n 'id' => 318,\n 'name' => 'Giant Eagle Pharmacy #6523',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(740) 522-6168',\n 'address' => '553 Hebron Road|Newark, OH 43055',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43055',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.034573',\n 'longitude' => '-82.43348',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:04:27',\n 'location_type_id' => NULL,\n ),\n 419 =>\n array (\n 'id' => 298,\n 'name' => 'Giant Eagle Pharmacy #6376',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 739-4125',\n 'address' => '6300 Biddulph Rd.|Brooklyn, OH 44144',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44144',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.43035',\n 'longitude' => '-81.73048',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:35:13',\n 'location_type_id' => NULL,\n ),\n 420 =>\n array (\n 'id' => 299,\n 'name' => 'Giant Eagle Pharmacy #6377',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 358-7769',\n 'address' => '1201 Mentor Ave.|Painesville, OH 44077',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44077',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.706356',\n 'longitude' => '-81.268715',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:35:21',\n 'location_type_id' => NULL,\n ),\n 421 =>\n array (\n 'id' => 301,\n 'name' => 'Giant Eagle Pharmacy #6381',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(440) 946-7714',\n 'address' => '36475 Euclid Ave.|Willoughby, OH 44094',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44094',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.628506',\n 'longitude' => '-81.42339',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:35:38',\n 'location_type_id' => NULL,\n ),\n 422 =>\n array (\n 'id' => 303,\n 'name' => 'Giant Eagle Pharmacy #6388',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 328-8263',\n 'address' => '7400 Broadview Road|Parma, OH 44134',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44134',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.364475',\n 'longitude' => '-81.6846',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:35:57',\n 'location_type_id' => NULL,\n ),\n 423 =>\n array (\n 'id' => 304,\n 'name' => 'Giant Eagle Pharmacy #6414',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(216) 332-9592',\n 'address' => '5321 Warrensville Center Rd Maple Heights, OH 44137',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44137',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.416256',\n 'longitude' => '-81.5373',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:35:59',\n 'location_type_id' => NULL,\n ),\n 424 =>\n array (\n 'id' => 308,\n 'name' => 'Giant Eagle Pharmacy #6507',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 865-0487',\n 'address' => '650 North State Street Westerville, OH 43082',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43082',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.141872',\n 'longitude' => '-82.92712',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:36:08',\n 'location_type_id' => NULL,\n ),\n 425 =>\n array (\n 'id' => 310,\n 'name' => 'Giant Eagle Pharmacy #6510',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(740) 374-3127',\n 'address' => '128 Gross Street|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.421204',\n 'longitude' => '-81.44769',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:36:19',\n 'location_type_id' => NULL,\n ),\n 426 =>\n array (\n 'id' => 313,\n 'name' => 'Giant Eagle Pharmacy #6514',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 866-3756',\n 'address' => '873 Refugee Road|Pickerington, OH 43147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.909737',\n 'longitude' => '-82.77453',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:36:37',\n 'location_type_id' => NULL,\n ),\n 427 =>\n array (\n 'id' => 320,\n 'name' => 'Giant Eagle Pharmacy #6527',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 889-8438',\n 'address' => '4000 West Powell Road Powell, OH 43065',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43065',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.158714',\n 'longitude' => '-83.097725',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:36:54',\n 'location_type_id' => NULL,\n ),\n 428 =>\n array (\n 'id' => 325,\n 'name' => 'Giant Eagle Pharmacy #6538',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(740) 654-5219',\n 'address' => '1394 Ety Shops Way Lancaster, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.739555',\n 'longitude' => '-82.63696',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:05',\n 'location_type_id' => NULL,\n ),\n 429 =>\n array (\n 'id' => 327,\n 'name' => 'Grand Lake Primary Care at St. Marys',\n 'bookinglink' => 'http://www.grandlakehealth.org/',\n 'phone' => '(419) 300-1132',\n 'address' => '1040 Hager Street St. Marys, OH 45885',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45885',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Auglaize',\n 'latitude' => '40.545216',\n 'longitude' => '-84.373955',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:06',\n 'location_type_id' => NULL,\n ),\n 430 =>\n array (\n 'id' => 328,\n 'name' => 'Greene County Public Health Covid Vaccine',\n 'bookinglink' => 'http://www.gcph.info',\n 'phone' => '(937) 374-5600',\n 'address' => '2730 Indian Ripple Road Beavercreek, OH 45440',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45440',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.6918',\n 'longitude' => '-84.03942',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:11',\n 'location_type_id' => NULL,\n ),\n 431 =>\n array (\n 'id' => 334,\n 'name' => 'HealthSource Batavia',\n 'bookinglink' => 'http://www.healthsourceofohio.org',\n 'phone' => '(513) 732-5081',\n 'address' => '2055 Hospital Drive Suite 130|Batavia, OH 45103',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45103',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.081944',\n 'longitude' => '-84.14973',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:45',\n 'location_type_id' => NULL,\n ),\n 432 =>\n array (\n 'id' => 335,\n 'name' => 'Healthsource Lebanon',\n 'bookinglink' => 'http://healthsourceofohio.org',\n 'phone' => '(513) 732-5081',\n 'address' => '1231 Columbus Ave Suite A1 Lebanon, OH 45036',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45036',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.451263',\n 'longitude' => '-84.18297',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:47',\n 'location_type_id' => NULL,\n ),\n 433 =>\n array (\n 'id' => 337,\n 'name' => 'HealthSource Mt Washington',\n 'bookinglink' => 'http://healthsourceofohio.org',\n 'phone' => '(513) 732-5081',\n 'address' => '6131 Campus Lane|Cincinnati, OH 45230',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45230',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.091663',\n 'longitude' => '-84.38818',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:49',\n 'location_type_id' => NULL,\n ),\n 434 =>\n array (\n 'id' => 338,\n 'name' => 'HealthSource New Richmond',\n 'bookinglink' => 'http://www.healthsourceofohio.org',\n 'phone' => '(513) 732-5081',\n 'address' => '100 River Valley Blvd|New Richmond, OH 45157',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45157',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '38.969997',\n 'longitude' => '-84.285034',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:37:49',\n 'location_type_id' => NULL,\n ),\n 435 =>\n array (\n 'id' => 341,\n 'name' => 'Henry County Combined General Health District',\n 'bookinglink' => 'http://www.henrycohd.org',\n 'phone' => '(419) 591-3010',\n 'address' => '1843 Oakwood Avenue|Napoleon, OH 43545',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43545',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Henry',\n 'latitude' => '41.41239',\n 'longitude' => '-84.118866',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:03',\n 'location_type_id' => NULL,\n ),\n 436 =>\n array (\n 'id' => 342,\n 'name' => 'Henry County Hospital',\n 'bookinglink' => 'http://henrycountyhospital.org',\n 'phone' => '(419) 717-9626',\n 'address' => '1600 E Riverview Ave Napoleon, OH 43545',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43545',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Henry',\n 'latitude' => '41.41001',\n 'longitude' => '-84.08736',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:12',\n 'location_type_id' => NULL,\n ),\n 437 =>\n array (\n 'id' => 316,\n 'name' => 'Giant Eagle Pharmacy #6519',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 878-8942',\n 'address' => '4780 West Broad Street Columbus, OH 43228',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43228',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.952274',\n 'longitude' => '-83.12844',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:21:14',\n 'location_type_id' => NULL,\n ),\n 438 =>\n array (\n 'id' => 300,\n 'name' => 'Giant Eagle Pharmacy #6378',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 497-0963',\n 'address' => '1955 East Maple Street North Canton, OH 44720',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.875065',\n 'longitude' => '-81.36868',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:26:11',\n 'location_type_id' => NULL,\n ),\n 439 =>\n array (\n 'id' => 312,\n 'name' => 'Giant Eagle Pharmacy #6513',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 866-3079',\n 'address' => '6867 East Broad Street Columbus, OH 43213',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.98193',\n 'longitude' => '-82.82123',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:26:25',\n 'location_type_id' => NULL,\n ),\n 440 =>\n array (\n 'id' => 331,\n 'name' => 'Harrison County General Health District',\n 'bookinglink' => 'http://www.harrisonpublichealth.org/',\n 'phone' => '(740) 942-2616',\n 'address' => '538 North Main St Cadiz, OH 43907',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43907',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Harrison',\n 'latitude' => '40.28903',\n 'longitude' => '-80.98557',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:26:31',\n 'location_type_id' => NULL,\n ),\n 441 =>\n array (\n 'id' => 332,\n 'name' => 'Hawkins Medical Center',\n 'bookinglink' => 'http://www.tsfhs.org',\n 'phone' => '(419) 525-6730',\n 'address' => '2131 Parke Avenue West Suite 200|Ontario, OH 44906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.759727',\n 'longitude' => '-82.59088',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:26:40',\n 'location_type_id' => NULL,\n ),\n 442 =>\n array (\n 'id' => 333,\n 'name' => 'Health Partners of Western Ohio Quick Care',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 516-0327',\n 'address' => '1550 North Main St Lima, OH 45801',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45801',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.762794',\n 'longitude' => '-84.10501',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:26:47',\n 'location_type_id' => NULL,\n ),\n 443 =>\n array (\n 'id' => 302,\n 'name' => 'Giant Eagle Pharmacy #6385',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(330) 286-0012',\n 'address' => '525 East Main St Canfield, OH 44406',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44406',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.0234649',\n 'longitude' => '-80.7469048',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:59',\n 'location_type_id' => NULL,\n ),\n 444 =>\n array (\n 'id' => 314,\n 'name' => 'Giant Eagle Pharmacy #6515',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 538-0801',\n 'address' => '3061 Kingsdale Center|Columbus, OH 43221',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43221',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0199216',\n 'longitude' => '-83.0584807',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:13:59',\n 'location_type_id' => NULL,\n ),\n 445 =>\n array (\n 'id' => 322,\n 'name' => 'Giant Eagle Pharmacy #6529',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 529-6685',\n 'address' => '6700 Hayden Run Road Hilliard, OH 43026',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43026',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0612349',\n 'longitude' => '-83.1798054',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:00',\n 'location_type_id' => NULL,\n ),\n 446 =>\n array (\n 'id' => 323,\n 'name' => 'Giant Eagle Pharmacy #6531',\n 'bookinglink' => 'http://www.gianteagle.com/covidvaccine',\n 'phone' => '(614) 921-8260',\n 'address' => '4001 Britton Parkway|Hilliard, OH 43026',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43026',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0345767',\n 'longitude' => '-83.1335711',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:00',\n 'location_type_id' => NULL,\n ),\n 447 =>\n array (\n 'id' => 330,\n 'name' => 'Hancock Public Health',\n 'bookinglink' => 'http://www.hancockph.com',\n 'phone' => '(419) 424-7105',\n 'address' => '2225 Keith Parkway|Findlay, OH 45840',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45840',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.0661353',\n 'longitude' => '-83.6202929',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:00',\n 'location_type_id' => NULL,\n ),\n 448 =>\n array (\n 'id' => 336,\n 'name' => 'HealthSource Mt Orab',\n 'bookinglink' => 'http://www.healthsourceofohio.org/',\n 'phone' => '(937) 444-8009',\n 'address' => '150 Health Partners Circle Mt Orab, OH 45154',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45154',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Brown',\n 'latitude' => '39.0450901',\n 'longitude' => '-83.9414783',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:18',\n 'location_type_id' => NULL,\n ),\n 449 =>\n array (\n 'id' => 369,\n 'name' => 'Knox Public Health',\n 'bookinglink' => 'http://knoxhealth.com',\n 'phone' => '(740) 392-2200',\n 'address' => '11660 Upper Gilchrist Road Mt. Vernon, OH 43050',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43050',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Knox',\n 'latitude' => '40.4017',\n 'longitude' => '-82.43723',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:03:49',\n 'location_type_id' => NULL,\n ),\n 450 =>\n array (\n 'id' => 385,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1155 N 21st Street Newark, OH 43055',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43055',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.079712',\n 'longitude' => '-82.42806',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:04:38',\n 'location_type_id' => NULL,\n ),\n 451 =>\n array (\n 'id' => 343,\n 'name' => 'Highland County Health Department',\n 'bookinglink' => 'http://highlandcountyhealth.org',\n 'phone' => '(937) 393-1941',\n 'address' => '1487 N High St. Suite 400|Hillsboro, OH 45133',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45133',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Highland',\n 'latitude' => '39.235878',\n 'longitude' => '-83.60933',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:18',\n 'location_type_id' => NULL,\n ),\n 452 =>\n array (\n 'id' => 347,\n 'name' => 'Holzer Medical Center Gallipolis',\n 'bookinglink' => 'http://www.holzer.org',\n 'phone' => '(740) 446-5566',\n 'address' => '100 Jackson Pike|Gallipolis, OH 45631',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45631',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Gallia',\n 'latitude' => '38.8444',\n 'longitude' => '-82.23679',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:23',\n 'location_type_id' => NULL,\n ),\n 453 =>\n array (\n 'id' => 348,\n 'name' => 'Holzer Medical Center Jackson',\n 'bookinglink' => 'http://www.holzer.org',\n 'phone' => '(740) 446-5566',\n 'address' => '500 Burlington Road|Jackson, OH 45640',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45640',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jackson',\n 'latitude' => '39.030186',\n 'longitude' => '-82.63811',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:26',\n 'location_type_id' => NULL,\n ),\n 454 =>\n array (\n 'id' => 349,\n 'name' => 'Hopewell Health Center Logan PC',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 385-2555',\n 'address' => '30381 Chieftain Drive|Logan, OH 43138',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43138',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hocking',\n 'latitude' => '39.557755',\n 'longitude' => '-82.45642',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:28',\n 'location_type_id' => NULL,\n ),\n 455 =>\n array (\n 'id' => 350,\n 'name' => 'Hopewell Health Centers Athens',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 592-3091',\n 'address' => '90 Hospital Drive|Athens, OH 45701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.32886',\n 'longitude' => '-82.11572',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:29',\n 'location_type_id' => NULL,\n ),\n 456 =>\n array (\n 'id' => 351,\n 'name' => 'Hopewell Health Centers Chillicothe',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 773-4366',\n 'address' => '1049 Western Avenue|Chillicothe, OH 45601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ross',\n 'latitude' => '39.333',\n 'longitude' => '-83.013664',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:35',\n 'location_type_id' => NULL,\n ),\n 457 =>\n array (\n 'id' => 352,\n 'name' => 'Hopewell Health Centers Gallipolis',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 446-5500',\n 'address' => '3086 OH-160|Gallipolis, OH 45631',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45631',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Gallia',\n 'latitude' => '38.846725',\n 'longitude' => '-82.2356',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:36',\n 'location_type_id' => NULL,\n ),\n 458 =>\n array (\n 'id' => 354,\n 'name' => 'Hopewell Health Centers Nelsonville',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 797-2352',\n 'address' => '1950 Mt Saint Marys Dr Nelsonville, OH 45764',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45764',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.463108',\n 'longitude' => '-82.24318',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:47',\n 'location_type_id' => NULL,\n ),\n 459 =>\n array (\n 'id' => 356,\n 'name' => 'Hopewell Health Centers Pomeroy',\n 'bookinglink' => 'http://www.hopewellhealth.org',\n 'phone' => '(740) 992-0540',\n 'address' => '41865 Pomeroy Pike|Pomeroy, OH 45769',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45769',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Meigs',\n 'latitude' => '39.05646',\n 'longitude' => '-82.015335',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:49',\n 'location_type_id' => NULL,\n ),\n 460 =>\n array (\n 'id' => 357,\n 'name' => 'Howland Flu Clinic',\n 'bookinglink' => 'http://www.mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '1932 Niles Cortland Rd NE Warren, OH 44484',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44484',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.265034',\n 'longitude' => '-80.74086',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:56',\n 'location_type_id' => NULL,\n ),\n 461 =>\n array (\n 'id' => 358,\n 'name' => 'Huron County Public Health',\n 'bookinglink' => 'http://www.huroncohealth.com',\n 'phone' => '(419) 668-1652',\n 'address' => '28 Executive DRive|Norwalk, OH 44857',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44857',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Huron',\n 'latitude' => '41.22984',\n 'longitude' => '-82.60069',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:56',\n 'location_type_id' => NULL,\n ),\n 462 =>\n array (\n 'id' => 359,\n 'name' => 'InterContinental Hotel - Cleveland Clinic Main',\n 'bookinglink' => 'http://my.clevelandclinic.org/landing/covid-19-vaccine',\n 'phone' => '(216) 444-2538',\n 'address' => '9801 Carnegie Ave|Cleveland, OH 44106',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44106',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.5011',\n 'longitude' => '-81.61928',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:57',\n 'location_type_id' => NULL,\n ),\n 463 =>\n array (\n 'id' => 360,\n 'name' => 'Ironton HealthCare Campus',\n 'bookinglink' => 'http://familymedicalcenters.org',\n 'phone' => '(740) 534-9202',\n 'address' => '1408 Campbell Dr|Ironton, OH 45638',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45638',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.534588',\n 'longitude' => '-82.65586',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:38:57',\n 'location_type_id' => NULL,\n ),\n 464 =>\n array (\n 'id' => 361,\n 'name' => 'Jackson County Health Department',\n 'bookinglink' => 'http://www.jacksoncountyhealthdepartment.net',\n 'phone' => '(740) 286-5094',\n 'address' => '200 East Main Street Jackson, OH 45640',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45640',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jackson',\n 'latitude' => '39.04683',\n 'longitude' => '-82.63129',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:03',\n 'location_type_id' => NULL,\n ),\n 465 =>\n array (\n 'id' => 362,\n 'name' => 'Jefferson County General Health Distrcit',\n 'bookinglink' => 'http://www.jchealth.com',\n 'phone' => '(740) 283-8530',\n 'address' => '500 Market St|Steubenville, OH 43952',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43952',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.360405',\n 'longitude' => '-80.61649',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:05',\n 'location_type_id' => NULL,\n ),\n 466 =>\n array (\n 'id' => 364,\n 'name' => 'Kenton Community Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 767-2038',\n 'address' => '111 W. Espy St Kenton, OH 43326',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43326',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hardin',\n 'latitude' => '40.64157',\n 'longitude' => '-83.60823',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:10',\n 'location_type_id' => NULL,\n ),\n 467 =>\n array (\n 'id' => 365,\n 'name' => 'Kenton Hardin Health Department',\n 'bookinglink' => 'http://hardinhealth.org',\n 'phone' => '(419) 673-6230',\n 'address' => '175 W. Franklin St Kenton, OH 43326',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43326',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hardin',\n 'latitude' => '40.647198',\n 'longitude' => '-83.60893',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:20',\n 'location_type_id' => NULL,\n ),\n 468 =>\n array (\n 'id' => 366,\n 'name' => 'Kettering Health Network Vaccine Clinic',\n 'bookinglink' => 'http://www.ketteringhealth.org/coronavirus',\n 'phone' => '(844) 576-3627',\n 'address' => '2040 E Dorothy Ln Kettering, OH 45420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.702904',\n 'longitude' => '-84.12728',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:24',\n 'location_type_id' => NULL,\n ),\n 469 =>\n array (\n 'id' => 367,\n 'name' => 'Kettering Health Vaccine Clinic - Jamestown',\n 'bookinglink' => 'http://www.ketteringhealth.org',\n 'phone' => '(844) 576-3627',\n 'address' => '4790 Cottonville Road|Jamestown, OH 45335',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45335',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.655544',\n 'longitude' => '-83.75933',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:24',\n 'location_type_id' => NULL,\n ),\n 470 =>\n array (\n 'id' => 370,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1 W Corry Street Cincinnati, OH 45219',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45219',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.12909',\n 'longitude' => '-84.50957',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:26',\n 'location_type_id' => NULL,\n ),\n 471 =>\n array (\n 'id' => 372,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1008 Washington Blvd|Belpre, OH 45714',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45714',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.27373',\n 'longitude' => '-81.58073',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:31',\n 'location_type_id' => NULL,\n ),\n 472 =>\n array (\n 'id' => 374,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '10101 Landing Way|Miamisburg, OH 45342',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45342',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.600803',\n 'longitude' => '-84.229034',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:36',\n 'location_type_id' => NULL,\n ),\n 473 =>\n array (\n 'id' => 375,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1024 S Smithville Rd Dayton, OH 45403',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45403',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.75336',\n 'longitude' => '-84.13894',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:42',\n 'location_type_id' => NULL,\n ),\n 474 =>\n array (\n 'id' => 377,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '10477 Harrison Ave|Harrison, OH 45030',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45030',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.25145',\n 'longitude' => '-84.79221',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:39:57',\n 'location_type_id' => NULL,\n ),\n 475 =>\n array (\n 'id' => 378,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1060 Ashland Rd|Mansfield, OH 44905',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44905',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.776',\n 'longitude' => '-82.476204',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:40:06',\n 'location_type_id' => NULL,\n ),\n 476 =>\n array (\n 'id' => 379,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1093 State Route 28|Milford, OH 45150',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45150',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.194206',\n 'longitude' => '-84.23881',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:40:15',\n 'location_type_id' => NULL,\n ),\n 477 =>\n array (\n 'id' => 380,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1094 Main Street|Bowling Green, OH 43402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.391376',\n 'longitude' => '-83.65055',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:40:23',\n 'location_type_id' => NULL,\n ),\n 478 =>\n array (\n 'id' => 382,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '113 E. Airport Hwy Swanton, OH 43558',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43558',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fulton',\n 'latitude' => '41.580746',\n 'longitude' => '-83.88711',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:40:37',\n 'location_type_id' => NULL,\n ),\n 479 =>\n array (\n 'id' => 383,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '11390 Montgomery Rd|Cincinnati, OH 45249',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45249',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.27247',\n 'longitude' => '-84.32742',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:40:41',\n 'location_type_id' => NULL,\n ),\n 480 =>\n array (\n 'id' => 384,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(740) 653-2369',\n 'address' => '1141 E Main St Lancaster, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.713688',\n 'longitude' => '-82.57951',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:40:52',\n 'location_type_id' => NULL,\n ),\n 481 =>\n array (\n 'id' => 386,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1161 E Dayton Yellow Springs Rd Fairborn, OH 45324',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45324',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.78335',\n 'longitude' => '-83.99806',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:41:03',\n 'location_type_id' => NULL,\n ),\n 482 =>\n array (\n 'id' => 387,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1165 Western Ave|Chillicothe, OH 45601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ross',\n 'latitude' => '39.33318',\n 'longitude' => '-83.0169',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:41:11',\n 'location_type_id' => NULL,\n ),\n 483 =>\n array (\n 'id' => 344,\n 'name' => 'Hocking County Health Department',\n 'bookinglink' => 'http://www.hockingcountyhealthdepartment.com',\n 'phone' => '(740) 385-3030',\n 'address' => '350 St Rt 664N|Logan, OH 43138',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43138',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hocking',\n 'latitude' => '39.5452528',\n 'longitude' => '-82.4279174',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:19',\n 'location_type_id' => NULL,\n ),\n 484 =>\n array (\n 'id' => 345,\n 'name' => 'Hocking Valley Community Hospital',\n 'bookinglink' => 'http://www.hvch.org',\n 'phone' => '(740) 380-8402',\n 'address' => '601 SR 664N|Logan, OH 43138',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43138',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hocking',\n 'latitude' => '39.5479906',\n 'longitude' => '-82.4294082',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:19',\n 'location_type_id' => NULL,\n ),\n 485 =>\n array (\n 'id' => 371,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1001 Cherry St Ste A Blanchester, OH 45107',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45107',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clinton',\n 'latitude' => '39.3006296',\n 'longitude' => '-83.9608788',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:20',\n 'location_type_id' => NULL,\n ),\n 486 =>\n array (\n 'id' => 376,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1045 Hill Rd N Pickerington, OH 43147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.9066654',\n 'longitude' => '-82.7792925',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:20',\n 'location_type_id' => NULL,\n ),\n 487 =>\n array (\n 'id' => 398,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1425 Worthington Centre Dr Worthington, OH 43085',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43085',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.12322',\n 'longitude' => '-82.9804',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:10',\n 'location_type_id' => NULL,\n ),\n 488 =>\n array (\n 'id' => 401,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1441 Parsons Avenue|Columbus, OH 43207',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43207',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.933884',\n 'longitude' => '-82.983765',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:20',\n 'location_type_id' => NULL,\n ),\n 489 =>\n array (\n 'id' => 404,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '150 West Sycamore Street Columbus, OH 43215',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43215',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.94868',\n 'longitude' => '-83.00152',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:23',\n 'location_type_id' => NULL,\n ),\n 490 =>\n array (\n 'id' => 408,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1585 Georgesville Square Drive Columbus, OH 43228',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43228',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.921246',\n 'longitude' => '-83.11999',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:32',\n 'location_type_id' => NULL,\n ),\n 491 =>\n array (\n 'id' => 414,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1745 Morse Road|Columbus, OH 43229',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43229',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.060375',\n 'longitude' => '-82.97269',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:37',\n 'location_type_id' => NULL,\n ),\n 492 =>\n array (\n 'id' => 421,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '199 Graceland Blvd|Columbus, OH 43214',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43214',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.065952',\n 'longitude' => '-83.02406',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:45:49',\n 'location_type_id' => NULL,\n ),\n 493 =>\n array (\n 'id' => 388,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1212 W Kemper Rd Cincinnati, OH 45240',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45240',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.28879',\n 'longitude' => '-84.5239',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:41:18',\n 'location_type_id' => NULL,\n ),\n 494 =>\n array (\n 'id' => 389,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '12164 Lebanon Rd|Cincinnati, OH 45241',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45241',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.29696',\n 'longitude' => '-84.39142',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:41:18',\n 'location_type_id' => NULL,\n ),\n 495 =>\n array (\n 'id' => 390,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1230 Rombach Ave|Wilmington, OH 45177',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45177',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clinton',\n 'latitude' => '39.448124',\n 'longitude' => '-83.80788',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:41:22',\n 'location_type_id' => NULL,\n ),\n 496 =>\n array (\n 'id' => 391,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1240 Park Ave West Mansfield, OH 44906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.75935',\n 'longitude' => '-82.560104',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:41:33',\n 'location_type_id' => NULL,\n ),\n 497 =>\n array (\n 'id' => 392,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '126 W. High St Fostoria, OH 44830',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44830',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Seneca',\n 'latitude' => '41.161823',\n 'longitude' => '-83.414795',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:41:38',\n 'location_type_id' => NULL,\n ),\n 498 =>\n array (\n 'id' => 397,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1425 Columbus Ave|Lebanon, OH 45036',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45036',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.45271',\n 'longitude' => '-84.181175',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:01',\n 'location_type_id' => NULL,\n ),\n 499 =>\n array (\n 'id' => 402,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1450 South Erie Blvd Hamilton, OH 45011',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45011',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.381226',\n 'longitude' => '-84.54968',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:13',\n 'location_type_id' => NULL,\n ),\n ));\n \\DB::table('locations')->insert(array (\n 0 =>\n array (\n 'id' => 403,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1474 Main St|Hamilton, OH 45013',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45013',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.417824',\n 'longitude' => '-84.58682',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:18',\n 'location_type_id' => NULL,\n ),\n 1 =>\n array (\n 'id' => 405,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1500 Lexington Ave|Mansfield, OH 44907',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44907',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.71933',\n 'longitude' => '-82.5455',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:26',\n 'location_type_id' => NULL,\n ),\n 2 =>\n array (\n 'id' => 406,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1508 Covington Ave|Piqua, OH 45356',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45356',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Miami',\n 'latitude' => '40.141747',\n 'longitude' => '-84.265526',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:29',\n 'location_type_id' => NULL,\n ),\n 3 =>\n array (\n 'id' => 407,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '155 N Heincke Dr Miamisburg, OH 45342',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45342',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.641888',\n 'longitude' => '-84.26467',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:33',\n 'location_type_id' => NULL,\n ),\n 4 =>\n array (\n 'id' => 409,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1608 Marion Mount Gilead Rd Marion, OH 43302',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43302',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Marion',\n 'latitude' => '40.581142',\n 'longitude' => '-83.08518',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:33',\n 'location_type_id' => NULL,\n ),\n 5 =>\n array (\n 'id' => 412,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1700 Cedar St|Fremont, OH 43420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Sandusky',\n 'latitude' => '41.363865',\n 'longitude' => '-83.13417',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:42:55',\n 'location_type_id' => NULL,\n ),\n 6 =>\n array (\n 'id' => 415,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '175 Lancaster Pike|Circleville, OH 43113',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43113',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pickaway',\n 'latitude' => '39.599163',\n 'longitude' => '-82.93178',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:43:09',\n 'location_type_id' => NULL,\n ),\n 7 =>\n array (\n 'id' => 416,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '177 Polaris Pkwy|Columbus, OH 43240',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43240',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.15694',\n 'longitude' => '-83.00338',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:43:10',\n 'location_type_id' => NULL,\n ),\n 8 =>\n array (\n 'id' => 417,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1840 Columbus Pike|Delaware, OH 43015',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43015',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.267246',\n 'longitude' => '-83.0703',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:43:20',\n 'location_type_id' => NULL,\n ),\n 9 =>\n array (\n 'id' => 418,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1890 E Second St Defiance, OH 43512',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43512',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Defiance',\n 'latitude' => '41.28269',\n 'longitude' => '-84.32832',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:43:30',\n 'location_type_id' => NULL,\n ),\n 10 =>\n array (\n 'id' => 419,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '19471 Lake Dr|Trimble, OH 45782',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45782',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.48206',\n 'longitude' => '-82.078',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:43:31',\n 'location_type_id' => NULL,\n ),\n 11 =>\n array (\n 'id' => 423,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '200 Lease Ave|Greenville, OH 45331',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45331',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Darke',\n 'latitude' => '40.12615',\n 'longitude' => '-84.62217',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:43:54',\n 'location_type_id' => NULL,\n ),\n 12 =>\n array (\n 'id' => 425,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2028 E. Harbor Rd Port Clinton, OH 43452',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43452',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ottawa',\n 'latitude' => '41.51614',\n 'longitude' => '-82.90223',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:44:16',\n 'location_type_id' => NULL,\n ),\n 13 =>\n array (\n 'id' => 426,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '210 East Mary Street Bucyrus, OH 44820',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44820',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.810852',\n 'longitude' => '-82.97402',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:44:25',\n 'location_type_id' => NULL,\n ),\n 14 =>\n array (\n 'id' => 427,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '210 Sterling Run Blvd Mount Orab, OH 45154',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45154',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Brown',\n 'latitude' => '39.038044',\n 'longitude' => '-83.92219',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:44:26',\n 'location_type_id' => NULL,\n ),\n 15 =>\n array (\n 'id' => 428,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2100 Michigan St|Sidney, OH 45365',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45365',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Shelby',\n 'latitude' => '40.2878',\n 'longitude' => '-84.186554',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:44:30',\n 'location_type_id' => NULL,\n ),\n 16 =>\n array (\n 'id' => 429,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2115 E Dorothy Ln Kettering, OH 45420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.702835',\n 'longitude' => '-84.12563',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:44:34',\n 'location_type_id' => NULL,\n ),\n 17 =>\n array (\n 'id' => 394,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1350 North High Street Columbus, OH 43201',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43201',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.989815',\n 'longitude' => '-83.00604',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:21:26',\n 'location_type_id' => NULL,\n ),\n 18 =>\n array (\n 'id' => 420,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1955 West Henderson Road Upper Arlington, OH 43220',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43220',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.05529',\n 'longitude' => '-83.07086',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:21:33',\n 'location_type_id' => NULL,\n ),\n 19 =>\n array (\n 'id' => 424,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2000 East Main Street Columbus, OH 43205',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43205',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.957367',\n 'longitude' => '-82.94564',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:21:41',\n 'location_type_id' => NULL,\n ),\n 20 =>\n array (\n 'id' => 393,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '131 State Route 3|Sunbury, OH 43074',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43074',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.240128',\n 'longitude' => '-82.870766',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:27:03',\n 'location_type_id' => NULL,\n ),\n 21 =>\n array (\n 'id' => 411,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1637 U.S. Route 36 East Unit 14|Urbana, OH 43078',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43078',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Champaign',\n 'latitude' => '40.10584',\n 'longitude' => '-83.718124',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:27:13',\n 'location_type_id' => NULL,\n ),\n 22 =>\n array (\n 'id' => 431,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2129 South Main Street Bellefontaine, OH 43311',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43311',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Logan',\n 'latitude' => '40.332195',\n 'longitude' => '-83.76155',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:27:24',\n 'location_type_id' => NULL,\n ),\n 23 =>\n array (\n 'id' => 400,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '1435 Reynolds Rd|Maumee, OH 43537',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43537',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.5844324',\n 'longitude' => '-83.6669879',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:21',\n 'location_type_id' => NULL,\n ),\n 24 =>\n array (\n 'id' => 433,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '220 Waverly Plz|Waverly, OH 45690',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45690',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pike',\n 'latitude' => '39.1329131',\n 'longitude' => '-82.977373',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:22',\n 'location_type_id' => NULL,\n ),\n 25 =>\n array (\n 'id' => 438,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2474 Stringtown Road Grove City, OH 43123',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43123',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.880806',\n 'longitude' => '-83.0672',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:46:12',\n 'location_type_id' => NULL,\n ),\n 26 =>\n array (\n 'id' => 449,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '299 West Bridge Street Dublin, OH 43017',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43017',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.099186',\n 'longitude' => '-83.12096',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:46:20',\n 'location_type_id' => NULL,\n ),\n 27 =>\n array (\n 'id' => 450,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '300 S Hamilton Rd Gahanna, OH 43230',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43230',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.01168',\n 'longitude' => '-82.86711',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:46:31',\n 'location_type_id' => NULL,\n ),\n 28 =>\n array (\n 'id' => 463,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3588 GENDER RD|Canal Winchester, OH 43110',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43110',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.908524',\n 'longitude' => '-82.82443',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:46:59',\n 'location_type_id' => NULL,\n ),\n 29 =>\n array (\n 'id' => 464,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3600 Soldano Boulevard|Columbus, OH 43228',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43228',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.95652',\n 'longitude' => '-83.09531',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:46:59',\n 'location_type_id' => NULL,\n ),\n 30 =>\n array (\n 'id' => 467,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://kroger.com/ohiocovidvaccine',\n 'phone' => '(866) 211-5320',\n 'address' => '3637 S High Street Columbus, OH 43207',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43207',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.88707',\n 'longitude' => '-82.99874',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:47:10',\n 'location_type_id' => NULL,\n ),\n 31 =>\n array (\n 'id' => 468,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3675 E Broad St Whitehall, OH 43213',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.97313',\n 'longitude' => '-82.90281',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:47:21',\n 'location_type_id' => NULL,\n ),\n 32 =>\n array (\n 'id' => 461,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '350 E Broad St Pataskala, OH 43062',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43062',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.00428',\n 'longitude' => '-82.66792',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:04:49',\n 'location_type_id' => NULL,\n ),\n 33 =>\n array (\n 'id' => 434,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2257 N. Holland Sylvania Rd Toledo, OH 43615',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43615',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.662975',\n 'longitude' => '-83.68254',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:04',\n 'location_type_id' => NULL,\n ),\n 34 =>\n array (\n 'id' => 435,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '226 E. Perkins Ave Sandusky, OH 44870',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44870',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Erie',\n 'latitude' => '41.432743',\n 'longitude' => '-82.695435',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:15',\n 'location_type_id' => NULL,\n ),\n 35 =>\n array (\n 'id' => 436,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '230 Lafayette Street|London, OH 43140',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43140',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Madison',\n 'latitude' => '39.894512',\n 'longitude' => '-83.44128',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:15',\n 'location_type_id' => NULL,\n ),\n 36 =>\n array (\n 'id' => 437,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2310 Ferguson Rd|Cincinnati, OH 45238',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45238',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.12778',\n 'longitude' => '-84.60093',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:16',\n 'location_type_id' => NULL,\n ),\n 37 =>\n array (\n 'id' => 440,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2555 Glendale|Toledo, OH 43614',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43614',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.612114',\n 'longitude' => '-83.60582',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:21',\n 'location_type_id' => NULL,\n ),\n 38 =>\n array (\n 'id' => 441,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '262 W Main St Amelia, OH 45102',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45102',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.03689',\n 'longitude' => '-84.229965',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:27',\n 'location_type_id' => NULL,\n ),\n 39 =>\n array (\n 'id' => 443,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2728 E Main St Springfield, OH 45503',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45503',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.92337',\n 'longitude' => '-83.765724',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:38',\n 'location_type_id' => NULL,\n ),\n 40 =>\n array (\n 'id' => 444,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '27322 Carronade|Perrysburg, OH 43551',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43551',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.54751',\n 'longitude' => '-83.59819',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:45:39',\n 'location_type_id' => NULL,\n ),\n 41 =>\n array (\n 'id' => 448,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2989 Derr Rd|Springfield, OH 45503',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45503',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.965855',\n 'longitude' => '-83.78528',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:06',\n 'location_type_id' => NULL,\n ),\n 42 =>\n array (\n 'id' => 451,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '300 South Locust|Oxford, OH 45056',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45056',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.506817',\n 'longitude' => '-84.74939',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:11',\n 'location_type_id' => NULL,\n ),\n 43 =>\n array (\n 'id' => 452,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3033 Heritage Green Drive Monroe, OH 45050',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45050',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.443756',\n 'longitude' => '-84.37716',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:11',\n 'location_type_id' => NULL,\n ),\n 44 =>\n array (\n 'id' => 453,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '31550 Chieftain Dr|Logan, OH 43138',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43138',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hocking',\n 'latitude' => '39.54528',\n 'longitude' => '-82.43462',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:15',\n 'location_type_id' => NULL,\n ),\n 45 =>\n array (\n 'id' => 455,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3301 Navarre Ave|Oregon, OH 43616',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43616',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.637',\n 'longitude' => '-83.470215',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:28',\n 'location_type_id' => NULL,\n ),\n 46 =>\n array (\n 'id' => 456,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3387 Maple Ave|Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.984077',\n 'longitude' => '-82.0208',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:38',\n 'location_type_id' => NULL,\n ),\n 47 =>\n array (\n 'id' => 458,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3420 Towne Blvd|Middletown, OH 45005',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45005',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.49652',\n 'longitude' => '-84.32847',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:46:50',\n 'location_type_id' => NULL,\n ),\n 48 =>\n array (\n 'id' => 460,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3491 North Bend Rd Cincinnati, OH 45239',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45239',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.19082',\n 'longitude' => '-84.59825',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:06',\n 'location_type_id' => NULL,\n ),\n 49 =>\n array (\n 'id' => 462,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3520 W Siebenthaler|Dayton, OH 45406',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45406',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.798103',\n 'longitude' => '-84.24548',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:08',\n 'location_type_id' => NULL,\n ),\n 50 =>\n array (\n 'id' => 465,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3609 Warsaw Ave|Cincinnati, OH 45205',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45205',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.110485',\n 'longitude' => '-84.57102',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:10',\n 'location_type_id' => NULL,\n ),\n 51 =>\n array (\n 'id' => 466,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3636 Springdale Rd|Cincinnati, OH 45251',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45251',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.247574',\n 'longitude' => '-84.5981',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:13',\n 'location_type_id' => NULL,\n ),\n 52 =>\n array (\n 'id' => 473,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '401 Matthew Street Suite 100|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.431366',\n 'longitude' => '-81.46481',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:25',\n 'location_type_id' => NULL,\n ),\n 53 =>\n array (\n 'id' => 474,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '401 N Ewing St Lancaster, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.717144',\n 'longitude' => '-82.57666',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:30',\n 'location_type_id' => NULL,\n ),\n 54 =>\n array (\n 'id' => 475,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4100 Hunt Rd|Blue Ash, OH 45236',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45236',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.225704',\n 'longitude' => '-84.398155',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:34',\n 'location_type_id' => NULL,\n ),\n 55 =>\n array (\n 'id' => 476,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '428 Oxford State Rd Middletown, OH 45042',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45042',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.480938',\n 'longitude' => '-84.42239',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:40',\n 'location_type_id' => NULL,\n ),\n 56 =>\n array (\n 'id' => 478,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '450 Ohio Pike|Cincinnati, OH 45255',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45255',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.071453',\n 'longitude' => '-84.30747',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:41',\n 'location_type_id' => NULL,\n ),\n 57 =>\n array (\n 'id' => 479,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4500 Montgomery Rd|Norwood, OH 45212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.159477',\n 'longitude' => '-84.456856',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:50',\n 'location_type_id' => NULL,\n ),\n 58 =>\n array (\n 'id' => 445,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2900 Crown Plaza Dr Columbus, OH 43235',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43235',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0653169',\n 'longitude' => '-83.0736659',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:22',\n 'location_type_id' => NULL,\n ),\n 59 =>\n array (\n 'id' => 446,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2900 W SR 22|Maineville, OH 45039',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45039',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.3112501',\n 'longitude' => '-84.27488',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:23',\n 'location_type_id' => NULL,\n ),\n 60 =>\n array (\n 'id' => 447,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '2921 W. Alex-Bell Rd Dayton, OH 45459',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45459',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.6754346',\n 'longitude' => '-84.2199893',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:23',\n 'location_type_id' => NULL,\n ),\n 61 =>\n array (\n 'id' => 459,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '345 State Route 3|Westerville, OH 43082',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43082',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.3426001',\n 'longitude' => '-84.2112692',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:23',\n 'location_type_id' => NULL,\n ),\n 62 =>\n array (\n 'id' => 470,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '3975 West Powell Road Powell, OH 43065',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43065',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.156841',\n 'longitude' => '-83.0953268',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:24',\n 'location_type_id' => NULL,\n ),\n 63 =>\n array (\n 'id' => 471,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '400 28th Street|Bellaire, OH 43906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '40.0112766',\n 'longitude' => '-80.7467316',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:24',\n 'location_type_id' => NULL,\n ),\n 64 =>\n array (\n 'id' => 493,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5161 Hampsted Village Center Way New Albany, OH 43031',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43031',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.08875',\n 'longitude' => '-82.825386',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:47:33',\n 'location_type_id' => NULL,\n ),\n 65 =>\n array (\n 'id' => 499,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '55 W Schrock Rd Westerville, OH 43081',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43081',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.109795',\n 'longitude' => '-82.9273',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:47:42',\n 'location_type_id' => NULL,\n ),\n 66 =>\n array (\n 'id' => 504,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5800 West Broad Street Galloway, OH 43119',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43119',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.951088',\n 'longitude' => '-83.15504',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:47:52',\n 'location_type_id' => NULL,\n ),\n 67 =>\n array (\n 'id' => 506,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5965 Hoover Road Grove City, OH 43123',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43123',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.840733',\n 'longitude' => '-83.07327',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:02',\n 'location_type_id' => NULL,\n ),\n 68 =>\n array (\n 'id' => 508,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '60 Worthington Mall|Columbus, OH 43085-5206',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43085-5206',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.107853',\n 'longitude' => '-83.01727',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:04',\n 'location_type_id' => NULL,\n ),\n 69 =>\n array (\n 'id' => 510,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6011 Groveport Road|Groveport, OH 43125',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43125',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.8557',\n 'longitude' => '-82.899826',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:07',\n 'location_type_id' => NULL,\n ),\n 70 =>\n array (\n 'id' => 511,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6095 Gender Rd|Canal Winchester, OH 43110',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43110',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.849834',\n 'longitude' => '-82.82873',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:13',\n 'location_type_id' => NULL,\n ),\n 71 =>\n array (\n 'id' => 518,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6580 E. Main St Reynoldsburg, OH 43068',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43068',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.954914',\n 'longitude' => '-82.8223',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:24',\n 'location_type_id' => NULL,\n ),\n 72 =>\n array (\n 'id' => 521,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7000 E Broad St Columbus, OH 43213',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.982605',\n 'longitude' => '-82.81527',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:36',\n 'location_type_id' => NULL,\n ),\n 73 =>\n array (\n 'id' => 523,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7100 Hospital Drive|Dublin, OH 43016',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43016',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.102654',\n 'longitude' => '-83.161766',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:48:36',\n 'location_type_id' => NULL,\n ),\n 74 =>\n array (\n 'id' => 509,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '600 E Main St Hebron, OH 43025',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43025',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '39.961483',\n 'longitude' => '-82.47933',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:04:58',\n 'location_type_id' => NULL,\n ),\n 75 =>\n array (\n 'id' => 481,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4530 Eastgate Blvd Ste 500|Cincinnati, OH 45245',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45245',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.09908',\n 'longitude' => '-84.2738',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:58',\n 'location_type_id' => NULL,\n ),\n 76 =>\n array (\n 'id' => 482,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4533 Monroe St|Toledo, OH 43613',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43613',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.688602',\n 'longitude' => '-83.620834',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:47:58',\n 'location_type_id' => NULL,\n ),\n 77 =>\n array (\n 'id' => 483,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4613 Marburg Ave|Cincinnati, OH 45209',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45209',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.159847',\n 'longitude' => '-84.42488',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:01',\n 'location_type_id' => NULL,\n ),\n 78 =>\n array (\n 'id' => 484,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4630 Aicholtz Rd|Cincinnati, OH 45244',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45244',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.10263',\n 'longitude' => '-84.28881',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:01',\n 'location_type_id' => NULL,\n ),\n 79 =>\n array (\n 'id' => 485,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-8320',\n 'address' => '4633 Suder Rd|Toledo, OH 43611',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43611',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.70524',\n 'longitude' => '-83.49864',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:07',\n 'location_type_id' => NULL,\n ),\n 80 =>\n array (\n 'id' => 488,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4777 Kenard Ave|Cincinnati, OH 45232',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45232',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.16419',\n 'longitude' => '-84.51309',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:07',\n 'location_type_id' => NULL,\n ),\n 81 =>\n array (\n 'id' => 491,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5080 Delhi Pike|Cincinnati, OH 45238',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45238',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.09501',\n 'longitude' => '-84.61204',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:17',\n 'location_type_id' => NULL,\n ),\n 82 =>\n array (\n 'id' => 496,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '530 E Main St Jackson, OH 45640',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45640',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jackson',\n 'latitude' => '39.044983',\n 'longitude' => '-82.63022',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:27',\n 'location_type_id' => NULL,\n ),\n 83 =>\n array (\n 'id' => 498,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '548 Clinton Ave|Washington Court House, OH 43160',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43160',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fayette',\n 'latitude' => '39.532185',\n 'longitude' => '-83.44698',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:29',\n 'location_type_id' => NULL,\n ),\n 84 =>\n array (\n 'id' => 501,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '560 Wessel Dr|Fairfield, OH 45014',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45014',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.335236',\n 'longitude' => '-84.56164',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:33',\n 'location_type_id' => NULL,\n ),\n 85 =>\n array (\n 'id' => 503,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '575 Harry Sauner Rd Hillsboro, OH 45133',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45133',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Highland',\n 'latitude' => '39.22619',\n 'longitude' => '-83.62102',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:39',\n 'location_type_id' => NULL,\n ),\n 86 =>\n array (\n 'id' => 512,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '610 Carroll Street|New Lexington, OH 43764',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43764',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Perry',\n 'latitude' => '39.72003',\n 'longitude' => '-82.205475',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:40',\n 'location_type_id' => NULL,\n ),\n 87 =>\n array (\n 'id' => 513,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6165 Glenway Ave|Cincinnati, OH 45211',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45211',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.14418',\n 'longitude' => '-84.62243',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:40',\n 'location_type_id' => NULL,\n ),\n 88 =>\n array (\n 'id' => 514,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6235 Monroe St|Sylvania, OH 43560',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43560',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.7153',\n 'longitude' => '-83.693016',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:43',\n 'location_type_id' => NULL,\n ),\n 89 =>\n array (\n 'id' => 515,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6388 Branch Hill Guinea Pike Loveland, OH 45140',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45140',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.22872',\n 'longitude' => '-84.25605',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:48',\n 'location_type_id' => NULL,\n ),\n 90 =>\n array (\n 'id' => 516,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6417 Columbus Pike Lewis Center, OH 43035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.202213',\n 'longitude' => '-83.02944',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:48:57',\n 'location_type_id' => NULL,\n ),\n 91 =>\n array (\n 'id' => 519,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6725 Dick Flynn Blvd Goshen, OH 45122',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45122',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.231',\n 'longitude' => '-84.1637',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:04',\n 'location_type_id' => NULL,\n ),\n 92 =>\n array (\n 'id' => 520,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6950 Miami Ave|Madeira, OH 45243',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45243',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.188236',\n 'longitude' => '-84.3633',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:12',\n 'location_type_id' => NULL,\n ),\n 93 =>\n array (\n 'id' => 524,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7132 Hamilton Ave|Cincinnati, OH 45231',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45231',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.223705',\n 'longitude' => '-84.548965',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:20',\n 'location_type_id' => NULL,\n ),\n 94 =>\n array (\n 'id' => 487,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '475 Fortman Dr|St Marys, OH 45885',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45885',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Auglaize',\n 'latitude' => '40.5541101',\n 'longitude' => '-84.3839377',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:25',\n 'location_type_id' => NULL,\n ),\n 95 =>\n array (\n 'id' => 490,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '50789 Valley Plaza Drive St Clairesville, OH 43950',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43950',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '40.0757408',\n 'longitude' => '-80.8726299',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:25',\n 'location_type_id' => NULL,\n ),\n 96 =>\n array (\n 'id' => 492,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5100 Terra Firma Dr Mason, OH 45040',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45040',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.3175296',\n 'longitude' => '-84.316165',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:26',\n 'location_type_id' => NULL,\n ),\n 97 =>\n array (\n 'id' => 494,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5210 St Rt 741|Mason, OH 45050',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45050',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.3607883',\n 'longitude' => '-84.2787381',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:26',\n 'location_type_id' => NULL,\n ),\n 98 =>\n array (\n 'id' => 495,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5250 Newtown Dr|Liberty Township, OH 45011',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45011',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.4237369',\n 'longitude' => '-84.458177',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:27',\n 'location_type_id' => NULL,\n ),\n 99 =>\n array (\n 'id' => 500,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '555 Marion Rd|Mt Gilead, OH 43338',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43338',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Morrow',\n 'latitude' => '40.5480647',\n 'longitude' => '-82.8462244',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:28',\n 'location_type_id' => NULL,\n ),\n 100 =>\n array (\n 'id' => 502,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '5705 South St Rt 48|Maineville, OH 45039',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45039',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.3511942',\n 'longitude' => '-84.2197901',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:28',\n 'location_type_id' => NULL,\n ),\n 101 =>\n array (\n 'id' => 517,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '6480 Wilmington Pike|Centerville, OH 45459',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45459',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.6396645',\n 'longitude' => '-84.109536',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:29',\n 'location_type_id' => NULL,\n ),\n 102 =>\n array (\n 'id' => 547,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '850 S Hamilton Rd Whitehall, OH 43213',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.95815',\n 'longitude' => '-82.876564',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:49:03',\n 'location_type_id' => NULL,\n ),\n 103 =>\n array (\n 'id' => 548,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '855 Coshocton Ave Mt Vernon, OH 43050',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43050',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Knox',\n 'latitude' => '40.399715',\n 'longitude' => '-82.45781',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:04:00',\n 'location_type_id' => NULL,\n ),\n 104 =>\n array (\n 'id' => 538,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '800 W Coschocton St Johnstown, OH 43031',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43031',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.143322',\n 'longitude' => '-82.71025',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:05:01',\n 'location_type_id' => NULL,\n ),\n 105 =>\n array (\n 'id' => 553,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '910 Hebron Rd|Heath, OH 43056',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43056',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.023865',\n 'longitude' => '-82.447845',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:05:10',\n 'location_type_id' => NULL,\n ),\n 106 =>\n array (\n 'id' => 563,\n 'name' => 'Licking County Health Department',\n 'bookinglink' => 'http://www.lickingcohealth.org/',\n 'phone' => '(740) 670-0949',\n 'address' => '675 Price Road|Newark, OH 43055',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43055',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.09953',\n 'longitude' => '-82.44465',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:05:16',\n 'location_type_id' => NULL,\n ),\n 107 =>\n array (\n 'id' => 525,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '725 W Central Ave Springboro, OH 45066',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45066',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.561855',\n 'longitude' => '-84.25378',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:28',\n 'location_type_id' => NULL,\n ),\n 108 =>\n array (\n 'id' => 527,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '731 W Market St Troy, OH 45373',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45373',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Miami',\n 'latitude' => '40.02978',\n 'longitude' => '-84.21934',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:44',\n 'location_type_id' => NULL,\n ),\n 109 =>\n array (\n 'id' => 529,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7545 Sylvania Ave|Sylvania, OH 43560',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43560',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.688515',\n 'longitude' => '-83.72463',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:49:59',\n 'location_type_id' => NULL,\n ),\n 110 =>\n array (\n 'id' => 530,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7580 Beechmont Ave|Cincinnati, OH 45255',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45255',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.072765',\n 'longitude' => '-84.34595',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:03',\n 'location_type_id' => NULL,\n ),\n 111 =>\n array (\n 'id' => 532,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7747 Old Troy Pike Huber Heights, OH 45424',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45424',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.866795',\n 'longitude' => '-84.13789',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:13',\n 'location_type_id' => NULL,\n ),\n 112 =>\n array (\n 'id' => 533,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '780 Northwoods Blvd|Vandalia, OH 45377',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45377',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.901215',\n 'longitude' => '-84.18396',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:14',\n 'location_type_id' => NULL,\n ),\n 113 =>\n array (\n 'id' => 534,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7833 Refugee Road|Pickerington, OH 43147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.907578',\n 'longitude' => '-82.73546',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:19',\n 'location_type_id' => NULL,\n ),\n 114 =>\n array (\n 'id' => 537,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '800 Loveland Madeira Rd Loveland, OH 45140',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45140',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.26043',\n 'longitude' => '-84.27334',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:46',\n 'location_type_id' => NULL,\n ),\n 115 =>\n array (\n 'id' => 539,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '8000 Princeton-Glendale Rd West Chester, OH 45069',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45069',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.358585',\n 'longitude' => '-84.46087',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:52',\n 'location_type_id' => NULL,\n ),\n 116 =>\n array (\n 'id' => 540,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '801 North Houk Road Delaware, OH 43015',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43015',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.31252',\n 'longitude' => '-83.10922',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:55',\n 'location_type_id' => NULL,\n ),\n 117 =>\n array (\n 'id' => 541,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '811 Gay St|Portsmouth, OH 45662',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45662',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Scioto',\n 'latitude' => '38.736473',\n 'longitude' => '-82.994415',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:50:57',\n 'location_type_id' => NULL,\n ),\n 118 =>\n array (\n 'id' => 542,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '824 Main St|Milford, OH 45150',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45150',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.17792',\n 'longitude' => '-84.28033',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:00',\n 'location_type_id' => NULL,\n ),\n 119 =>\n array (\n 'id' => 543,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '8241 Vine St|Cincinnati, OH 45216',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45216',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.209873',\n 'longitude' => '-84.474396',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:03',\n 'location_type_id' => NULL,\n ),\n 120 =>\n array (\n 'id' => 544,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '833 W. Alexis|Toledo, OH 43612',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43612',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.721622',\n 'longitude' => '-83.562935',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:12',\n 'location_type_id' => NULL,\n ),\n 121 =>\n array (\n 'id' => 549,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '858 Main Street|Wintersville, OH 43953',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43953',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.37522',\n 'longitude' => '-80.70241',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:19',\n 'location_type_id' => NULL,\n ),\n 122 =>\n array (\n 'id' => 550,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '8730 Waterville Swanton Rd Waterville, OH 43566',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43566',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.509388',\n 'longitude' => '-83.757614',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:22',\n 'location_type_id' => NULL,\n ),\n 123 =>\n array (\n 'id' => 551,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '885 Union Blvd|Englewood, OH 45322',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45322',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.871544',\n 'longitude' => '-84.31159',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:25',\n 'location_type_id' => NULL,\n ),\n 124 =>\n array (\n 'id' => 552,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '887 N Bridge St Chillicothe, OH 45601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ross',\n 'latitude' => '39.34651',\n 'longitude' => '-82.976494',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:31',\n 'location_type_id' => NULL,\n ),\n 125 =>\n array (\n 'id' => 554,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '9101 Ohio River Rd Wheelersburg, OH 45694',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45694',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Scioto',\n 'latitude' => '38.713615',\n 'longitude' => '-82.85617',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:33',\n 'location_type_id' => NULL,\n ),\n 126 =>\n array (\n 'id' => 556,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '965 N Bechtle|Springfield, OH 45504',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45504',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.937626',\n 'longitude' => '-83.83509',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:49',\n 'location_type_id' => NULL,\n ),\n 127 =>\n array (\n 'id' => 557,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '965 Poplar St|Nelsonville, OH 45764',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45764',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.45151',\n 'longitude' => '-82.22014',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:51',\n 'location_type_id' => NULL,\n ),\n 128 =>\n array (\n 'id' => 558,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '9939 Montgomery Rd|Cincinnati, OH 45242',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45242',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.237965',\n 'longitude' => '-84.34956',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:57',\n 'location_type_id' => NULL,\n ),\n 129 =>\n array (\n 'id' => 559,\n 'name' => 'Kroger Pharmacy #776',\n 'bookinglink' => 'http://kroger.com',\n 'phone' => '(740) 374-2523',\n 'address' => '40 Acme Street|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.412445',\n 'longitude' => '-81.42945',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:51:57',\n 'location_type_id' => NULL,\n ),\n 130 =>\n array (\n 'id' => 561,\n 'name' => 'Lake County General Health District',\n 'bookinglink' => 'http://www.lcghd.org',\n 'phone' => '(440) 350-2543',\n 'address' => '5966 Heisley Rd.|Mentor, OH 44060',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44060',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.708378',\n 'longitude' => '-81.3046',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:52:11',\n 'location_type_id' => NULL,\n ),\n 131 =>\n array (\n 'id' => 562,\n 'name' => 'Lawrence County Health Dept',\n 'bookinglink' => 'http://www.lawcohd.org',\n 'phone' => '(740) 532-3962',\n 'address' => '2122 South 8th Street Ironton, OH 45638',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45638',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.52124',\n 'longitude' => '-82.66665',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:52:22',\n 'location_type_id' => NULL,\n ),\n 132 =>\n array (\n 'id' => 567,\n 'name' => 'Lima Memorial Hospital - Medical Park',\n 'bookinglink' => 'http://www.limamemorial.org/vaccine',\n 'phone' => '(419) 998-4491',\n 'address' => '525 N Eastown Road Lima, OH 45807',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45807',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.751663',\n 'longitude' => '-84.16511',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:52:49',\n 'location_type_id' => NULL,\n ),\n 133 =>\n array (\n 'id' => 568,\n 'name' => 'Lincoln Heights Health Center',\n 'bookinglink' => 'http://www.healthcare-connection.org',\n 'phone' => '(513) 554-4100',\n 'address' => '1401 Steffen Avenue|Cincinnati, OH 45215',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45215',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.239365',\n 'longitude' => '-84.453705',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:52:49',\n 'location_type_id' => NULL,\n ),\n 134 =>\n array (\n 'id' => 569,\n 'name' => 'Lloyd McCoy Community Health Center',\n 'bookinglink' => 'http://onehealthohio.org',\n 'phone' => '(330) 393-6446',\n 'address' => '1977 Niles Road SE Warren, OH 44484',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44484',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.221508',\n 'longitude' => '-80.79676',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:52:57',\n 'location_type_id' => NULL,\n ),\n 135 =>\n array (\n 'id' => 570,\n 'name' => 'Logan County Health District',\n 'bookinglink' => 'http://loganhealth.org/',\n 'phone' => '(937) 592-9040',\n 'address' => '310 S. Main St. Bellefontaine, OH 43311',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43311',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Logan',\n 'latitude' => '40.357784',\n 'longitude' => '-83.76009',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:07',\n 'location_type_id' => NULL,\n ),\n 136 =>\n array (\n 'id' => 564,\n 'name' => 'Licking Memorial Hospital COVID-19 Vaccine Clinic',\n 'bookinglink' => 'http://www.lmhealth.org',\n 'phone' => '(220) 564-2580',\n 'address' => '1272 W. Main St. Bldg 5 Suite 503|Newark, OH 43055',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43055',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.04737',\n 'longitude' => '-82.44848',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:28:23',\n 'location_type_id' => NULL,\n ),\n 137 =>\n array (\n 'id' => 528,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '7385 Wooster Pike|Mariemont, OH 45227',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45227',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.1416131',\n 'longitude' => '-84.3616806',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:29',\n 'location_type_id' => NULL,\n ),\n 138 =>\n array (\n 'id' => 536,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '790 Market St|Tiffin, OH 44883',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44883',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Seneca',\n 'latitude' => '41.1127288',\n 'longitude' => '-83.2086015',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:30',\n 'location_type_id' => NULL,\n ),\n 139 =>\n array (\n 'id' => 565,\n 'name' => 'Lima Memorial Hospital - Lincoln Family Practice',\n 'bookinglink' => 'http://www.limamemorial.org/vaccine',\n 'phone' => '(419) 998-4491',\n 'address' => '602 West Redskin Trail Wapakoneta, OH 45895',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45895',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Auglaize',\n 'latitude' => '40.5857195',\n 'longitude' => '-84.2071955',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:31',\n 'location_type_id' => NULL,\n ),\n 140 =>\n array (\n 'id' => 571,\n 'name' => 'Lorain County Health & Dentistry',\n 'bookinglink' => 'http://www.lorainhealth-dentistry.org/',\n 'phone' => '(440) 240-2121',\n 'address' => '1205 Broadway Avenue|Lorain, OH 44052',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44052',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.460415',\n 'longitude' => '-82.17042',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:12',\n 'location_type_id' => NULL,\n ),\n 141 =>\n array (\n 'id' => 572,\n 'name' => 'Lorain County Public Health',\n 'bookinglink' => 'http://www.loraincountyhealth.com/coronavirus?gtm_card..',\n 'phone' => '(440) 322-6367',\n 'address' => '9880 South Murray Ridge Road Elyria, OH 44035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.346897',\n 'longitude' => '-82.134514',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:23',\n 'location_type_id' => NULL,\n ),\n 142 =>\n array (\n 'id' => 575,\n 'name' => 'Magruder Hospital',\n 'bookinglink' => 'http://www.magruderhospital.com/',\n 'phone' => '(419) 734-3131',\n 'address' => '615 Fulton St|Port Clinton, OH 43452',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43452',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ottawa',\n 'latitude' => '41.50563',\n 'longitude' => '-82.93378',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:26',\n 'location_type_id' => NULL,\n ),\n 143 =>\n array (\n 'id' => 577,\n 'name' => 'Marc\\'s Pharmacy Belden Village',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 493-3530',\n 'address' => '4825 Dressler Road|Canton, OH 44718',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44718',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.851257',\n 'longitude' => '-81.434456',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:29',\n 'location_type_id' => NULL,\n ),\n 144 =>\n array (\n 'id' => 578,\n 'name' => 'Marc\\'s Pharmacy Brooklyn',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(216) 398-1464',\n 'address' => '7359 Northcliff Avenue|Brooklyn, OH 44144',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44144',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.424976',\n 'longitude' => '-81.7359',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:29',\n 'location_type_id' => NULL,\n ),\n 145 =>\n array (\n 'id' => 579,\n 'name' => 'Marc\\'s Pharmacy Chapel Hill',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 928-8611',\n 'address' => '470 Howe Avenue Cuyahoga Falls, OH 44221',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44221',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.119087',\n 'longitude' => '-81.47633',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:30',\n 'location_type_id' => NULL,\n ),\n 146 =>\n array (\n 'id' => 580,\n 'name' => 'Marc\\'s Pharmacy Fairlawn',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 869-0426',\n 'address' => '2753 W Market Street Fairlawn, OH 44333',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44333',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.126392',\n 'longitude' => '-81.60624',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:37',\n 'location_type_id' => NULL,\n ),\n 147 =>\n array (\n 'id' => 581,\n 'name' => 'Marc\\'s Pharmacy Lakeshore',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(216) 731-7474',\n 'address' => '22840 Lakeshore Blvd|Euclied, OH 44123',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44123',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.612198',\n 'longitude' => '-81.52275',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:53:42',\n 'location_type_id' => NULL,\n ),\n 148 =>\n array (\n 'id' => 583,\n 'name' => 'Marc\\'s Pharmacy Rocky River',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 356-6240',\n 'address' => '21661 Center Ridge Road Rocky River, OH 44116',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44116',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.45965',\n 'longitude' => '-81.86007',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:54:01',\n 'location_type_id' => NULL,\n ),\n 149 =>\n array (\n 'id' => 584,\n 'name' => 'Marc\\'s Pharmacy Solon',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 248-9239',\n 'address' => '6231 SOM Center Road Solon, OH 44139',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44139',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.390537',\n 'longitude' => '-81.43774',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:54:12',\n 'location_type_id' => NULL,\n ),\n 150 =>\n array (\n 'id' => 586,\n 'name' => 'Marcs Pharmacy Aurora',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 995-9260',\n 'address' => '300 Aurora Commons Circle Aurora, OH 44202',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44202',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.316128',\n 'longitude' => '-81.35758',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:54:28',\n 'location_type_id' => NULL,\n ),\n 151 =>\n array (\n 'id' => 587,\n 'name' => 'Marcs Pharmacy Brunswick',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 273-3232',\n 'address' => '3303 Center Road|Brunswick, OH 44212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.238327',\n 'longitude' => '-81.805885',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:54:39',\n 'location_type_id' => NULL,\n ),\n 152 =>\n array (\n 'id' => 588,\n 'name' => 'Marcs Pharmacy Canton',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 492-2969',\n 'address' => '3112 Cleveland Ave NW Canton, OH 44709',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44709',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.831753',\n 'longitude' => '-81.3877',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:54:50',\n 'location_type_id' => NULL,\n ),\n 153 =>\n array (\n 'id' => 589,\n 'name' => 'Marcs Pharmacy Garfield',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(216) 475-2568',\n 'address' => '12650 Rockside Road Garfield Heights, OH 44125',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44125',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.400455',\n 'longitude' => '-81.5964',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:54:55',\n 'location_type_id' => NULL,\n ),\n 154 =>\n array (\n 'id' => 591,\n 'name' => 'Marcs Pharmacy Hartville',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 877-4018',\n 'address' => '900 W Maple Street Hartville, OH 44632',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44632',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.968002',\n 'longitude' => '-81.347015',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:55:03',\n 'location_type_id' => NULL,\n ),\n 155 =>\n array (\n 'id' => 593,\n 'name' => 'Marcs Pharmacy Massillon',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 830-2600',\n 'address' => '1413 Amherst Road NE Massillon, OH 44646',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44646',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.8135',\n 'longitude' => '-81.51663',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:55:25',\n 'location_type_id' => NULL,\n ),\n 156 =>\n array (\n 'id' => 594,\n 'name' => 'Marcs Pharmacy Medina',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 722-3662',\n 'address' => '1041 North Court Street Medina, OH 44256',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.155872',\n 'longitude' => '-81.862595',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:55:34',\n 'location_type_id' => NULL,\n ),\n 157 =>\n array (\n 'id' => 595,\n 'name' => 'Marcs Pharmacy Midtown',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(216) 398-7943',\n 'address' => '1650 Snow Road|Parma, OH 44134',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44134',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.40526',\n 'longitude' => '-81.6904',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:55:34',\n 'location_type_id' => NULL,\n ),\n 158 =>\n array (\n 'id' => 597,\n 'name' => 'Marcs Pharmacy Parmatown',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 843-5495',\n 'address' => '7511 W Ridgewood Drive Parma, OH 44129',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44129',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.38451',\n 'longitude' => '-81.73608',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:55:47',\n 'location_type_id' => NULL,\n ),\n 159 =>\n array (\n 'id' => 599,\n 'name' => 'Marcs Pharmacy Sagamore',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 468-4868',\n 'address' => '550 W Aurora Road Sagamore Hills, OH 44067',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44067',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.314354',\n 'longitude' => '-81.557526',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:56:02',\n 'location_type_id' => NULL,\n ),\n 160 =>\n array (\n 'id' => 601,\n 'name' => 'Marcs Pharmacy Sheffield',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 233-7874',\n 'address' => '170 Sheffield Center|Lorain, OH 44055',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44055',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.4183',\n 'longitude' => '-82.1491',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:56:13',\n 'location_type_id' => NULL,\n ),\n 161 =>\n array (\n 'id' => 603,\n 'name' => 'Marcs Pharmacy Springfield',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 628-0781',\n 'address' => '2891 E Waterloo Road Akron, OH 44312',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44312',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.031612',\n 'longitude' => '-81.429855',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:56:33',\n 'location_type_id' => NULL,\n ),\n 162 =>\n array (\n 'id' => 604,\n 'name' => 'Marcs Pharmacy Stow',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 686-5285',\n 'address' => '3732 Darrow Road|Stow, OH 44224',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44224',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.166267',\n 'longitude' => '-81.44039',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:56:39',\n 'location_type_id' => NULL,\n ),\n 163 =>\n array (\n 'id' => 605,\n 'name' => 'Marcs Pharmacy Waterloo',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 773-5554',\n 'address' => '360 E Waterloo Road Akron, OH 44319',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44319',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.02885',\n 'longitude' => '-81.513596',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:56:43',\n 'location_type_id' => NULL,\n ),\n 164 =>\n array (\n 'id' => 606,\n 'name' => 'Marcs Pharmacy West Tusc',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 477-8862',\n 'address' => '5123 W Tuscarawas Street Canton, OH 44708',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44708',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.792458',\n 'longitude' => '-81.446686',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:56:54',\n 'location_type_id' => NULL,\n ),\n 165 =>\n array (\n 'id' => 607,\n 'name' => 'Marcs Pharmacy Willowick',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 944-2801',\n 'address' => '29700 Lakeshore Blvd|Willowick, OH 44095',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44095',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.634815',\n 'longitude' => '-81.477974',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:05',\n 'location_type_id' => NULL,\n ),\n 166 =>\n array (\n 'id' => 608,\n 'name' => 'Marcs Pharmacy Wooster',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 234-5601',\n 'address' => '1799 Portage Road|Wooster, OH 44691',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44691',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.828396',\n 'longitude' => '-81.91397',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:07',\n 'location_type_id' => NULL,\n ),\n 167 =>\n array (\n 'id' => 610,\n 'name' => 'Marietta/Belpre Health Department',\n 'bookinglink' => 'http://www.mariettabelprehealth.org',\n 'phone' => '(866) 395-1588',\n 'address' => '304 Putman Street|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.416485',\n 'longitude' => '-81.45282',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:18',\n 'location_type_id' => NULL,\n ),\n 168 =>\n array (\n 'id' => 611,\n 'name' => 'Marion Public Health',\n 'bookinglink' => 'http://marionpublichealth.org/',\n 'phone' => '(740) 387-6520',\n 'address' => '181 S. Main St. Marion, OH 43302',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43302',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Marion',\n 'latitude' => '40.58697',\n 'longitude' => '-83.12874',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:28',\n 'location_type_id' => NULL,\n ),\n 169 =>\n array (\n 'id' => 612,\n 'name' => 'Mary Rutan Hospital Health Center',\n 'bookinglink' => 'http://www.maryrutan.org',\n 'phone' => '(937) 592-8805',\n 'address' => '1134 N. Main St. Bellefontaine, OH 43311',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43311',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Logan',\n 'latitude' => '40.377388',\n 'longitude' => '-83.75593',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:57:39',\n 'location_type_id' => NULL,\n ),\n 170 =>\n array (\n 'id' => 582,\n 'name' => 'Marc\\'s Pharmacy Mentor',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 951-1721',\n 'address' => '7353 Mentor Avenue|Mentor, OH 44060',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44060',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.6539004',\n 'longitude' => '-81.3785708',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:31',\n 'location_type_id' => NULL,\n ),\n 171 =>\n array (\n 'id' => 590,\n 'name' => 'Marcs Pharmacy Great Northern',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 777-2521',\n 'address' => '26393 Brookpark Road North Olmsted, OH 44070',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44070',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.4188623',\n 'longitude' => '-81.9154457',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:31',\n 'location_type_id' => NULL,\n ),\n 172 =>\n array (\n 'id' => 596,\n 'name' => 'Marcs Pharmacy North Ridgeville',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(440) 353-1601',\n 'address' => '34800 Center Ridge Road North Ridgeville, OH 44039',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44039',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.3967552',\n 'longitude' => '-82.0040958',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:32',\n 'location_type_id' => NULL,\n ),\n 173 =>\n array (\n 'id' => 598,\n 'name' => 'Marcs Pharmacy Ravenna',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 298-3654',\n 'address' => '1145 East Main Street Ravenna, OH 44266',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44266',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.1584331',\n 'longitude' => '-81.2245166',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:32',\n 'location_type_id' => NULL,\n ),\n 174 =>\n array (\n 'id' => 600,\n 'name' => 'Marcs Pharmacy Salem',\n 'bookinglink' => 'http://www.marcs.com',\n 'phone' => '(330) 337-7358',\n 'address' => '2487 E Stat Street Salem, OH 44460',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44460',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.8992976',\n 'longitude' => '-80.8254952',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:33',\n 'location_type_id' => NULL,\n ),\n 175 =>\n array (\n 'id' => 613,\n 'name' => 'Massillon City Health Department',\n 'bookinglink' => 'http://www.massillonohio.gov',\n 'phone' => '(330) 830-1710',\n 'address' => '111 Tremont Ave SW Massillon, OH 44646',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44646',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.7938081',\n 'longitude' => '-81.5234274',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:33',\n 'location_type_id' => NULL,\n ),\n 176 =>\n array (\n 'id' => 621,\n 'name' => 'Memorial Health System Belpre Campus',\n 'bookinglink' => 'http://mhsystem.org',\n 'phone' => '(844) 887-4148',\n 'address' => '807 Farson St.|Belpre, OH 45714',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45714',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.282986',\n 'longitude' => '-81.610886',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:06',\n 'location_type_id' => NULL,\n ),\n 177 =>\n array (\n 'id' => 622,\n 'name' => 'Memorial Health System Strecker Cancer Center',\n 'bookinglink' => 'http://mhsystem.org',\n 'phone' => '(844) 887-4148',\n 'address' => '400 Matthew St.|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.431362',\n 'longitude' => '-81.4648',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:06',\n 'location_type_id' => NULL,\n ),\n 178 =>\n array (\n 'id' => 626,\n 'name' => 'Mercy Fairfield Medical Arts Building',\n 'bookinglink' => 'http://www.mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '2960 Mack Road|Fairfield, OH 45014',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45014',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.310543',\n 'longitude' => '-84.524',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:30',\n 'location_type_id' => NULL,\n ),\n 179 =>\n array (\n 'id' => 627,\n 'name' => 'Mercy Health Women\\'s Care at Kenwood Towne Centre',\n 'bookinglink' => 'http://www.mercy.com/mercy-health-monitoring-coronavir..',\n 'phone' => '(866) 624-0366',\n 'address' => '7875 Montgomery Road Suite 1102|Cincinnati, OH 45236',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45236',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.200043',\n 'longitude' => '-84.37738',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:41',\n 'location_type_id' => NULL,\n ),\n 180 =>\n array (\n 'id' => 628,\n 'name' => 'Mercy Health - Bay Meadows Family Medicine',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '3851 Navarre Avenue|Oregon, OH 43616',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43616',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.637264',\n 'longitude' => '-83.45671',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:45',\n 'location_type_id' => NULL,\n ),\n 181 =>\n array (\n 'id' => 629,\n 'name' => 'Mercy Health - St Vincent Medical Center',\n 'bookinglink' => 'http://www.Lucascountyhealth.com',\n 'phone' => '(800) 650-4357',\n 'address' => '2213 Cherry Street|Toledo, OH 43608',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43608',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.668686',\n 'longitude' => '-83.54189',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:50',\n 'location_type_id' => NULL,\n ),\n 182 =>\n array (\n 'id' => 630,\n 'name' => 'Mercy Health - Waterville Primary Care',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '1222 Pray Boulevard|Waterville, OH 43566',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43566',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.508175',\n 'longitude' => '-83.7476',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:50',\n 'location_type_id' => NULL,\n ),\n 183 =>\n array (\n 'id' => 631,\n 'name' => 'Mercy Health - West Park Family Medicine',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '3425 Executive Parkway|Toledo, OH 43606',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43606',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.68257',\n 'longitude' => '-83.627754',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:51',\n 'location_type_id' => NULL,\n ),\n 184 =>\n array (\n 'id' => 632,\n 'name' => 'Mercy Health Anderson Medical Office Building II',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '7502 State Road|Cincinnati, OH 45255',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45255',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.0845',\n 'longitude' => '-84.35086',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:51',\n 'location_type_id' => NULL,\n ),\n 185 =>\n array (\n 'id' => 633,\n 'name' => 'Mercy Health Clermont Hospital',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '2055 Hospital Drive Suite 245|Batavia, OH 45103',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45103',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.081944',\n 'longitude' => '-84.14973',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:58:51',\n 'location_type_id' => NULL,\n ),\n 186 =>\n array (\n 'id' => 637,\n 'name' => 'Mercy Health Willard Hospital',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(419) 455-8501',\n 'address' => '1100 Neal Zick Rd Willard, OH 44890',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44890',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Huron',\n 'latitude' => '41.041412',\n 'longitude' => '-82.70724',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:24',\n 'location_type_id' => NULL,\n ),\n 187 =>\n array (\n 'id' => 638,\n 'name' => 'Mercy Health Youngstown Covid Vaccine Clinic',\n 'bookinglink' => 'http://www.mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '1053 Belmont Ave|Youngstown, OH 44504',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44504',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.11438',\n 'longitude' => '-80.65575',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:27',\n 'location_type_id' => NULL,\n ),\n 188 =>\n array (\n 'id' => 640,\n 'name' => 'Mercy Health- Perrysburg Hospital',\n 'bookinglink' => 'http://www.signupgenius.com/go/mercy_covid_vacc',\n 'phone' => '(800) 650-4357',\n 'address' => '12623 Eckel Junction Rd Perrysburg, OH 43551',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43551',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.53678',\n 'longitude' => '-83.637726',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:45',\n 'location_type_id' => NULL,\n ),\n 189 =>\n array (\n 'id' => 641,\n 'name' => 'Mercy Health- St. Charles Hospital',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(800) 650-4357',\n 'address' => '2600 Navarre Avenue|Oregon, OH 43616',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43616',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.636654',\n 'longitude' => '-83.48627',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:46',\n 'location_type_id' => NULL,\n ),\n 190 =>\n array (\n 'id' => 642,\n 'name' => 'Mercy West Hospital Community Vaccine Clinic',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '3300 Mercy Health Blvd. Cincinnati, OH 45211',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45211',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.179474',\n 'longitude' => '-84.60383',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:46',\n 'location_type_id' => NULL,\n ),\n 191 =>\n array (\n 'id' => 643,\n 'name' => 'MercyHealth Tiffin Hospital',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(419) 455-8501',\n 'address' => '45 St Lawrence Drive Tiffin, OH 44883',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44883',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Seneca',\n 'latitude' => '41.105213',\n 'longitude' => '-83.21704',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:46',\n 'location_type_id' => NULL,\n ),\n 192 =>\n array (\n 'id' => 644,\n 'name' => 'MetroHealth Cleveland Heights Hospita',\n 'bookinglink' => 'http://www.metrohealth.org/covid-19/covid-vaccine',\n 'phone' => '(216) 778-6100',\n 'address' => '10 Severance Circle Cleveland Heights, OH 44118',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44118',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.515194',\n 'longitude' => '-81.55404',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:47',\n 'location_type_id' => NULL,\n ),\n 193 =>\n array (\n 'id' => 646,\n 'name' => 'MetroHealth Parma Hospital',\n 'bookinglink' => 'http://www.metrohealth.org/covid-19/covid-vaccine',\n 'phone' => '(216) 778-6100',\n 'address' => '12301 Snow Road|Parma, OH 44130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.405075',\n 'longitude' => '-81.77698',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:59:52',\n 'location_type_id' => NULL,\n ),\n 194 =>\n array (\n 'id' => 647,\n 'name' => 'Miami & Erie Family Practice & Pediatrics',\n 'bookinglink' => 'http://www.grandlakehealth.org/',\n 'phone' => '(419) 300-1132',\n 'address' => '04463 State Route 66|Minster, OH 45865',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45865',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Auglaize',\n 'latitude' => '40.414627',\n 'longitude' => '-84.37705',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:00',\n 'location_type_id' => NULL,\n ),\n 195 =>\n array (\n 'id' => 648,\n 'name' => 'Miami County Public Health',\n 'bookinglink' => 'http://www.miamicountyhealth.net',\n 'phone' => '(937) 573-3461',\n 'address' => '510 W Water St|Troy, OH 45373-2985',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45373-2985',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Miami',\n 'latitude' => '40.04276',\n 'longitude' => '-84.20749',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:01',\n 'location_type_id' => NULL,\n ),\n 196 =>\n array (\n 'id' => 649,\n 'name' => 'Miami Valley Hospital (Reach Out Building)',\n 'bookinglink' => 'http://www.premierhealth.com/vaccine',\n 'phone' => '(937) 276-4141',\n 'address' => '25 E. Foraker Street Dayton, OH 45409',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45409',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.746704',\n 'longitude' => '-84.1881',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:02',\n 'location_type_id' => NULL,\n ),\n 197 =>\n array (\n 'id' => 650,\n 'name' => 'Miami Valley Hospital North',\n 'bookinglink' => 'http://www.premierhealth.com/vaccine',\n 'phone' => '(937) 276-4141',\n 'address' => '9000 N Main St Dayton, OH 45415',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45415',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.852413',\n 'longitude' => '-84.271645',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:11',\n 'location_type_id' => NULL,\n ),\n 198 =>\n array (\n 'id' => 651,\n 'name' => 'Miami Valley Hospital South',\n 'bookinglink' => 'http://www.premierhealth.com/vaccine',\n 'phone' => '(937) 276-4141',\n 'address' => '2400 Miami Valley Dr Centerville, OH 45459',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45459',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.653793',\n 'longitude' => '-84.11296',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:12',\n 'location_type_id' => NULL,\n ),\n 199 =>\n array (\n 'id' => 653,\n 'name' => 'Monroe County Health Department',\n 'bookinglink' => 'http://www.monroecountyohio.com/departments/health_d..',\n 'phone' => '(740) 472-1677',\n 'address' => '118 Home Avenue|Woodsfield, OH 43793',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43793',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Monroe',\n 'latitude' => '39.760387',\n 'longitude' => '-81.108955',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:13',\n 'location_type_id' => NULL,\n ),\n 200 =>\n array (\n 'id' => 654,\n 'name' => 'Morgan Health Department',\n 'bookinglink' => 'http://www.morganpublichealth.org',\n 'phone' => '(740) 962-4572',\n 'address' => '4275 N St Rt 376 NW|McConnelsville, OH 43756',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43756',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Morgan',\n 'latitude' => '39.66333',\n 'longitude' => '-81.85915',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:23',\n 'location_type_id' => NULL,\n ),\n 201 =>\n array (\n 'id' => 655,\n 'name' => 'Morrow County Health District',\n 'bookinglink' => 'http://www.morrowcountyhealth.org/',\n 'phone' => '(419) 947-1515',\n 'address' => '619 West Marion Road Mount Gilead, OH 43338',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43338',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Morrow',\n 'latitude' => '40.549297',\n 'longitude' => '-82.849495',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:31',\n 'location_type_id' => NULL,\n ),\n 202 =>\n array (\n 'id' => 657,\n 'name' => 'Mount Enon Baptist Church',\n 'bookinglink' => 'http://ziksrx.com/',\n 'phone' => '(937) 225-9350',\n 'address' => '1501 W Third St Dayton, OH 45402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.754738',\n 'longitude' => '-84.2209',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:00:54',\n 'location_type_id' => NULL,\n ),\n 203 =>\n array (\n 'id' => 659,\n 'name' => 'MVHC Adair',\n 'bookinglink' => 'http://mvhccares.org',\n 'phone' => '(888) 454-5157',\n 'address' => '716 Adair Ave|Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.953144',\n 'longitude' => '-82.0119',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:06',\n 'location_type_id' => NULL,\n ),\n 204 =>\n array (\n 'id' => 660,\n 'name' => 'MVHC Cambridge',\n 'bookinglink' => 'http://mvhccares.org',\n 'phone' => '(888) 454-5157',\n 'address' => '1330 Clark St|Cambridge, OH 43725',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43725',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Guernsey',\n 'latitude' => '40.039177',\n 'longitude' => '-81.57701',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:11',\n 'location_type_id' => NULL,\n ),\n 205 =>\n array (\n 'id' => 661,\n 'name' => 'MVHC Coshocton',\n 'bookinglink' => 'http://mvhccares.org',\n 'phone' => '(888) 454-5157',\n 'address' => '440 Browns Lane|Coshocton, OH 43812',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43812',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Coshocton',\n 'latitude' => '40.25872',\n 'longitude' => '-81.864914',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:12',\n 'location_type_id' => NULL,\n ),\n 206 =>\n array (\n 'id' => 662,\n 'name' => 'MVHC Malta',\n 'bookinglink' => 'http://mvhccares.org',\n 'phone' => '(888) 454-5157',\n 'address' => '859 N Main St Malta, OH 43758',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43758',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Morgan',\n 'latitude' => '39.652454',\n 'longitude' => '-81.864716',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:12',\n 'location_type_id' => NULL,\n ),\n 207 =>\n array (\n 'id' => 663,\n 'name' => 'MVHC South',\n 'bookinglink' => 'http://mvhccares.org',\n 'phone' => '(888) 454-5157',\n 'address' => '2725 Pinkerton Lane|Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.896755',\n 'longitude' => '-82.05109',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:15',\n 'location_type_id' => NULL,\n ),\n 208 =>\n array (\n 'id' => 664,\n 'name' => 'My Community Health Center',\n 'bookinglink' => 'http://mycomhc.org/',\n 'phone' => '(330) 363-6242',\n 'address' => '2600 7th Street Sw Canton, OH 44710',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44710',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.79533',\n 'longitude' => '-81.40375',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:24',\n 'location_type_id' => NULL,\n ),\n 209 =>\n array (\n 'id' => 665,\n 'name' => 'Neighborhood Family Practice Ridge Rd',\n 'bookinglink' => 'http://www.nfpmedcenter.org',\n 'phone' => '(216) 237-6100',\n 'address' => '3569 Ridge Road|Cleveland, OH 44102',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44102',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.460136',\n 'longitude' => '-81.73835',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:25',\n 'location_type_id' => NULL,\n ),\n 210 =>\n array (\n 'id' => 636,\n 'name' => 'Mercy Health St. Rita\\'s Medical Center',\n 'bookinglink' => 'http://www.mercy.com/mercy-health-monitoring-coronavir..',\n 'phone' => '(419) 996-5000',\n 'address' => '730 West Market Street Lima, OH 45801',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45801',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.740063',\n 'longitude' => '-84.119415',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:07',\n 'location_type_id' => NULL,\n ),\n 211 =>\n array (\n 'id' => 928,\n 'name' => 'The Kroger Co.',\n 'bookinglink' => 'http://www.kroger.com/ohiocovidvaccine',\n 'phone' => '(866) 211-5320',\n 'address' => '1501 West 5th St Marysville, OH 43040',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43040',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Union',\n 'latitude' => '40.242188',\n 'longitude' => '-83.394226',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:37',\n 'location_type_id' => NULL,\n ),\n 212 =>\n array (\n 'id' => 634,\n 'name' => 'Mercy Health Defiance Hospital',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '1404 East Second St Defiance, OH 43512',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43512',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Defiance',\n 'latitude' => '41.2843919',\n 'longitude' => '-84.33944',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:34',\n 'location_type_id' => NULL,\n ),\n 213 =>\n array (\n 'id' => 639,\n 'name' => 'Mercy Health- Lorain',\n 'bookinglink' => 'http://mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '1957 Cooper Foster Park Road Lorain, OH 44053',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44053',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.4177816',\n 'longitude' => '-82.2045828',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:34',\n 'location_type_id' => NULL,\n ),\n 214 =>\n array (\n 'id' => 656,\n 'name' => 'Mount Carmel East',\n 'bookinglink' => 'http://www.mountcarmelhealth.com/',\n 'phone' => '(614) 234-6000',\n 'address' => '6001 East Broad Street Columbus, OH 43213',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.9774772',\n 'longitude' => '-82.8432199',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:34',\n 'location_type_id' => NULL,\n ),\n 215 =>\n array (\n 'id' => 700,\n 'name' => 'PrimaryOne Health',\n 'bookinglink' => 'http://www.primaryonehealth.org/covid-19-vaccine-sched..',\n 'phone' => '(614) 859-1899',\n 'address' => '1905 PARSONS AVENUE|Columbus, OH 43207',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43207',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.924244',\n 'longitude' => '-82.98447',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:04',\n 'location_type_id' => NULL,\n ),\n 216 =>\n array (\n 'id' => 702,\n 'name' => 'PrimaryOne Health',\n 'bookinglink' => 'http://www.primaryonehealth.org/covid-19-vaccine-sched..',\n 'phone' => '(614) 859-1899',\n 'address' => '3433 Agler Rd Suite 2800|Columbus, OH 43219',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43219',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.020638',\n 'longitude' => '-82.91884',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:18',\n 'location_type_id' => NULL,\n ),\n 217 =>\n array (\n 'id' => 704,\n 'name' => 'PrimaryOne Health',\n 'bookinglink' => 'http://www.primaryonehealth.org/covid-19-vaccine-sched..',\n 'phone' => '(614) 859-1899',\n 'address' => '720 E Broad St Ste 100|Columbus, OH 43215',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43215',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.964428',\n 'longitude' => '-82.9814',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:29',\n 'location_type_id' => NULL,\n ),\n 218 =>\n array (\n 'id' => 666,\n 'name' => 'NEON Collinwood Health Center',\n 'bookinglink' => 'http://www.neonhealth.org',\n 'phone' => '(216) 213-4899',\n 'address' => '15322 St. Clair Avenue Cleveland, OH 44110',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44110',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.55501',\n 'longitude' => '-81.5733',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:46',\n 'location_type_id' => NULL,\n ),\n 219 =>\n array (\n 'id' => 667,\n 'name' => 'New Carlisle Community Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(937) 543-0310',\n 'address' => '106 N. Main St|New Carlisle, OH 45344',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45344',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.937252',\n 'longitude' => '-84.02497',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:01:56',\n 'location_type_id' => NULL,\n ),\n 220 =>\n array (\n 'id' => 669,\n 'name' => 'Noble County Health Department',\n 'bookinglink' => 'http://www.noblecohd.org',\n 'phone' => '(866) 395-1588',\n 'address' => '44069 Marietta RD|Caldwell, OH 43724',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43724',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Noble',\n 'latitude' => '39.73672',\n 'longitude' => '-81.52193',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:02:15',\n 'location_type_id' => NULL,\n ),\n 221 =>\n array (\n 'id' => 670,\n 'name' => 'North Lima Covid Vaccine Clinic',\n 'bookinglink' => 'http://www.Mercy.com',\n 'phone' => '(866) 624-0366',\n 'address' => '9471 Market St second floor North Lima, OH 44452',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44452',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '40.98047',\n 'longitude' => '-80.66211',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:02:23',\n 'location_type_id' => NULL,\n ),\n 222 =>\n array (\n 'id' => 671,\n 'name' => 'Norton Pharmacy',\n 'bookinglink' => 'http://tonys-market-pharmacy.business.site/',\n 'phone' => '(216) 651-5700',\n 'address' => '3300 Greenwich Road|Norton, OH 44203',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44203',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.025795',\n 'longitude' => '-81.643974',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:02:26',\n 'location_type_id' => NULL,\n ),\n 223 =>\n array (\n 'id' => 672,\n 'name' => 'Norwood City Health Department',\n 'bookinglink' => 'http://norwood-ohio.com',\n 'phone' => '(513) 458-4515',\n 'address' => '2059 Sherman Ave|Norwood, OH 45212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.160557',\n 'longitude' => '-84.458275',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:02:28',\n 'location_type_id' => NULL,\n ),\n 224 =>\n array (\n 'id' => 676,\n 'name' => 'OhioHealth Delaware COVID Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '6 Lexington Blvd|Delaware, OH 43015',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43015',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.3079',\n 'longitude' => '-83.10048',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:02:56',\n 'location_type_id' => NULL,\n ),\n 225 =>\n array (\n 'id' => 679,\n 'name' => 'OhioHealth Marion Medical Campus Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '1040 Delaware Ave|Marion, OH 43302',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43302',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Marion',\n 'latitude' => '40.57279',\n 'longitude' => '-83.1237',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:00',\n 'location_type_id' => NULL,\n ),\n 226 =>\n array (\n 'id' => 680,\n 'name' => 'OhioHealth Ontario COVID Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '1750 W 4th Street Ontario, OH 44906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.770332',\n 'longitude' => '-82.57737',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:12',\n 'location_type_id' => NULL,\n ),\n 227 =>\n array (\n 'id' => 681,\n 'name' => 'OhioHealth Shelby COVID Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '199 W. Main St. Suite #2100|Shelby, OH 44875',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44875',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.881187',\n 'longitude' => '-82.674736',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:12',\n 'location_type_id' => NULL,\n ),\n 228 =>\n array (\n 'id' => 682,\n 'name' => 'Old West End Community Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(567) 318-3891',\n 'address' => '2244 Collingwood Blvd.|Toledo, OH 43620',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43620',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.66501',\n 'longitude' => '-83.555046',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:13',\n 'location_type_id' => NULL,\n ),\n 229 =>\n array (\n 'id' => 683,\n 'name' => 'ONU HealthWise Mobile Clinic- Alger',\n 'bookinglink' => 'http://www.onuhealthwisepharmacy.com/',\n 'phone' => '(419) 772-3784',\n 'address' => '308 North Main Street Alger, OH 45812',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45812',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hardin',\n 'latitude' => '40.708122',\n 'longitude' => '-83.84389',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:21',\n 'location_type_id' => NULL,\n ),\n 230 =>\n array (\n 'id' => 685,\n 'name' => 'ONU HealthWise Mobile Clinic- Dunkirk',\n 'bookinglink' => 'http://www.onuhealthwisepharmacy.com/',\n 'phone' => '(419) 772-3784',\n 'address' => '201 N Main St Dunkirk, OH 45836',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45836',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hardin',\n 'latitude' => '40.789364',\n 'longitude' => '-83.643425',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:34',\n 'location_type_id' => NULL,\n ),\n 231 =>\n array (\n 'id' => 686,\n 'name' => 'ONU HealthWise Mobile Clinic- Lima WOFB',\n 'bookinglink' => 'http://www.onuhealthwisepharmacy.com/',\n 'phone' => '(419) 772-3784',\n 'address' => '1380 E Kibby St Lima, OH 45804',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45804',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.730526',\n 'longitude' => '-84.08733',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:45',\n 'location_type_id' => NULL,\n ),\n 232 =>\n array (\n 'id' => 687,\n 'name' => 'ONU HealthWise Pharmacy',\n 'bookinglink' => 'http://www.onuhealthwisepharmacy.com/',\n 'phone' => '(419) 772-3784',\n 'address' => '511 W Lincoln Ave Ada, OH 45810',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45810',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hardin',\n 'latitude' => '40.76938',\n 'longitude' => '-83.827835',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:51',\n 'location_type_id' => NULL,\n ),\n 233 =>\n array (\n 'id' => 688,\n 'name' => 'Ottawa County Health Department',\n 'bookinglink' => 'http://www.ottawahealth.org',\n 'phone' => '(419) 734-6800',\n 'address' => '1856 E. Perry St.|Port Clinton, OH 43452',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43452',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ottawa',\n 'latitude' => '41.514816',\n 'longitude' => '-82.9127',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:03:57',\n 'location_type_id' => NULL,\n ),\n 234 =>\n array (\n 'id' => 689,\n 'name' => 'Patterson Park Health Center',\n 'bookinglink' => 'http://www.communityhealthdayton.org',\n 'phone' => '(937) 258-6330',\n 'address' => '1074 Patterson Road|Dayton, OH 45420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.724014',\n 'longitude' => '-84.14967',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:04:04',\n 'location_type_id' => NULL,\n ),\n 235 =>\n array (\n 'id' => 693,\n 'name' => 'Pickaway County Public Health',\n 'bookinglink' => 'http://pickawaycountypublichealth.org/covid-19-vaccine-in..',\n 'phone' => '(740) 477-9667',\n 'address' => '110 Island Rd|Circleville, OH 43113',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43113',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pickaway',\n 'latitude' => '39.60637',\n 'longitude' => '-82.94903',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:04:28',\n 'location_type_id' => NULL,\n ),\n 236 =>\n array (\n 'id' => 694,\n 'name' => 'Pike County General Health District',\n 'bookinglink' => 'http://www.pike-health.org',\n 'phone' => '(740) 947-7721',\n 'address' => '116 South Market St Waverly, OH 45690',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45690',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pike',\n 'latitude' => '39.12605',\n 'longitude' => '-82.9843',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:04:29',\n 'location_type_id' => NULL,\n ),\n 237 =>\n array (\n 'id' => 695,\n 'name' => 'Pomerene Hospital',\n 'bookinglink' => 'http://www.pomerenehospital.org',\n 'phone' => '(330) 674-1015',\n 'address' => '981 Wooster Rd|Millersburg, OH 44654',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44654',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Holmes',\n 'latitude' => '40.565125',\n 'longitude' => '-81.9209',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:04:32',\n 'location_type_id' => NULL,\n ),\n 238 =>\n array (\n 'id' => 696,\n 'name' => 'Portage County Health Department Clinic',\n 'bookinglink' => 'http://www.portagehealth.net',\n 'phone' => '(330) 296-9919',\n 'address' => '705 Oakwood Street|Ravenna, OH 44266',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44266',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.165104',\n 'longitude' => '-81.25606',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:04:33',\n 'location_type_id' => NULL,\n ),\n 239 =>\n array (\n 'id' => 697,\n 'name' => 'Portsmouth City Health Department',\n 'bookinglink' => 'http://portsmouthcityhealth.org',\n 'phone' => '(740) 352-7020',\n 'address' => '605 Washington Street|Portsmouth, OH 45662',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45662',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Scioto',\n 'latitude' => '38.73494',\n 'longitude' => '-82.99861',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:04:36',\n 'location_type_id' => NULL,\n ),\n 240 =>\n array (\n 'id' => 706,\n 'name' => 'Promedica Bay Park Hospital',\n 'bookinglink' => 'http://lucascountyhealth.com/covidvaccine/',\n 'phone' => '(419) 382-0624',\n 'address' => '2801 Bay Park Dr Oregon, OH 43616',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43616',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.62091',\n 'longitude' => '-83.483665',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:29',\n 'location_type_id' => NULL,\n ),\n 241 =>\n array (\n 'id' => 701,\n 'name' => 'PrimaryOne Health',\n 'bookinglink' => 'http://www.primaryonehealth.org/covid-19-vaccine-sched..',\n 'phone' => '(614) 859-1899',\n 'address' => '2300 West Broad Street Columbus, OH 43204',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43204',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.955574',\n 'longitude' => '-83.060974',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:22:20',\n 'location_type_id' => NULL,\n ),\n 242 =>\n array (\n 'id' => 675,\n 'name' => 'OhioHealth Circleville COVID Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '1180 North Court St. Circleville, OH 43113',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43113',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pickaway',\n 'latitude' => '39.621086',\n 'longitude' => '-82.94045',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:45',\n 'location_type_id' => NULL,\n ),\n 243 =>\n array (\n 'id' => 684,\n 'name' => 'ONU HealthWise Mobile Clinic- Bluffton Library',\n 'bookinglink' => 'http://www.onuhealthwisepharmacy.com/',\n 'phone' => '(419) 772-3784',\n 'address' => '145 South Main Street Bluffton, OH 45817',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45817',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.89252',\n 'longitude' => '-83.89303',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:49',\n 'location_type_id' => NULL,\n ),\n 244 =>\n array (\n 'id' => 691,\n 'name' => 'Paulding County Hospital',\n 'bookinglink' => 'http://www.pauldingcountyhospital.com',\n 'phone' => '(419) 399-1160',\n 'address' => '1035 West Wayne Street Paulding, OH 45879',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45879',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Paulding',\n 'latitude' => '41.135307',\n 'longitude' => '-84.60079',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:53',\n 'location_type_id' => NULL,\n ),\n 245 =>\n array (\n 'id' => 698,\n 'name' => 'Primary Health Network',\n 'bookinglink' => 'http://primary-health.net/covid-vaccine-clinic.aspx',\n 'phone' => '(724) 699-9211',\n 'address' => '5594 ST RT 7|Andover, OH 44003',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44003',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.598534',\n 'longitude' => '-80.57126',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:55',\n 'location_type_id' => NULL,\n ),\n 246 =>\n array (\n 'id' => 703,\n 'name' => 'PrimaryOne Health',\n 'bookinglink' => 'http://www.primaryonehealth.org/covid-19-vaccine-sched..',\n 'phone' => '(704) 207-4202',\n 'address' => '600 North Pickaway Street Suite 300|Circleville, OH 43113',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43113',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pickaway',\n 'latitude' => '39.60921',\n 'longitude' => '-82.93825',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:29:58',\n 'location_type_id' => NULL,\n ),\n 247 =>\n array (\n 'id' => 673,\n 'name' => 'Ohio Expo Center & State Fair - Celeste Center',\n 'bookinglink' => 'http://www.columbus.gov/publichealth/Coronavirus-Portal/',\n 'phone' => '(614) 645-1519',\n 'address' => '717 E 17th Ave Columbus, OH 43211',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43211',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0031207',\n 'longitude' => '-82.9917326',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:35',\n 'location_type_id' => NULL,\n ),\n 248 =>\n array (\n 'id' => 692,\n 'name' => 'Perry County Health Department',\n 'bookinglink' => 'http://perrycountyhealth.info',\n 'phone' => '(740) 342-5179',\n 'address' => '409 Lincoln Park Dr|New Lexington, OH 43764',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43764',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Perry',\n 'latitude' => '39.7206874',\n 'longitude' => '-82.2007179',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:35',\n 'location_type_id' => NULL,\n ),\n 249 =>\n array (\n 'id' => 699,\n 'name' => 'PrimaryOne Health',\n 'bookinglink' => 'http://www.primaryonehealth.org/covid-19-vaccine-sched..',\n 'phone' => '(614) 859-1899',\n 'address' => '1905 Parson Avenue|Columbus, OH 43207',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43207',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.9243114',\n 'longitude' => '-82.98457',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:36',\n 'location_type_id' => NULL,\n ),\n 250 =>\n array (\n 'id' => 705,\n 'name' => 'Proctorville Family Medical Center',\n 'bookinglink' => 'http://familymedicalcenters.org',\n 'phone' => '(740) 302-0541',\n 'address' => '10777 County Road 107|Proctorville, OH 45669',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45669',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.4635145',\n 'longitude' => '-82.3205587',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:36',\n 'location_type_id' => NULL,\n ),\n 251 =>\n array (\n 'id' => 708,\n 'name' => 'ProMedica Flower Hospital',\n 'bookinglink' => 'http://lucascountyhealth.com/covidvaccine/',\n 'phone' => '(419) 382-0624',\n 'address' => '5200 Harroun Rd|Sylvania, OH 43560',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43560',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.707363',\n 'longitude' => '-83.69439',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:33',\n 'location_type_id' => NULL,\n ),\n 252 =>\n array (\n 'id' => 709,\n 'name' => 'ProMedica Memorial Hospital',\n 'bookinglink' => 'http://mypromedica.org',\n 'phone' => '(567) 585-1900',\n 'address' => '715 South Taft Avenue Fremont, OH 43420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Sandusky',\n 'latitude' => '41.33951',\n 'longitude' => '-83.13523',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:34',\n 'location_type_id' => NULL,\n ),\n 253 =>\n array (\n 'id' => 710,\n 'name' => 'Public Health Clinic',\n 'bookinglink' => 'http://www.hcph.org',\n 'phone' => '(513) 946-7800',\n 'address' => '184 East McMillan|Cincinnati, OH 45219',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45219',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.126934',\n 'longitude' => '-84.50548',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:40',\n 'location_type_id' => NULL,\n ),\n 254 =>\n array (\n 'id' => 711,\n 'name' => 'Putnam County Health Department',\n 'bookinglink' => 'http://www.putnamhealth.com',\n 'phone' => '(419) 523-5608',\n 'address' => '256 Williamstown Rd.|Ottawa, OH 45875',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45875',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Putnam',\n 'latitude' => '41.01145',\n 'longitude' => '-84.04641',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:41',\n 'location_type_id' => NULL,\n ),\n 255 =>\n array (\n 'id' => 712,\n 'name' => 'Rams Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 574-9868',\n 'address' => '222 McTigue|Toledo, OH 43615',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43615',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.641933',\n 'longitude' => '-83.676834',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:41',\n 'location_type_id' => NULL,\n ),\n 256 =>\n array (\n 'id' => 713,\n 'name' => 'Reid Medical Building',\n 'bookinglink' => 'http://www.familyhealthservices.org/',\n 'phone' => '(937) 547-2399',\n 'address' => '1101 Jackson St|Greenville, OH 45331',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45331',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Darke',\n 'latitude' => '40.08625',\n 'longitude' => '-84.6276',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:44',\n 'location_type_id' => NULL,\n ),\n 257 =>\n array (\n 'id' => 714,\n 'name' => 'Richland Public Health / Corley Room',\n 'bookinglink' => 'http://richlandhealth.org',\n 'phone' => '(866) 395-1588',\n 'address' => '555 Lexington Avenue|Mansfield, OH 44907',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44907',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.739403',\n 'longitude' => '-82.52844',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:50',\n 'location_type_id' => NULL,\n ),\n 258 =>\n array (\n 'id' => 715,\n 'name' => 'Riesbeck\\'s Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 450-7859',\n 'address' => '2200 June Parkway|South Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.90978',\n 'longitude' => '-82.01437',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:51',\n 'location_type_id' => NULL,\n ),\n 259 =>\n array (\n 'id' => 716,\n 'name' => 'Riesbeck\\'s Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 432-3810',\n 'address' => '55 South 23rd Street Cambridge, OH 43725',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43725',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Guernsey',\n 'latitude' => '40.027546',\n 'longitude' => '-81.56525',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:52',\n 'location_type_id' => NULL,\n ),\n 260 =>\n array (\n 'id' => 717,\n 'name' => 'Riesbecks Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 695-0274',\n 'address' => '104 Plaza Drive|St. Clairsville, OH 43950',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43950',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '40.077164',\n 'longitude' => '-80.9174',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:05:52',\n 'location_type_id' => NULL,\n ),\n 261 =>\n array (\n 'id' => 719,\n 'name' => 'Riesbecks Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 676-2325',\n 'address' => '4595 Central Avenue|Shadyside, OH 43947',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43947',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '39.9685',\n 'longitude' => '-80.75487',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:04',\n 'location_type_id' => NULL,\n ),\n 262 =>\n array (\n 'id' => 720,\n 'name' => 'Riesbecks Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 432-3810',\n 'address' => '55 South 23rd Street Cambridge, OH 43725',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43725',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Guernsey',\n 'latitude' => '40.027546',\n 'longitude' => '-81.56525',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:05',\n 'location_type_id' => NULL,\n ),\n 263 =>\n array (\n 'id' => 721,\n 'name' => 'Riesbecks Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 633-3368',\n 'address' => '56130 National Road|Bridgeport, OH 43912',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43912',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '40.068302',\n 'longitude' => '-80.769104',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:05',\n 'location_type_id' => NULL,\n ),\n 264 =>\n array (\n 'id' => 722,\n 'name' => 'Riesbecks Pharmacy',\n 'bookinglink' => 'http://www.riesbeckfoods.com',\n 'phone' => '(740) 633-3368',\n 'address' => '56130 National Road|Bridgetport, OH 43912',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43912',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '40.068302',\n 'longitude' => '-80.769104',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:16',\n 'location_type_id' => NULL,\n ),\n 265 =>\n array (\n 'id' => 724,\n 'name' => 'Rite Aid Store 00193',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 534-1907',\n 'address' => '147 WEST LIBERTY STREET HUBBARD, OH 44425',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44425',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.156406',\n 'longitude' => '-80.571594',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:34',\n 'location_type_id' => NULL,\n ),\n 266 =>\n array (\n 'id' => 726,\n 'name' => 'Rite Aid Store 00408',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 782-0807',\n 'address' => '540 EAST MIDLOTHIAN BLVD. YOUNGSTOWN, OH 44502',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44502',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.06079',\n 'longitude' => '-80.64436',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:41',\n 'location_type_id' => NULL,\n ),\n 267 =>\n array (\n 'id' => 728,\n 'name' => 'Rite Aid Store 00703',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 759-2062',\n 'address' => '2704 BELMONT AVENUE|YOUNGSTOWN, OH 44505',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44505',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.133842',\n 'longitude' => '-80.665504',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:06:59',\n 'location_type_id' => NULL,\n ),\n 268 =>\n array (\n 'id' => 729,\n 'name' => 'Rite Aid Store 00713',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 847-0016',\n 'address' => '5001 MAHONING AVENUE|WARREN, OH 44483',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44483',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.291714',\n 'longitude' => '-80.84793',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:01',\n 'location_type_id' => NULL,\n ),\n 269 =>\n array (\n 'id' => 730,\n 'name' => 'Rite Aid Store 00794',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 836-5204',\n 'address' => '900 UNION BLVD|ENGLEWOOD, OH 45322',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45322',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.864105',\n 'longitude' => '-84.31144',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:03',\n 'location_type_id' => NULL,\n ),\n 270 =>\n array (\n 'id' => 731,\n 'name' => 'Rite Aid Store 00911',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 793-4409',\n 'address' => '5498 MAHONING AVENUE|YOUNGSTOWN, OH 44515',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44515',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.09962',\n 'longitude' => '-80.7636',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:09',\n 'location_type_id' => NULL,\n ),\n 271 =>\n array (\n 'id' => 732,\n 'name' => 'Rite Aid Store 01006',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 372-1677',\n 'address' => '34 SOUTH ALLISON AVENUE XENIA, OH 45385',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45385',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.68349',\n 'longitude' => '-83.94325',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:10',\n 'location_type_id' => NULL,\n ),\n 272 =>\n array (\n 'id' => 736,\n 'name' => 'Rite Aid Store 01187',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 849-1366',\n 'address' => '564 MCADAMS DRIVE NEW CARLISLE, OH 45344',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45344',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.888493',\n 'longitude' => '-84.04721',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:30',\n 'location_type_id' => NULL,\n ),\n 273 =>\n array (\n 'id' => 737,\n 'name' => 'Rite Aid Store 01217',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 473-2451',\n 'address' => '5765 SECOR ROAD|TOLEDO, OH 43623',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43623',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.720272',\n 'longitude' => '-83.62416',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:32',\n 'location_type_id' => NULL,\n ),\n 274 =>\n array (\n 'id' => 738,\n 'name' => 'Rite Aid Store 01260',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(513) 420-2546',\n 'address' => '1915 CENTRAL AVENUE|MIDDLETOWN, OH 45044',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45044',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.512966',\n 'longitude' => '-84.39113',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:43',\n 'location_type_id' => NULL,\n ),\n 275 =>\n array (\n 'id' => 739,\n 'name' => 'Rite Aid Store 01282',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 347-1506',\n 'address' => '11 MANSFIELD AVENUE|SHELBY, OH 44875',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44875',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.88063',\n 'longitude' => '-82.65635',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:48',\n 'location_type_id' => NULL,\n ),\n 276 =>\n array (\n 'id' => 740,\n 'name' => 'Rite Aid Store 01283',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 725-4104',\n 'address' => '207 NORTH COURT STREET MEDINA, OH 44256',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.14081',\n 'longitude' => '-81.864',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:07:55',\n 'location_type_id' => NULL,\n ),\n 277 =>\n array (\n 'id' => 741,\n 'name' => 'Rite Aid Store 01347',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 925-6015',\n 'address' => '155 NORTH MAIN STREET RITTMAN, OH 44270',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44270',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.977047',\n 'longitude' => '-81.78155',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:00',\n 'location_type_id' => NULL,\n ),\n 278 =>\n array (\n 'id' => 743,\n 'name' => 'Rite Aid Store 01433',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 668-9775',\n 'address' => '99 WHITTLESEY AVENUE|NORWALK, OH 44857',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44857',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Huron',\n 'latitude' => '41.246033',\n 'longitude' => '-82.61841',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:18',\n 'location_type_id' => NULL,\n ),\n 279 =>\n array (\n 'id' => 746,\n 'name' => 'Rite Aid Store 01803',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 527-2828',\n 'address' => '10764 NORTH STREET|GARRETTSVILLE, OH 44231',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44231',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.285522',\n 'longitude' => '-81.09861',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:20',\n 'location_type_id' => NULL,\n ),\n 280 =>\n array (\n 'id' => 747,\n 'name' => 'Rite Aid Store 02077',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 545-8414',\n 'address' => '713 NORTH STATE STREET GIRARD, OH 44420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.161537',\n 'longitude' => '-80.70346',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:27',\n 'location_type_id' => NULL,\n ),\n 281 =>\n array (\n 'id' => 748,\n 'name' => 'Rite Aid Store 02303',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 864-1603',\n 'address' => '101 WEST MAIN STREET ENON, OH 45323',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45323',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.878113',\n 'longitude' => '-83.937546',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:33',\n 'location_type_id' => NULL,\n ),\n 282 =>\n array (\n 'id' => 751,\n 'name' => 'Rite Aid Store 02310',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 691-5851',\n 'address' => '210 MAIN STREET|TOLEDO, OH 43605',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43605',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.647152',\n 'longitude' => '-83.522',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:47',\n 'location_type_id' => NULL,\n ),\n 283 =>\n array (\n 'id' => 752,\n 'name' => 'Rite Aid Store 02314',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 244-5781',\n 'address' => '1605 BROADWAY STREET|TOLEDO, OH 43609',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43609',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.63069',\n 'longitude' => '-83.556694',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:48',\n 'location_type_id' => NULL,\n ),\n 284 =>\n array (\n 'id' => 723,\n 'name' => 'Rite Aid Store 00119',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 433-4909',\n 'address' => '898 SOUTH MAIN STREET CENTERVILLE, OH 45458',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45458',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.613808',\n 'longitude' => '-84.16018',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:30:10',\n 'location_type_id' => NULL,\n ),\n 285 =>\n array (\n 'id' => 727,\n 'name' => 'Rite Aid Store 00449',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 687-3456',\n 'address' => '590 WEST MAIN STREET NEW LEBANON, OH 45345',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45345',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.7457',\n 'longitude' => '-84.3765',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:30:19',\n 'location_type_id' => NULL,\n ),\n 286 =>\n array (\n 'id' => 742,\n 'name' => 'Rite Aid Store 01351',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 633-1150',\n 'address' => '45 EAST AVENUE|TALLMADGE, OH 44278',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44278',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.101395',\n 'longitude' => '-81.43906',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:30:23',\n 'location_type_id' => NULL,\n ),\n 287 =>\n array (\n 'id' => 750,\n 'name' => 'Rite Aid Store 02309',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 478-8177',\n 'address' => '1012 WEST SYLVANIA AVENUE TOLEDO, OH 43612',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43612',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.692608',\n 'longitude' => '-83.56665',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:30:26',\n 'location_type_id' => NULL,\n ),\n 288 =>\n array (\n 'id' => 734,\n 'name' => 'Rite Aid Store 01167',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 466-3323',\n 'address' => '633 SOUTH BROADWAY|GENEVA, OH 44041',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44041',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.7966659',\n 'longitude' => '-80.9466055',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:37',\n 'location_type_id' => NULL,\n ),\n 289 =>\n array (\n 'id' => 753,\n 'name' => 'Rite Aid Store 02316',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 531-1172',\n 'address' => '3325 WEST CENTRAL AVENUE TOLEDO, OH 43606',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43606',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.67736',\n 'longitude' => '-83.62363',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:52',\n 'location_type_id' => NULL,\n ),\n 290 =>\n array (\n 'id' => 754,\n 'name' => 'Rite Aid Store 02317',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 243-9803',\n 'address' => '3013 MONROE STREET|TOLEDO, OH 43606',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43606',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.664803',\n 'longitude' => '-83.570755',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:08:54',\n 'location_type_id' => NULL,\n ),\n 291 =>\n array (\n 'id' => 755,\n 'name' => 'Rite Aid Store 02318',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 531-2115',\n 'address' => '5224 DORR STREET|TOLEDO, OH 43615',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43615',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.65339',\n 'longitude' => '-83.6657',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:01',\n 'location_type_id' => NULL,\n ),\n 292 =>\n array (\n 'id' => 756,\n 'name' => 'Rite Aid Store 02319',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 222-7797',\n 'address' => '506 WEST MARKET STREET LIMA, OH 45801',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45801',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.739998',\n 'longitude' => '-84.11057',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:11',\n 'location_type_id' => NULL,\n ),\n 293 =>\n array (\n 'id' => 758,\n 'name' => 'Rite Aid Store 02321',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 381-6981',\n 'address' => '2430 GLENDALE AVENUE|TOLEDO, OH 43614',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43614',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.612053',\n 'longitude' => '-83.6022',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:20',\n 'location_type_id' => NULL,\n ),\n 294 =>\n array (\n 'id' => 759,\n 'name' => 'Rite Aid Store 02326',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 874-3587',\n 'address' => '1175 LOUISIANA AVE|PERRYSBURG, OH 43551',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43551',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.54469',\n 'longitude' => '-83.6196',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:21',\n 'location_type_id' => NULL,\n ),\n 295 =>\n array (\n 'id' => 760,\n 'name' => 'Rite Aid Store 02331',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 726-8449',\n 'address' => '4869 NORTH SUMMIT STREET TOLEDO, OH 43611',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43611',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.71141',\n 'longitude' => '-83.479',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:24',\n 'location_type_id' => NULL,\n ),\n 296 =>\n array (\n 'id' => 761,\n 'name' => 'Rite Aid Store 02339',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 729-9934',\n 'address' => '5033 SUDER AVENUE|TOLEDO, OH 43611',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43611',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.70955',\n 'longitude' => '-83.49959',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:30',\n 'location_type_id' => NULL,\n ),\n 297 =>\n array (\n 'id' => 762,\n 'name' => 'Rite Aid Store 02340',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 473-1221',\n 'address' => '2434 WEST LASKEY ROAD TOLEDO, OH 43613',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43613',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.706627',\n 'longitude' => '-83.602615',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:33',\n 'location_type_id' => NULL,\n ),\n 298 =>\n array (\n 'id' => 763,\n 'name' => 'Rite Aid Store 02341',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 885-3616',\n 'address' => '6484 MONROE STREET|SYLVANIA, OH 43560',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43560',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.71557',\n 'longitude' => '-83.701454',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:34',\n 'location_type_id' => NULL,\n ),\n 299 =>\n array (\n 'id' => 764,\n 'name' => 'Rite Aid Store 02343',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 866-8943',\n 'address' => '7225 AIRPORT HIGHWAY|HOLLAND, OH 43528',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43528',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.610294',\n 'longitude' => '-83.713745',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:35',\n 'location_type_id' => NULL,\n ),\n 300 =>\n array (\n 'id' => 766,\n 'name' => 'Rite Aid Store 02351',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 229-5846',\n 'address' => '302 WEST ROBB AVE LIMA, OH 45801',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45801',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.759068',\n 'longitude' => '-84.10946',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:46',\n 'location_type_id' => NULL,\n ),\n 301 =>\n array (\n 'id' => 768,\n 'name' => 'Rite Aid Store 02354',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 885-2989',\n 'address' => '4018 NORTH MCCORD ROAD SYLVANIA, OH 43560',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43560',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.690594',\n 'longitude' => '-83.70348',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:48',\n 'location_type_id' => NULL,\n ),\n 302 =>\n array (\n 'id' => 769,\n 'name' => 'Rite Aid Store 02355',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 825-1161',\n 'address' => '105 WEST AIRPORT HIGHWAY SWANTON, OH 43558',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43558',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fulton',\n 'latitude' => '41.58065',\n 'longitude' => '-83.888016',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:50',\n 'location_type_id' => NULL,\n ),\n 303 =>\n array (\n 'id' => 770,\n 'name' => 'Rite Aid Store 02357',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 337-3494',\n 'address' => '2229 EAST STATE STREET SALEM, OH 44460',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44460',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.900913',\n 'longitude' => '-80.829666',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:09:55',\n 'location_type_id' => NULL,\n ),\n 304 =>\n array (\n 'id' => 771,\n 'name' => 'Rite Aid Store 02359',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 424-1828',\n 'address' => '1501 NORTH MAIN STREET FINDLAY, OH 45840',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45840',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.059216',\n 'longitude' => '-83.650024',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:02',\n 'location_type_id' => NULL,\n ),\n 305 =>\n array (\n 'id' => 772,\n 'name' => 'Rite Aid Store 02367',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 228-2296',\n 'address' => '1415 BELLEFONTAINE AVENUE|lima, OH 45804',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45804',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.730816',\n 'longitude' => '-84.07976',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:04',\n 'location_type_id' => NULL,\n ),\n 306 =>\n array (\n 'id' => 774,\n 'name' => 'Rite Aid Store 02388',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 456-0515',\n 'address' => '3030 MARKET AVENUE, N.E. CANTON, OH 44714',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44714',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.831364',\n 'longitude' => '-81.36609',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:10',\n 'location_type_id' => NULL,\n ),\n 307 =>\n array (\n 'id' => 776,\n 'name' => 'Rite Aid Store 02390',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 837-3138',\n 'address' => '3129 LINCOLN WAY EAST MASSILLON, OH 44646',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44646',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.795547',\n 'longitude' => '-81.47693',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:13',\n 'location_type_id' => NULL,\n ),\n 308 =>\n array (\n 'id' => 777,\n 'name' => 'Rite Aid Store 02392',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 339-2565',\n 'address' => '705 WEST HIGH AVENUE|NEW PHILADELPHIA, OH 44663',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44663',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.491817',\n 'longitude' => '-81.45892',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:21',\n 'location_type_id' => NULL,\n ),\n 309 =>\n array (\n 'id' => 779,\n 'name' => 'Rite Aid Store 02394',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 683-2512',\n 'address' => '145 WEST MAIN STREET CRESTLINE, OH 44827',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44827',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.787834',\n 'longitude' => '-82.73695',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:26',\n 'location_type_id' => NULL,\n ),\n 310 =>\n array (\n 'id' => 780,\n 'name' => 'Rite Aid Store 02395',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 589-8843',\n 'address' => '1075 ASHLAND ROAD|MANSFIELD, OH 44905',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44905',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.776653',\n 'longitude' => '-82.47509',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:30',\n 'location_type_id' => NULL,\n ),\n 311 =>\n array (\n 'id' => 781,\n 'name' => 'Rite Aid Store 02397',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 289-3717',\n 'address' => '419 CLAREMONT AVENUE|ASHLAND, OH 44805',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44805',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashland',\n 'latitude' => '40.866127',\n 'longitude' => '-82.319374',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:36',\n 'location_type_id' => NULL,\n ),\n 312 =>\n array (\n 'id' => 782,\n 'name' => 'Rite Aid Store 02398',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 868-4171',\n 'address' => '300 EAST LINCOLN WAY MINERVA, OH 44657',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44657',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.730347',\n 'longitude' => '-81.10171',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:39',\n 'location_type_id' => NULL,\n ),\n 313 =>\n array (\n 'id' => 783,\n 'name' => 'Rite Aid Store 02401',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 499-3448',\n 'address' => '7800 CLEVELAND AVE NW NORTH CANTON, OH 44720',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.900455',\n 'longitude' => '-81.40607',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:41',\n 'location_type_id' => NULL,\n ),\n 314 =>\n array (\n 'id' => 784,\n 'name' => 'Rite Aid Store 02403',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 756-1224',\n 'address' => '875 LEXINGTON AVENUE|MANSFIELD, OH 44907',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44907',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.7333',\n 'longitude' => '-82.534225',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:43',\n 'location_type_id' => NULL,\n ),\n 315 =>\n array (\n 'id' => 789,\n 'name' => 'Rite Aid Store 02415',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 477-7269',\n 'address' => '3010 WHIPPLE AVENUE, NW CANTON, OH 44718',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44718',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.833164',\n 'longitude' => '-81.424065',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:56',\n 'location_type_id' => NULL,\n ),\n 316 =>\n array (\n 'id' => 790,\n 'name' => 'Rite Aid Store 02418',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 424-7743',\n 'address' => '7844 STATE ROUTE 45|LISBON, OH 44432',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44432',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.784454',\n 'longitude' => '-80.77333',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:10:59',\n 'location_type_id' => NULL,\n ),\n 317 =>\n array (\n 'id' => 791,\n 'name' => 'Rite Aid Store 02419',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 947-8515',\n 'address' => '510 WEST MARION ROAD MT. GILEAD, OH 43338',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43338',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Morrow',\n 'latitude' => '40.548717',\n 'longitude' => '-82.84481',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:05',\n 'location_type_id' => NULL,\n ),\n 318 =>\n array (\n 'id' => 792,\n 'name' => 'Rite Aid Store 02437',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 866-5020',\n 'address' => '8619 WAYNESBURG DR SE WAYNESBURG, OH 44688',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44688',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.677135',\n 'longitude' => '-81.26105',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:06',\n 'location_type_id' => NULL,\n ),\n 319 =>\n array (\n 'id' => 793,\n 'name' => 'Rite Aid Store 02452',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 638-8747',\n 'address' => '569 SOUTH HIGH STREET CORTLAND, OH 44410',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44410',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.320282',\n 'longitude' => '-80.73057',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:08',\n 'location_type_id' => NULL,\n ),\n 320 =>\n array (\n 'id' => 794,\n 'name' => 'Rite Aid Store 02456',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 644-9911',\n 'address' => '4053 SOUTH MAIN STREET AKRON, OH 44319',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44319',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '40.97658',\n 'longitude' => '-81.52291',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:19',\n 'location_type_id' => NULL,\n ),\n 321 =>\n array (\n 'id' => 795,\n 'name' => 'Rite Aid Store 02590',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 647-2121',\n 'address' => '267 NORTH MAIN STREET WELLINGTON, OH 44090',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44090',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.172413',\n 'longitude' => '-82.21743',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:01',\n 'location_type_id' => NULL,\n ),\n 322 =>\n array (\n 'id' => 757,\n 'name' => 'Rite Aid Store 02320',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 435-7716',\n 'address' => '113 NORTH COUNTYLINE STREET FOSTORIA, OH 44830',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44830',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.1581147',\n 'longitude' => '-83.4216454',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:37',\n 'location_type_id' => NULL,\n ),\n 323 =>\n array (\n 'id' => 765,\n 'name' => 'Rite Aid Store 02346',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 729-2907',\n 'address' => '810 EAST MANHATTAN BLVD. TOLEDO, OH 43608',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43608',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.6864714',\n 'longitude' => '-83.5261352',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:38',\n 'location_type_id' => NULL,\n ),\n 324 =>\n array (\n 'id' => 773,\n 'name' => 'Rite Aid Store 02373',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 855-8363',\n 'address' => '21991 WEST STATE ROUTE 51|GENOA, OH 43430',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43430',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ottawa',\n 'latitude' => '41.5311328',\n 'longitude' => '-83.3578593',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:38',\n 'location_type_id' => NULL,\n ),\n 325 =>\n array (\n 'id' => 778,\n 'name' => 'Rite Aid Store 02393',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 854-6618',\n 'address' => '2220 SOUTH LOCUST STREET CANAL FULTON, OH 44614',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44614',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.8828716',\n 'longitude' => '-81.5718748',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:39',\n 'location_type_id' => NULL,\n ),\n 326 =>\n array (\n 'id' => 796,\n 'name' => 'Rite Aid Store 02629',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 845-2042',\n 'address' => '120 SOUTH MAIN STREET NEW CARLISLE, OH 45344',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45344',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.93682',\n 'longitude' => '-84.02502',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:37',\n 'location_type_id' => NULL,\n ),\n 327 =>\n array (\n 'id' => 797,\n 'name' => 'Rite Aid Store 02637',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 255-9524',\n 'address' => '1525 CHERRY STREET|TOLEDO, OH 43608',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43608',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.664078',\n 'longitude' => '-83.53801',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:39',\n 'location_type_id' => NULL,\n ),\n 328 =>\n array (\n 'id' => 798,\n 'name' => 'Rite Aid Store 02640',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 431-5643',\n 'address' => '5411 SUPERIOR AVENUE|CLEVELAND, OH 44103',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44103',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.517563',\n 'longitude' => '-81.6528',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:40',\n 'location_type_id' => NULL,\n ),\n 329 =>\n array (\n 'id' => 799,\n 'name' => 'Rite Aid Store 02654',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 286-4167',\n 'address' => '501 WATER STREET|CHARDON, OH 44024',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44024',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.580864',\n 'longitude' => '-81.21351',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:40',\n 'location_type_id' => NULL,\n ),\n 330 =>\n array (\n 'id' => 800,\n 'name' => 'Rite Aid Store 02665',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 451-9027',\n 'address' => '10502 SAINT CLAIR AVENUE CLEVELAND, OH 44108',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44108',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.53881',\n 'longitude' => '-81.61541',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:43',\n 'location_type_id' => NULL,\n ),\n 331 =>\n array (\n 'id' => 801,\n 'name' => 'Rite Aid Store 03011',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 942-4288',\n 'address' => '36212 EUCLID AVENUE|WILLOUGHBY, OH 44094',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44094',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.627735',\n 'longitude' => '-81.42696',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:45',\n 'location_type_id' => NULL,\n ),\n 332 =>\n array (\n 'id' => 803,\n 'name' => 'Rite Aid Store 03028',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 262-9045',\n 'address' => '1955 CLEVELAND ROAD|WOOSTER, OH 44691',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44691',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.823803',\n 'longitude' => '-81.933914',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:11:54',\n 'location_type_id' => NULL,\n ),\n 333 =>\n array (\n 'id' => 804,\n 'name' => 'Rite Aid Store 03030',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 258-8101',\n 'address' => '2532 EAST THIRD STREET DAYTON, OH 45403',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45403',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.765026',\n 'longitude' => '-84.158',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:01',\n 'location_type_id' => NULL,\n ),\n 334 =>\n array (\n 'id' => 805,\n 'name' => 'Rite Aid Store 03031',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 898-8829',\n 'address' => '10 W. NATIONAL ROAD VANDALIA, OH 45377',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45377',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.89077',\n 'longitude' => '-84.199196',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:08',\n 'location_type_id' => NULL,\n ),\n 335 =>\n array (\n 'id' => 806,\n 'name' => 'Rite Aid Store 03041',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 831-1616',\n 'address' => '28600 CHAGRIN BOULEVARD|BEACHWOOD, OH 44122',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44122',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.462326',\n 'longitude' => '-81.47737',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:12',\n 'location_type_id' => NULL,\n ),\n 336 =>\n array (\n 'id' => 808,\n 'name' => 'Rite Aid Store 03053',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 884-3549',\n 'address' => '5795 STATE ROAD|PARMA, OH 44134',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44134',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.405117',\n 'longitude' => '-81.71039',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:17',\n 'location_type_id' => NULL,\n ),\n 337 =>\n array (\n 'id' => 809,\n 'name' => 'Rite Aid Store 03056',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 356-3433',\n 'address' => '23709 CENTER RIDGE ROAD WESTLAKE, OH 44145',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44145',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.456543',\n 'longitude' => '-81.88264',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:25',\n 'location_type_id' => NULL,\n ),\n 338 =>\n array (\n 'id' => 811,\n 'name' => 'Rite Aid Store 03062',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 372-4105',\n 'address' => '2154 ELM ROAD NE WARREN, OH 44483',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44483',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.254204',\n 'longitude' => '-80.79118',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:40',\n 'location_type_id' => NULL,\n ),\n 339 =>\n array (\n 'id' => 812,\n 'name' => 'Rite Aid Store 03084',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 256-1901',\n 'address' => '146 WOODMAN DRIVE|DAYTON, OH 45431',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45431',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.76723',\n 'longitude' => '-84.123405',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:40',\n 'location_type_id' => NULL,\n ),\n 340 =>\n array (\n 'id' => 813,\n 'name' => 'Rite Aid Store 03088',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 274-1530',\n 'address' => '4328 NORTH MAIN STREET DAYTON, OH 45405',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45405',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.806107',\n 'longitude' => '-84.22263',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:46',\n 'location_type_id' => NULL,\n ),\n 341 =>\n array (\n 'id' => 814,\n 'name' => 'Rite Aid Store 03091',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 572-0455',\n 'address' => '14701 PEARL ROAD|STRONGSVILLE, OH 44136',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44136',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.3083',\n 'longitude' => '-81.83523',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:48',\n 'location_type_id' => NULL,\n ),\n 342 =>\n array (\n 'id' => 815,\n 'name' => 'Rite Aid Store 03095',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 832-4774',\n 'address' => '242 LINCOLN WAY WEST MASSILLON, OH 44647',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44647',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.795635',\n 'longitude' => '-81.52608',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:51',\n 'location_type_id' => NULL,\n ),\n 343 =>\n array (\n 'id' => 816,\n 'name' => 'Rite Aid Store 03102',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 468-5340',\n 'address' => '304 HARDING WAY WEST GALION, OH 44833',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44833',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Crawford',\n 'latitude' => '40.733963',\n 'longitude' => '-82.79303',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:12:54',\n 'location_type_id' => NULL,\n ),\n 344 =>\n array (\n 'id' => 818,\n 'name' => 'Rite Aid Store 03117',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 782-8240',\n 'address' => '2701 MARKET STREET|YOUNGSTOWN, OH 44507',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44507',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.07242',\n 'longitude' => '-80.65753',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:07',\n 'location_type_id' => NULL,\n ),\n 345 =>\n array (\n 'id' => 820,\n 'name' => 'Rite Aid Store 03123',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 758-2824',\n 'address' => '307 BOARDMAN-CANFIELD RD|YOUNGSTOWN, OH 44512',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44512',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.024437',\n 'longitude' => '-80.67261',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:12',\n 'location_type_id' => NULL,\n ),\n 346 =>\n array (\n 'id' => 821,\n 'name' => 'Rite Aid Store 03131',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 752-4866',\n 'address' => '20405 CHAGRIN BOULEVARD SHAKER HEIGHTS, OH 44122',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44122',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.464554',\n 'longitude' => '-81.53591',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:23',\n 'location_type_id' => NULL,\n ),\n 347 =>\n array (\n 'id' => 822,\n 'name' => 'Rite Aid Store 03134',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 275-7032',\n 'address' => '3700 NORTH DIXIE DRIVE DAYTON, OH 45414',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45414',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.797638',\n 'longitude' => '-84.19282',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:28',\n 'location_type_id' => NULL,\n ),\n 348 =>\n array (\n 'id' => 823,\n 'name' => 'Rite Aid Store 03139',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 294-2651',\n 'address' => '1320 EAST STROOP ROAD KETTERING, OH 45429',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45429',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.688675',\n 'longitude' => '-84.14379',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:32',\n 'location_type_id' => NULL,\n ),\n 349 =>\n array (\n 'id' => 824,\n 'name' => 'Rite Aid Store 03143',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 733-8378',\n 'address' => '1540 CANTON ROAD|AKRON, OH 44312',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44312',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.025227',\n 'longitude' => '-81.421555',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:35',\n 'location_type_id' => NULL,\n ),\n 350 =>\n array (\n 'id' => 825,\n 'name' => 'Rite Aid Store 03144',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 867-8492',\n 'address' => '2975 WEST MARKET STREET FAIRLAWN, OH 44333',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44333',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.127842',\n 'longitude' => '-81.60929',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:40',\n 'location_type_id' => NULL,\n ),\n 351 =>\n array (\n 'id' => 828,\n 'name' => 'Rite Aid Store 03148',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 661-5077',\n 'address' => '2323 BROADVIEW ROAD|CLEVELAND, OH 44109',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44109',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.438877',\n 'longitude' => '-81.70064',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:42',\n 'location_type_id' => NULL,\n ),\n 352 =>\n array (\n 'id' => 830,\n 'name' => 'Rite Aid Store 03153',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 676-5561',\n 'address' => '15149 SNOW ROAD|BROOKPARK, OH 44142',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44142',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.403812',\n 'longitude' => '-81.80335',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:52',\n 'location_type_id' => NULL,\n ),\n 353 =>\n array (\n 'id' => 831,\n 'name' => 'Rite Aid Store 03155',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 777-4524',\n 'address' => '29000 LORAIN ROAD NORTH OLMSTED, OH 44070',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44070',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.407864',\n 'longitude' => '-81.94164',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:13:59',\n 'location_type_id' => NULL,\n ),\n 354 =>\n array (\n 'id' => 832,\n 'name' => 'Rite Aid Store 03157',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 961-9414',\n 'address' => '3402 CLARK AVENUE|CLEVELAND, OH 44109',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44109',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.469822',\n 'longitude' => '-81.706604',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:14:01',\n 'location_type_id' => NULL,\n ),\n 355 =>\n array (\n 'id' => 833,\n 'name' => 'Rite Aid Store 03163',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 662-7470',\n 'address' => '21800 LIBBY ROAD|MAPLE HEIGHTS, OH 44137',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44137',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.416927',\n 'longitude' => '-81.52769',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:14:19',\n 'location_type_id' => NULL,\n ),\n 356 =>\n array (\n 'id' => 829,\n 'name' => 'Rite Aid Store 03151',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 724-5219',\n 'address' => '325 EAST WATERLOO ROAD AKRON, OH 44319',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44319',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.028854',\n 'longitude' => '-81.51438',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:11',\n 'location_type_id' => NULL,\n ),\n 357 =>\n array (\n 'id' => 834,\n 'name' => 'Rite Aid Store 03167',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 823-6921',\n 'address' => '304 EAST STATE STREET ALLIANCE, OH 44601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.90169',\n 'longitude' => '-81.10116',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:13',\n 'location_type_id' => NULL,\n ),\n 358 =>\n array (\n 'id' => 836,\n 'name' => 'Rite Aid Store 03174',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 257-6258',\n 'address' => '7796 MUNSON ROAD|MENTOR, OH 44060',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44060',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.70508',\n 'longitude' => '-81.36064',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:22',\n 'location_type_id' => NULL,\n ),\n 359 =>\n array (\n 'id' => 837,\n 'name' => 'Rite Aid Store 03180',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 625-2258',\n 'address' => '1420 SYCAMORE LINE ROAD SANDUSKY, OH 44870',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44870',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Erie',\n 'latitude' => '41.44565',\n 'longitude' => '-82.69744',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:22',\n 'location_type_id' => NULL,\n ),\n 360 =>\n array (\n 'id' => 838,\n 'name' => 'Rite Aid Store 03181',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 482-3854',\n 'address' => '14973 SOUTH AVENUE|COLUMBIANA, OH 44408',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44408',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '40.90063',\n 'longitude' => '-80.69617',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:23',\n 'location_type_id' => NULL,\n ),\n 361 =>\n array (\n 'id' => 807,\n 'name' => 'Rite Aid Store 03043',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 721-2020',\n 'address' => '10090 CHESTER AVE|CLEVELAND, OH 44106',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44106',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.5050262',\n 'longitude' => '-81.6176364',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:39',\n 'location_type_id' => NULL,\n ),\n 362 =>\n array (\n 'id' => 819,\n 'name' => 'Rite Aid Store 03120',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 799-7313',\n 'address' => '2800 MAHONING AVENUE|YOUNGSTOWN, OH 44509',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44509',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.1035264',\n 'longitude' => '-80.7005196',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:39',\n 'location_type_id' => NULL,\n ),\n 363 =>\n array (\n 'id' => 842,\n 'name' => 'Rite Aid Store 03198',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 452-7762',\n 'address' => '227 MARKET AVENUE NORTH CANTON, OH 44702',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44702',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.79957',\n 'longitude' => '-81.37434',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:32',\n 'location_type_id' => NULL,\n ),\n 364 =>\n array (\n 'id' => 843,\n 'name' => 'Rite Aid Store 03246',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 256-3111',\n 'address' => '2916 LINDEN AVENUE|DAYTON, OH 45410',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45410',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.748177',\n 'longitude' => '-84.14096',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:33',\n 'location_type_id' => NULL,\n ),\n 365 =>\n array (\n 'id' => 844,\n 'name' => 'Rite Aid Store 03247',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 324-5796',\n 'address' => '401 WEST NORTH STREET SPRINGFIELD, OH 45504',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45504',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.927414',\n 'longitude' => '-83.81757',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:39',\n 'location_type_id' => NULL,\n ),\n 366 =>\n array (\n 'id' => 845,\n 'name' => 'Rite Aid Store 03266',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(740) 694-5717',\n 'address' => '117 SOUTH MAIN STREET FREDERICKTOWN, OH 43019',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43019',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Knox',\n 'latitude' => '40.47648',\n 'longitude' => '-82.540985',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:46',\n 'location_type_id' => NULL,\n ),\n 367 =>\n array (\n 'id' => 846,\n 'name' => 'Rite Aid Store 03365',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 926-2126',\n 'address' => '479 MAIN STREET|GRAFTON, OH 44044',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44044',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.28287',\n 'longitude' => '-82.06387',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:47',\n 'location_type_id' => NULL,\n ),\n 368 =>\n array (\n 'id' => 847,\n 'name' => 'Rite Aid Store 03486',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 671-1411',\n 'address' => '11702 LORAIN AVENUE|CLEVELAND, OH 44111',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44111',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.461845',\n 'longitude' => '-81.769',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:48',\n 'location_type_id' => NULL,\n ),\n 369 =>\n array (\n 'id' => 848,\n 'name' => 'Rite Aid Store 03580',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 991-2867',\n 'address' => '3710 SHAWNEE ROAD|LIMA, OH 45806',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45806',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.68623',\n 'longitude' => '-84.15116',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:31:57',\n 'location_type_id' => NULL,\n ),\n 370 =>\n array (\n 'id' => 851,\n 'name' => 'Rite Aid Store 04071',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 383-7600',\n 'address' => '475 E 185TH STREET EUCLID, OH 44119',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44119',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.59429',\n 'longitude' => '-81.54993',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:09',\n 'location_type_id' => NULL,\n ),\n 371 =>\n array (\n 'id' => 853,\n 'name' => 'Rite Aid Store 04278',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(216) 521-8826',\n 'address' => '16207 DETROIT AVENUE|LAKEWOOD, OH 44107',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44107',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.48521',\n 'longitude' => '-81.81046',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:18',\n 'location_type_id' => NULL,\n ),\n 372 =>\n array (\n 'id' => 855,\n 'name' => 'Rite Aid Store 04280',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 872-4442',\n 'address' => '325 WEST BROAD STREET NEWTON FALLS, OH 44444',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44444',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.188538',\n 'longitude' => '-80.97852',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:20',\n 'location_type_id' => NULL,\n ),\n 373 =>\n array (\n 'id' => 856,\n 'name' => 'Rite Aid Store 04296',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 706-1004',\n 'address' => '1403 WOOSTER ROAD WEST BARBERTON, OH 44203',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44203',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.00563',\n 'longitude' => '-81.638916',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:28',\n 'location_type_id' => NULL,\n ),\n 374 =>\n array (\n 'id' => 857,\n 'name' => 'Rite Aid Store 04580',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 967-2018',\n 'address' => '4580 LIBERTY AVENUE|VERMILION, OH 44089',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44089',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.425007',\n 'longitude' => '-82.3468',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:36',\n 'location_type_id' => NULL,\n ),\n 375 =>\n array (\n 'id' => 858,\n 'name' => 'Rite Aid Store 04605',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 856-1794',\n 'address' => '4205 EAST MARKET STREET WARREN, OH 44484',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44484',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.237137',\n 'longitude' => '-80.766365',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:38',\n 'location_type_id' => NULL,\n ),\n 376 =>\n array (\n 'id' => 860,\n 'name' => 'Rite Aid Store 04726',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 922-4466',\n 'address' => '1914 BAILEY ROAD CUYAHOGA FALLS, OH 44221',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44221',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.132458',\n 'longitude' => '-81.465614',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:45',\n 'location_type_id' => NULL,\n ),\n 377 =>\n array (\n 'id' => 861,\n 'name' => 'Rite Aid Store 04748',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 277-1611',\n 'address' => '3875 SALEM AVENUE|DAYTON, OH 45406',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45406',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.797043',\n 'longitude' => '-84.25092',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:52',\n 'location_type_id' => NULL,\n ),\n 378 =>\n array (\n 'id' => 862,\n 'name' => 'Rite Aid Store 04764',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 717-1697',\n 'address' => '8085 BROADVIEW ROAD BROADVIEW HEIGHTS, OH 44147',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44147',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.346222',\n 'longitude' => '-81.68458',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:54',\n 'location_type_id' => NULL,\n ),\n 379 =>\n array (\n 'id' => 863,\n 'name' => 'Rite Aid Store 04766',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 277-6181',\n 'address' => '2853 GROVE AVENUE|LORAIN, OH 44055',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44055',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.445206',\n 'longitude' => '-82.12',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:32:55',\n 'location_type_id' => NULL,\n ),\n 380 =>\n array (\n 'id' => 864,\n 'name' => 'Rite Aid Store 04784',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 943-2127',\n 'address' => '30500 LAKESHORE BOULEVARD|WILLOWICK, OH 44095',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44095',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.639282',\n 'longitude' => '-81.47436',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:06',\n 'location_type_id' => NULL,\n ),\n 381 =>\n array (\n 'id' => 865,\n 'name' => 'Rite Aid Store 04811',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 336-2550',\n 'address' => '780 HIGH STREET|WADSWORTH, OH 44281',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44281',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.04466',\n 'longitude' => '-81.72882',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:09',\n 'location_type_id' => NULL,\n ),\n 382 =>\n array (\n 'id' => 867,\n 'name' => 'Rite Aid Store 04825',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 252-9894',\n 'address' => '1158 WILMINGTON AVENUE|DAYTON, OH 45420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.724674',\n 'longitude' => '-84.15272',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:17',\n 'location_type_id' => NULL,\n ),\n 383 =>\n array (\n 'id' => 868,\n 'name' => 'Rite Aid Store 04847',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 428-1128',\n 'address' => '6655 NORTH RIDGE ROAD MADISON, OH 44057',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44057',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.80231',\n 'longitude' => '-81.05001',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:20',\n 'location_type_id' => NULL,\n ),\n 384 =>\n array (\n 'id' => 869,\n 'name' => 'Rite Aid Store 04937',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 624-8442',\n 'address' => '334 WEST PERKINS AVENUE SANDUSKY, OH 44870',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44870',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Erie',\n 'latitude' => '41.43292',\n 'longitude' => '-82.70396',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:22',\n 'location_type_id' => NULL,\n ),\n 385 =>\n array (\n 'id' => 870,\n 'name' => 'Rite Aid Store 04947',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 988-5832',\n 'address' => '100 SOUTH LEAVITT ROAD AMHERST, OH 44001',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44001',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.405754',\n 'longitude' => '-82.20935',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:23',\n 'location_type_id' => NULL,\n ),\n 386 =>\n array (\n 'id' => 871,\n 'name' => 'Rite Aid Store 04953',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 220-7767',\n 'address' => '3871 CENTER ROAD|BRUNSWICK, OH 44212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.2383',\n 'longitude' => '-81.82501',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:29',\n 'location_type_id' => NULL,\n ),\n 387 =>\n array (\n 'id' => 872,\n 'name' => 'Rite Aid Store 04975',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 871-7177',\n 'address' => '27175 CENTER RIDGE ROAD WESTLAKE, OH 44145',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44145',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.449776',\n 'longitude' => '-81.92097',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:32',\n 'location_type_id' => NULL,\n ),\n 388 =>\n array (\n 'id' => 875,\n 'name' => 'Rite Aid Store 06681',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 882-5860',\n 'address' => '5890 MONROE STREET|SYLVANIA, OH 43560',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43560',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.71378',\n 'longitude' => '-83.6838',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:35',\n 'location_type_id' => NULL,\n ),\n 389 =>\n array (\n 'id' => 877,\n 'name' => 'Rite Aid Store 07712',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 699-9131',\n 'address' => '13353 CLEVELAND AVENUE NW UNIONTOWN, OH 44685',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44685',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.9737',\n 'longitude' => '-81.40711',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:36',\n 'location_type_id' => NULL,\n ),\n 390 =>\n array (\n 'id' => 878,\n 'name' => 'Rite Aid Store 07728',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 354-3911',\n 'address' => '722-740 SOUTH MAIN STREET BOWLING GREEN, OH 43402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.36463',\n 'longitude' => '-83.650406',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:42',\n 'location_type_id' => NULL,\n ),\n 391 =>\n array (\n 'id' => 879,\n 'name' => 'Rite Aid Store 07817',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 841-8525',\n 'address' => '7504 WEST CENTRAL AVENUE TOLEDO, OH 43617',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43617',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.673885',\n 'longitude' => '-83.72317',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:45',\n 'location_type_id' => NULL,\n ),\n 392 =>\n array (\n 'id' => 880,\n 'name' => 'Rite Aid Store 07928',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 221-3679',\n 'address' => '3230 W ELM STREET LIMA LIMA, OH 45805',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45805',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.736984',\n 'longitude' => '-84.16341',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:46',\n 'location_type_id' => NULL,\n ),\n 393 =>\n array (\n 'id' => 882,\n 'name' => 'Rite Aid Store 07945',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 690-8269',\n 'address' => '3362 NAVARRE AVENUE|OREGON, OH 43616',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43616',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.637047',\n 'longitude' => '-83.467514',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:56',\n 'location_type_id' => NULL,\n ),\n 394 =>\n array (\n 'id' => 841,\n 'name' => 'Rite Aid Store 03195',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 352-0627',\n 'address' => '180 NORTH STATE STREET PAINESVILLE, OH 44077',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44077',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.7292832',\n 'longitude' => '-81.2425103',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:40',\n 'location_type_id' => NULL,\n ),\n 395 =>\n array (\n 'id' => 852,\n 'name' => 'Rite Aid Store 04245',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 322-7780',\n 'address' => '142 BROAD STREET|ELYRIA, OH 44035',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44035',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.3671559',\n 'longitude' => '-82.10139',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:41',\n 'location_type_id' => NULL,\n ),\n 396 =>\n array (\n 'id' => 854,\n 'name' => 'Rite Aid Store 04279',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 632-5201',\n 'address' => '15596 WEST HIGH STREET MIDDLEFIELD, OH 44062',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44062',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Geauga',\n 'latitude' => '41.4633139',\n 'longitude' => '-81.085555',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:41',\n 'location_type_id' => NULL,\n ),\n 397 =>\n array (\n 'id' => 873,\n 'name' => 'Rite Aid Store 06678',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 666-1583',\n 'address' => '801 DIXIE HIGHWAY|ROSSFORD, OH 43460',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43460',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.6077028',\n 'longitude' => '-83.5612268',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:42',\n 'location_type_id' => NULL,\n ),\n 398 =>\n array (\n 'id' => 874,\n 'name' => 'Rite Aid Store 06679',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 893-5533',\n 'address' => '105 GOLDEN GATE PLAZA MAUMEE, OH 43537',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43537',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.5200318',\n 'longitude' => '-81.4490867',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:42',\n 'location_type_id' => NULL,\n ),\n 399 =>\n array (\n 'id' => 881,\n 'name' => 'Rite Aid Store 07939',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(440) 461-1416',\n 'address' => '1233 SOM CENTER ROAD MAYFIELD HEIGHTS, OH 44126',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44126',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.5269529',\n 'longitude' => '-81.4379633',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:43',\n 'location_type_id' => NULL,\n ),\n 400 =>\n array (\n 'id' => 910,\n 'name' => 'Southeast, Inc.',\n 'bookinglink' => 'http://southeasthc.org',\n 'phone' => '(614) 225-0990',\n 'address' => '16 West Long Street Columbus, OH 43215',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43215',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.964848',\n 'longitude' => '-83.00199',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:41',\n 'location_type_id' => NULL,\n ),\n 401 =>\n array (\n 'id' => 885,\n 'name' => 'Rock Hill Family Medical Center',\n 'bookinglink' => 'http://familymedicalcenters.org',\n 'phone' => '(740) 643-8688',\n 'address' => '2325C County Road 26 Ironton, OH 45638',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45638',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lawrence',\n 'latitude' => '38.61265',\n 'longitude' => '-82.659515',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:57',\n 'location_type_id' => NULL,\n ),\n 402 =>\n array (\n 'id' => 886,\n 'name' => 'Rocking Horse Community Health Center',\n 'bookinglink' => 'http://Rockinghorsecenter.org',\n 'phone' => '(937) 525-4521',\n 'address' => '651 South Limestone Street Springfield, OH 45505',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45505',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.91659',\n 'longitude' => '-83.8092',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:33:59',\n 'location_type_id' => NULL,\n ),\n 403 =>\n array (\n 'id' => 887,\n 'name' => 'Ross County Health District',\n 'bookinglink' => 'http://rosscountyhealth.org/vaccination-information/',\n 'phone' => '(740) 779-9652',\n 'address' => '150 E. Second Street Chillicothe, OH 45601',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45601',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ross',\n 'latitude' => '39.335236',\n 'longitude' => '-82.97777',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:00',\n 'location_type_id' => NULL,\n ),\n 404 =>\n array (\n 'id' => 888,\n 'name' => 'Salem City Health District',\n 'bookinglink' => 'http://www.salemcityhealthdistrict.org',\n 'phone' => '(330) 332-1618',\n 'address' => '230 N Lincoln Ave. Suite 104|Salem, OH 44460',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44460',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.902424',\n 'longitude' => '-80.8517',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:02',\n 'location_type_id' => NULL,\n ),\n 405 =>\n array (\n 'id' => 889,\n 'name' => 'Salem Regional Medical Center',\n 'bookinglink' => 'http://www.salemregional.com',\n 'phone' => '(330) 332-7511',\n 'address' => '1995 East State Street Salem, OH 44460',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44460',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.900917',\n 'longitude' => '-80.83228',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:09',\n 'location_type_id' => NULL,\n ),\n 406 =>\n array (\n 'id' => 890,\n 'name' => 'Sand Run Pharmacy',\n 'bookinglink' => 'http://sandrunpharmacy.com',\n 'phone' => '(330) 864-2138',\n 'address' => '40 Sand Run Road Akron, OH 44313',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44313',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.119396',\n 'longitude' => '-81.587654',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:12',\n 'location_type_id' => NULL,\n ),\n 407 =>\n array (\n 'id' => 893,\n 'name' => 'Scioto County Courthouse Lobby',\n 'bookinglink' => 'http://sciotocountyhealthdepartment.com',\n 'phone' => '(740) 302-3801',\n 'address' => '602 7th St.|Portsmouth, OH 45662',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45662',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Scioto',\n 'latitude' => '38.735718',\n 'longitude' => '-83.00044',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:14',\n 'location_type_id' => NULL,\n ),\n 408 =>\n array (\n 'id' => 894,\n 'name' => 'Seneca County General Health District',\n 'bookinglink' => 'http://www.senecahealthdept.org',\n 'phone' => '(419) 447-3691',\n 'address' => '71 S Washington Street Tiffin, OH 44883',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44883',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Seneca',\n 'latitude' => '41.11563',\n 'longitude' => '-83.17672',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:16',\n 'location_type_id' => NULL,\n ),\n 409 =>\n array (\n 'id' => 895,\n 'name' => 'Shelby Health and Wellness',\n 'bookinglink' => 'http://www.tsfhs.org',\n 'phone' => '(419) 525-6795',\n 'address' => '31 E Main St Shelby, OH 44875',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44875',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.881393',\n 'longitude' => '-82.65711',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:17',\n 'location_type_id' => NULL,\n ),\n 410 =>\n array (\n 'id' => 897,\n 'name' => 'Shrivers Pharmacy and Wellness',\n 'bookinglink' => 'http://www.shriverspharmacy.com',\n 'phone' => '(740) 447-9201',\n 'address' => '310 W Union St Athens, OH 45701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.330235',\n 'longitude' => '-82.11898',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:19',\n 'location_type_id' => NULL,\n ),\n 411 =>\n array (\n 'id' => 898,\n 'name' => 'Shrivers Pharmacy Crooksville',\n 'bookinglink' => 'http://www.shriverspharmacy.com',\n 'phone' => '(740) 982-3081',\n 'address' => '120 S Buckeye St Crooksville, OH 43731',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43731',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Perry',\n 'latitude' => '39.76635',\n 'longitude' => '-82.09961',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:19',\n 'location_type_id' => NULL,\n ),\n 412 =>\n array (\n 'id' => 899,\n 'name' => 'Shrivers Pharmacy McArthur',\n 'bookinglink' => 'http://www.shriverspharmacy.com',\n 'phone' => '(740) 596-2566',\n 'address' => '530 N. Market St McArthur, OH 45651',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45651',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Vinton',\n 'latitude' => '39.253326',\n 'longitude' => '-82.47811',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:25',\n 'location_type_id' => NULL,\n ),\n 413 =>\n array (\n 'id' => 900,\n 'name' => 'Shrivers Pharmacy McConnelsville',\n 'bookinglink' => 'http://www.shriverspharmacy.com',\n 'phone' => '(740) 962-2552',\n 'address' => '105 N Kennebec Ave McConnelsville, OH 43756',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43756',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Morgan',\n 'latitude' => '39.649834',\n 'longitude' => '-81.85317',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:26',\n 'location_type_id' => NULL,\n ),\n 414 =>\n array (\n 'id' => 901,\n 'name' => 'Shrivers Pharmacy Nelsonville',\n 'bookinglink' => 'http://www.shriverspharmacy.com',\n 'phone' => '(740) 753-2484',\n 'address' => '40 Watkins st|Nelsonville, OH 45764',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45764',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Athens',\n 'latitude' => '39.457573',\n 'longitude' => '-82.22795',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:27',\n 'location_type_id' => NULL,\n ),\n 415 =>\n array (\n 'id' => 903,\n 'name' => 'Sidney-Shelby County Health Department',\n 'bookinglink' => 'http://www.shelbycountyhealthdept.org',\n 'phone' => '(937) 498-7249',\n 'address' => '202 W. Poplar St. Sidney, OH 45365',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45365',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Shelby',\n 'latitude' => '40.285595',\n 'longitude' => '-84.15848',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:29',\n 'location_type_id' => NULL,\n ),\n 416 =>\n array (\n 'id' => 904,\n 'name' => 'Signature Health Inc. Ashtabula',\n 'bookinglink' => 'http://www.signaturehealthinc.org/vaccine/',\n 'phone' => '(440) 578-8203',\n 'address' => '4726 Main Avenue|Ashtabula, OH 44004',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44004',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.86418',\n 'longitude' => '-80.782646',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:30',\n 'location_type_id' => NULL,\n ),\n 417 =>\n array (\n 'id' => 905,\n 'name' => 'Signature Health Inc. Beachwood',\n 'bookinglink' => 'http://www.signaturehealthinc.org/vaccine/',\n 'phone' => '(440) 578-8203',\n 'address' => '24200 Chagrin Blvd|Beachwood, OH 44122',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44122',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46447',\n 'longitude' => '-81.508896',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:33',\n 'location_type_id' => NULL,\n ),\n 418 =>\n array (\n 'id' => 906,\n 'name' => 'Signature Health Inc. Maple Heights',\n 'bookinglink' => 'http://www.signaturehealthinc.org/vaccine/',\n 'phone' => '(440) 578-8203',\n 'address' => '21100 Southgate Park Blvd Maple Heights, OH 44137',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44137',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.414482',\n 'longitude' => '-81.5311',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:33',\n 'location_type_id' => NULL,\n ),\n 419 =>\n array (\n 'id' => 907,\n 'name' => 'Signature Health Inc. Painesville',\n 'bookinglink' => 'http://www.signaturehealthinc.org/vaccine/',\n 'phone' => '(440) 578-8203',\n 'address' => '462 Chardon Street|Painesville, OH 44077',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44077',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.729298',\n 'longitude' => '-81.25517',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:34',\n 'location_type_id' => NULL,\n ),\n 420 =>\n array (\n 'id' => 908,\n 'name' => 'Signature Health Inc. Willoughby',\n 'bookinglink' => 'http://www.signaturehealthinc.org/vaccine/',\n 'phone' => '(440) 578-8203',\n 'address' => '38882 Mentor Avenue|Willoughby, OH 44094',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44094',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.647545',\n 'longitude' => '-81.38724',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:34',\n 'location_type_id' => NULL,\n ),\n 421 =>\n array (\n 'id' => 911,\n 'name' => 'Southeastern Ohio Regional Medical Center',\n 'bookinglink' => 'http://www.seormc.org/',\n 'phone' => '(740) 435-2684',\n 'address' => '1341 Clark Street|Cambridge, OH 43725',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43725',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Guernsey',\n 'latitude' => '40.039288',\n 'longitude' => '-81.576996',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:35',\n 'location_type_id' => NULL,\n ),\n 422 =>\n array (\n 'id' => 912,\n 'name' => 'Southern Ohio Medical Center Main Campus',\n 'bookinglink' => 'http://www.somc.org',\n 'phone' => '(740) 356-5000',\n 'address' => '1805 27th Streeet|Portsmouth, OH 45662',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45662',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Scioto',\n 'latitude' => '38.753323',\n 'longitude' => '-82.97835',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:36',\n 'location_type_id' => NULL,\n ),\n 423 =>\n array (\n 'id' => 913,\n 'name' => 'Southwest General',\n 'bookinglink' => 'http://www.swgeneral.com',\n 'phone' => '(440) 816-5050',\n 'address' => '18697 Bagley Rd|Middleburg Heights, OH 44130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.372074',\n 'longitude' => '-81.83263',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:41',\n 'location_type_id' => NULL,\n ),\n 424 =>\n array (\n 'id' => 915,\n 'name' => 'Springdale Health Department',\n 'bookinglink' => 'http://www.springdale.org',\n 'phone' => '(513) 346-5725',\n 'address' => '11700 Springfield Pike|Cincinnati, OH 45246',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45246',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.289845',\n 'longitude' => '-84.48591',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:45',\n 'location_type_id' => NULL,\n ),\n 425 =>\n array (\n 'id' => 916,\n 'name' => 'St Vincent Charity Medical Center',\n 'bookinglink' => 'http://www.stvincentcharity.com/',\n 'phone' => '(216) 592-2853',\n 'address' => '2351 E. 22nd St|Cleveland, OH 44115',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44115',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.496742',\n 'longitude' => '-81.67393',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:47',\n 'location_type_id' => NULL,\n ),\n 426 =>\n array (\n 'id' => 917,\n 'name' => 'St. Elizabeth Boardman Hospital',\n 'bookinglink' => 'http://www.mercy.com/mercy-health-monitoring-coronavir..',\n 'phone' => '(330) 729-2929',\n 'address' => '8401 Market Street|Boardman, OH 44512',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44512',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '40.99522',\n 'longitude' => '-80.662735',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:48',\n 'location_type_id' => NULL,\n ),\n 427 =>\n array (\n 'id' => 918,\n 'name' => 'Stark County Health Department',\n 'bookinglink' => 'http://starkhealth.org',\n 'phone' => '(330) 353-9010',\n 'address' => '7235 Whipple Ave NW North Canton, OH 44720',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.885937',\n 'longitude' => '-81.422905',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:34:53',\n 'location_type_id' => NULL,\n ),\n 428 =>\n array (\n 'id' => 920,\n 'name' => 'Summa Health Barberton Campus',\n 'bookinglink' => 'http://www.summahealth.org/vaccine',\n 'phone' => '(234) 867-7110',\n 'address' => '155 Fifth Street NE Barberton, OH 44203',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44203',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.015106',\n 'longitude' => '-81.5898',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:01',\n 'location_type_id' => NULL,\n ),\n 429 =>\n array (\n 'id' => 921,\n 'name' => 'Summit County Public Health',\n 'bookinglink' => 'http://schd.org',\n 'phone' => '(330) 923-4891',\n 'address' => '1867 W. Market Street Akron, OH 44313',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44313',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.11227',\n 'longitude' => '-81.57544',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:12',\n 'location_type_id' => NULL,\n ),\n 430 =>\n array (\n 'id' => 922,\n 'name' => 'Swisher and Lohse Drugs',\n 'bookinglink' => 'http://swisherandlohse.com',\n 'phone' => '(740) 992-2955',\n 'address' => '636 E Main St Pomeroy, OH 45769',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45769',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Meigs',\n 'latitude' => '39.0304',\n 'longitude' => '-82.0188',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:16',\n 'location_type_id' => NULL,\n ),\n 431 =>\n array (\n 'id' => 923,\n 'name' => 'The Bellevue Hospital',\n 'bookinglink' => 'http://www.bellevuehospital.com',\n 'phone' => '(419) 483-4040',\n 'address' => '1400 West Main Street Bellevue, OH 44811',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44811',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Sandusky',\n 'latitude' => '41.284927',\n 'longitude' => '-82.88198',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:20',\n 'location_type_id' => NULL,\n ),\n 432 =>\n array (\n 'id' => 925,\n 'name' => 'The Gym at Eagles Point',\n 'bookinglink' => 'http://vaccinatepreble.com',\n 'phone' => '(937) 472-0087',\n 'address' => '307 North Cherry St Eaton, OH 45320',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45320',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Preble',\n 'latitude' => '39.746822',\n 'longitude' => '-84.634766',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:26',\n 'location_type_id' => NULL,\n ),\n 433 =>\n array (\n 'id' => 892,\n 'name' => 'Schottenstein Center',\n 'bookinglink' => 'http://wexnermedical.osu.edu/features/coronavirus/patien..',\n 'phone' => '(614) 688-8299',\n 'address' => '555 Borror Drive|Columbus, OH 43210',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43210',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0075992',\n 'longitude' => '-83.0248064',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:12:39',\n 'location_type_id' => NULL,\n ),\n 434 =>\n array (\n 'id' => 884,\n 'name' => 'Riverside Community Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 574-9868',\n 'address' => '05 Woodville Rd.|Toledo, OH 43615',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43615',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.5685073',\n 'longitude' => '-83.4156227',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:43',\n 'location_type_id' => NULL,\n ),\n 435 =>\n array (\n 'id' => 891,\n 'name' => 'Sandusky County Public Health',\n 'bookinglink' => 'http://www.scpublichealth.com',\n 'phone' => '(419) 334-6377',\n 'address' => '2000 Countryside Drive|Fremont, OH 43420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Sandusky',\n 'latitude' => '41.3590361',\n 'longitude' => '-83.0870525',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:44',\n 'location_type_id' => NULL,\n ),\n 436 =>\n array (\n 'id' => 914,\n 'name' => 'Spartan Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 996-3436',\n 'address' => '1 Spartan Way|Lima, OH 45801',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45801',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Allen',\n 'latitude' => '40.7412485',\n 'longitude' => '-84.0964777',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:44',\n 'location_type_id' => NULL,\n ),\n 437 =>\n array (\n 'id' => 927,\n 'name' => 'The Jewish Hospital Deerfield Imaging Services',\n 'bookinglink' => 'http://www.mercy.com/mercy-health-monitoring-coronavir..',\n 'phone' => '(866) 624-0366',\n 'address' => '5075 Parkway Dr Suite 106|Mason, OH 45040',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45040',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.3030343',\n 'longitude' => '-84.3148315',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:44',\n 'location_type_id' => NULL,\n ),\n 438 =>\n array (\n 'id' => 929,\n 'name' => 'Third Street Family Health Services',\n 'bookinglink' => 'http://www.tsfhs.org',\n 'phone' => '(419) 522-6191',\n 'address' => '600 W 3rd Street Mansfield, OH 44906',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.76034',\n 'longitude' => '-82.53787',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:28',\n 'location_type_id' => NULL,\n ),\n 439 =>\n array (\n 'id' => 931,\n 'name' => 'Tonys Pharmacy',\n 'bookinglink' => 'http://tonys-market-pharmacy.business.site/',\n 'phone' => '(216) 651-5700',\n 'address' => '3114 Clark Ave|Cleveland, OH 44050',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44050',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.469868',\n 'longitude' => '-81.7037',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:31',\n 'location_type_id' => NULL,\n ),\n 440 =>\n array (\n 'id' => 932,\n 'name' => 'Toronto Apothecary',\n 'bookinglink' => 'http://ohio.medicineshoppe.com',\n 'phone' => '(740) 537-2600',\n 'address' => '1361 Franklin St|Toronto, OH 43963',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43963',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.453598',\n 'longitude' => '-80.60739',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:32',\n 'location_type_id' => NULL,\n ),\n 441 =>\n array (\n 'id' => 933,\n 'name' => 'TriHealth McCullough-Hyde Memorial Hospital',\n 'bookinglink' => 'http://www.trihealth.com/coronavirus',\n 'phone' => '(513) 862-6843',\n 'address' => '110 North Poplar Street Oxford, OH 45011',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45011',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.51214',\n 'longitude' => '-84.74081',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:34',\n 'location_type_id' => NULL,\n ),\n 442 =>\n array (\n 'id' => 934,\n 'name' => 'Trinity Health - Prime Time Senior Center',\n 'bookinglink' => 'http://www.trinityhealth.com',\n 'phone' => '(740) 264-8322',\n 'address' => '300 Lovers Lane|Steubenville, OH 43952',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43952',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.365635',\n 'longitude' => '-80.676414',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:35',\n 'location_type_id' => NULL,\n ),\n 443 =>\n array (\n 'id' => 936,\n 'name' => 'TriPoint Medical Center',\n 'bookinglink' => 'http://lakehealth.org/vaccine/',\n 'phone' => '(440) 375-8595',\n 'address' => '7590 Auburn Road|Concord, OH 44077',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44077',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.664776',\n 'longitude' => '-81.24528',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:36',\n 'location_type_id' => NULL,\n ),\n 444 =>\n array (\n 'id' => 937,\n 'name' => 'Trumbull County Combined Health District',\n 'bookinglink' => 'http://www.tcchd.org',\n 'phone' => '(330) 675-7844',\n 'address' => '176 Chestnut Ave NE Warren, OH 44483',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44483',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.237396',\n 'longitude' => '-80.8091',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:37',\n 'location_type_id' => NULL,\n ),\n 445 =>\n array (\n 'id' => 939,\n 'name' => 'Tuscarawas County Health Department',\n 'bookinglink' => 'http://www.tchdnow.org',\n 'phone' => '(330) 343-5555',\n 'address' => '897 East Iron Avenue Dover, OH 44622',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44622',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Tuscarawas',\n 'latitude' => '40.51453',\n 'longitude' => '-81.452934',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:43',\n 'location_type_id' => NULL,\n ),\n 446 =>\n array (\n 'id' => 940,\n 'name' => 'UC Gardner Neuroscience Institute',\n 'bookinglink' => 'http://www.uchealth.com/en/covid-19/covid-19-vaccine',\n 'phone' => '(513) 584-3673',\n 'address' => '3113 Bellevue Ave.|Cincinnati, OH 45229',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45229',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.136204',\n 'longitude' => '-84.50386',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:43',\n 'location_type_id' => NULL,\n ),\n 447 =>\n array (\n 'id' => 941,\n 'name' => 'UD Arena (Miami Valley Hospital)',\n 'bookinglink' => 'http://www.premierhealth.com/vaccine',\n 'phone' => '(937) 229-4635',\n 'address' => '1801 S Edwin C Moses Blvd Dayton, OH 45417',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45417',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.733723',\n 'longitude' => '-84.19929',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:44',\n 'location_type_id' => NULL,\n ),\n 448 =>\n array (\n 'id' => 943,\n 'name' => 'Union County Health Department',\n 'bookinglink' => 'http://unioncountycovid.org/',\n 'phone' => '(937) 642-2053',\n 'address' => '940 London Avenue Suite 1100B Marysville, OH 43040',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43040',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Union',\n 'latitude' => '40.22341',\n 'longitude' => '-83.37172',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:55',\n 'location_type_id' => NULL,\n ),\n 449 =>\n array (\n 'id' => 944,\n 'name' => 'University Hospitals Cleveland Medical Center',\n 'bookinglink' => 'http://uhhospitals.org/vaccine',\n 'phone' => '(216) 844-3339',\n 'address' => '11100 Euclid Avenue|Cleveland, OH 44106',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44106',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.506626',\n 'longitude' => '-81.608055',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:35:59',\n 'location_type_id' => NULL,\n ),\n 450 =>\n array (\n 'id' => 947,\n 'name' => 'University of Toledo Medical Center',\n 'bookinglink' => 'http://www.utoledo.edu/coronavirus/vaccine/',\n 'phone' => '(419) 383-4545',\n 'address' => '3000 Arlington Ave|Toledo, OH 43614',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43614',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.619312',\n 'longitude' => '-83.621086',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:20',\n 'location_type_id' => NULL,\n ),\n 451 =>\n array (\n 'id' => 948,\n 'name' => 'Upper Valley Mall',\n 'bookinglink' => 'http://www.ccchd.com',\n 'phone' => '(937) 390-5600',\n 'address' => '1475 Upper Valley Pike Springfield, OH 45504',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45504',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.946407',\n 'longitude' => '-83.85274',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:28',\n 'location_type_id' => NULL,\n ),\n 452 =>\n array (\n 'id' => 949,\n 'name' => 'Upper Valley Medical Center',\n 'bookinglink' => 'http://www.premierhealth.com/vaccine',\n 'phone' => '(937) 276-4141',\n 'address' => '3130 N. County Rd. 25A Troy, OH 45373',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45373',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Miami',\n 'latitude' => '40.09009',\n 'longitude' => '-84.224266',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:32',\n 'location_type_id' => NULL,\n ),\n 453 =>\n array (\n 'id' => 950,\n 'name' => 'Valley View Health Center-Waverly',\n 'bookinglink' => 'http://valleyviewhealth.org',\n 'phone' => '(740) 947-7726',\n 'address' => '227 Valley View Drive Waverly, OH 45690',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45690',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Pike',\n 'latitude' => '39.11701',\n 'longitude' => '-83.004395',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:33',\n 'location_type_id' => NULL,\n ),\n 454 =>\n array (\n 'id' => 951,\n 'name' => 'Van Wert County General Health District',\n 'bookinglink' => 'http://vanwertcountyhealth.org',\n 'phone' => '(419) 238-0808',\n 'address' => '1179 Westwood Drive Suite 300 Van Wert, OH 45891',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45891',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'VanWert',\n 'latitude' => '40.85317',\n 'longitude' => '-84.594765',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:33',\n 'location_type_id' => NULL,\n ),\n 455 =>\n array (\n 'id' => 952,\n 'name' => 'Victor Cassano health center',\n 'bookinglink' => 'http://Www.communityhealthcentersofgreaterdayton.com',\n 'phone' => '(937) 461-6869',\n 'address' => '165 S Edwin C Moses Blvd Dayton, OH 45402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.75311',\n 'longitude' => '-84.20557',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:33',\n 'location_type_id' => NULL,\n ),\n 456 =>\n array (\n 'id' => 954,\n 'name' => 'Violet Township Services Center',\n 'bookinglink' => 'http://www.myfdh.org',\n 'phone' => '(740) 652-2802',\n 'address' => '490 N. Center Street Pickerington, OH 43130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.892223',\n 'longitude' => '-82.74722',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:45',\n 'location_type_id' => NULL,\n ),\n 457 =>\n array (\n 'id' => 955,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 547-9324',\n 'address' => '1000 E MAIN ST GREENVILLE, OH 45331-2802',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45331-2802',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Darke',\n 'latitude' => '40.015182',\n 'longitude' => '-84.655815',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:46',\n 'location_type_id' => NULL,\n ),\n 458 =>\n array (\n 'id' => 956,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(419) 529-3790',\n 'address' => '1000 PARK AVE W MANSFIELD, OH 44906-2810',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44906-2810',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Richland',\n 'latitude' => '40.75921',\n 'longitude' => '-82.55236',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:47',\n 'location_type_id' => NULL,\n ),\n 459 =>\n array (\n 'id' => 958,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '10003 FREMONT PIKE|PERRYSBURG, OH 43551-3330',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43551-3330',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.54363',\n 'longitude' => '-83.5875',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:48',\n 'location_type_id' => NULL,\n ),\n 460 =>\n array (\n 'id' => 960,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1032 HARRISON AVE|HARRISON, OH 45030-1522',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45030-1522',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.25446',\n 'longitude' => '-84.79735',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:50',\n 'location_type_id' => NULL,\n ),\n 461 =>\n array (\n 'id' => 961,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 588-0690',\n 'address' => '1033 MILITARY RD|ZANESVILLE, OH 43701-1342',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701-1342',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.979572',\n 'longitude' => '-82.01835',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:51',\n 'location_type_id' => NULL,\n ),\n 462 =>\n array (\n 'id' => 962,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 393-2307',\n 'address' => '1090 NORTHVIEW DR|HILLSBORO, OH 45133-7629',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45133-7629',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Highland',\n 'latitude' => '39.22045',\n 'longitude' => '-83.60601',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:51',\n 'location_type_id' => NULL,\n ),\n 463 =>\n array (\n 'id' => 963,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 481-2042',\n 'address' => '110 LINCOLN WAY W MASSILLON, OH 44647-6564',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44647-6564',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.796127',\n 'longitude' => '-81.524345',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:52',\n 'location_type_id' => NULL,\n ),\n 464 =>\n array (\n 'id' => 965,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1130 S ARLINGTON ST AKRON, OH 44306-3527',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44306-3527',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.041855',\n 'longitude' => '-81.49124',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:55',\n 'location_type_id' => NULL,\n ),\n 465 =>\n array (\n 'id' => 966,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '11401 UNION AVE|CLEVELAND, OH 44105-1801',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44105-1801',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.463657',\n 'longitude' => '-81.60412',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:56',\n 'location_type_id' => NULL,\n ),\n 466 =>\n array (\n 'id' => 968,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '11701 DETROIT AVE|LAKEWOOD, OH 44107-3041',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44107-3041',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.483624',\n 'longitude' => '-81.76887',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:57',\n 'location_type_id' => NULL,\n ),\n 467 =>\n array (\n 'id' => 970,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1223 CLEVELAND AVE NW CANTON, OH 44703',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44703',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.809486',\n 'longitude' => '-81.37623',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:58',\n 'location_type_id' => NULL,\n ),\n 468 =>\n array (\n 'id' => 1011,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '22401 LAKE SHORE BLVD EUCLID, OH 44123-1312',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44123-1312',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.61085',\n 'longitude' => '-81.52489',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:36:59',\n 'location_type_id' => NULL,\n ),\n 469 =>\n array (\n 'id' => 935,\n 'name' => 'Trinity Hospital West',\n 'bookinglink' => 'http://www.trinityhealth.com',\n 'phone' => '(740) 264-8322',\n 'address' => '4000 Johnson Ave|Steubenville, OH 43952',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43952',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.3681352',\n 'longitude' => '-80.6579161',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:45',\n 'location_type_id' => NULL,\n ),\n 470 =>\n array (\n 'id' => 942,\n 'name' => 'Union County Fairgrounds',\n 'bookinglink' => 'http://unioncountycovid.org/',\n 'phone' => '(937) 642-2053',\n 'address' => '845 North Main Street Marysville, OH 43040',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43040',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Union',\n 'latitude' => '40.2469653',\n 'longitude' => '-83.3692934',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:45',\n 'location_type_id' => NULL,\n ),\n 471 =>\n array (\n 'id' => 945,\n 'name' => 'University Hospitals Home Care Services',\n 'bookinglink' => 'http://uhhospitals.org/vaccine',\n 'phone' => '(216) 844-3339',\n 'address' => '4510 Richmond Road Warrensville Heights, OH 44128',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44128',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.4372729',\n 'longitude' => '-81.5001653',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:45',\n 'location_type_id' => NULL,\n ),\n 472 =>\n array (\n 'id' => 953,\n 'name' => 'Vinton County Health Depatment',\n 'bookinglink' => 'http://vintonohhealth.org',\n 'phone' => '(740) 596-5233',\n 'address' => '31927 State Route 93|McArthur, OH 45651',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45651',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Vinton',\n 'latitude' => '39.2612878',\n 'longitude' => '-82.4774967',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:46',\n 'location_type_id' => NULL,\n ),\n 473 =>\n array (\n 'id' => 957,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1000 S MAIN ST|NORTH CANTON, OH 44720-3628',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720-3628',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.8686184',\n 'longitude' => '-81.3982758',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:46',\n 'location_type_id' => NULL,\n ),\n 474 =>\n array (\n 'id' => 975,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 279-1962',\n 'address' => '1280 DEMOREST RD|COLUMBUS, OH 43204',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43204',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.928226',\n 'longitude' => '-83.090385',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:54',\n 'location_type_id' => NULL,\n ),\n 475 =>\n array (\n 'id' => 1007,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 277-1325',\n 'address' => '2110 STRINGTOWN RD GROVE CITY, OH 43123-2931',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43123-2931',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.878574',\n 'longitude' => '-83.05942',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:55',\n 'location_type_id' => NULL,\n ),\n 476 =>\n array (\n 'id' => 1010,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 523-1165',\n 'address' => '2150 E DUBLIN GRANVILLE RD COLUMBUS, OH 43229-3513',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43229-3513',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.086464',\n 'longitude' => '-82.95947',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:50:55',\n 'location_type_id' => NULL,\n ),\n 477 =>\n array (\n 'id' => 984,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 486-3308',\n 'address' => '1444 W 5TH AVE|GRANDVIEW HEIGHTS, OH 4321..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.988815',\n 'longitude' => '-83.04483',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:06',\n 'location_type_id' => NULL,\n ),\n 478 =>\n array (\n 'id' => 982,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 366-7119',\n 'address' => '1425 N 21ST ST NEWARK, OH 43055-3069',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43055-3069',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Licking',\n 'latitude' => '40.08786',\n 'longitude' => '-82.427315',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 15:05:29',\n 'location_type_id' => NULL,\n ),\n 479 =>\n array (\n 'id' => 972,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1260 E CENTRAL AVE MIAMISBURG, OH 45342',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45342',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.640697',\n 'longitude' => '-84.26768',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:00',\n 'location_type_id' => NULL,\n ),\n 480 =>\n array (\n 'id' => 973,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '127 E PLEASANT VALLEY RD SEVEN HILLS, OH 44131',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44131',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.361504',\n 'longitude' => '-81.683914',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:04',\n 'location_type_id' => NULL,\n ),\n 481 =>\n array (\n 'id' => 974,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '12777 ROCKSIDE RD GARFIELD HEIGHTS, OH 44125',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44125',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.400944',\n 'longitude' => '-81.5948',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:06',\n 'location_type_id' => NULL,\n ),\n 482 =>\n array (\n 'id' => 976,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1303 COPLEY RD|AKRON, OH 44320-2766',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44320-2766',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.083927',\n 'longitude' => '-81.56891',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:07',\n 'location_type_id' => NULL,\n ),\n 483 =>\n array (\n 'id' => 977,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '132 RICHMOND ST|PAINESVILLE, OH 44077-3253',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44077-3253',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.725437',\n 'longitude' => '-81.24849',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:07',\n 'location_type_id' => NULL,\n ),\n 484 =>\n array (\n 'id' => 978,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 386-5146',\n 'address' => '1321 DELAWARE AVE|MARION, OH 43302-6421',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43302-6421',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Marion',\n 'latitude' => '40.565434',\n 'longitude' => '-83.120514',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:07',\n 'location_type_id' => NULL,\n ),\n 485 =>\n array (\n 'id' => 979,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1330 N REYNOLDS RD TOLEDO, OH 43615-4760',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43615-4760',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.6524',\n 'longitude' => '-83.66465',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:09',\n 'location_type_id' => NULL,\n ),\n 486 =>\n array (\n 'id' => 980,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 492-5340',\n 'address' => '1400 MICHIGAN ST|SIDNEY, OH 45365-2449',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45365-2449',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Shelby',\n 'latitude' => '40.28789',\n 'longitude' => '-84.17621',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:09',\n 'location_type_id' => NULL,\n ),\n 487 =>\n array (\n 'id' => 981,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1415 ROCKSIDE RD|PARMA, OH 44134',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44134',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.4044',\n 'longitude' => '-81.676674',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:10',\n 'location_type_id' => NULL,\n ),\n 488 =>\n array (\n 'id' => 983,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 298-4297',\n 'address' => '144 E MAIN ST|RAVENNA, OH 44266-3130',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44266-3130',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.15766',\n 'longitude' => '-81.24278',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:11',\n 'location_type_id' => NULL,\n ),\n 489 =>\n array (\n 'id' => 985,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '14501 EUCLID AVE|CLEVELAND, OH 44112',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44112',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.531445',\n 'longitude' => '-81.58087',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:17',\n 'location_type_id' => NULL,\n ),\n 490 =>\n array (\n 'id' => 986,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 534-4519',\n 'address' => '15 S MAIN ST|HUBBARD, OH 44425-2154',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44425-2154',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.15666',\n 'longitude' => '-80.568886',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:18',\n 'location_type_id' => NULL,\n ),\n 491 =>\n array (\n 'id' => 988,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '15500 BROADWAY|MAPLE HEIGHTS, OH 44137',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44137',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.41855',\n 'longitude' => '-81.57417',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:28',\n 'location_type_id' => NULL,\n ),\n 492 =>\n array (\n 'id' => 990,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '16400 CHAGRIN BLVD|SHAKER HEIGHTS, OH 44120-3714',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44120-3714',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46445',\n 'longitude' => '-81.56637',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:35',\n 'location_type_id' => NULL,\n ),\n 493 =>\n array (\n 'id' => 991,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '16803 LORAIN AVE|CLEVELAND, OH 44111-5510',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44111-5510',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.450523',\n 'longitude' => '-81.814644',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:37',\n 'location_type_id' => NULL,\n ),\n 494 =>\n array (\n 'id' => 992,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1776 SEYMOUR AVE|CINCINNATI, OH 45237',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45237',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.18977',\n 'longitude' => '-84.46407',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:37',\n 'location_type_id' => NULL,\n ),\n 495 =>\n array (\n 'id' => 994,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 537-9425',\n 'address' => '1820 Franklin St|Toronto, OH 43964-1949',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43964-1949',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.45046',\n 'longitude' => '-80.615456',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:38',\n 'location_type_id' => NULL,\n ),\n 496 =>\n array (\n 'id' => 996,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '19 LONDON RD|DELAWARE, OH 43015-2613',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43015-2613',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.290283',\n 'longitude' => '-83.06924',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:38',\n 'location_type_id' => NULL,\n ),\n 497 =>\n array (\n 'id' => 997,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 295-5403',\n 'address' => '190 CHESTNUT ST|COSHOCTON, OH 43812-1129',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43812-1129',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Coshocton',\n 'latitude' => '40.27516',\n 'longitude' => '-81.86985',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:39',\n 'location_type_id' => NULL,\n ),\n 498 =>\n array (\n 'id' => 998,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(419) 355-9760',\n 'address' => '1900 W STATE ST FREMONT, OH 43420-1638',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43420-1638',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Sandusky',\n 'latitude' => '41.356407',\n 'longitude' => '-83.13554',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:39',\n 'location_type_id' => NULL,\n ),\n 499 =>\n array (\n 'id' => 1000,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1925 W MARKET ST AKRON, OH 44313-6911',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44313-6911',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.113056',\n 'longitude' => '-81.57732',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:40',\n 'location_type_id' => NULL,\n ),\n ));\n \\DB::table('locations')->insert(array (\n 0 =>\n array (\n 'id' => 1001,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 833-5730',\n 'address' => '1950 WALES RD NE MASSILLON, OH 44646-4110',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44646-4110',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.82092',\n 'longitude' => '-81.50321',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:41',\n 'location_type_id' => NULL,\n ),\n 1 =>\n array (\n 'id' => 1002,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '1982 Eight Mile Rd Cincinnati, OH 45255-2609',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45255-2609',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.087593',\n 'longitude' => '-84.32205',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:43',\n 'location_type_id' => NULL,\n ),\n 2 =>\n array (\n 'id' => 1003,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 572-2833',\n 'address' => '19980 W 130TH ST STRONGSVILLE, OH 44136-8437',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44136-8437',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.277184',\n 'longitude' => '-81.785126',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:43',\n 'location_type_id' => NULL,\n ),\n 3 =>\n array (\n 'id' => 1004,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 282-0173',\n 'address' => '2001 SUNSET BLVD|STEUBENVILLE, OH 43952-1349',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43952-1349',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.3696',\n 'longitude' => '-80.63712',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:44',\n 'location_type_id' => NULL,\n ),\n 4 =>\n array (\n 'id' => 1005,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '2012 S UNION AVE ALLIANCE, OH 44601-4951',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44601-4951',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.901543',\n 'longitude' => '-81.10589',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:45',\n 'location_type_id' => NULL,\n ),\n 5 =>\n array (\n 'id' => 1008,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 337-8001',\n 'address' => '2124 E STATE ST SALEM, OH 44460-2455',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44460-2455',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Columbiana',\n 'latitude' => '40.90092',\n 'longitude' => '-80.83129',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:47',\n 'location_type_id' => NULL,\n ),\n 6 =>\n array (\n 'id' => 1009,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(216) 932-0937',\n 'address' => '2135 WARRENSVILLE CENTER RD SOUTH EUCLID, OH 44121-2629',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44121-2629',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.5016',\n 'longitude' => '-81.536285',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:47',\n 'location_type_id' => NULL,\n ),\n 7 =>\n array (\n 'id' => 987,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(419) 420-0084',\n 'address' => '15031 SR 224 E|FINDLAY, OH 45840-7764',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45840-7764',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hancock',\n 'latitude' => '41.004281',\n 'longitude' => '-84.1259415',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:47',\n 'location_type_id' => NULL,\n ),\n 8 =>\n array (\n 'id' => 993,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 578-0156',\n 'address' => '180 COLEMANS XING|MARYSVILLE, OH 43040-7080',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43040-7080',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Union',\n 'latitude' => '40.2384384',\n 'longitude' => '-83.349342',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:48',\n 'location_type_id' => NULL,\n ),\n 9 =>\n array (\n 'id' => 1024,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '2770 W BROAD ST COLUMBUS, OH 43204-2641',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43204-2641',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.95494',\n 'longitude' => '-83.07441',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:18',\n 'location_type_id' => NULL,\n ),\n 10 =>\n array (\n 'id' => 1029,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '3015 E LIVINGSTON AVE COLUMBUS, OH 43209-3047',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43209-3047',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.946877',\n 'longitude' => '-82.91579',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:25',\n 'location_type_id' => NULL,\n ),\n 11 =>\n array (\n 'id' => 1031,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 263-7551',\n 'address' => '3093 CLEVELAND AVE|COLUMBUS, OH 43224-3684',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43224-3684',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.03064',\n 'longitude' => '-82.964096',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:27',\n 'location_type_id' => NULL,\n ),\n 12 =>\n array (\n 'id' => 1033,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 538-0029',\n 'address' => '3141 Tremont Rd|Upper Arlington, OH 43221-2034',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43221-2034',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.020836',\n 'longitude' => '-83.06128',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:28',\n 'location_type_id' => NULL,\n ),\n 13 =>\n array (\n 'id' => 1040,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 497-3745',\n 'address' => '3445 S HIGH ST COLUMBUS, OH 43207-3693',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43207-3693',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.891712',\n 'longitude' => '-82.99662',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:29',\n 'location_type_id' => NULL,\n ),\n 14 =>\n array (\n 'id' => 1042,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 237-9123',\n 'address' => '3583 E BROAD ST COLUMBUS, OH 43213-1141',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213-1141',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.97285',\n 'longitude' => '-82.9055',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:31',\n 'location_type_id' => NULL,\n ),\n 15 =>\n array (\n 'id' => 1013,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(513) 347-3359',\n 'address' => '2320 BOUDINOT AVE|CINCINNATI, OH 45238',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45238',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.128372',\n 'longitude' => '-84.60541',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:37:56',\n 'location_type_id' => NULL,\n ),\n 16 =>\n array (\n 'id' => 1015,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '25524 CENTER RIDGE RD WESTLAKE, OH 44145',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44145',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.455692',\n 'longitude' => '-81.90329',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:04',\n 'location_type_id' => NULL,\n ),\n 17 =>\n array (\n 'id' => 1016,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '2560 BELMONT AVE|YOUNGSTOWN, OH 44505-2407',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44505-2407',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.133034',\n 'longitude' => '-80.66545',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:05',\n 'location_type_id' => NULL,\n ),\n 18 =>\n array (\n 'id' => 1017,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '2562 NAVARRE AVE|OREGON, OH 43616-3171',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43616-3171',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.63664',\n 'longitude' => '-83.48727',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:05',\n 'location_type_id' => NULL,\n ),\n 19 =>\n array (\n 'id' => 1018,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '2600 S SMITHVILLE RD DAYTON, OH 45420',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45420',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.72965',\n 'longitude' => '-84.14119',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:07',\n 'location_type_id' => NULL,\n ),\n 20 =>\n array (\n 'id' => 1019,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '2609 E MAIN ST SPRINGFIELD, OH 45503',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45503',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clark',\n 'latitude' => '39.92335',\n 'longitude' => '-83.76918',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:08',\n 'location_type_id' => NULL,\n ),\n 21 =>\n array (\n 'id' => 1021,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '2710 SALEM AVE|DAYTON, OH 45406-2730',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45406-2730',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.78745',\n 'longitude' => '-84.23514',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:16',\n 'location_type_id' => NULL,\n ),\n 22 =>\n array (\n 'id' => 1022,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 835-1450',\n 'address' => '27251 Wolf Rd|Bay Village, OH 44140-2020',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44140-2020',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.484997',\n 'longitude' => '-81.921524',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:18',\n 'location_type_id' => NULL,\n ),\n 23 =>\n array (\n 'id' => 1025,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '3 W Corry St|Cininnati, OH 45219-1901',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45219-1901',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.129158',\n 'longitude' => '-84.51058',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:19',\n 'location_type_id' => NULL,\n ),\n 24 =>\n array (\n 'id' => 1026,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 757-4752',\n 'address' => '30 W MCKINLEY WAY POLAND, OH 44514-1988',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44514-1988',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.024254',\n 'longitude' => '-80.61569',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:19',\n 'location_type_id' => NULL,\n ),\n 25 =>\n array (\n 'id' => 1027,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 376-1015',\n 'address' => '300 GREENE ST|MARIETTA, OH 45750-3133',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750-3133',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.412304',\n 'longitude' => '-81.44933',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:20',\n 'location_type_id' => NULL,\n ),\n 26 =>\n array (\n 'id' => 1030,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '302 CANTON RD|AKRON, OH 44312',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44312',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.05467',\n 'longitude' => '-81.43927',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:25',\n 'location_type_id' => NULL,\n ),\n 27 =>\n array (\n 'id' => 1032,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '3105 GLENDALE MILFORD RD CINCINNATI, OH 45241',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45241',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.25407',\n 'longitude' => '-84.422104',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:27',\n 'location_type_id' => NULL,\n ),\n 28 =>\n array (\n 'id' => 1035,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '320 S WATER ST KENT, OH 44240',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44240',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.151524',\n 'longitude' => '-81.35821',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:34',\n 'location_type_id' => NULL,\n ),\n 29 =>\n array (\n 'id' => 1036,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 930-5873',\n 'address' => '32798 WALKER RD|AVON LAKE, OH 44012-1443',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44012-1443',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.49317',\n 'longitude' => '-82.02087',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:35',\n 'location_type_id' => NULL,\n ),\n 30 =>\n array (\n 'id' => 1039,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '3415 CLARK AVE|CLEVELAND, OH 44109-1135',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44109-1135',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.46981',\n 'longitude' => '-81.70659',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:37',\n 'location_type_id' => NULL,\n ),\n 31 =>\n array (\n 'id' => 1041,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '35279 Vine St|Willowick, OH 44095-3140',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44095-3140',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.642574',\n 'longitude' => '-81.43704',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:39',\n 'location_type_id' => NULL,\n ),\n 32 =>\n array (\n 'id' => 1043,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 724-2709',\n 'address' => '361 E WATERLOO RD AKRON, OH 44319-1218',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44319-1218',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.028862',\n 'longitude' => '-81.51357',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:39',\n 'location_type_id' => NULL,\n ),\n 33 =>\n array (\n 'id' => 1044,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 797-3205',\n 'address' => '3800 TIPPECANOE RD|YOUNGSTOWN, OH 44511',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44511',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.061775',\n 'longitude' => '-80.71108',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:40',\n 'location_type_id' => NULL,\n ),\n 34 =>\n array (\n 'id' => 1045,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '3822 PAXTON AVE|CINCINNATI, OH 45209-2399',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45209-2399',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.146915',\n 'longitude' => '-84.42903',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:40',\n 'location_type_id' => NULL,\n ),\n 35 =>\n array (\n 'id' => 1046,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '398 ANDERSON FERRY RD CINCINNATI, OH 45238-5695',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45238-5695',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.09373',\n 'longitude' => '-84.61822',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:41',\n 'location_type_id' => NULL,\n ),\n 36 =>\n array (\n 'id' => 1047,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(419) 668-0424',\n 'address' => '4 E LEAGUE ST NORWALK, OH 44857-1308',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44857-1308',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Huron',\n 'latitude' => '41.247307',\n 'longitude' => '-82.619736',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:41',\n 'location_type_id' => NULL,\n ),\n 37 =>\n array (\n 'id' => 1049,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 859-2449',\n 'address' => '400 Public Rd|Yorkville, OH 43971',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43971',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jefferson',\n 'latitude' => '40.15932',\n 'longitude' => '-80.70587',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:42',\n 'location_type_id' => NULL,\n ),\n 38 =>\n array (\n 'id' => 1050,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '4024 FULTON DR NW CANTON, OH 44718',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44718',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.83681',\n 'longitude' => '-81.42461',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:48',\n 'location_type_id' => NULL,\n ),\n 39 =>\n array (\n 'id' => 1051,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(216) 561-1318',\n 'address' => '4071 LEE RD|CLEVELAND, OH 44128-2100',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44128-2100',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.448215',\n 'longitude' => '-81.56482',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:50',\n 'location_type_id' => NULL,\n ),\n 40 =>\n array (\n 'id' => 1052,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '4090 E GALBRAITH RD DEER PARK, OH 45236-2324',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45236-2324',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.20849',\n 'longitude' => '-84.39946',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:50',\n 'location_type_id' => NULL,\n ),\n 41 =>\n array (\n 'id' => 1012,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 544-7128',\n 'address' => '2249 YOUNGSTOWN WARREN RD NILES, OH 44446-4567',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44446-4567',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.1830006',\n 'longitude' => '-80.7177168',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:48',\n 'location_type_id' => NULL,\n ),\n 42 =>\n array (\n 'id' => 1014,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 716-0437',\n 'address' => '24590 Lorain Rd|North Olmsted, OH 44070-2169',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44070-2169',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.4272436',\n 'longitude' => '-81.8949112',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:49',\n 'location_type_id' => NULL,\n ),\n 43 =>\n array (\n 'id' => 1034,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 992-3522',\n 'address' => '318 W PROSPECT RD ASHTABULA, OH 44004',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44004',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Ashtabula',\n 'latitude' => '41.8701818',\n 'longitude' => '-80.7826481',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:49',\n 'location_type_id' => NULL,\n ),\n 44 =>\n array (\n 'id' => 1055,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 326-0689',\n 'address' => '4530 KENNY RD|COLUMBUS, OH 43220',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43220',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.05339',\n 'longitude' => '-83.04962',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:34',\n 'location_type_id' => NULL,\n ),\n 45 =>\n array (\n 'id' => 1058,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 868-1224',\n 'address' => '4617 E MAIN ST WHITEHALL, OH 43213-3298',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213-3298',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.955406',\n 'longitude' => '-82.87465',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:36',\n 'location_type_id' => NULL,\n ),\n 46 =>\n array (\n 'id' => 1062,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/',\n 'phone' => '(614) 476-0988',\n 'address' => '5195 N HAMILTON RD COLUMBUS, OH 43230',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43230',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.06271',\n 'longitude' => '-82.86318',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:58',\n 'location_type_id' => NULL,\n ),\n 47 =>\n array (\n 'id' => 1065,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 771-7493',\n 'address' => '5383 CEMETERY RD|HILLIARD, OH 43026-1502',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43026-1502',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.029995',\n 'longitude' => '-83.15997',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:51:58',\n 'location_type_id' => NULL,\n ),\n 48 =>\n array (\n 'id' => 1086,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '6805 HOSPITAL DR|DUBLIN, OH 43016-8556',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43016-8556',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.103252',\n 'longitude' => '-83.16042',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:52:19',\n 'location_type_id' => NULL,\n ),\n 49 =>\n array (\n 'id' => 1059,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 261-9013',\n 'address' => '4890 N HIGH ST COLUMBUS, OH 43214-1552',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43214-1552',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.061966',\n 'longitude' => '-83.01951',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:22:35',\n 'location_type_id' => NULL,\n ),\n 50 =>\n array (\n 'id' => 1079,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 367-7526',\n 'address' => '6201 E Broad St Columbus, OH 43213-5500',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213-5500',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.980206',\n 'longitude' => '-82.836624',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:22:44',\n 'location_type_id' => NULL,\n ),\n 51 =>\n array (\n 'id' => 1053,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '4265 STATE RD|CLEVELAND, OH 44109-4204',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44109-4204',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.43794',\n 'longitude' => '-81.706924',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:51',\n 'location_type_id' => NULL,\n ),\n 52 =>\n array (\n 'id' => 1054,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '4281 W 130TH ST CLEVELAND, OH 44135-4869',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44135-4869',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.438507',\n 'longitude' => '-81.779884',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:51',\n 'location_type_id' => NULL,\n ),\n 53 =>\n array (\n 'id' => 1056,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(419) 474-3915',\n 'address' => '4580 MONROE ST|TOLEDO, OH 43613',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43613',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.68945',\n 'longitude' => '-83.62261',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:52',\n 'location_type_id' => NULL,\n ),\n 54 =>\n array (\n 'id' => 1057,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '4610 PLEASANT AVE|FAIRFIELD, OH 45014-1664',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45014-1664',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.35237',\n 'longitude' => '-84.55881',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:52',\n 'location_type_id' => NULL,\n ),\n 55 =>\n array (\n 'id' => 1060,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 544-3462',\n 'address' => '5027 YOUNGSTOWN WARREN RD NILES, OH 44446-4905',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44446-4905',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.212273',\n 'longitude' => '-80.758194',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:53',\n 'location_type_id' => NULL,\n ),\n 56 =>\n array (\n 'id' => 1061,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '5122 TUSCARAWAS ST W CANTON, OH 44708',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44708',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.79245',\n 'longitude' => '-81.44667',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:54',\n 'location_type_id' => NULL,\n ),\n 57 =>\n array (\n 'id' => 1063,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 232-6500',\n 'address' => '520 BROADWAY AVE|BEDFORD, OH 44146-2724',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44146-2724',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.395916',\n 'longitude' => '-81.5408',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:55',\n 'location_type_id' => NULL,\n ),\n 58 =>\n array (\n 'id' => 1064,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 286-4640',\n 'address' => '521 E Main St|Jackson, OH 45640-2126',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45640-2126',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Jackson',\n 'latitude' => '39.04515',\n 'longitude' => '-82.63033',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:55',\n 'location_type_id' => NULL,\n ),\n 59 =>\n array (\n 'id' => 1066,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '5400 PEARL RD|PARMA, OH 44129-1545',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44129-1545',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.41382',\n 'longitude' => '-81.733734',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:56',\n 'location_type_id' => NULL,\n ),\n 60 =>\n array (\n 'id' => 1067,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 960-7225',\n 'address' => '5411 LEAVITT RD|LORAIN, OH 44053-2155',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44053-2155',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.419544',\n 'longitude' => '-82.20887',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:56',\n 'location_type_id' => NULL,\n ),\n 61 =>\n array (\n 'id' => 1068,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 792-4785',\n 'address' => '5501 MAHONING AVE|AUSTINTOWN, OH 44515-2316',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44515-2316',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.09961',\n 'longitude' => '-80.764145',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:57',\n 'location_type_id' => NULL,\n ),\n 62 =>\n array (\n 'id' => 1069,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '5508 BRIDGETOWN RD|CINCINNATI, OH 45248',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45248',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.15774',\n 'longitude' => '-84.63018',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:58',\n 'location_type_id' => NULL,\n ),\n 63 =>\n array (\n 'id' => 1071,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '562 MAIN ST|Hamilton, OH 45013-3222',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45013-3222',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.40642',\n 'longitude' => '-84.57284',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:38:59',\n 'location_type_id' => NULL,\n ),\n 64 =>\n array (\n 'id' => 1072,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 646-2314',\n 'address' => '5644 MAYFIELD RD|LYNDHURST, OH 44124-2916',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44124-2916',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.519997',\n 'longitude' => '-81.4761',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:00',\n 'location_type_id' => NULL,\n ),\n 65 =>\n array (\n 'id' => 1074,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(419) 472-8615',\n 'address' => '5815 SECOR RD|TOLEDO, OH 43623-1421',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43623-1421',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.72118',\n 'longitude' => '-83.62419',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:07',\n 'location_type_id' => NULL,\n ),\n 66 =>\n array (\n 'id' => 1076,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 891-9422',\n 'address' => '6 E BAGLEY RD BEREA, OH 44017',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44017',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.372715',\n 'longitude' => '-81.852936',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:10',\n 'location_type_id' => NULL,\n ),\n 67 =>\n array (\n 'id' => 1077,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 638-5016',\n 'address' => '600 S MECCA ST CORTLAND, OH 44410-1507',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44410-1507',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.320316',\n 'longitude' => '-80.731155',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:11',\n 'location_type_id' => NULL,\n ),\n 68 =>\n array (\n 'id' => 1081,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 244-1435',\n 'address' => '6421 MARKET AVE N CANTON, OH 44721-2490',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44721-2490',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.874683',\n 'longitude' => '-81.36385',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:11',\n 'location_type_id' => NULL,\n ),\n 69 =>\n array (\n 'id' => 1082,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '6485 WILMINGTON PIKE|DAYTON, OH 45459',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45459',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.6528',\n 'longitude' => '-84.10995',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:12',\n 'location_type_id' => NULL,\n ),\n 70 =>\n array (\n 'id' => 1083,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 468-4800',\n 'address' => '663 E Aurora Rd Macedonia, OH 44056-1805',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44056-1805',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.313885',\n 'longitude' => '-81.515335',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:13',\n 'location_type_id' => NULL,\n ),\n 71 =>\n array (\n 'id' => 1084,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 497-5312',\n 'address' => '6701 FRANK AVE NW|NORTH CANTON, OH 44720-7268',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44720-7268',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.877617',\n 'longitude' => '-81.441345',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:13',\n 'location_type_id' => NULL,\n ),\n 72 =>\n array (\n 'id' => 1085,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 428-3330',\n 'address' => '6707 N RIDGE RD MADISON, OH 44057-2656',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44057-2656',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.8021',\n 'longitude' => '-81.04822',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:14',\n 'location_type_id' => NULL,\n ),\n 73 =>\n array (\n 'id' => 1088,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '6901 MIAMI AVE|MADEIRA, OH 45243-2632',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45243-2632',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.187965',\n 'longitude' => '-84.36335',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:15',\n 'location_type_id' => NULL,\n ),\n 74 =>\n array (\n 'id' => 1089,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '6918 HAMILTON AVE|CINCINNATI, OH 45231-5212',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45231-5212',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.21807',\n 'longitude' => '-84.54945',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:16',\n 'location_type_id' => NULL,\n ),\n 75 =>\n array (\n 'id' => 1090,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '700 S BREIEL BLVD MIDDLETOWN, OH 45044-6202',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45044-6202',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.50337',\n 'longitude' => '-84.355385',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:17',\n 'location_type_id' => NULL,\n ),\n 76 =>\n array (\n 'id' => 1092,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 865-0352',\n 'address' => '748 N STATE ST WESTERVILLE, OH 43082-9066',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43082-9066',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Delaware',\n 'latitude' => '40.145546',\n 'longitude' => '-82.92474',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:17',\n 'location_type_id' => NULL,\n ),\n 77 =>\n array (\n 'id' => 1093,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 442-3368',\n 'address' => '751 RICHMOND RD|RICHMOND HEIGHTS, OH 44143',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44143',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.539474',\n 'longitude' => '-81.49716',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:20',\n 'location_type_id' => NULL,\n ),\n 78 =>\n array (\n 'id' => 1070,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '5555 NEW ALBANY RD|NEW ALBANY, OH 43054-8825',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43054-8825',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '40.0977998',\n 'longitude' => '-82.8184097',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:50',\n 'location_type_id' => NULL,\n ),\n 79 =>\n array (\n 'id' => 1073,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 870-7816',\n 'address' => '5690 W BROAD ST GALLOWAY, OH 43119-8127',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43119-8127',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.9516501',\n 'longitude' => '-83.1525881',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:50',\n 'location_type_id' => NULL,\n ),\n 80 =>\n array (\n 'id' => 1124,\n 'name' => 'whites pharmacy',\n 'bookinglink' => '',\n 'phone' => '(614) 237-7677',\n 'address' => '4057 east livingston ave columbus, OH 43227',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43227',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.945343',\n 'longitude' => '-82.88763',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:22:57',\n 'location_type_id' => NULL,\n ),\n 81 =>\n array (\n 'id' => 1097,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '804 W MARKET ST WARREN, OH 44481',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44481',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Trumbull',\n 'latitude' => '41.23402',\n 'longitude' => '-80.829254',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:33',\n 'location_type_id' => NULL,\n ),\n 82 =>\n array (\n 'id' => 1098,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '805 N COURT ST MEDINA, OH 44256-1718',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44256-1718',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Medina',\n 'latitude' => '41.12766',\n 'longitude' => '-81.86405',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:33',\n 'location_type_id' => NULL,\n ),\n 83 =>\n array (\n 'id' => 1099,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(513) 770-5587',\n 'address' => '8060 S MASON MONTGOMERY RD Mason, OH 45040-9597',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45040-9597',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.320766',\n 'longitude' => '-84.31268',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:34',\n 'location_type_id' => NULL,\n ),\n 84 =>\n array (\n 'id' => 1100,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '834 W MARKET ST AKRON, OH 44303',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44303',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.097168',\n 'longitude' => '-81.54492',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:38',\n 'location_type_id' => NULL,\n ),\n 85 =>\n array (\n 'id' => 1101,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '840 BRITTAIN RD|AKRON, OH 44305',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44305',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.08564',\n 'longitude' => '-81.46697',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:43',\n 'location_type_id' => NULL,\n ),\n 86 =>\n array (\n 'id' => 1103,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 654-2592',\n 'address' => '859 E MAIN ST|LANCASTER, OH 43130-3940',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43130-3940',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fairfield',\n 'latitude' => '39.714123',\n 'longitude' => '-82.61484',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:45',\n 'location_type_id' => NULL,\n ),\n 87 =>\n array (\n 'id' => 1104,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(513) 860-4753',\n 'address' => '8614 PRINCETON GLENDALE RD WEST CHESTER, OH 45069-1839',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45069-1839',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Butler',\n 'latitude' => '39.33791',\n 'longitude' => '-84.46196',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:45',\n 'location_type_id' => NULL,\n ),\n 88 =>\n array (\n 'id' => 1105,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 526-5250',\n 'address' => '8966 Brecksville Rd|Brecksville, OH 44141-2315',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44141-2315',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.3187',\n 'longitude' => '-81.62686',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:46',\n 'location_type_id' => NULL,\n ),\n 89 =>\n array (\n 'id' => 1106,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '9 W MITCHELL AVE CINCINNATI, OH 45217',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45217',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.160492',\n 'longitude' => '-84.50493',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:47',\n 'location_type_id' => NULL,\n ),\n 90 =>\n array (\n 'id' => 1107,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '900 WOOSTER RD N BARBERTON, OH 44203-1659',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44203-1659',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.010525',\n 'longitude' => '-81.62414',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:48',\n 'location_type_id' => NULL,\n ),\n 91 =>\n array (\n 'id' => 1108,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 425-1003',\n 'address' => '901 EAST MAIN STREET BARNESVILLE, OH 43713-1481',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43713-1481',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Belmont',\n 'latitude' => '39.98934',\n 'longitude' => '-81.158676',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:54',\n 'location_type_id' => NULL,\n ),\n 92 =>\n array (\n 'id' => 1109,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '9043 DARROW RD|TWINSBURG, OH 44087',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44087',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.311867',\n 'longitude' => '-81.440254',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:55',\n 'location_type_id' => NULL,\n ),\n 93 =>\n array (\n 'id' => 1111,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 291-3707',\n 'address' => '911 S MAIN ST CENTERVILLE, OH 45458',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45458',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.61937',\n 'longitude' => '-84.15972',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:39:57',\n 'location_type_id' => NULL,\n ),\n 94 =>\n array (\n 'id' => 1112,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 422-0502',\n 'address' => '9166 STATE ROUTE 43|STREETSBORO, OH 44241-5322',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44241-5322',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.24025',\n 'longitude' => '-81.34547',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:02',\n 'location_type_id' => NULL,\n ),\n 95 =>\n array (\n 'id' => 1113,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '925 WOODVILLE RD|TOLEDO, OH 43605-3060',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43605-3060',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.635113',\n 'longitude' => '-83.5164',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:02',\n 'location_type_id' => NULL,\n ),\n 96 =>\n array (\n 'id' => 1114,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 562-2007',\n 'address' => '95 W GARFIELD RD AURORA, OH 44202-6547',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44202-6547',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Portage',\n 'latitude' => '41.317417',\n 'longitude' => '-81.34917',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:03',\n 'location_type_id' => NULL,\n ),\n 97 =>\n array (\n 'id' => 1115,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '9520 FIELDS ERTEL RD LOVELAND, OH 45140',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45140',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.289856',\n 'longitude' => '-84.29501',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:03',\n 'location_type_id' => NULL,\n ),\n 98 =>\n array (\n 'id' => 1118,\n 'name' => 'Warren County Health District',\n 'bookinglink' => 'http://warrenchd.com',\n 'phone' => '(513) 695-7468',\n 'address' => '416 S. East Street Lebanon, OH 45036',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45036',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Warren',\n 'latitude' => '39.427746',\n 'longitude' => '-84.20462',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:11',\n 'location_type_id' => NULL,\n ),\n 99 =>\n array (\n 'id' => 1119,\n 'name' => 'Washington County Health Department',\n 'bookinglink' => 'http://www.washingtongov.org',\n 'phone' => '(740) 374-2782',\n 'address' => '342 Muskingum Dr|Marietta, OH 45750',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45750',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Washington',\n 'latitude' => '39.4414',\n 'longitude' => '-81.460075',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:12',\n 'location_type_id' => NULL,\n ),\n 100 =>\n array (\n 'id' => 1121,\n 'name' => 'West Medical Center',\n 'bookinglink' => 'http://lakehealth.org/vaccine/',\n 'phone' => '(440) 375-8595',\n 'address' => '36000 Euclid Avenue|Willoughby, OH 44094',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44094',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.62655',\n 'longitude' => '-81.43218',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:14',\n 'location_type_id' => NULL,\n ),\n 101 =>\n array (\n 'id' => 1122,\n 'name' => 'Western Reserve Hospital',\n 'bookinglink' => 'http://www.westernreservehospital.org',\n 'phone' => '(330) 971-7977',\n 'address' => '1900 23rd Street Cuyahoga Falls, OH 44223',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44223',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.133064',\n 'longitude' => '-81.50985',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:15',\n 'location_type_id' => NULL,\n ),\n 102 =>\n array (\n 'id' => 1123,\n 'name' => 'Whitehall Family Health',\n 'bookinglink' => 'http://heartofohiofamilyhealth.org',\n 'phone' => '(614) 235-5555',\n 'address' => '882 South Hamilton Road Columbus, OH 43213',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43213',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.957443',\n 'longitude' => '-82.876625',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:17',\n 'location_type_id' => NULL,\n ),\n 103 =>\n array (\n 'id' => 1126,\n 'name' => 'Williams County Health Department',\n 'bookinglink' => 'http://www.williamscountyhealth.org/health-education/cov..',\n 'phone' => '(419) 636-0081',\n 'address' => '310 Lincoln Ave|Montpelier, OH 43543',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43543',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Williams',\n 'latitude' => '41.588135',\n 'longitude' => '-84.59571',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:21',\n 'location_type_id' => NULL,\n ),\n 104 =>\n array (\n 'id' => 1127,\n 'name' => 'Wilson Health',\n 'bookinglink' => 'http://www.wilsonhealth.org',\n 'phone' => '(937) 498-2311',\n 'address' => '915 W. Michigan St. Sidney, OH 45365',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45365',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Shelby',\n 'latitude' => '40.288006',\n 'longitude' => '-84.16899',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:31',\n 'location_type_id' => NULL,\n ),\n 105 =>\n array (\n 'id' => 1128,\n 'name' => 'WinMed Health Services -Winton Hills',\n 'bookinglink' => 'http://www.winmedinc.org',\n 'phone' => '(513) 242-1033',\n 'address' => '5275 Winneste Avenue|Cincinnati, OH 45232',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45232',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.18629',\n 'longitude' => '-84.5147',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:33',\n 'location_type_id' => NULL,\n ),\n 106 =>\n array (\n 'id' => 1129,\n 'name' => 'Wood County Hospital',\n 'bookinglink' => 'http://www.woodcountyhospital.org/',\n 'phone' => '(419) 728-0642',\n 'address' => '950 West Wooster Bowling Green, OH 43402',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43402',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wood',\n 'latitude' => '41.37412',\n 'longitude' => '-83.664604',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:43',\n 'location_type_id' => NULL,\n ),\n 107 =>\n array (\n 'id' => 1130,\n 'name' => 'Wooster Community Hospital',\n 'bookinglink' => 'http://woosterhospital.org',\n 'phone' => '(330) 263-8100',\n 'address' => '1761 Beall Ave.|Wooster, OH 44691',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44691',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Wayne',\n 'latitude' => '40.82092',\n 'longitude' => '-81.934235',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:44',\n 'location_type_id' => NULL,\n ),\n 108 =>\n array (\n 'id' => 1132,\n 'name' => 'Youngstown City Health District',\n 'bookinglink' => 'http://covid19.youngstownohio.gov/',\n 'phone' => '(330) 743-3333',\n 'address' => '9 West Front Street Youngstown, OH 44503',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44503',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.09839',\n 'longitude' => '-80.65084',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:57',\n 'location_type_id' => NULL,\n ),\n 109 =>\n array (\n 'id' => 1133,\n 'name' => 'Youngstown Community Health Center',\n 'bookinglink' => 'http://onehealthohio.org/',\n 'phone' => '(330) 747-9551',\n 'address' => '726 Wick Ave|Youngstown, OH 44505',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '44505',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.109097',\n 'longitude' => '-80.64238',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:58',\n 'location_type_id' => NULL,\n ),\n 110 =>\n array (\n 'id' => 1134,\n 'name' => 'Zanesville-Muskingum County Health Department',\n 'bookinglink' => 'http://www.zmchd.org',\n 'phone' => '(740) 454-9741',\n 'address' => '205 N 7th St Zanesville, OH 43701',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43701',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Muskingum',\n 'latitude' => '39.943493',\n 'longitude' => '-82.003746',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:40:59',\n 'location_type_id' => NULL,\n ),\n 111 =>\n array (\n 'id' => 1096,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 367-7923',\n 'address' => '7900 E BROAD ST BLACKLICK, OH 43004-8240',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43004-8240',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.9859654',\n 'longitude' => '-82.7919242',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:51',\n 'location_type_id' => NULL,\n ),\n 112 =>\n array (\n 'id' => 1116,\n 'name' => 'Wapakoneta Primary Care',\n 'bookinglink' => 'http://www.grandlakehealth.org/',\n 'phone' => '(419) 300-1132',\n 'address' => '812 Redskin Trail|Wapakoneta, OH 45895',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '45895',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Auglaize',\n 'latitude' => '40.5856403',\n 'longitude' => '-84.2071699',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:51',\n 'location_type_id' => NULL,\n ),\n 113 =>\n array (\n 'id' => 1125,\n 'name' => 'Wildcat Elementary Health Center',\n 'bookinglink' => 'http://www.facebook.com/hpwohio',\n 'phone' => '(419) 673-7248',\n 'address' => '631 Silver St.|Kenton, OH 43326',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43326',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hardin',\n 'latitude' => '40.6643569',\n 'longitude' => '-83.5978635',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:52',\n 'location_type_id' => NULL,\n ),\n 114 =>\n array (\n 'id' => 63,\n 'name' => 'Clermont County Public Health',\n 'bookinglink' => 'http://www.ccphohio.org',\n 'phone' => '(513) 735-8500',\n 'address' => '2400 Clermont Center Drive Suite 200 ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Clermont',\n 'latitude' => '39.0829464',\n 'longitude' => '-84.1437748',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:52',\n 'location_type_id' => NULL,\n ),\n 115 =>\n array (\n 'id' => 472,\n 'name' => 'Kroger Pharmacy',\n 'bookinglink' => 'http://www.kroger.com/rx/guest/get-vaccinated',\n 'phone' => '(866) 211-5320',\n 'address' => '4001 State Route 128 Hamilton Cleves Rd ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hamilton',\n 'latitude' => '39.1721382',\n 'longitude' => '-84.760498',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:53',\n 'location_type_id' => NULL,\n ),\n 116 =>\n array (\n 'id' => 645,\n 'name' => 'MetroHealth Medical Center',\n 'bookinglink' => 'http://www.metrohealth.org/get-vaccinated/covid-vaccine',\n 'phone' => '(216) 778-7800',\n 'address' => '2500 Metrohealth Drive Department Of Pharmacy..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.4612658',\n 'longitude' => '-81.6975224',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:53',\n 'location_type_id' => NULL,\n ),\n 117 =>\n array (\n 'id' => 1080,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(614) 920-0287',\n 'address' => '6266 GENDER RD|CANAL WINCHESTER, OH 43110-..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Franklin',\n 'latitude' => '39.852123',\n 'longitude' => '-82.828476',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 14:52:58',\n 'location_type_id' => NULL,\n ),\n 118 =>\n array (\n 'id' => 1028,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(330) 867-1946',\n 'address' => '3009 W MARKET ST FAIRLAWNSUMMIT, OH 44333-36..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Summit',\n 'latitude' => '41.12856',\n 'longitude' => '-81.610855',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:41:11',\n 'location_type_id' => NULL,\n ),\n 119 =>\n array (\n 'id' => 1078,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(800) 925-4733',\n 'address' => '6101 ANDREWS RD|MENTOR ON THE LAKE, OH 4406..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lake',\n 'latitude' => '41.70566',\n 'longitude' => '-81.36128',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:41:13',\n 'location_type_id' => NULL,\n ),\n 120 =>\n array (\n 'id' => 1091,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 886-2353',\n 'address' => '7260 PEARL RD|MIDDLEBURG HEIGHTS, OH 4413..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Cuyahoga',\n 'latitude' => '41.368084',\n 'longitude' => '-81.80439',\n 'created_at' => NULL,\n 'updated_at' => '2021-02-27 16:41:14',\n 'location_type_id' => NULL,\n ),\n 121 =>\n array (\n 'id' => 652,\n 'name' => 'Molly Caren Agricultural Center',\n 'bookinglink' => 'http://covidvaccine.madisonph.org',\n 'phone' => '(740) 852-3065',\n 'address' => '135 Ohio 38 ENTER FROM ROUTE|40..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Madison',\n 'latitude' => '39.9395264',\n 'longitude' => '-83.4494547',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:54',\n 'location_type_id' => NULL,\n ),\n 122 =>\n array (\n 'id' => 677,\n 'name' => 'OhioHealth Kenton COVID Vaccine Clinic',\n 'bookinglink' => 'http://www.ohiohealth.com/covid-19/covid-19-vaccinations',\n 'phone' => '(614) 533-6999',\n 'address' => '75 Washington Blvd. 75 Washington Blvd...',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Hardin',\n 'latitude' => '40.854128',\n 'longitude' => '-75.2101758',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:55',\n 'location_type_id' => NULL,\n ),\n 123 =>\n array (\n 'id' => 745,\n 'name' => 'Rite Aid Store 01659',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 833-2174',\n 'address' => '437 NORTH WOLF CREEK STREET ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Montgomery',\n 'latitude' => '39.8396757',\n 'longitude' => '-84.4229375',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:55',\n 'location_type_id' => NULL,\n ),\n 124 =>\n array (\n 'id' => 767,\n 'name' => 'Rite Aid Store 02353',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 878-8384',\n 'address' => '8239 WATERVILLE SWANTON ROAD ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.5037436',\n 'longitude' => '-83.7388544',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:56',\n 'location_type_id' => NULL,\n ),\n 125 =>\n array (\n 'id' => 775,\n 'name' => 'Rite Aid Store 02389',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 478-8129',\n 'address' => '3720 WEST TUSCARAWAS STREET ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.796819',\n 'longitude' => '-81.4180834',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:57',\n 'location_type_id' => NULL,\n ),\n 126 =>\n array (\n 'id' => 787,\n 'name' => 'Rite Aid Store 02409',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 484-3947',\n 'address' => '4042 CLEVELAND AVENUE SOUTH ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.8436096',\n 'longitude' => '-81.3910555',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:57',\n 'location_type_id' => NULL,\n ),\n 127 =>\n array (\n 'id' => 788,\n 'name' => 'Rite Aid Store 02413',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 833-3194',\n 'address' => '2110 WALES AVENUE NORTHEAST ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Stark',\n 'latitude' => '40.8233913',\n 'longitude' => '-81.501765',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:58',\n 'location_type_id' => NULL,\n ),\n 128 =>\n array (\n 'id' => 827,\n 'name' => 'Rite Aid Store 03147',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(330) 755-2421',\n 'address' => '4914 YOUNGSTOWN-POLAND ROAD ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Mahoning',\n 'latitude' => '41.0505828',\n 'longitude' => '-80.6163243',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:58',\n 'location_type_id' => NULL,\n ),\n 129 =>\n array (\n 'id' => 883,\n 'name' => 'Rite Aid Store 07946',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(419) 882-7241',\n 'address' => '8310 SYLVANIA METAMORA ROAD ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lucas',\n 'latitude' => '41.7176243',\n 'longitude' => '-83.7448976',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:59',\n 'location_type_id' => NULL,\n ),\n 130 =>\n array (\n 'id' => 971,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(740) 335-3180',\n 'address' => '1240 Columbus Ave|Washington Court House, OH 4316..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Fayette',\n 'latitude' => '39.5469188',\n 'longitude' => '-83.427403',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:14:59',\n 'location_type_id' => NULL,\n ),\n 131 =>\n array (\n 'id' => 995,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(937) 878-2889',\n 'address' => '183 E DAYTON YELLOW SPRINGS RD ..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Greene',\n 'latitude' => '39.7897996',\n 'longitude' => '-84.0201172',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:15:00',\n 'location_type_id' => NULL,\n ),\n 132 =>\n array (\n 'id' => 1037,\n 'name' => 'Walgreens Pharmacy',\n 'bookinglink' => 'http://www.walgreens.com/findcare/vaccination/covid-19',\n 'phone' => '(440) 327-1330',\n 'address' => '33760 CENTER RIDGE RD|NORTH RIDGEVILLE, OH 44039-3..',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => NULL,\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Lorain',\n 'latitude' => '41.4015336',\n 'longitude' => '-81.9909534',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:15:00',\n 'location_type_id' => NULL,\n ),\n 133 =>\n array (\n 'id' => 749,\n 'name' => 'Rite Aid Store 02305',\n 'bookinglink' => 'http://www.riteaid.com/pharmacy/covid-qualifier',\n 'phone' => '(937) 843-2048',\n 'address' => '120 W. Main Street|Logan, OH 43138',\n 'address2' => NULL,\n 'city' => NULL,\n 'state' => NULL,\n 'zip' => '43138',\n 'serves' => NULL,\n 'vaccinesoffered' => NULL,\n 'siteinstructions' => NULL,\n 'daysopen' => NULL,\n 'county' => 'Logan',\n 'latitude' => '39.5402718',\n 'longitude' => '-82.411043',\n 'created_at' => NULL,\n 'updated_at' => '2021-03-06 09:21:25',\n 'location_type_id' => NULL,\n ),\n ));\n\n\n }", "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}", "public function run ()\n {\n DB::insert(\"INSERT INTO `location_countries` (`id`, `name`) VALUES\n\t\t(1, 'Brasil')\");\n }", "public function store(StoreLocationRequest $request, Location $location)\n {\n $imageService = new UploadImageService();\n $validated = $request->all();\n $validated['image'] = $imageService->uploadLocationImage($request->image);\n $validated['image_1'] = $imageService->uploadLocationImage($request->image_1);\n $validated['image_2'] = $imageService->uploadLocationImage($request->image_2);\n $validated['image_3'] = $imageService->uploadLocationImage($request->image_3);\n $validated['image_4'] = $imageService->uploadLocationImage($request->image_4);\n\n Location::create($validated);\n $slug = Location::latest()->first()->slug;\n $slug = $slug.'-repair-service';\n Location::latest()->first()->update([\"slug\" => \"$slug\"]);\n\n return redirect()->route('location.index')->with('success', 'Location added');\n }", "public function add(Location $location): void\n {\n $this->locations[] = $location;\n }", "private function insert_data($request){\n $mytime = Carbon::now();\n \n DB::table('gis_maps')->insert([\n 'Lintang' => $request->Lintang,\n 'Bujur' => $request->Bujur,\n 'Kedalaman' => $request->Kedalaman,\n 'Magnitude' => $request->Magnitude,\n 'Audio_Link' => $request->Audio_Link,\n 'Video_Link' => $request->Video_Link,\n 'created_at' => $mytime->toDateTimeString()\n ]);\n }", "public function run()\n {\n Location::truncate();\n Location::insert($this->locations);\n }", "public function testDeleteValidLocation() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n\t\t// delete the Location from mySQL\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$location->delete($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the Location does not exist\n\t\t$pdoLocation = Location::getLocationByLocationId($this->getPDO(), $location->getLocationId());\n\t\t$this->assertNull($pdoLocation);\n\t\t$this->assertEquals($numRows, $this->getConnection()->getRowCount(\"location\"));\n\t}", "public function add($sessionId, Location $location)\n {\n // Setup the data to be inserted\n $data = array('sessionId' => $sessionId, 'locationId' => $location->getLocationId());\n\n // Insert the history\n try {\n $result = $this->db->insert('history', $data);\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n // In a larger project we'd have ways to handle these errors properly\n // This try catch is just to show I understand exception handling\n // I will just rethrow the original exception now\n throw $e;\n }\n\n // If we don't have result of 1 row then something went wrong that didn't throw an exception\n if ($result != 1) {\n throw new \\Exception('Failed to create history for session ID \"' . $sessionId . '\"');\n }\n\n return true;\n }", "public function insert($tblCoverage){\n\t\t$sql = 'INSERT INTO tbl_coverage (location_name, lat, lng, infowindow_text) VALUES (?, ?, ?, ?)';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t\n\t\t$sqlQuery->set($tblCoverage->locationName);\n\t\t$sqlQuery->set($tblCoverage->lat);\n\t\t$sqlQuery->set($tblCoverage->lng);\n\t\t$sqlQuery->set($tblCoverage->infowindowText);\n\n\t\t$id = $this->executeInsert($sqlQuery);\t\n\t\t$tblCoverage->id = $id;\n\t\treturn $id;\n\t}" ]
[ "0.7276832", "0.7263678", "0.70063186", "0.69364", "0.6879095", "0.6831648", "0.68204045", "0.6727662", "0.6602435", "0.6516491", "0.6327037", "0.6324173", "0.6258634", "0.6219613", "0.6196191", "0.6144236", "0.6108178", "0.6079316", "0.5996928", "0.5968348", "0.5947828", "0.5906532", "0.5905402", "0.59020627", "0.5893305", "0.58730805", "0.58606356", "0.58508945", "0.5832819", "0.5813145", "0.58075297", "0.57996726", "0.5794387", "0.5781103", "0.5772784", "0.57693416", "0.57685494", "0.5734223", "0.5728819", "0.5727658", "0.572636", "0.5715081", "0.5707716", "0.57064825", "0.5700585", "0.56965464", "0.56963086", "0.5687015", "0.5685753", "0.5683264", "0.56735367", "0.56575936", "0.56557006", "0.5650213", "0.5634197", "0.5628104", "0.562325", "0.56211704", "0.56185055", "0.56099933", "0.5600225", "0.5591814", "0.5588011", "0.557959", "0.5577653", "0.5577653", "0.5574473", "0.5561589", "0.555752", "0.55516434", "0.55291176", "0.55268013", "0.5524732", "0.55194867", "0.5510142", "0.5505446", "0.5504838", "0.5503781", "0.54962003", "0.5494776", "0.54878813", "0.547262", "0.54724705", "0.54673105", "0.5466796", "0.5461345", "0.54612803", "0.5456768", "0.545312", "0.5452034", "0.54513615", "0.54511344", "0.54433465", "0.54357535", "0.5435315", "0.54350007", "0.5434145", "0.54272693", "0.54223263", "0.5420142" ]
0.6486656
10
This function reads a location using a location_id
public function read_location($location_id) { $query= $this->db->get_where('Location',array('location_id'=>$location_id)); if(!is_null($query->row()->name)) { return FALSE; } return $query->row()->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_location_by_id($loc_id) {\n $this->db->select('*');\n $this->db->from('locations');\n $this->db->where('id', $loc_id);\n $results = $this->db->get();\n\n if($results->num_rows() > 0) {\n $location = $results['location'];\n } else {\n $location = 'N/A';\n }\n\n return $location;\n }", "public function getFromID( $id )\n\t{\t\t\n\t\t$core = Core::dbOpen();\n\t\t$sql = \"SELECT * FROM program_locations WHERE programID = :programID AND locationID = :locationID\";\n\t\t$stmt = $core->dbh->prepare($sql);\n\t\t$stmt->bindParam(':programID', $this->programID);\n\t\t$stmt->bindParam(':locationID', $id);\n\t\tCore::dbClose();\n\t\t\n\t\ttry {\n\t\t\t// if the location is found, set id otherwise add it\n\t\t\tif( $stmt->execute() && $stmt->rowCount() > 0 )\n\t\t\t{\n\t\t\t\t$row = $stmt->fetch();\n\t\t\t\t$this->locationID = $row[\"locationID\"];\n\t\t\t\t$this->city = $row[\"city\"];\n\t\t\t\t$this->state = $row[\"state\"];\n\t\t\t\t$this->zip = $row[\"zip\"];\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (PDOException $e) {\n\t\t\techo \"Location get from id failed!\";\n\t\t}\n\t\treturn false;\n\t}", "public function loadLocation($id): LocationInterface;", "function get_location( $location = '' ) {\n\t\tglobal $wpdb;\n\t\t\n\t\ttry {\n\t\t\t// Sanitize\n\t\t\tif( $location != '' ) {\n\t\t\t\t$location = sanitize_text_field( $location );\n\t\t\t} else {\n\t\t\t\t//throw new Exception( 'Location ID not provided.' );\n return false;\n\t\t\t}\n\t\t\t\n\t\t\t// Select the location in the db\n\t\t\t$sql = \"SELECT * FROM `\" . rpids_tableprefix() . \"rpids_locations` WHERE `id`='\" . $location . \"';\";\n\t\t\t$location = $wpdb->get_row( $sql, ARRAY_A );\n\t\t\t\n\t\t\t// Make sure the location exists\n\t\t\tif( $wpdb->num_rows == 0 ) {\n\t\t\t\tthrow new Exception( 'Location does not exist.' );\n\t\t\t}\n\t\t\t\n\t\t\t// Group IDs are stored as an array. Make sure it is actually an array.\n\t\t\t$location['groups'] = rpids_unserialize( $location['groups'] );\n\t\t\n\t\t\t$return = array(\n\t\t\t\t\"location\" => $location['location'],\n\t\t\t\t\"groups\" => $location['groups'],\n\t\t\t\t\"weather_id\" => $location['weather_id'],\n\t\t\t\t\"layout\" => $location['layout']\n\t\t\t);\n\t\t\t\n\t\t\treturn $return;\n\t\t\t\n\t\t} catch ( Exception $e ) {\n\t\t\treturn array(\n\t\t\t\t\"status\" => \"error\",\n\t\t\t\t\"message\" => $e->getMessage()\n\t\t\t);\n\t\t}\n\t}", "public function getLocationByID($locationID) {\n\t\t$locationID = $this->db->escape($locationID);\n\n\t\t$query = $this->db->select('\n\t\t\tRoomID,\n\t\t\tRoomName,\n\t\t\tRoomAbbr,\n\t\t\tRoomDesc,\n\t\t\tIsApproved,\n\t\t\tBuildingName,\n\n\t\t')->\n\t\tfrom('Room')->\n\t\tjoin('Building', 'Room.BuildingID = Building.BuildingID')->\n\t\twhere(\"RoomID = $locationID\")->\n\t\tget();\n\n\t\treturn $query->result_array()[0];\n\t}", "public function find($id)\r\n {\r\n if (!is_array($id)) {\r\n return $this->location->where('id', $id)->first();\r\n }\r\n \r\n return $this->location->whereIn('id', $id)->get();\r\n }", "public function byLocation(string $location);", "public function getLocDetails($loc_id)\r\n\t\t{\r\n\t\t\t\t$link = $this->connect();\r\n\t\t\t\t$query = \"SELECT l.loc_name, \r\n\t\t\t\t\t\t\tl.loc_id,\r\n\t\t\t\t\t\t\tl.address\r\n\t\t\t\t\t\tFROM location l \r\n\t\t\t\t\t\twhere l.loc_id = '\".$loc_id.\"'\r\n\t\t\t\t\t\tLIMIT 1\";\r\n\t\t\t\t$result = mysqli_query($link, $query) or die(mysqli_error($link));\r\n\t\t\t\t$loc = array();\r\n\t\t\t\t$arr_loc = array();\r\n\t\t\t\twhile ($row = mysqli_fetch_row($result)) {\r\n\t\t\t\t\t\t$loc['loc_name'] = $row[0];\r\n\t\t\t\t\t\t$loc['loc_id'] = $row[1];\r\n\t\t\t\t\t\t$loc['address'] = $row[2];\r\n\t\t\t\t\t\t$arr_loc[] = $loc;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn $arr_loc;\r\n\t\t}", "function getLocation($location) {\n \n \t$location_request_url = sprintf($this->api_urls['locations'], $location, $this->access_token);\n \t\n \treturn $this->__apiCall($location_request_url);\n \n }", "public function get($location);", "function location_detail($location_id, $connection, $start = 0)\n{\n\t$db_selected = mysql_select_db(Secure::DB_DATABASE, $connection);\n\t$sql = \"select organization_location.address , organization_location.city , organization_location.state , organization_location.zip , organization_location.latitude , organization_location.longitude from organization_location where location_id = {$location_id}\";\n\t$sql = $sql.\" limit {$start},\".LIMIT;\n\tif(!($resource = @ mysql_query($sql, $connection)))\n\t\tshowerror();\n\t\t//echo $sql;\n\telse\n\t\treturn $resource;\n}", "public static function getLocationInfo($locationID) {\n\t\t\t$db = Database::getInstance();\n\t\t\t$query = \"SELECT `name`, `description` FROM `locations` WHERE `id`=?\";\n\t\t\t$db->query($query, array($locationID));\n\t\t\treturn ($db->firstResult());\n\t\t}", "public function show_location_details($location_id)\n\t{\n\t\t$query = \"SELECT \n\t\t\t ld.detail_id, \n\t\t\t ld.location_id, \n\t\t\t ld.place_id,\n\t\t\t ld.building_id, \n\t\t\t ld.floor_id,\n\t\t\t ld.active\n\t\t\tFROM location_details ld \n\t\t\tWHERE location_id = '$location_id' AND active = 'yes' \";\n\t\t$location_details = $this->db->query($query);\n\t\treturn $location_details;\n\t}", "public function GetTicketLocation($locationID){\n return $this->object->GetTicketLocationDB($locationID);\n }", "function get_location($locationid)\r\n{\r\n $sql = 'SELECT name FROM location WHERE id = \"'.$locationid.'\"';\r\n //echo $sql; // echo\r\n\r\n $res = mysql_query($sql) or die(\"Mysql error!\");\r\n\r\n $num_rows = mysql_num_rows($res); // get the number of rows\r\n\r\n if ($num_rows > 0)\r\n {\r\n $row = mysql_fetch_array($res);\r\n $strLocation = $row['name'];\r\n }\r\n else\r\n {\r\n $strLocation = \"No Location found\";\r\n }\r\n return $strLocation;\r\n}", "public function getLocationid()\n {\n return $this->locationId;\n }", "function load($ID)\n\t{\n\t\t//check ID is not blank and exists and such\n\t\t$db = DB::GetConn();\n\n\t\t$id_con = $db->quoteInto(\"ID = ?\",$ID);\n\t\t$getQuery = \"SELECT * FROM `Location` WHERE $id_con limit 1;\";\n\t\t$res = $db->query($getQuery);\n\t\t$obj = $res->fetchObject();\n return Location::loadLocationFromObject($obj);\n }", "public static function getLocationUid($id= ''){\n if($id){\n $array =array('userid' => $id);\n $value=DB::table('locations')->where($array)->orderBy('id', 'asc')->get();\n }\n return $value;\n }", "public function setLocationId($var)\n {\n GPBUtil::checkString($var, True);\n $this->location_id = $var;\n\n return $this;\n }", "public function setLocationId($var)\n {\n GPBUtil::checkString($var, True);\n $this->location_id = $var;\n\n return $this;\n }", "public function getLocation($id)\n {\n $endpointUrl = sprintf($this->_endpointUrls['locations'], $id, $this->getAccessToken());\n $this->_initHttpClient($endpointUrl);\n $response = $this->_getHttpClientResponse();\n return $this->parseJson($response);\n }", "protected function locationsLocationIdGetRequest($location_id)\n {\n // verify the required parameter 'location_id' is set\n if ($location_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $location_id when calling locationsLocationIdGet'\n );\n }\n\n $resourcePath = '/locations/{location_id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($location_id !== null) {\n $resourcePath = str_replace(\n '{' . 'location_id' . '}',\n ObjectSerializer::toPathValue($location_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n []\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n [],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('api_token');\n if ($apiKey !== null) {\n $queryParams['api_token'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function data_location($id)\n {\n $this->db->where('id',$id);\n $query = $this->db->get('ciudad');\n return $query->row();\n }", "public function getLocationId()\n {\n return $this->location_id;\n }", "public function getLocationId()\n {\n return $this->location_id;\n }", "public function show($id)\n {\n if ($id > 0) {\n $location = LocationModel::find($id);\n if ($location) {\n return $this->respondData('Location', $location);\n }\n }\n return $this->respondWithErrors(404, 'Location not found');\n }", "public static function getPlace($location) {\n\t\t$sql = \"SELECT * FROM Buildings WHERE id = \".$location;\n\t\t$places = self::getPlaces($sql);\n\t\t$convertedPlaces = self::convertPlaces($places);\n\t\treturn $convertedPlaces;\n\t}", "public function getLocNameById($loc_id){\n\n if ($this->checkId($loc_id, $this->loc_id)){\n\n $query = \"SELECT `\".$this->FIELD_TICKET_LOC_NAME.\"`\".\n \"FROM `\".$this->TBL_TICKETLOC.\"`\".\n \"WHERE `\".$this->FIELD_TICKET_LOC_ID .\"` = '\". $loc_id . \"'\";\n $this->dbquery($query);\n if ( $this->checkDbErrors($query) ){\n\n return FALSE;\n }\n $status_array = $this->dbFetchArray();\n if ( $this->checkDbErrors($query) ){\n\n return FALSE;\n }\n\n } else {\n return FALSE;\n }\n return ($status_array[$this->loc_name]);\n }", "public function testGetValidLocationByLocationId() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$results = Location::getLocationByLocationId($this->getPDO(), $location->getLocationId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$this->assertEquals($results->getLocationProfileId(), $this->profile->getProfileId());\n\t\t$this->assertEquals($results->getLocationAttention(), $this->payAttention);\n\t\t$this->assertEquals($results->getLocationCity(), $this->sinCity);\n\t\t$this->assertEquals($results->getLocationName(), $this->granjalada);\n\t\t$this->assertEquals($results->getLocationState(), $this->stateOfMind);\n\t\t$this->assertEquals($results->getLocationStreetOne(), $this->warZone);\n\t\t$this->assertEquals($results->getLocationStreetTwo(), $this->aptTwo);\n\t\t$this->assertEquals($results->getLocationZipCode(), $this->whatHood);\n\n\t}", "public function update($id, $location){\n $fields = array(\"location_name\");\n $values = array($location);\n $update = $this->db->update(\"location_tabel\", $fields, $values, \"id = \".$id);\n return $update;\n }", "public function delete_location( $location_id ) {\n\t\tglobal $wpdb;\n\t\t\n\t\t// Process the provided id\n\t\ttry {\n\t\t\t// Check for the location\n\t\t\tif( @$location_id != '' ) {\n\t\t\t\t$location_id = sanitize_text_field( $location_id; );\n\t\t\t} else {\n\t\t\t\tthrow new Exception( 'Location ID not provided.' );\n\t\t\t}\n\t\t\t\n\t\t\t// Make sure the location exists\n\t\t\t$sql = \"SELECT * FROM `\" . rpids_tableprefix() . \"rpids_locations` WHERE `id`='\" . $location_id . \"';\";\n\t\t\t$sqlret = $wpdb->get_results( $sql, ARRAY_A );\n\t\t\t\n\t\t\tif( $wpdb->num_rows != 1 ) {\n\t\t\t\tthrow new Exception( 'The location with the ID ' . $location_id . ' does not exist.' );\n\t\t\t}\n\t\t\t\n\t\t\t// The location exists, delete the location from the DB\n // We do this is a conditional in case we have a problem\n\t\t\tif( !$wpdb->delete( rpids_tableprefix() . \"rpids_locations\", array( \"id\" => $location_id ) ) ) {\n throw new Exception( 'Unknown error when removing location ID ' . $location_id );\n } else {\n return (object) array(\n\t\t\t\t \"status\" => \"success\",\n\t\t\t\t \"message\" => \"Location deleted.\"\n );\n }\n\t\t} catch ( Exception $e ) {\n\t\t\treturn (object) array(\n\t\t\t\t\"status\" => \"error\",\n\t\t\t\t\"message\" => $e->getMessage()\n\t\t\t);\n\t\t}\n\t}", "public function get_location_by_object_id($p_object_id)\n {\n return $this->get_location(null, null, C__RECORD_STATUS__NORMAL, $p_object_id);\n }", "function project_location($id)\n{\n\t$ptlocation=mysql_fetch_array(mysql_query(\"select location_name from manage_property_type_location where pt_loc='$id'\"));\n\treturn $ptlocation['location_name'];\n\t}", "public function editLocation($id)\n {\n // $locations = Location::where('id',$id)->first();\n\n // return view('locationPointOfInterest.edit',compact('locations'));\n }", "public function getPlaceByID( $id );", "public function getEditLocation($id)\n {\n $location = Location::find($id);\n if(!$location) abort(404);\n return view('admin.world_expansion.create_edit_location', [\n 'location' => $location,\n 'types' => LocationType::all()->pluck('name','id')->toArray(),\n 'locations' => Location::all()->where('id','!=',$location->id)->pluck('name','id')->toArray(),\n 'ch_enabled' => Settings::get('WE_character_locations'),\n 'user_enabled' => Settings::get('WE_user_locations')\n ]);\n }", "public function __construct($id, $location)\n\t{\n\t\t$this->_id = $id;\n\t\t$this->_location = $location;\n\t}", "public function getLocationId()\n {\n return $this->locationId;\n }", "public function getLocationId()\n {\n return $this->locationId;\n }", "public function get($locationId)\n {\n return $this->apiRequest('application/locations/' . $locationId);\n }", "public function getLocIdByName($loc_name){\n \n if ($this->checkText($loc_name, $this->loc_name)) {\n\n $query = \"SELECT `\".$this->FIELD_TICKET_LOC_ID.\"`\".\n \"FROM `\".$this->TBL_TICKETLOC.\"`\".\n \"WHERE `\".$this->FIELD_TICKET_LOC_NAME .\"` = '\". $this->dbInString($loc_name) . \"'\";\n\n $this->dbquery($query);\n if ( $this->checkDbErrors($query) ){\n\n return FALSE;\n }\n \n $status_array = $this->dbFetchArray();\n if ( $this->checkDbErrors($query) ){\n\n return FALSE;\n }\n } else {\n return FALSE;\n }\n \n return $status_array[$this->loc_id];\n }", "public function findLocationID($name = false) {\r\n\r\n $query = \"SELECT jn_location_id FROM jn_locations WHERE LOWER(jn_location_name) = ?\";\r\n\r\n #$name = \"'%\" . $name . \"%'\";\r\n $name = strtolower(trim($name));\r\n\r\n return $this->db->fetchOne($query, $name);\r\n }", "public function read($id);", "function get( $id=\"\" )\n {\n $db =& eZDB::globalDatabase();\n if ( $id != \"\" )\n {\n $db->array_query( $region_array, \"SELECT * FROM eZAddress_Region WHERE ID='$id'\" );\n\t\t\t\n if ( count( $region_array ) == 1 )\n {\n $this->fill( $region_array[0] );\n }\n }\n }", "public function scopeLocationId($query, $location_id)\r\n {\r\n return $query->where('location_id', $location_id);\r\n }", "public function getWorkshopLocation( $workshopLocID )\n\t{\n\t\t$core = Core::dbOpen();\n\t\t$sql = \"SELECT wl.name, wl.address, l.city, l.state, l.zip, l.locationID FROM workshop_location wl\n\t\t JOIN program_locations l ON wl.workshopLocationID = :workshopLocID AND wl.locationID = l.locationID\";\n\t\t$stmt = $core->dbh->prepare($sql);\n\t\t$stmt->bindParam(':workshopLocID', $workshopLocID );\n\t\t\n\t\ttry{\n\t\t\tif($stmt->execute()) {\n\t\t\t\t\t$row = $stmt->fetch();\n\t\t\t\t\t\n\t\t\t\t\t$this->workshopLocationID = $workshopLocID;\n\t\t\t\t\t$this->name = $row[\"name\"];\n\t\t\t\t\t$this->address = $row[\"address\"];\n\t\t\t\t\t$this->city = $row[\"city\"];\n\t\t\t\t\t$this->state = $row[\"state\"];\n\t\t\t\t\t$this->zip = $row[\"zip\"];\n\t\t\t\t\t$this->locationID = $row[\"locationID\"];\n\t\t\t}\n\t\t} catch ( PDOException $e ) {\n\t\t\techo \"Get Workshop Location Failed!\";\n\t\t}\n\t}", "abstract protected function _read($id = NULL);", "function read($id)\n {\n }", "function location($gps){\n\tglobal $api;\n\t$lat = $gps['lat'];\n\t$lon = $gps['lon'];\n\t$endpoint = \"https://us1.locationiq.com/v1/reverse.php?key=$api&lat=$lat&lon=$lon&format=json\";\n\techo \"https://www.google.com/maps/search/?q=$lat,$lon\\n\";\n\treturn file_get_contents($endpoint);\n}", "public function showByLocation($id){\n\t\t\n\t\t//our tasks\n\t\t$this->set('tasks', $this->Task->find('all', array(\n\t\t\t'conditions' => array('Task.location_id' => $id),\n\t\t\t'order' => array('Task.deadline'),\n\t\t)));\n\t\t\n\t\t//our statuses\n\t\t$this->set('statuses', $this->Task->Status->find('list'));\n\t\t\n\t\t//our locations\n\t\t$this->set('locations', $this->Task->Location->find('list'));\n\t\t\n\t\t//our keywords\n\t\t$this->set('keywords', $this->Task->Keyword->find('list'));\n\t\t\n\t\t//our link locations\n\t\t$linkLocation['/foundersFactory/tasks/'] = \"Show by Location\";\n\t\tforeach($this->Task->Location->find('list') as $key => $location){\n\t\t\t$linkLocation['/foundersFactory/tasks/showByLocation/'.$key] = $location;\n\t\t}\n\t\t$this->set('linkLocations', $linkLocation);\n\t}", "public function edit(Location $location,$id)\n {\n $state=State::all();\n $location=Ho_details::find($id);\n return view('admin.master.ho_details.edit',compact('state','location'));\n }", "public function find_by_location($location, $group_id = 1, $lang = NULL)\n\t{\n\t\t$where[$this->_tables['fuel_navigation'].'.location'] = $location;\n\t\treturn $this->_find_by_array($where, $group_id, $lang);\n\t}", "public function getLocationId(): int\n {\n return $this->location->getId();\n }", "public function read($id)\n {\n }", "public function read($id)\n {\n }", "private function checkLocationExists($id)\n {\n $location = Location::find($id);\n if (!$location) {\n throw new DomainException(self::MESSAGE_LOCATION_NOT_FOUND);\n }\n }", "public static function location_name($id) {\n \n $city = Location::model()->findByPK($id);\n return $city->name;\n }", "public static function getFromOwnTable(\\stdClass $location): Location\n {\n return self::fillModel($location);\n }", "public function show($id)\n {\n $location = PurchaseLocation::findOrFail($id);\n return response()->json($location);\n }", "private function read( ) {\n\n // Assume error\n $return_val = false;\n\n // Open the data file for reading\n $handle = @fopen( $this->gPZ['doc_root'] . $this->location_file, \"r\" );\n if ( $handle ) {\n\n // Open was successful, read the file line by line\n $line_count = 0;\n $this->location_table = array();\n while ( ( $line_data = fgets( $handle, 4096 ) ) !== false ) {\n\n // Skip the first line which is headers\n if ( $line_count > 0) {\n\n // Burst the line into an array and store it in the master table\n $location_data = explode( \"\\t\", $line_data );\n $this->location_table[] = array(\n 'city' => $location_data[IDX_CITY],\n 'state' => $location_data[IDX_STATE],\n 'population' => $location_data[IDX_POP],\n 'lat' => $location_data[IDX_LAT],\n 'lon' => $location_data[IDX_LON],\n );\n }\n $line_count++;\n }\n\n // Close the file\n fclose( $handle );\n\n $return_val = true;\n }\n\n return( $return_val );\n }", "public function getById( $StaffLocationId ) {\n\t\t$StaffLocation = Client::request( 'staff/location/' . $StaffLocationId );\n\t\treturn new StaffLocation( $StaffLocation );\n\t}", "public function read(string $session_id)\n {\n }", "public function getResourceId()\n\t{\n\t\treturn 'Location';\n\t}", "public function edit($id)\n {\n $location = Location::find($id);\n\n if( isset($location) ) {\n if (auth()->user()->id !== $location->user_id) {\n return redirect('/locations')->with('error', 'Unauthorized Page');\n }\n return view('locations.edit')->with('location',$location);\n } else {\n return redirect('/locations')->with('error', \"Location doesn't exist.\");\n }\n }", "public function getLocationId($location) {\r\n\t\tglobal $xname, $languages;\r\n\t\t$exists\t\t= false;\r\n\t\t\r\n\t\t// Check to see if exists in localidades table\r\n\t\t$localidadesQuery\t= \"SELECT id FROM {$xname}_localidades WHERE nombre = '{$location}'\";\r\n\t\t$localidadesSql\t\t= $this->db->query($localidadesQuery);\r\n\t\t\r\n\t\tif (is_object($localidadesSql) && $localidadesSql!='') {\r\n\t\t\t$localidadesRow\t\t= $localidadesSql->fetch_object();\r\n\t\t\tif (is_object($localidadesRow)) {\r\n\t\t\t\t$currentId \t\t\t= $localidadesRow->id;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Check to see if in new_entries table\r\n\t\t\t$entriesQuery\t= \"SELECT converted_id FROM {$xname}_new_entries WHERE entry = '{$location}'\";\r\n\t\t\t$entriesSql\t\t= $this->db->query($entriesQuery);\r\n\t\t\t\r\n\t\t\tif ($entriesSql) {\r\n\t\t\t\t$entriesRow\t\t= $entriesSql->fetch_object();\t\t\t\r\n\t\t\t\t$currentId \t\t= $entriesRow->converted_id;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// If it already exists in either localidades or new_entries, we return it, otherwise we enter it into both tables\r\n\t\tif (!empty($currentId)) {\r\n\t\t\t// Exists, so return id\r\n\t\t\treturn $currentId;\r\n\t\t} else {\r\n\t\t\t// Add it to table\r\n\t\t\t$insert\t= array();\r\n\t\t\tforeach ($languages as $l) {\r\n\t\t\t\t$insert['nombre'] = $location;\r\n\t\t\t}\r\n\t\t\t$newId = $this->db->insertQuery($insert, $xname . '_localidades');\r\n\t\t\t$this->log->write(Logger::INFO, 'New location: ' . $location);\r\n\t\t\t\r\n\t\t\t// Now add to new_entries table\r\n\t\t\t$insert\t\t\t\t\t= array();\r\n\t\t\t$insert['tabla']\t\t= $xname.'_localidades';\r\n\t\t\t$insert['entry']\t\t= $location;\r\n\t\t\t$insert['new_id']\t\t= $newId;\r\n\t\t\t$this->db->insertQuery($insert, $xname.'_new_entries');\r\n\t\t\treturn $insert['new_id'];\r\n\t\t}\r\n\t\t \r\n\t }", "function getLocation();", "public static function LocatedAtID($id) {\n return static::where(compact('id'))->firstOrFail();\n }", "public function show($id)\n {\n $user_id = auth()->user()->id;\n $user = User::find($user_id);\n $location = Location::find($id);\n if( isset($location) ) {\n if (auth()->user()->id !== $location->user_id) {\n return redirect('/locations')->with('error', 'Unauthorized Page');\n }\n return view('locations.show')->with('location', $location)->with('user', $user);\n } else {\n return redirect('/locations')->with('error', \"Location doesn't exist.\");\n }\n }", "public function findForecastsByLocationIdAfter(int $locationId, int $epoch){\n\n // check for existing location\n try {\n $query = $this->pdo->prepare(\"\n SELECT\n f.time,\n f.temperature,\n f.precipitation_intensity,\n f.precipitation_probability,\n l.latitude,\n l.longitude,\n l.id\n FROM\n $this->dbname.forecasts f\n JOIN\n $this->dbname.locations l on l.id = f.location_id\n WHERE\n f.location_id = ? AND f.time > ?\n \");\n\n $query->execute([ $locationId, $epoch ]);\n $result = $query->fetchAll(\\PDO::FETCH_ASSOC);\n }\n catch(PDOException $error) {\n echo $error->getMessage() . \"\\n\";\n }\n\n if( !empty($result) ){\n foreach($result as $row) {\n echo \"Location ID: \". $row['id'] . \"\\n\";\n echo \"Latitude: \". $row['latitude'] . \"\\n\";\n echo \"Longitude: \". $row['longitude'] . \"\\n\";\n echo \"Time: \". $row['time'] . \"\\n\";\n echo \"Temperature: \". $row['temperature'] . \"\\n\";\n echo \"Precipitation Intensity: \". $row['precipitation_intensity'] . \"\\n\";\n echo \"Precipitation Probability: \". $row['precipitation_probability'] . \"\\n\";\n echo \"\\n\";\n }\n }\n else{\n echo \"No forecasts found for location_id $locationId with eopoch > $epoch\\n\\n\";\n }\n }", "public function getLocations($city_id)\n\t{\n\t\ttry\n {\n\t\t $select = $this->getDbTable()->select()\n\t\t\t ->where('city_id=?',$city_id)\n\t\t\t ->where('status = ?', true)\n\t\t\t ->order('description ASC');\n\t\t\t$records = $this->getDbTable()->fetchAll($select);\n\t\t\t$locaationdata=Array();\t\n\t\t\t$locationdata[0]= array('value'=>'','key'=>'Select Location');\t\t\n\t\t\tforeach($records as $record)\n\t\t\t{\n\t\t\t\t$locationdata[] = array('key'=>$record['description'],'value'=>$record['id']);\t\n\t\t\t}\t\n\t\t\treturn $locationdata;\n\t\t}\n\t\tcatch (Exception $ex){\n\t\t\tthrow new Exception($ex->getMessage()) ;\n\t\t}\n\t}", "public function get($addressId);", "public function show(Location $location,$id)\n {\n $location=Ho_details::find($id);\n return view('admin.master.ho_details.show',compact('location'));\n }", "function FileLatitudeLongitudeFromAddress($location, $country) {\n ini_set(\"max_execution_time\", \"200\");\n\n if ($location['street'])\n $output = implode(\"%20\", explode(\" \", $location['street'])) . '+';\n if ($location['city'])\n $output .= implode(\"%20\", explode(\" \", $location['city'])) . '+';\n if ($location['state'])\n $output .= implode(\"%20\", explode(\" \", $location['state'])) . '+';\n\n $country = ($country) ? implode(\"%20\", explode(\" \", $country)) : '';\n\n $gmapUrl = \"http://maps.google.com/maps/geo?q=\" . $output . $country . \"&output=csv\";\n\n $content = explode(\",\", file_get_contents(\"$gmapUrl\"));\n\n //maps.google.com return a content with csv form, which is seperated with \",\",\n //the 2-th parameter is the latitude, the 3-th parament is longitude.\n return array(\"latitude\" => $content[2], \"longitude\" => $content[3]);\n }", "function deleteLocation($id) {\r\n\r\n\t\t//Find all users from the database and store in the variable users\r\n\t\t$users = $this->findAllUsers();\r\n\r\n\t\tforeach($users as $user) :\r\n\t\t\t//If a user is location at the location we must set the location_id to 0\r\n\t\t\tif($user['users']['location_id'] == $id) {\r\n\t\t\t\t$this->query('UPDATE users SET location_id=' . 0 .' WHERE id='. $user['users']['id'] .';');\r\n\t\t\t} //end if\r\n\t\tendforeach;\r\n\r\n\t\treturn ($this->query('DELETE FROM locations WHERE locations.id = '. $id .';'));\r\n\r\n\t}", "public function read($id) {\n\t\treturn file_get_contents( $this->init['path']['data'] . $id . $this->init['data']['ext'] );\n\t}", "public static function readProductDetailByProductVendorLocationID($productVendorLocationID) {\n $arrData = array();\n \n $queryResult = \\DB::table('products')\n ->join('product_vendor_locations as pvl','pvl.product_id','=','products.id')\n ->leftJoin('product_attributes_integer as pai','pai.product_id','=','products.id')\n ->join('product_attributes as pa','pa.id','=','pai.product_attribute_id')\n ->where('pvl.id',$productVendorLocationID)\n ->where('pa.alias','reward_points_per_reservation')\n ->select('products.id','pvl.vendor_location_id','products.name','pai.attribute_value as reward_point')\n ->first();\n \n if($queryResult) {\n $arrData['id'] = $queryResult->id;\n $arrData['vendor_location_id'] = $queryResult->vendor_location_id;\n $arrData['name'] = $queryResult->name;\n $arrData['reward_point'] = (empty($queryResult->reward_point))? 0.00 : $queryResult->reward_point;\n }\n \n return $arrData;\n }", "public static function getLocacion($id_test)\n {\n // Consulta de la meta\n $consulta = \"SELECT * FROM clientes_locacion WHERE id_locacion = ?\";\n\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute(array($id_test));\n // Capturar primera fila del resultado\n $row = $comando->fetch(PDO::FETCH_ASSOC);\n return $row;\n\n } catch (PDOException $e) {\n // Aquí puedes clasificar el error dependiendo de la excepción\n // para presentarlo en la respuesta Json\n return -1;\n }\n }", "public function delete_location($location_id)\n {\n $this->db->where('location_id', $location_id);\n return $this->db->delete('Location');\n }", "public function getLocationId(): ?string\n {\n return $this->locationId;\n }", "public function getLocationId(): ?string\n {\n return $this->locationId;\n }", "public function getLocationId(): ?string\n {\n return $this->locationId;\n }", "public function setLocationid($locationId)\n {\n $this->locationId = $locationId;\n\n return $this;\n }", "public function getUserParkInfoByLocation($uid, $location)\n {\n $sql = \"SELECT * FROM parking WHERE parking_uid=:uid AND location=:location AND type=1\";\n\n return $this->_rdb->fetchRow($sql,array('uid'=>$uid,'location'=>$location));\n }", "public function getById(int $locationId): ?Location\n {\n $response = $this->httpClient->get('locations/'.$locationId);\n if (! HetznerAPIClient::hasError($response)) {\n return Location::parse(json_decode((string) $response->getBody())->location);\n }\n\n return null;\n }", "function getLocation(){\n\t//TODO: work on it\n\tinclude 'database.php';\n\tif(!(isset($_GET[\"location\"]))){\n\t\tprint(\"<div class='alert alert-danger' role='alert'><strong>Error:</strong> Geen locatie ingesteld.</div>\");\n\t\t\n\t\tif(isset($_SESSION[\"location_name\"]) && (isset($_SESSION[\"location_id\"]))){\n\t\t\t$_GET[\"location\"] = $_SESSION[\"location_name\"];\n\t\t\tif($_SERVER[\"REQUEST_URI\"] == '/index.php'){\n\t\t\theader(\"location:index.php?location=\" . $_SESSION[\"location_name\"]);\n\t\t\t}\n\t\t\treturn $_SESSION[\"location_id\"];\n\t\t}\n\t\treturn NULL;\n\t}\n\t\n\t\n\telse{\n\t\t$locationquery = $conn->prepare(\"SELECT location_id, `name` FROM `location` WHERE `name` = ? \");\n\t\t$locationquery->execute(array($_GET[\"location\"]));\n\t\t$locationresult = $locationquery->fetch();\n\t\tif($locationquery->rowCount() > 0){\n\t\t\t$_SESSION[\"location_id\"] = $locationresult[\"location_id\"];\n\t\t\t$_SESSION[\"location_name\"] = $locationresult[\"name\"];\n\t\t\treturn $locationresult[\"location_id\"];\n\t\t}\n\t\telse{\n\t\t\tprint(\"<div class='alert alert-danger' role='alert'><strong>Error:</strong> Geen geldige locatie.</div>\");\n\t\t\treturn NULL;\n\t\t}\n\t}\n}", "public function getLocationByCoordinates($latlng);", "public function addLocationById($locationId)\n {\n if (!array_key_exists($locationId,\n $this->locations) && $locations = $this->container->get('search.engine')->locationIdSearch($locationId)) {\n $this->addLocation(array_pop($locations));\n }\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entity = $em->getRepository('ACInst3LocationBundle:Location')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Location entity.');\n }\n\n $editForm = $this->createForm(new LocationType(), $entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('ACInst3LocationBundle:Location:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "function getLatLong($address, $city, $postalCode) {\n $combinedAddress = $address . \", \" . $postalCode . \" \" . $city;\n\n $url = \"https://maps.googleapis.com/maps/api/geocode/json?address=\" . urlencode($combinedAddress) . \"&key=\" . Config::GOOGLE_API_KEY;\n $context = stream_context_create();\n $result = file_get_contents($url, false, $context);\n\n if (isset($result)) {\n $parsedResult = json_decode($result, true);\n\n if (isset($parsedResult[\"results\"])) {\n $results = $parsedResult[\"results\"];\n $firstLocation = $results[0];\n return $firstLocation[\"geometry\"][\"location\"];\n } else {\n echo($result);\n }\n } else {\n echo \"HELP\";\n }\n}", "public function edit($id)\n {\n $location = Location::find($id);\n return view('locations.edit',compact('location'));\n }", "public function edit(Location $location)\n {\n //\n }", "public function edit(Location $location)\n {\n //\n }", "public function get_location_data( $entry, $form ) {\n\n\t\t// Check input parameters\n\t\tif ( ! isset($entry['id']) ) { return false; }\n\t\tif ( ! isset($form['id']) ) { return false; }\n\n\t\t// Init the locationData\n\t\t$locationData = array();\n\t\t$locationData['sl_store'] = 'test';\n\n\t\t// Check whether this is an existing location and get the data\n\t\t//\n\t\t$gflLocationID = gform_get_meta( $entry['id'], SLP_GFL_LOCATION_ID_SLUG );\n\t\t$curLocationData = $this->slplus->currentLocation->get_location( $gflLocationID );\n\n\t\t// Current Location Data found\n\t\tif ( ! is_wp_error( $curLocationData ) ) {\n\t\t\t$locationData = $this->slplus->currentLocation->locationData;\n unset( $locationData['id'] );\n\t\t\t$locationData['sl_id'] = $gflLocationID;\n\t\t}\n\n\t\t$locationData[SLP_GFL_ENTRY_ID_SLUG] = $entry['id'];\n\t\t$locationData[SLP_GFL_FORMS_ID_SLUG] = $form['id'];\n\t\t$locationData[SLP_GFL_MAPPING_ID_SLUG] = $this->id;\n\t\t$locationData[SLP_GFL_POST_ID_SLUG] = get_the_ID();\t// Get the post_id of the current post\n\t\t$locationData[SLP_GFL_RESUME_TOKEN_SLUG] = '';\n\n\n\t\t// Get the locationData from the $entry, using the $mapping fields\n\t\tforeach ($this->fields as $locationLabel => $entryLabel) {\n\t\t\t//$locationData[$locationLabel] = '';\n\t\t\tif (isset($entry[$entryLabel])) {\n\t\t\t\t$locationData[$locationLabel] = $this->gfl_get_value_entry_detail($entry[$entryLabel]);\n\t\t\t}\n\t\t}\n\n\t\t$this->debugMP('pr',__FUNCTION__ . ' locationData : ', $locationData);\n\n\t\treturn $locationData;\n\t}", "public function location($fr_district_id=''){\n\tif ($this->session->userdata('logged_in')){\n\t\t$data['title'] = 'Location';\n\t\tif($fr_district_id==''){\n\t\t $data['locationList'] = $this->common_model->get_all('fr_location',array('fr_district_id'=>0));\n\t\t}else{\n\t\t $data['district'] = $this->common_model->get_row(array('fr_id'=>$fr_district_id),'fr_location');\n\t\t $data['locationList'] = $this->common_model->get_all('fr_location',array('fr_district_id'=>$fr_district_id));\n\t\t}\n\t\t$data['fr_district_id'] = $fr_district_id;\n\t\t$this->set_layout('location/location_list',$data);\n\t}else{\n\t\t$this->load->view('site/login');\n\t}\n}", "public function modify_location( $id = '', $location = '', $groups = '', $zip_code = '', $layout_id = '' ) {\n\t\t// Functionally this is almost identical to add_location, except we update instead of insert and we need the location ID instead of the location name.\n\t\tglobal $wpdb;\n\t\t\n\t\ttry {\n\t\t\t// We'll use a try/catch block to make sure we only add the location if all needed info is provided\n\t\t\t// Check for the location\n\t\t\tif( @$location_id != '' ) {\n\t\t\t\t$location_id = sanitize_text_field( $location_id );\n\t\t\t} else {\n\t\t\t\tthrow new Exception('Location ID not provided.');\n\t\t\t}\n\t\t\t\n\t\t\t// Check for groups\n\t\t\tif( @$groups != '' || !empty( $groups ) ) {\n $raw_groups = $groups;\n unset( $groups );\n $groups = array();\n foreach( $groups as $group ) {\n $groups[] = sanitize_text_field( $group );\n }\n\t\t\t} else {\n\t\t\t\tthrow new Exception('No groups selected.');\n\t\t\t}\n\t\t\t\n\t\t\t// The layout is not optional, but if it's blank we'll go with the default\n\t\t\tif( @$layout != '' ) {\n\t\t\t\t$layout_id = sanitize_text_field( $layout );\n\t\t\t} else {\n\t\t\t\t$layout_id = '1';\n\t\t\t}\n \n\t\t\t// The zip code is optional\n\t\t\tif( @$zip_code != '' ) {\n\t\t\t\t$zip_code = sanitize_text_field( $zip_code );\n\t\t\t} else {\n\t\t\t\t$zip_code = '';\n\t\t\t}\n\t\t} catch ( Exception $e ) {\n\t\t\treturn (object) array(\n\t\t\t\t\"status\" => \"error\",\n\t\t\t\t\"message\" => $e->getMessage()\n\t\t\t);\n\t\t}\n\t\t\t\t\t\n\t\t// First add the zip code to the weather db, if set\n\t\tif( $zip_code != '' ) {\n\t\t\t// Check if the zip code is already in the weather table\n\t\t\t$sql = \"SELECT * FROM `\" . rpids_tableprefix() . \"rpids_weather` WHERE `zip`='\" . $zip_code . \"';\";\n\t\t\t$weather = $wpdb->get_row( $sql, ARRAY_A );\n\t\t\t\n\t\t\tif( $wpdb->num_rows > 0 ) {\n\t\t\t\t// The zip already exists, we'll just grab the id\n\t\t\t\t$weather_id = $weather['id'];\n\t\t\t} else {\n\t\t\t\t// New zip code, add to the weather table\n\t\t\t\t$wpdb->insert( rpids_tableprefix() . \"rpids_weather\", array(\n\t\t\t\t\t\"zip\" => $zip_code\n\t\t\t\t) );\n\t\t\t\n\t\t\t\t// Get the weather ID\n\t\t\t\t$weather_id = $wpdb->insert_id;\n\t\t\t}\n\t\t} else {\n\t\t\t$weather_id = 0;\n\t\t}\t\n\t\t\n\t\t// Update the location to the db\n\t\t$wpdb->update( rpids_tableprefix() . \"rpids_locations\", array(\n\t\t\t\"location\" => $location, \n\t\t\t\"groups\" => $groups,\n\t\t\t\"weather_id\" => $weather_id,\n\t\t\t\"layout_id\" => $layout_id\n\t\t), array(\n\t\t\t\"id\" => $location_id\n\t\t));\n\t\t\n\t\t// Return the message\n\t\treturn array(\n\t\t\t\"status\" => \"success\",\n\t\t\t\"message\" => 'The location \"' . $location . '\" has been updated.'\n\t\t);\n\t}", "public function getClientLocations($clid){\r\r\n\t\t\t$location = false;\r\r\n\t\t\t$dbhandle = $this->dbhandle();\r\r\n\t\t\tif ($dbhandle){\r\r\n\t\t\t\t$dbfound = $this->dbfound();\r\r\n\t\t\t\tif ($dbfound){\r\r\n\t\t\t\t\t$tablename = \"clientloc\";\r\r\n\t\t\t\t\t$tableExists = $this->tableExists($tablename);\r\r\n\t\t\t\t\tif ($tableExists){\r\r\n\t\t\t\t\t\t$active = \"active\";\r\r\n\t\t\t\t\t\t$eactive = $this->encode($active);\r\r\n\t\t\t\t\t\t$sql = \"SELECT `$tablename`.`id`, `$tablename`.`locid` FROM `$this->db`.`$tablename` WHERE `$tablename`.`clid` = '$clid' AND `$tablename`.`status` = '$eactive'\";\r\r\n\t\t\t\t\t\t$result = mysql_query($sql, $dbhandle);\r\r\n\t\t\t\t\t\tif ($result){\r\r\n\t\t\t\t\t\t\tif (mysql_num_rows($result) > 0){\r\r\n\t\t\t\t\t\t\t\t$i = 0;\r\r\n\t\t\t\t\t\t\t\twhile ($resarr = mysql_fetch_assoc($result)){\r\r\n\t\t\t\t\t\t\t\t\t$location[$i]['id'] = $resarr['id'];\r\r\n\t\t\t\t\t\t\t\t\t$location[$i]['locid'] = $this->decode($resarr['locid']);\r\r\n\t\t\t\t\t\t\t\t\t$i++;\r\r\n\t\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t\treturn $location;\r\r\n\t\t}", "public function deleteLocation($id){\n\t\t$user = $this->getUser();\n\t\tif(!isset($user[\"id\"])\n\t\t\t||$user[\"status\"]!=DBConfig::$userStatus[\"admin\"])\n\t\t\treturn false;\n\t\t$this->log(\"@\".$user[\"id\"].\" (\".$user[\"username\"].\") deletes location $id\");\n\t\t$query = Queries::deletelocation($id);\n\t\treturn $this->query($query);\n\t}", "public function editLatLongGPS($id) {\n $arrayIndex = $this->_getArrayIndexRoutes(1);\n $r = array('code' => 0, 'message' => 'error');\n if (isset($arrayIndex[$id])) {\n $route = $this->Routes->checkRoute($arrayIndex[$id]);\n if (!empty($route)) {\n $this->loadModel('Locations');\n if ($this->request->is('post') || $this->request->is('put')) {\n $dataAjax = $this->request->data();\n if($dataAjax['dataSave'] == \"latitude\"){\n $val = $this->validateLatitude($dataAjax['valSave']);\n }else{\n $val = $this->validateLongitude($dataAjax['valSave']);\n }\n if($val==1){\n if ($this->Locations->editLocation($dataAjax)) {\n $r = array('code' => 1, 'message' => 'success');\n }\n }else{\n $r = array('code' => 2, 'message' => __('The format is not correct'));\n }\n }\n }\n } \n echo json_encode($r);die;\n }", "public function edit($id)\n\t{\n\t\t// get the user\n\t\t$location = Location::find($id);\n\n\t\t// show the edit form and pass the type\n\t\treturn View::make('locations.edit')\n\t\t\t->with('location', $location);\n\t}", "function mapit_get_location($postcode, $partial = null) {\n global $mapit_client;\n $params = func_get_args();\n $result = $mapit_client->call('MaPit.get_location', $params);\n return $result;\n}" ]
[ "0.70435494", "0.69320786", "0.68579775", "0.64931023", "0.64451975", "0.62570655", "0.61830026", "0.61804414", "0.6158836", "0.6122279", "0.6091461", "0.60720366", "0.6060059", "0.6043644", "0.6000656", "0.5894361", "0.5887906", "0.5882489", "0.58699185", "0.58699185", "0.58220965", "0.5807007", "0.5794015", "0.5737891", "0.5737891", "0.5736688", "0.5719064", "0.5709951", "0.5691835", "0.5667807", "0.566586", "0.56621593", "0.5653699", "0.56274354", "0.5585626", "0.55834913", "0.5556086", "0.55544525", "0.55544525", "0.55206907", "0.546535", "0.5464243", "0.54637766", "0.54443014", "0.541582", "0.5415154", "0.54149705", "0.54027015", "0.5401771", "0.540027", "0.5356007", "0.5350973", "0.5340335", "0.53347826", "0.53347826", "0.53309417", "0.5330849", "0.5330345", "0.53283924", "0.5325176", "0.5293987", "0.5265283", "0.52453965", "0.524089", "0.52276355", "0.521996", "0.5219297", "0.521478", "0.5197351", "0.5187878", "0.5164568", "0.51550794", "0.51521623", "0.51508296", "0.5142688", "0.512352", "0.5123306", "0.51202947", "0.51181364", "0.51181364", "0.51181364", "0.5114451", "0.51116794", "0.5105751", "0.510138", "0.51002496", "0.509129", "0.5079741", "0.507889", "0.50734067", "0.50668335", "0.50668335", "0.50616765", "0.50615007", "0.5058918", "0.5053192", "0.5050783", "0.5044124", "0.5039222", "0.5039146" ]
0.7282506
0
This function deletes a location entry in the location table
public function delete_location($location_id) { $this->db->where('location_id', $location_id); return $this->db->delete('Location'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($location);", "public function delete() {\n\t\t\tif ( isset( $_GET['location_id'] ) ) {\n\t\t\t\t$id = intval( wp_unslash( $_GET['location_id'] ) );\n\t\t\t\t$connection = WPGMP_Database::connect();\n\t\t\t\t$this->query = $connection->prepare( \"DELETE FROM $this->table WHERE $this->unique='%d'\", $id );\n\t\t\t\treturn WPGMP_Database::non_query( $this->query, $connection );\n\t\t\t}\n\t\t}", "function fn_warehouses_store_locator_delete_store_location_post($store_location_id, $affected_rows, $deleted)\n{\n /** @var \\Tygh\\Addons\\Warehouses\\Manager $manager */\n $manager = Tygh::$app['addons.warehouses.manager'];\n $manager->removeWarehouse($store_location_id);\n}", "function deleteLocation($id) {\r\n\r\n\t\t//Find all users from the database and store in the variable users\r\n\t\t$users = $this->findAllUsers();\r\n\r\n\t\tforeach($users as $user) :\r\n\t\t\t//If a user is location at the location we must set the location_id to 0\r\n\t\t\tif($user['users']['location_id'] == $id) {\r\n\t\t\t\t$this->query('UPDATE users SET location_id=' . 0 .' WHERE id='. $user['users']['id'] .';');\r\n\t\t\t} //end if\r\n\t\tendforeach;\r\n\r\n\t\treturn ($this->query('DELETE FROM locations WHERE locations.id = '. $id .';'));\r\n\r\n\t}", "function erp_company_location_delete( $location_id ) {\n global $wpdb;\n\n do_action( 'erp_company_location_delete', $location_id );\n\n return $wpdb->delete( $wpdb->prefix . 'erp_company_locations', array( 'id' => $location_id ) );\n}", "function delete(){\n global $db, $libhtml;\n\n // find out if ward is used\n $db->delete('locations', array('WHERE id = ?',array($this->id), array('integer')));\n $_SESSION[\"feedback\"] .= g_feedback(\"error\", \"This '.$libhtml->local_text['Location'].' has been deleted\");\n\n return true;\n }", "public function testDeleteValidLocation() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n\t\t// delete the Location from mySQL\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$location->delete($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the Location does not exist\n\t\t$pdoLocation = Location::getLocationByLocationId($this->getPDO(), $location->getLocationId());\n\t\t$this->assertNull($pdoLocation);\n\t\t$this->assertEquals($numRows, $this->getConnection()->getRowCount(\"location\"));\n\t}", "public function remove(string $location): void;", "function Delete()\n\t{\tif ($this->CanDelete())\n\t\t{\tif ($result = $this->db->Query(\"DELETE FROM locations WHERE locid=$this->id\"))\n\t\t\t{\tif ($this->db->AffectedRows())\n\t\t\t\t{\t$this->RecordAdminAction(array(\"tablename\"=>\"locations\", \"tableid\"=>$this->id, \"area\"=>\"locations\", \"action\"=>\"deleted\", \"actiontype\"=>\"deleted\", \"deleteparentid\"=>$this->details[\"city\"], \"deleteparenttable\"=>\"cities\"));\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function testDeleteInvalidLocation() {\n\t\t// create a Location and try to delete it without actually inserting it\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->delete($this->getPDO());\n\t}", "function deleteLocation($mysqli) {\r\n\t\t$sql = sprintf(\"DELETE FROM `Locations` WHERE `LocationID` = %d\", $mysqli->real_escape_string($_GET['id']));\r\n\r\n\t\tif (!$result = $mysqli->query($sql)) {\r\n\t\t\thttp_response_code(503);\r\n\t\t\techo '<h1>Database Error</h1>';\r\n\t\t\texit(1);\r\n\t\t}\r\n\r\n\t\theader('location: /?action=locations'); // terugkeren naar locations\r\n\t\texit();\r\n\t}", "public function delete(Location $location)\r\n {\r\n return $location->delete();\r\n }", "public function deleteLocation (UnitTester $I){\n\n\t\t$I->wantTo('Delete a location');\n\n\t\t$em = $this->factory->getEntityManager();\n\n\t\t$provider = $this->factory->getProvider();\n\n\t\t$location = new GQL001_Location();\n\t\t$location->lat \t= 25;\n\t\t$location->long = 35;\n\t\t$location->name = 'here';\n\t\t$em->persist($location);\n\t\t$em->flush();\n\n\t\t$schema = $this->factory->getGraphQLSchema($provider);\n\n\t\t$locations = [[\n\t\t\t\"lat\" => 25,\n\t\t\t\"long\" => 35,\n\t\t]];\n\n\t\t$result = \\GraphQL\\GraphQL::execute(\n\t\t\t$schema,\n\t\t\t'mutation DeleteLocation($items: [Location__Input]){\n\t\t\t delete_Location(items: $items)\n\t\t\t}',\n\t\t\tnull,\n\t\t\tnew GraphContext(),\n\t\t\t['items' => $locations]\n\t\t);\n\n\t\t$provider->clearBuffers();\n\n\t\t$I->assertEquals(1, count($result));\n\n\t\t$I->assertEquals(true, $result[\"data\"][\"delete_Location\"]);\n\n\t}", "function deleteLocationTable($con){\n\t$sql = \"DROP TABLE IF EXISTS csgp07_13_14 . Location\";\n\tif(mysqli_query($con, $sql)){\n\t\techo \"Table Location deleted successfully\\n\";\n\t}\n\telse{\n\t\techo \"Could Not Delete Location Table\" . mysqli_error($con);\n\t}\n}", "public function delete($id){\n return $this->db->delete(\"location_tabel\", \"id = ?\", array($id));\n }", "public function deleteLocation(Request $request){\n $location = location::where('id', '=', $request->get('id'))->first();\n\n if (!$location) {\n dump('Did not delete- location not found.');\n } else {\n $location->delete();\n return view('data_view')->with($this->getLocations());\n }\n }", "public function deleteLocation($id){\n\t\t$user = $this->getUser();\n\t\tif(!isset($user[\"id\"])\n\t\t\t||$user[\"status\"]!=DBConfig::$userStatus[\"admin\"])\n\t\t\treturn false;\n\t\t$this->log(\"@\".$user[\"id\"].\" (\".$user[\"username\"].\") deletes location $id\");\n\t\t$query = Queries::deletelocation($id);\n\t\treturn $this->query($query);\n\t}", "public function destroy(Location $location)\n {\n //\n }", "public function deleted(Location $location)\n {\n event(new LocationsChanged($location));\n }", "function rh_gmw_fl_delete_location() {\n global $wpdb, $bp;\n $usergetid = (!empty($_POST['usergetid'])) ? $_POST['usergetid'] : '';\n $userid = ($usergetid) ? $usergetid : get_current_user_id(); \n $wpdb->query($wpdb->prepare(\"DELETE FROM wppl_friends_locator WHERE member_id = %d\", $userid));\n do_action('gmw_fl_after_location_deleted', $userid);\n die( __( 'Location successfully deleted!', 'GMW' ) );\n}", "public function deleteWorkshopLocation( $workshopLocID )\n {\n $core = Core::dbOpen();\n $sql = \"SELECT workshopLocationID FROM workshop WHERE workshopLocationID = :id\";\n $stmt = $core->dbh->prepare($sql);\n $stmt->bindParam(':id', $workshopLocID);\n Core::dbClose();\n \n try {\n if( $stmt->execute() ) {\n if( $stmt->rowCount() == 0 ) {\n $core = Core::dbOpen();\n $sql2 = \"DELETE FROM workshop_location WHERE workshopLocationID = :id\";\n $stmt2 = $core->dbh->prepare($sql2);\n $stmt2->bindParam(':id', $workshopLocID);\n Core::dbClose();\n \n try {\n if( $stmt2->execute() )\n return true;\n else\n return false;\n } catch (PDOException $e) {\n return false;\n }\n }\n } return false;\n } catch (PDOException $e) {\n return false;\n }\n }", "public function destroy(Request $request,$id){\n \n $location=Location::find($id);\n\n $location->delete();\n \n return redirect('locations');\n}", "function DeletePlace($idPlace)\n{\n $dbh = ConnectDB();\n $req = $dbh->query(\"DELETE FROM fishermenland.place WHERE idPlace = '$idPlace'\");\n}", "public static function UserLocationDelete($array)\n {\n $value= DB::delete('delete from locations where id =? and userid = ?',[$array['id'],$array['userid']]);\n return $value;\n }", "public function deleteEntry($table,$key,$value){\r\n $query = sprintf(\"delete from %s where %s = '%s'\",mysql_real_escape_string($table),mysql_real_escape_string($key),mysql_real_escape_string($value));\r\n $result = mysql_query($query) or die(mysql_error());\r\n //echo \"delllleetteee\".mysql_affected_rows($result);\r\n }", "function delete($id) {\r\n $req = \"DELETE FROM geolocalisation WHERE id = \".$id;\r\n mysql_query($req) or die(\"********** Erreur de suprission **********<br>\");\r\n echo \"********** Supprission avec succés **********<br>\";\r\n }", "public function destroy(Location $location,$id)\n {\n $location = Ho_details::find($id);\n if ($location->delete()) {\n return Redirect::back()->with('success', 'Deleted successfully');\n } else {\n return Redirect::back()->with('failure', 'Something Went Wrong..!');\n }\n }", "public static function deleteGameFromLocation($loc_id, $machine_id) {\n\n Game::where('location_id','=',$loc_id)\n ->where('machine_id','=',$machine_id)\n ->delete();\n }", "function delete( $id = false)\n {\n if ( !$id )\n $id = $this->ID;\n $db =& eZDB::globalDatabase();\n\n $db->begin();\n $res[] = $db->query( \"DELETE FROM eZAddress_Region WHERE ID='$id'\" );\n eZDB::finish( $res, $db );\n }", "function deleteSchool(){\n mysql_query(\"DELETE FROM school WHERE id='$this->schoolId'\") or die(mysql_error());\n \n // Delete the delegate positions table\n mysql_query(\"DROP TABLE school_$this->schoolId\") or die(mysql_error());\n }", "function delete_map ($data) {\r\n\t\t$id = (int)$data['id'];\r\n\t\t$table = $this->get_table_name();\r\n\r\n\t\t$result = $this->wpdb->query(\"DELETE FROM {$table} WHERE id={$id}\");\r\n\t\treturn $result ? $id : false;\r\n\t}", "public function deleteLocation(Request $request)\n {\n try{\n $locationId = $request->location_id;\n DB::beginTransaction();\n $location = Salescenterslocations::find($locationId);\n\n if (!empty($location)) {\n $agentIds = Salesagentdetail::where('location_id',$locationId)->pluck('user_id')->toArray();\n\n // Will be deleted with related data\n $telesales = Telesales::whereIn('user_id',$agentIds)->get();\n foreach ($telesales as $key => $telesale) {\n $telesale->delete();\n }\n $userIds = User::whereHas('locations', function ($query) use($locationId) {\n $query->where('location_id',$locationId);\n })\n ->orWhere('location_id',$locationId)\n ->pluck('id')->toArray();\n\n // multiple location assigned users\n $qaIds = User::whereIn('id',$userIds)\n ->has('locations','>',1)\n ->pluck('id')->toArray();\n\n $diffuserIds = array_diff($userIds,$qaIds);\n $allUserIds = array_unique(array_merge($agentIds,$diffuserIds));\n\n Log::info('all user ids: '.print_r($allUserIds,true));\n\n // Will be deleted with related data\n User::destroy($allUserIds);\n $location->delete();\n DB::commit();\n return response()->json([ 'status' => 'success', 'message' => \"Sales center location successfully deleted.\"]);\n } else {\n return response()->json([ 'status' => 'error', 'message'=>'Something went wrong, please try again.' ]);\n }\n } catch(\\Exception $e) {\n DB::rollback();\n Log::error(\"Error while deleting sales center location: \".$e);\n return response()->json([ 'status' => 'error', 'message'=> $e->getMessage()]);\n }\n }", "function DeletePlaces($idGame)\n{\n $dbh = ConnectDB();\n $req = $dbh->query(\"DELETE FROM fishermenland.place WHERE fkGamePlace = '$idGame'\");\n}", "public function destroy($id)\n {\n\t\t\n $location = Location::doesnthave('events')->find($id);\n\t\tif($location){\n\t\t\t$location->delete();\n\t\t}else{ \n\t\t\treturn redirect()->back()->with('errorMessage', 'Location is already in use so you cant delete it.'); \n\t\t}\n \n\n return redirect('/locations')->with('success', 'Location deleted!');\n }", "public function destroy($id)\n {\n DB::table(\"locations\")->where('id',$id)->delete();\n return redirect()->route('locations.index')\n ->with('success','Location deleted successfully');\n }", "public function delete (){\n\n $table = new simple_table_ops();\n $table->set_id_column('timetable_id');\n $table->set_table_name('timetables');\n $table->delete();\n\n header(\"Location: http://\".WEBSITE_URL.\"/index.php?controller=timetable&action=show&submit=yes&timetable_period_id={$_GET['timetable_period_id']}\");\n }", "public function destroy(Location $location)\n {\n $location->delete();\n return redirect()->route('locations.index');\n }", "public function delStockTakeByShopByDate($date,$location){\n\t\t\n\t\t$whereStr = \"`date_take` = '\".$date.\"' AND `location` LIKE '\".$location.\"'\";\n\t\t$this->delete($whereStr); \n\t}", "public function delete_record($identifier, $value, $table_name) {\n\t\tmysqli_query($this->link, \"DELETE FROM \".$this->db_prefix.$table_name.\" WHERE \".$identifier.\"='\".$value.\"'\");\n\t}", "public function equipementlocationSupprimerUn($id)\n\t{\n\t\tGestion::supprimer(\"EquipementLocation\",\"idEquipement\",$id);// votre code ici\n\t}", "protected function deleteFile($id, $filelocation){\n $sql = \"DELETE FROM satdatameta WHERE idSatDataMeta = ?;\n DELETE FROM satdata WHERE idSatMetaData = ?\";\n $stmt = $this->connect()->prepare($sql);\n \n if ($stmt->execute([$id,$id])) {\n unlink($filelocation);\n header('Location:../pages/dashboard.php?status=filedeletesuccess');\n exit();\n } else {\n header('Location:../pages/dashboard.php?status=filedeletefailed');\n exit();\n }\n }", "public function deleteAddress(){\n $key = $_REQUEST['id'];\n //$key = 2;\n $condition['id'] = $key;\n $form = M(\"addressinfo\");\n $data = $form->where($condition)->delete();\n //$this->display();\n }", "function delete($table,$where){\n\t\t$r=mysql_query(\"DELETE FROM `$table` WHERE $where\");\n\t}", "public function delete_location( $location_id ) {\n\t\tglobal $wpdb;\n\t\t\n\t\t// Process the provided id\n\t\ttry {\n\t\t\t// Check for the location\n\t\t\tif( @$location_id != '' ) {\n\t\t\t\t$location_id = sanitize_text_field( $location_id; );\n\t\t\t} else {\n\t\t\t\tthrow new Exception( 'Location ID not provided.' );\n\t\t\t}\n\t\t\t\n\t\t\t// Make sure the location exists\n\t\t\t$sql = \"SELECT * FROM `\" . rpids_tableprefix() . \"rpids_locations` WHERE `id`='\" . $location_id . \"';\";\n\t\t\t$sqlret = $wpdb->get_results( $sql, ARRAY_A );\n\t\t\t\n\t\t\tif( $wpdb->num_rows != 1 ) {\n\t\t\t\tthrow new Exception( 'The location with the ID ' . $location_id . ' does not exist.' );\n\t\t\t}\n\t\t\t\n\t\t\t// The location exists, delete the location from the DB\n // We do this is a conditional in case we have a problem\n\t\t\tif( !$wpdb->delete( rpids_tableprefix() . \"rpids_locations\", array( \"id\" => $location_id ) ) ) {\n throw new Exception( 'Unknown error when removing location ID ' . $location_id );\n } else {\n return (object) array(\n\t\t\t\t \"status\" => \"success\",\n\t\t\t\t \"message\" => \"Location deleted.\"\n );\n }\n\t\t} catch ( Exception $e ) {\n\t\t\treturn (object) array(\n\t\t\t\t\"status\" => \"error\",\n\t\t\t\t\"message\" => $e->getMessage()\n\t\t\t);\n\t\t}\n\t}", "public function delete(Location $location)\n {\n if ($location->delete()) {\n return true;\n }\n\n throw new GeneralException(trans('exceptions.backend.locations.delete_error'));\n }", "public function destroy(Location $location)\n {\n $location->delete();\n return redirect()->back()->with('message', 'Hai eliminato la prenotazione');\n }", "public function destroy(Request $request)\n {\n $location= Location::find($request->id);\n\n if($location->restaurants()->count()>0)\n {\n return redirect()->route('backend.dashboard')->with('message','Unable to delete the Location, Please\n move any restaurants that belongs to this Location before delete');\n }\n else{\n $location->delete($request->all());\n return redirect()->route('backend.dashboard')->with('message','Delete Success!');\n }\n }", "function deleteRow($table, $where) {\n return mysql_query(sprintf('DELETE FROM %s WHERE %s', $table, $where));\n }", "function delete( $id = false )\n {\n if ( !$id )\n $id = $this->ID;\n $db =& eZDB::globalDatabase();\n $db->begin();\n $res[] = $db->query( \"DELETE FROM eZAddress_Address WHERE ID='$id'\" );\n eZDB::finish( $res, $db );\n }", "public function delete()\n {\n $this->model->deleteStations($_GET['id']);\n $this->model->deleteZone($_GET['id']);\n header(\"Location: /resabike/zone\");\n }", "public function destroy(location $location)\n {\n //\n }", "function delete() {\n \tglobal $mysql;\n \tif(empty($this->id)) return;\n \t$tablename = $this->class_name();\n \t$id = $this->id;\n \t$query = \"DELETE FROM $tablename WHERE id=$id\";\n \t$mysql->update($query);\n }", "public function destroy($id)\n {\n //\n $location=Location::find($id)->delete();\n// User::find($id)->delete();\n return redirect('location/index');\n }", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "function deleteRecord($table,$where) \t{\n\t\t$query = \"DELETE FROM \".$this->tablePrefix .$table.' WHERE '.$where ;\n $res = $this->execute($query);\n\n\t}", "public function deleted(Label $label): void\n {\n if ($label->labelable instanceof LabelableWithLocationContract) {\n $label->labelable->decrementLocationQuantity($label->location_id);\n }\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "function deleteEntry() \n { \n\t parent::deleteEntry();\n\n\t $values = $this->getArrayOfValues();\n// \t echo \"<pre>\".print_r($values,true).\"</pre>\";\n\t \n\t if (isset($values['registration_id']))\n\t {\n\t \n\t\t // update balance owing column in cim_reg_registration table\n\t\t $singleReg = new RowManager_RegistrationManager($values['registration_id']);\n// \t\t $singleReg_list = $singleReg->getListIterator();\n// \t\t $singleReg_array = $singleReg_list->getDataList();\n// \t\t \n// \t\t reset($singleReg_array);\n// \t\t $record = current($singleReg_array);\n// \t\t $oldBalance = $record['registration_balance'];\n\t\t \n\t\t\t $balanceGetter = new FinancialTools();\n\t\t\t $balance = array();\n// \t\t\t $balance['registration_balance'] = $oldBalance - $record['cctransaction_amount'];\n\t\t\t $balance['registration_balance'] = $balanceGetter->simpleCalcBalanceOwing($values['registration_id']);\t\n\t\t\t $singleReg->loadFromArray( $balance );\n\t\t\t $singleReg->updateDBTable();\t\t\t\n\t\t }\t \t \n \n }", "public function remove(StorableLocator $storableLocator): void;", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "function delete( $table, $column, $value ) {\n $result = mysql_query( 'DELETE FROM `' . $table . '` WHERE `' . $column . '` = \"' . $value . '\"' );\n $result || error_log( mysql_error() );\n return $result;\n }", "public function destroy(Location $location)\n {\n if($this->useCheck($location) && $location->delete()){\n return redirect()->route('admin.location.index')->with('status', 'Location deleted successfully');\n }\n return back()->with('error', 'Error');\n }", "function delete() {\n\t\t$sql = \"DELETE FROM \".$this->hr_db.\".hr_person_detail\n\t\t\t\tWHERE psd_ps_id=?\";\n\t\t$this->hr->query($sql, array($this->psd_ps_id));\n\t}", "function deleteEntry() \n { \n\t parent::deleteEntry();\n\n\t $values = $this->getArrayOfValues();\n// \t echo \"<pre>\".print_r($values,true).\"</pre>\";\n\t \n\t if (isset($values['reg_id']))\n\t {\n\t \n\t\t // update balance owing column in cim_reg_registration table\n\t\t $singleReg = new RowManager_RegistrationManager($values['reg_id']);\n// \t\t $singleReg_list = $singleReg->getListIterator();\n// \t\t $singleReg_array = $singleReg_list->getDataList();\n// \t\t \n// \t\t reset($singleReg_array);\n// \t\t $record = current($singleReg_array);\n// \t\t $oldBalance = $record['registration_balance'];\n\t\t \n\t\t\t $balanceGetter = new FinancialTools();\n\t\t\t $balance = array();\n// \t\t\t $balance['registration_balance'] = $oldBalance - $record['cctransaction_amount'];\n\t\t\t $balance['registration_balance'] = $balanceGetter->simpleCalcBalanceOwing($values['reg_id']);\t\n\t\t\t $singleReg->loadFromArray( $balance );\n\t\t\t $singleReg->updateDBTable();\t\t\t\n\t\t }\t \t \n \n }", "public function destroy($id)\n\t{\n\t\t$location = Location::find($id);\n\t\t$location->delete();\n\n\t\t// redirect\n\t\tSession::flash('message', 'Successfully deleted the location!');\n\t\treturn Redirect::to('app/locations');\n\t}", "public function delete() {\n // Create query\n $query = \"DELETE FROM \" . $this->table .\n \" WHERE MID = :mid AND Spot = :spot \";\n \n // Prepare the statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the query\n $this->attr[\"mid\"] = htmlspecialchars(strip_tags($this->attr[\"mid\"]));\n $this->attr[\"spot\"] = htmlspecialchars(strip_tags($this->attr[\"spot\"]));\n\n // Bind the data\n $stmt->bindValue(\":mid\", $this->attr[\"mid\"]);\n $stmt->bindValue(\":spot\", $this->attr[\"spot\"]);\n \n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }", "public function delete($where = null, array $markers = []);", "function delete() {\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n\t\t\t// Delete het huidige record.\n\n\t\t\t$deleteQuery = \"DELETE FROM \".$this->table.\" WHERE \".$kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\t\t\t$this->lastQuery = $deleteQuery;\n\n $deleteTable = $this->mysqlConnection->prepare($this->lastQuery);\n $deleteTable->execute();\n\n\t\t}", "public function destroy(LocationUser $locationUser)\n {\n //\n }", "function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}", "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "public function delete($location, $postfields = array()){\n $url = self::GraphUrl.OAuthUtil::urlencode_rfc3986($location);\n $postfields = array();\n if(!empty($this->access_token)){\n $postfields[\"access_token\"] = $this->access_token;\n }\n $response = $this->http($url, self::$METHOD_DELETE, $postfields);\n return $this->decode_JSON ? json_decode($response) : $response;\n }", "public function delete(){\r\n\t\t$mysqli = \\Database::Instance()->get();\r\n\r\n\t\t$stmt = $mysqli->prepare(\"DELETE FROM `hotspots` WHERE `id` = ?\");\r\n\t\t$stmt->bind_param(\"i\",$this->id);\r\n\t\t$stmt->execute();\r\n\t\t$stmt->close();\r\n\r\n\t\t\\CacheHandler::deleteFromCache(\"hotspot_\" . $this->id);\r\n\t}", "public function deleted(ProgramLocation $model)\n {\n # Load all non-deleted locations\n $remaining = $model->program->programLocations()->get();\n # if model was primary\n if ($remaining->where('is_primary', true)->isEmpty() ){\n # Make the first Primary\n if($first = $remaining->first()){\n # Careful, as we just triggered a seried of events\n $this->setPrimaryFlag($first, true)->save();\n }\n }\n # reset all driving distances\n if($remaining->isEmpty()){\n $model->program->programSpeakers->each(function($speaker){\n # Udpate the Driving Distance\n # Updating the speaker will also trigger the reclculation of honoraria and travel costs\n $speaker->update(['driving_distance'=> 0]);\n });\n }\n }", "public function delete(SalesLocationsDeleteEvent $event)\n {\n if (null !== $saleLocation = SalesLocationsQuery::create()->findPk($event->getSaleLocationId())) {\n\n $saleLocation\n ->setDispatcher($event->getDispatcher())\n ->delete()\n ;\n\n $event->setSaleLocation($saleLocation);\n }\n }", "public function deleteLocation($data)\n {\n $requiredLocation = array(\n MCoreVoLocation::LOCATIONID\n );\n \n // Setup the Location object\n $locationVo = new MCoreVoLocation($data, $requiredLocation);\n \n $currentUserId = FSecurityBoSecurity::getUserId();\n $daoResult = MLocationDao::deleteLocation($currentUserId, $locationVo->getLocationId());\n \n if ($daoResult->getStatus() === FDatabaseVoResult::SUCCESS)\n {\n // Set the response message\n $this->responseVo->setData($daoResult->getData());\n $this->responseVo->setMessage('Location and all associated posts have been removed.', FWebVoResponse::SUCCESS);\n }\n else\n {\n // Set the response message\n $this->responseVo->setMessage($daoResult->getMessage(), FWebVoResponse::ERROR);\n }\n \n return $this->responseVo;\n }", "private function delete($table, $id) {\r\n\t\t/* connect to mysql database */\r\n\t\t$this->connect();\r\n\t\t\r\n\t\t/* make sure that id is an integer */\r\n\t\tif(!settype($id, \"int\")) {\r\n\t\t\tthrow new Exception(\"Entry id is no integer.\");\r\n\t\t}\r\n\r\n\t\t/* escape special chars in parameters */\r\n\t\t$escapedTable = mysql_real_escape_string($table);\r\n\r\n\t\t/* mysql query to delete entry */\r\n\t\t$query = \"DELETE FROM \".$escapedTable.\" WHERE id = '\".$id.\"'\";\r\n\t\t\r\n\t\t/* send mysql query to database */\r\n\t\t$result = mysql_query($query);\r\n\t\r\n\t\t/* disconnect from mysql database */\r\n\t\t$this->disconnect();\r\n\t}", "public function destroy($id)\n {\n $post = Locations::find($id);\n $post->delete();\n return redirect('/admin/locations');\n }", "public function destroy(Location $location)\n {\n $location->delete();\n\n return back();\n }", "function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}", "public function action_delete_entry(): int {\n\t\treturn (int) ( new CRUD( $this->table->get_table_definition() ) )->delete_oldest_item();\n\t}", "public function delete($table, $id)\n {\n $del = \"DELETE FROM $table WHERE id=:id\";\n $stmt = $this->connect(\"student\")->prepare($del);\n $stmt->bindValue(\":id\", $id);\n $exec = $stmt->execute();\n if ($exec) {\n header(\"location:record.php\");\n }\n }", "function eliminarRegistro($table,$camp,$dato){\n\t$q = \"DELETE FROM \".$table.\" WHERE \".$camp.\" = \".$dato;\n\t\n\tmysql_query($q);\n\n}", "public function delete($table);", "public function deleteAction($id)\n {\n $form = $this->createDeleteForm($id);\n $request = $this->getRequest();\n\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $entity = $em->getRepository('ACInst3LocationBundle:Location')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Location entity.');\n }\n\n $em->remove($entity);\n $em->flush();\n }\n\n return $this->redirect($this->generateUrl('admin_location'));\n }", "public function destroy($id)\n {\n //\n $loc = Location::find($id);\n if (count($loc->netdev)>0) {\n\n return redirect('/loc')->with('error', 'Location NOT Removed, it has netdevs');\n } else {\n\n $loc->delete();\n return redirect('/loc')->with('success', 'LocationRemoved');\n }\n\n }", "public function delete_address(){\n if(!wp_verify_nonce($_REQUEST[\"_wpnonce\"],\"wedevs_delete_address_n\")){\n wp_die(\"Are You cheating?\");\n }\n if(!current_user_can(\"manage_options\")){\n wp_die(\"Are You cheating?\");\n }\n $id=isset($_REQUEST[\"id\"])?intval($_REQUEST['id']):0;\n\n if(wedevs_delete_single_address($id)){\n $redirect_to=admin_url(\"admin.php?page=weDevsAcademy&address_delete=true\");\n }else{\n $redirect_to=admin_url(\"admin.php?page=weDevsAcademy&address_delete=false\");\n }\n wp_redirect($redirect_to);\n exit;\n }", "public function deleteRow($row);", "public function deleteRecord($table ,$where = false){\n\t\tif($where){\n\t\t\t$where = $this->makeWhere($where);\n\t\t}\n\t\t$query = \"DELETE FROM $table \".$where;\n\t\t$this->query($query);\n\t}", "function delete() {\n\t\t$sql = \"DELETE FROM \".$this->hr_db.\".hr_amphur\n\t\t\t\tWHERE amph_id=?\";\n\t\t$this->hr->query($sql, array($this->amph_id));\n\t}", "public function delete($address, $list, $type);", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();" ]
[ "0.75766504", "0.7555668", "0.70983255", "0.70792156", "0.70485806", "0.70353085", "0.7017674", "0.6993717", "0.69702154", "0.6947979", "0.6871443", "0.68688333", "0.66519433", "0.6567743", "0.64949095", "0.64291936", "0.6414449", "0.6345211", "0.6317041", "0.62826735", "0.62811697", "0.6266527", "0.6255365", "0.6163512", "0.61535764", "0.61484647", "0.6131063", "0.61239517", "0.6122644", "0.6100209", "0.6000029", "0.599183", "0.5924189", "0.59089875", "0.5903983", "0.59011567", "0.58977306", "0.58867764", "0.5882115", "0.587814", "0.5877395", "0.5865303", "0.5861436", "0.5859768", "0.58470684", "0.5846262", "0.58421624", "0.5835121", "0.5825835", "0.5822172", "0.5817508", "0.58088964", "0.58044446", "0.5801105", "0.57937413", "0.5774993", "0.5767852", "0.57488847", "0.57470876", "0.57338476", "0.5733049", "0.57323086", "0.5726699", "0.5725653", "0.5713118", "0.5710752", "0.57082707", "0.56946003", "0.5694126", "0.5686039", "0.56854033", "0.5684923", "0.5674422", "0.5672627", "0.5671047", "0.5669274", "0.5666888", "0.5662251", "0.5661547", "0.56539136", "0.5652808", "0.56520945", "0.56494784", "0.5647396", "0.56453604", "0.56345165", "0.56313807", "0.56248045", "0.5616467", "0.5613263", "0.56036913", "0.55966854", "0.55966854", "0.55966854", "0.55966854", "0.55966854", "0.55966854", "0.55966854", "0.55966854", "0.55966854" ]
0.679241
12
Register any application services.
public function register() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n $this->registerMetaService();\n $this->registerLabelService();\n $this->registerTypeService();\n $this->registerGroupeService();\n $this->registerActiviteService();\n $this->registerRiiinglinkService();\n $this->registerInviteService();\n $this->registerTagService();\n $this->registerAuthService();\n $this->registerChangeService();\n $this->registerRevisionService();\n $this->registerUploadService();\n //$this->registerTransformerService();\n }", "public function register()\n { \n // User Repository\n $this->app->bind('App\\Contracts\\Repository\\User', 'App\\Repositories\\User');\n \n // JWT Token Repository\n $this->app->bind('App\\Contracts\\Repository\\JSONWebToken', 'App\\Repositories\\JSONWebToken');\n \n $this->registerClearSettleApiLogin();\n \n $this->registerClearSettleApiClients();\n \n \n }", "public function register()\n {\n $this->registerRequestHandler();\n $this->registerAuthorizationService();\n $this->registerServices();\n }", "public function register()\n {\n $this->app->bind(\n PegawaiServiceContract::class,\n PegawaiService::class \n );\n\n $this->app->bind(\n RiwayatPendidikanServiceContract::class,\n RiwayatPendidikanService::class \n );\n\n $this->app->bind(\n ProductionHouseServiceContract::class,\n ProductionHouseService::class\n );\n\n $this->app->bind(\n MovieServiceContract::class,\n MovieService::class\n );\n\n $this->app->bind(\n PangkatServiceContract::class,\n PangkatService::class \n );\n\n }", "public function register()\n {\n // $this->app->bind('AuthService', AuthService::class);\n }", "public function register()\n {\n $this->registerServiceProviders();\n $this->registerSettingsService();\n $this->registerHelpers();\n }", "public function register()\n {\n $this->registerAccountService();\n\n $this->registerCurrentAccount();\n\n //$this->registerMenuService();\n\n //$this->registerReplyService();\n }", "public function register()\n {\n $this->registerRepositories();\n }", "public function register()\n {\n $this->registerFacades();\n $this->registerRespository();\n }", "public function register()\n {\n $this->app->bind('App\\Services\\UserService');\n $this->app->bind('App\\Services\\PostService');\n $this->app->bind('App\\Services\\MyPickService');\n $this->app->bind('App\\Services\\FacebookService');\n $this->app->bind('App\\Services\\LikeService');\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function register()\n {\n //\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n\n\n\n\n $this->app->register(ResponseMacroServiceProvider::class);\n $this->app->register(TwitterServiceProvider::class);\n }", "public function register()\n {\n $this->registerGraphQL();\n\n $this->registerConsole();\n }", "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n\n $this->registerCommand();\n $this->registerSchedule();\n $this->registerDev();\n\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/telescope-error-service-client.php', 'telescope-error-service-client'\n );\n\n $this->registerStorageDriver();\n\n $this->commands([\n Console\\InstallCommand::class,\n Console\\PublishCommand::class,\n ]);\n }", "public function register()\n\t{\n\t\t$this->registerPasswordBroker();\n\n\t\t$this->registerTokenRepository();\n\t}", "public function register()\n {\n $this->registerConfig();\n\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\UtilitiesServiceProvider');\n $this->registerLogViewer();\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\CommandsServiceProvider');\n }", "public function register() {\n $this->registerProviders();\n $this->registerFacades();\n }", "public function register()\n {\n // $this->app->make('CheckStructureService');\n }", "public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'APIcoLAB\\Services\\Registrar'\n\t\t);\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Flight\\FlightRepository',\n 'APIcoLAB\\Repositories\\Flight\\SkyScannerFlightRepository'\n );\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Place\\PlaceRepository',\n 'APIcoLAB\\Repositories\\Place\\SkyScannerPlaceRepository'\n );\n\t}", "public function register()\n {\n $this->app->register(\\Maatwebsite\\Excel\\ExcelServiceProvider::class);\n $this->app->register(\\Intervention\\Image\\ImageServiceProvider::class);\n $this->app->register(\\Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\DatatablesServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\ButtonsServiceProvider::class);\n\n $loader = null;\n if (class_exists('Illuminate\\Foundation\\AliasLoader')) {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n }\n\n // Facades\n if ($loader != null) {\n $loader->alias('Image', \\Intervention\\Image\\Facades\\Image::class);\n $loader->alias('Excel', \\Maatwebsite\\Excel\\Facades\\Excel::class);\n\n }\n\n if (app()->environment() != 'production') {\n // Service Providers\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n $this->app->register(\\Barryvdh\\Debugbar\\ServiceProvider::class);\n\n // Facades\n if ($loader != null) {\n $loader->alias('Debugbar', \\Barryvdh\\Debugbar\\Facade::class);\n }\n }\n\n if ($this->app->environment('local', 'testing')) {\n $this->app->register(\\Laravel\\Dusk\\DuskServiceProvider::class);\n }\n }", "public function register()\n {\n $this->registerInertia();\n $this->registerLengthAwarePaginator();\n }", "public function register()\n {\n $this->registerFlareFacade();\n $this->registerServiceProviders();\n $this->registerBindings();\n }", "public function register()\n {\n $this->app->bind(\n 'Toyopecas\\Repositories\\TopoRepository',\n 'Toyopecas\\Repositories\\TopoRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ServicesRepository',\n 'Toyopecas\\Repositories\\ServicesRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\SobreRepository',\n 'Toyopecas\\Repositories\\SobreRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ProdutosRepository',\n 'Toyopecas\\Repositories\\ProdutosRepositoryEloquent'\n );\n }", "public function register()\r\n {\r\n Passport::ignoreMigrations();\r\n\r\n $this->app->singleton(\r\n CityRepositoryInterface::class,\r\n CityRepository::class\r\n );\r\n\r\n $this->app->singleton(\r\n BarangayRepositoryInterface::class,\r\n BarangayRepository::class\r\n );\r\n }", "public function register()\n {\n $this->registerRepositories();\n\n $this->pushMiddleware();\n }", "public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__ . '/../config/laravel-base.php', 'laravel-base');\r\n\r\n $this->app->bind(UuidGenerator::class, UuidGeneratorService::class);\r\n\r\n }", "public function register()\n {\n\n $this->app->register(RepositoryServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind(\n 'Uhmane\\Repositories\\ContatosRepository', \n 'Uhmane\\Repositories\\ContatosRepositoryEloquent'\n );\n }", "public function register()\r\n {\r\n $this->app->bind(\r\n ViberServiceInterface::class,\r\n ViberService::class\r\n );\r\n\r\n $this->app->bind(\r\n ApplicantServiceInterface::class,\r\n ApplicantService::class\r\n );\r\n }", "public function register()\n {\n $this->app->register('ProAI\\Datamapper\\Providers\\MetadataServiceProvider');\n\n $this->app->register('ProAI\\Datamapper\\Presenter\\Providers\\MetadataServiceProvider');\n\n $this->registerScanner();\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->app->bind(\n 'Larafolio\\Http\\HttpValidator\\HttpValidator',\n 'Larafolio\\Http\\HttpValidator\\CurlValidator'\n );\n\n $this->app->register(ImageServiceProvider::class);\n }", "public function register()\n {\n // Register all repositories\n foreach ($this->repositories as $repository) {\n $this->app->bind(\"App\\Repository\\Contracts\\I{$repository}\",\n \"App\\Repository\\Repositories\\\\{$repository}\");\n }\n\n // Register all services\n foreach ($this->services as $service) {\n $this->app->bind(\"App\\Service\\Contracts\\I{$service}\", \n \"App\\Service\\Modules\\\\{$service}\");\n }\n }", "public function register()\n {\n $this->registerAdapterFactory();\n $this->registerDigitalOceanFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n // Only Environment local\n if ($this->app->environment() !== 'production') {\n foreach ($this->services as $serviceClass) {\n $this->registerClass($serviceClass);\n }\n }\n\n // Register Aliases\n $this->registerAliases();\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Contracts\\UsersInterface',\n 'App\\Services\\UsersService'\n );\n $this->app->bind(\n 'App\\Contracts\\CallsInterface',\n 'App\\Services\\CallsService'\n );\n $this->app->bind(\n 'App\\Contracts\\ContactsInterface',\n 'App\\Services\\ContactsService'\n );\n $this->app->bind(\n 'App\\Contracts\\EmailsInterface',\n 'App\\Services\\EmailsService'\n );\n $this->app->bind(\n 'App\\Contracts\\PhoneNumbersInterface',\n 'App\\Services\\PhoneNumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\NumbersInterface',\n 'App\\Services\\NumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\UserNumbersInterface',\n 'App\\Services\\UserNumbersService'\n );\n }", "public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->app->register(\\Laravel\\Telescope\\TelescopeServiceProvider::class);\n $this->app->register(TelescopeServiceProvider::class);\n }\n }", "public function register()\n {\n $this->registerBrowser();\n\n $this->registerViewFinder();\n }", "public function register()\n {\n $this->registerFriendsLog();\n $this->registerNotifications();\n $this->registerAPI();\n $this->registerMailChimpIntegration();\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/awesio-auth.php', 'awesio-auth');\n\n $this->app->singleton(AuthContract::class, Auth::class);\n\n $this->registerRepositories();\n\n $this->registerServices();\n\n $this->registerHelpers();\n }", "public function register()\n {\n $this->registerRepository();\n $this->registerMigrator();\n $this->registerArtisanCommands();\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/services.php', 'services'\n );\n }", "public function register()\n {\n $this->registerRateLimiting();\n\n $this->registerHttpValidation();\n\n $this->registerHttpParsers();\n\n $this->registerResponseFactory();\n\n $this->registerMiddleware();\n }", "public function register()\n {\n $this->registerConfig();\n $this->registerView();\n $this->registerMessage();\n $this->registerMenu();\n $this->registerOutput();\n $this->registerCommands();\n require __DIR__ . '/Service/ServiceProvider.php';\n require __DIR__ . '/Service/RegisterRepoInterface.php';\n require __DIR__ . '/Service/ErrorHandling.php';\n $this->registerExportDompdf();\n $this->registerExtjs();\n }", "public function register()\n {\n $this->registerRepository();\n $this->registerParser();\n }", "public function register()\n {\n $this->registerOtherProviders()->registerAliases();\n $this->loadViewsFrom(__DIR__.'/../../resources/views', 'jarvisPlatform');\n $this->app->bind('jarvis.auth.provider', AppAuthenticationProvider::class);\n $this->loadRoutes();\n }", "public function register()\n {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n\n $loader->alias('Laratrust', 'Laratrust\\LaratrustFacade');\n $loader->alias('Form', 'Collective\\Html\\FormFacade');\n $loader->alias('Html', 'Collective\\Html\\HtmlFacade');\n $loader->alias('Markdown', 'BrianFaust\\Parsedown\\Facades\\Parsedown');\n\n $this->app->register('Baum\\Providers\\BaumServiceProvider');\n $this->app->register('BrianFaust\\Parsedown\\ServiceProvider');\n $this->app->register('Collective\\Html\\HtmlServiceProvider');\n $this->app->register('Laravel\\Scout\\ScoutServiceProvider');\n $this->app->register('Laratrust\\LaratrustServiceProvider');\n\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\AuthServiceProvider');\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\EventServiceProvider');\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\ViewServiceProvider');\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->registerGuard();\n $this->registerBladeDirectives();\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->app->register(Providers\\ManagerServiceProvider::class);\n $this->app->register(Providers\\ValidationServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind(ReviewService::class, function ($app) {\n return new ReviewService();\n });\n }", "public function register()\n {\n $this->app->bind(\n Services\\UserService::class,\n Services\\Implementations\\UserServiceImplementation::class\n );\n $this->app->bind(\n Services\\FamilyCardService::class,\n Services\\Implementations\\FamilyCardServiceImplementation::class\n );\n }", "public function register()\n {\n // register its dependencies\n $this->app->register(\\Cviebrock\\EloquentSluggable\\ServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind('gameService', 'App\\Service\\GameService');\n }", "public function register()\n {\n $this->app->bind(VehicleRepository::class, GuzzleVehicleRepository::class);\n }", "public function register()\n {\n $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function($app){\n return new ElasticsearchNedvizhimostsObserver(new Client());\n });\n\n // $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function()\n // {\n // return new ElasticsearchNedvizhimostsObserver(new Client());\n // });\n }", "public function register()\n {\n // Register the app\n $this->registerApp();\n\n // Register Commands\n $this->registerCommands();\n }", "public function register()\n {\n $this->registerGeography();\n\n $this->registerCommands();\n\n $this->mergeConfig();\n\n $this->countriesCache();\n }", "public function register()\n {\n $this->app->bind(CertificationService::class, function($app){\n return new CertificationService();\n });\n }", "public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'App\\Services\\Registrar'\n\t\t);\n \n $this->app->bind(\"App\\\\Services\\\\ILoginService\",\"App\\\\Services\\\\LoginService\");\n \n $this->app->bind(\"App\\\\Repositories\\\\IItemRepository\",\"App\\\\Repositories\\\\ItemRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IOutletRepository\",\"App\\\\Repositories\\\\OutletRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IInventoryRepository\",\"App\\\\Repositories\\\\InventoryRepository\");\n\t}", "public function register()\n {\n $this->registerRollbar();\n }", "public function register()\n {\n $this->app->bind('activity', function () {\n return new ActivityService(\n $this->app->make(Activity::class),\n $this->app->make(PermissionService::class)\n );\n });\n\n $this->app->bind('views', function () {\n return new ViewService(\n $this->app->make(View::class),\n $this->app->make(PermissionService::class)\n );\n });\n\n $this->app->bind('setting', function () {\n return new SettingService(\n $this->app->make(Setting::class),\n $this->app->make(Repository::class)\n );\n });\n\n $this->app->bind('images', function () {\n return new ImageService(\n $this->app->make(Image::class),\n $this->app->make(ImageManager::class),\n $this->app->make(Factory::class),\n $this->app->make(Repository::class)\n );\n });\n }", "public function register()\n {\n App::bind('CreateTagService', function($app) {\n return new CreateTagService;\n });\n\n App::bind('UpdateTagService', function($app) {\n return new UpdateTagService;\n });\n }", "public function register()\n {\n $this->registerDomainLocalization();\n $this->registerDomainLocaleFilter();\n }", "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(MailConfigServiceProvider::class);\n }", "public function register()\n {\n $this->registerUserProvider();\n $this->registerGroupProvider();\n $this->registerNeo();\n\n $this->registerCommands();\n\n $this->app->booting(function()\n {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n $loader->alias('Neo', 'Wetcat\\Neo\\Facades\\Neo');\n });\n }", "public function register()\n {\n //\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\CompanyInterface', \n 'App\\Repositories\\CompanyRepo'\n );\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\UtilityInterface', \n 'App\\Repositories\\UtilityRepo'\n );\n }", "public function register()\n {\n $this->registerPayment();\n\n $this->app->alias('image', 'App\\Framework\\Image\\ImageService');\n }", "public function register()\n {\n $this->app->bind(AttributeServiceInterface::class,AttributeService::class);\n $this->app->bind(ProductServiceIntarface::class,ProductService::class);\n\n\n }", "public function register()\n {\n App::bind('App\\Repositories\\UserRepositoryInterface','App\\Repositories\\UserRepository');\n App::bind('App\\Repositories\\AnimalRepositoryInterface','App\\Repositories\\AnimalRepository');\n App::bind('App\\Repositories\\DonationTypeRepositoryInterface','App\\Repositories\\DonationTypeRepository');\n App::bind('App\\Repositories\\NewsAniRepositoryInterface','App\\Repositories\\NewsAniRepository');\n App::bind('App\\Repositories\\DonationRepositoryInterface','App\\Repositories\\DonationRepository');\n App::bind('App\\Repositories\\ProductRepositoryInterface','App\\Repositories\\ProductRepository');\n App::bind('App\\Repositories\\CategoryRepositoryInterface','App\\Repositories\\CategoryRepository');\n App::bind('App\\Repositories\\TransferMoneyRepositoryInterface','App\\Repositories\\TransferMoneyRepository');\n App::bind('App\\Repositories\\ShippingRepositoryInterface','App\\Repositories\\ShippingRepository');\n App::bind('App\\Repositories\\ReserveProductRepositoryInterface','App\\Repositories\\ReserveProductRepository');\n App::bind('App\\Repositories\\Product_reserveRepositoryInterface','App\\Repositories\\Product_reserveRepository');\n App::bind('App\\Repositories\\Ordering_productRepositoryInterface','App\\Repositories\\Ordering_productRepository');\n App::bind('App\\Repositories\\OrderingRepositoryInterface','App\\Repositories\\OrderingRepository');\n App::bind('App\\Repositories\\UserUpdateSlipRepositoryInterface','App\\Repositories\\UserUpdateSlipRepository');\n }", "public function register()\n {\n if ($this->app->runningInConsole()) {\n $this->registerPublishing();\n }\n }", "public function register()\n {\n $this->app->bind(HttpClient::class, function ($app) {\n return new HttpClient();\n });\n\n $this->app->bind(SeasonService::class, function ($app) {\n return new SeasonService($app->make(HttpClient::class));\n });\n\n $this->app->bind(MatchListingController::class, function ($app) {\n return new MatchListingController($app->make(SeasonService::class));\n });\n\n }", "public function register()\n {\n $this->setupConfig();\n\n $this->bindServices();\n }", "public function register()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Console\\MakeEndpointCommand::class,\n Console\\MakeControllerCommand::class,\n Console\\MakeRepositoryCommand::class,\n Console\\MakeTransformerCommand::class,\n Console\\MakeModelCommand::class,\n ]);\n }\n\n $this->registerFractal();\n }", "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(AuthServiceProvider::class);\n }", "public function register()\n {\n\n $config = $this->app['config']['cors'];\n\n $this->app->bind('Yocome\\Cors\\CorsService', function() use ($config){\n return new CorsService($config);\n });\n\n }", "public function register()\n {\n // Bind facade\n\n $this->registerRepositoryBibdings();\n $this->registerFacades();\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(\\Laravel\\Socialite\\SocialiteServiceProvider::class);\n }", "public function register()\n {\n\n\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\UserRepository',\n 'Onlinecorrection\\Repositories\\UserRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ClientRepository',\n 'Onlinecorrection\\Repositories\\ClientRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ProjectRepository',\n 'Onlinecorrection\\Repositories\\ProjectRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentRepository',\n 'Onlinecorrection\\Repositories\\DocumentRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderRepository',\n 'Onlinecorrection\\Repositories\\OrderRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderItemRepository',\n 'Onlinecorrection\\Repositories\\OrderItemRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentImageRepository',\n 'Onlinecorrection\\Repositories\\DocumentImageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\PackageRepository',\n 'Onlinecorrection\\Repositories\\PackageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\StatusRepository',\n 'Onlinecorrection\\Repositories\\StatusRepositoryEloquent'\n );\n\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->registerDataStore();\n\n $this->registerStorageFactory();\n\n $this->registerStorageManager();\n\n $this->registerSimplePhoto();\n }", "public function register()\n {\n // Default configuration file\n $this->mergeConfigFrom(\n __DIR__.'/Config/auzo_tools.php', 'auzoTools'\n );\n\n $this->registerModelBindings();\n $this->registerFacadesAliases();\n }", "public function register()\n {\n $this->app->bind(\\Cookiesoft\\Repositories\\CategoryRepository::class, \\Cookiesoft\\Repositories\\CategoryRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\BillpayRepository::class, \\Cookiesoft\\Repositories\\BillpayRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\UserRepository::class, \\Cookiesoft\\Repositories\\UserRepositoryEloquent::class);\n //:end-bindings:\n }", "public function register()\n {\n $this->app->singleton(ThirdPartyAuthService::class, function ($app) {\n return new ThirdPartyAuthService(\n config('settings.authentication_services'),\n $app['Laravel\\Socialite\\Contracts\\Factory'],\n $app['Illuminate\\Contracts\\Auth\\Factory']\n );\n });\n\n $this->app->singleton(ImageValidator::class, function ($app) {\n return new ImageValidator(\n config('settings.image.max_filesize'),\n config('settings.image.mime_types'),\n $app['Intervention\\Image\\ImageManager']\n );\n });\n\n $this->app->singleton(ImageService::class, function ($app) {\n return new ImageService(\n config('settings.image.max_width'),\n config('settings.image.max_height'),\n config('settings.image.folder')\n );\n });\n\n $this->app->singleton(RandomWordService::class, function ($app) {\n return new RandomWordService(\n $app['App\\Repositories\\WordRepository'],\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.number_of_words_to_remember')\n );\n });\n\n $this->app->singleton(WordRepository::class, function ($app) {\n return new WordRepository(config('settings.min_number_of_chars_per_one_mistake_in_search'));\n });\n\n $this->app->singleton(CheckAnswerService::class, function ($app) {\n return new CheckAnswerService(\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.min_number_of_chars_per_one_mistake')\n );\n });\n\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n }", "public function register()\n {\n $this->registerJWT();\n $this->registerJWSProxy();\n $this->registerJWTAlgoFactory();\n $this->registerPayload();\n $this->registerPayloadValidator();\n $this->registerPayloadUtilities();\n\n // use this if your package has a config file\n // config([\n // 'config/JWT.php',\n // ]);\n }", "public function register()\n {\n $this->registerManager();\n $this->registerConnection();\n $this->registerWorker();\n $this->registerListener();\n $this->registerFailedJobServices();\n $this->registerOpisSecurityKey();\n }", "public function register()\n {\n $this->app->register(RouterServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind('App\\Services\\TripService.php', function ($app) {\n return new TripService();\n });\n }", "public function register()\n {\n $this->registerUserComponent();\n $this->registerLocationComponent();\n\n }", "public function register()\n {\n $this->app->bind(\n \\App\\Services\\UserCertificate\\IUserCertificateService::class,\n \\App\\Services\\UserCertificate\\UserCertificateService::class\n );\n }", "public function register()\n {\n $this->app->bind(FacebookMarketingContract::class,FacebookMarketingService::class);\n }", "public function register()\n {\n /**\n * Register additional service\n * providers if they exist.\n */\n foreach ($this->providers as $provider) {\n if (class_exists($provider)) {\n $this->app->register($provider);\n }\n }\n }", "public function register()\n {\n $this->app->singleton('composer', function($app)\n {\n return new Composer($app['files'], $app['path.base']);\n });\n\n $this->app->singleton('forge', function($app)\n {\n return new Forge($app);\n });\n\n // Register the additional service providers.\n $this->app->register('Nova\\Console\\ScheduleServiceProvider');\n $this->app->register('Nova\\Queue\\ConsoleServiceProvider');\n }", "public function register()\n {\n\n\n\n $this->mergeConfigFrom(__DIR__ . '/../config/counter.php', 'counter');\n\n $this->app->register(RouteServiceProvider::class);\n\n\n }", "public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__.'/../config/colissimo.php', 'colissimo');\r\n $this->mergeConfigFrom(__DIR__.'/../config/rules.php', 'colissimo.rules');\r\n $this->mergeConfigFrom(__DIR__.'/../config/prices.php', 'colissimo.prices');\r\n $this->mergeConfigFrom(__DIR__.'/../config/zones.php', 'colissimo.zones');\r\n $this->mergeConfigFrom(__DIR__.'/../config/insurances.php', 'colissimo.insurances');\r\n $this->mergeConfigFrom(__DIR__.'/../config/supplements.php', 'colissimo.supplements');\r\n // Register the service the package provides.\r\n $this->app->singleton('colissimo', function ($app) {\r\n return new Colissimo;\r\n });\r\n }", "public function register(){\n $this->registerDependencies();\n $this->registerAlias();\n $this->registerServiceCommands();\n }", "public function register()\n {\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyService::class,\n \\App\\Services\\Survey\\SurveyService::class\n );\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyQuestionService::class,\n \\App\\Services\\Survey\\SurveyQuestionService::class\n );\n\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyAttemptService::class,\n \\App\\Services\\Survey\\SurveyAttemptService::class\n );\n\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyAttemptDataService::class,\n \\App\\Services\\Survey\\SurveyAttemptDataService::class\n );\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/../config/atlas.php', 'atlas'\n );\n \n $this->app->singleton(CoreContract::class, Core::class);\n \n $this->registerFacades([\n 'Atlas' => 'Atlas\\Facades\\Atlas',\n ]);\n }", "public function register()\n {\n $this->app->bind(TelescopeRouteServiceContract::class, TelescopeRouteService::class);\n }", "public function register()\n {\n $this->registerRepositoryBindings();\n\n $this->registerInterfaceBindings();\n\n $this->registerAuthorizationServer();\n\n $this->registerResourceServer();\n\n $this->registerFilterBindings();\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/faithgen-events.php', 'faithgen-events');\n\n $this->app->singleton(EventsService::class);\n $this->app->singleton(GuestService::class);\n }", "public function register()\n {\n $this->registerAliases();\n $this->registerFormBuilder();\n\n // Register package commands\n $this->commands([\n 'CoreDbCommand',\n 'CoreSetupCommand',\n 'CoreSeedCommand',\n 'EventEndCommand',\n 'ArchiveMaxAttempts',\n 'CronCommand',\n 'ExpireInstructors',\n 'SetTestLock',\n 'StudentArchiveTraining',\n 'TestBuildCommand',\n 'TestPublishCommand',\n ]);\n\n // Merge package config with one in outer app \n // the app-level config will override the base package config\n $this->mergeConfigFrom(\n __DIR__.'/../config/core.php', 'core'\n );\n\n // Bind our 'Flash' class\n $this->app->bindShared('flash', function () {\n return $this->app->make('Hdmaster\\Core\\Notifications\\FlashNotifier');\n });\n\n // Register package dependencies\n $this->app->register('Collective\\Html\\HtmlServiceProvider');\n $this->app->register('Bootstrapper\\BootstrapperL5ServiceProvider');\n $this->app->register('Codesleeve\\LaravelStapler\\Providers\\L5ServiceProvider');\n $this->app->register('PragmaRX\\ZipCode\\Vendor\\Laravel\\ServiceProvider');\n $this->app->register('Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider');\n\n $this->app->register('Zizaco\\Confide\\ServiceProvider');\n $this->app->register('Zizaco\\Entrust\\EntrustServiceProvider');\n }" ]
[ "0.7879658", "0.7600202", "0.74930716", "0.73852855", "0.736794", "0.7306089", "0.7291359", "0.72896826", "0.72802424", "0.7268026", "0.7267702", "0.72658145", "0.7249053", "0.72171587", "0.7208486", "0.7198799", "0.7196415", "0.719478", "0.7176513", "0.7176227", "0.7164647", "0.71484524", "0.71337837", "0.7129424", "0.71231985", "0.7120174", "0.7103653", "0.71020955", "0.70977163", "0.7094701", "0.7092148", "0.70914364", "0.7088618", "0.7087278", "0.70827085", "0.70756096", "0.7075115", "0.70741326", "0.7071857", "0.707093", "0.7070619", "0.7067406", "0.7066438", "0.7061766", "0.70562875", "0.7051525", "0.7049684", "0.70467263", "0.7043264", "0.7043229", "0.70429426", "0.7042174", "0.7038729", "0.70384216", "0.70348704", "0.7034105", "0.70324445", "0.70282733", "0.7025024", "0.702349", "0.7023382", "0.702262", "0.7022583", "0.7022161", "0.702139", "0.7021084", "0.7020801", "0.7019928", "0.70180106", "0.7017351", "0.7011482", "0.7008627", "0.7007786", "0.70065045", "0.7006424", "0.70060986", "0.69992065", "0.699874", "0.69980377", "0.69980335", "0.6997871", "0.6996457", "0.69961494", "0.6994749", "0.6991596", "0.699025", "0.6988414", "0.6987274", "0.69865865", "0.69862866", "0.69848233", "0.6978736", "0.69779474", "0.6977697", "0.6976002", "0.69734764", "0.6972392", "0.69721776", "0.6970663", "0.6968296", "0.696758" ]
0.0
-1
Bootstrap any application services.
public function boot() { view()->composer('*', function ($view) { $loai_sp = Category::where('status',1)->get(); $view->with('loai_sp',$loai_sp); }); view()->composer('*', function ($view) { $cart = new Cart; $view->with([ 'cart'=> $cart ]); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bootstrap(): void\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\n {\n // Boot here application\n }", "public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrapperList);\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\r\n {\r\n // Publishing is only necessary when using the CLI.\r\n if ($this->app->runningInConsole()) {\r\n $this->bootForConsole();\r\n }\r\n }", "public function boot()\n {\n $this->app->bind(IUserService::class, UserService::class);\n $this->app->bind(ISeminarService::class, SeminarService::class);\n $this->app->bind(IOrganizationService::class, OrganizationService::class);\n $this->app->bind(ISocialActivityService::class, SocialActivityService::class);\n }", "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 }", "public function boot()\n {\n\n $this->app->bind(FileUploaderServiceInterface::class,FileUploaderService::class);\n $this->app->bind(ShopServiceInterface::class,ShopService::class);\n $this->app->bind(CategoryServiceInterface::class,CategoryService::class);\n $this->app->bind(ProductServiceInterface::class,ProductService::class);\n $this->app->bind(ShopSettingsServiceInterface::class,ShopSettingsService::class);\n $this->app->bind(FeedbackServiceInterface::class,FeedbackService::class);\n $this->app->bind(UserServiceInterface::class,UserService::class);\n $this->app->bind(ShoppingCartServiceInterface::class,ShoppingCartService::class);\n $this->app->bind(WishlistServiceInterface::class,WishlistService::class);\n $this->app->bind(NewPostApiServiceInterface::class,NewPostApiService::class);\n $this->app->bind(DeliveryAddressServiceInterface::class,DeliveryAddressService::class);\n $this->app->bind(StripeServiceInterface::class,StripeService::class);\n $this->app->bind(OrderServiceInterface::class,OrderService::class);\n $this->app->bind(MailSenderServiceInterface::class,MailSenderSenderService::class);\n }", "public function boot()\n {\n $this->setupConfig('delta_service');\n $this->setupMigrations();\n $this->setupConnection('delta_service', 'delta_service.connection');\n }", "public function boot()\n {\n $configuration = [];\n\n if (file_exists($file = getcwd() . '/kaleo.config.php')) {\n $configuration = include_once $file;\n }\n\n $this->app->singleton('kaleo', function () use ($configuration) {\n return new KaleoService($configuration);\n });\n }", "public function boot()\n {\n $this->shareResources();\n $this->mergeConfigFrom(self::CONFIG_PATH, 'amocrm-api');\n }", "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function boot()\n {\n // Ports\n $this->app->bind(\n IAuthenticationService::class,\n AuthenticationService::class\n );\n $this->app->bind(\n IBeerService::class,\n BeerService::class\n );\n\n // Adapters\n $this->app->bind(\n IUserRepository::class,\n UserEloquentRepository::class\n );\n $this->app->bind(\n IBeerRepository::class,\n BeerEloquentRepository::class\n );\n }", "public function boot()\n {\n $this->setupConfig($this->app);\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->loadMigrations();\n }\n if(config($this->vendorNamespace. '::config.enabled')){\n Livewire::component($this->vendorNamespace . '::login-form', LoginForm::class);\n $this->loadRoutes();\n $this->loadViews();\n $this->loadMiddlewares();\n $this->loadTranslations();\n }\n }", "public function boot()\n {\n $source = dirname(__DIR__, 3) . '/config/config.php';\n\n if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {\n $this->publishes([$source => config_path('dubbo_cli.php')]);\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('dubbo_cli');\n }\n\n $this->mergeConfigFrom($source, 'dubbo_cli');\n }", "public function boot()\n {\n $this->package('domain/app');\n\n $this->setApplication();\n }", "public function boot()\n {\n $this->setUpConfig();\n $this->setUpConsoleCommands();\n }", "public function boot()\n {\n $this->strapRoutes();\n $this->strapViews();\n $this->strapMigrations();\n $this->strapCommands();\n\n $this->registerPolicies();\n }", "public function boot()\n {\n $this->app->singleton('LaraCurlService', function ($app) {\n return new LaraCurlService();\n });\n\n $this->loadRoutesFrom(__DIR__.'/routes/web.php');\n }", "public function boot()\n {\n $providers = $this->make('config')->get('app.console_providers', array());\n foreach ($providers as $provider) {\n $provider = $this->make($provider);\n if ($provider && method_exists($provider, 'boot')) {\n $provider->boot();\n }\n }\n }", "public function boot()\n {\n foreach (glob(app_path('/Api/config/*.php')) as $path) {\n $path = realpath($path);\n $this->mergeConfigFrom($path, basename($path, '.php'));\n }\n\n // 引入自定义函数\n foreach (glob(app_path('/Helpers/*.php')) as $helper) {\n require_once $helper;\n }\n // 引入 api 版本路由\n $this->loadRoutesFrom(app_path('/Api/Routes/base.php'));\n\n }", "public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n //$this->app->loadDeferredProviders();\n\n if (!$this->commandsLoaded) {\n //$this->commands();\n\n $this->commandsLoaded = true;\n }\n }", "protected function boot()\n\t{\n\t\tforeach ($this->serviceProviders as $provider)\n\t\t{\n\t\t\t$provider->boot($this);\n\t\t}\n\n\t\t$this->booted = true;\n\t}", "public function boot()\n {\n $this->setupConfig();\n //register rotating daily monolog provider\n $this->app->register(MonologProvider::class);\n $this->app->register(CircuitBreakerServiceProvider::class);\n $this->app->register(CurlServiceProvider::class);\n }", "public function boot(): void\n {\n if ($this->booted) {\n return;\n }\n\n array_walk($this->services, function ($service) {\n $this->bootServices($service);\n });\n\n $this->booted = true;\n }", "public static function boot() {\n\t\tstatic::container()->boot();\n\t}", "public function boot()\n {\n include_once('ComposerDependancies\\Global.php');\n //---------------------------------------------\n include_once('ComposerDependancies\\League.php');\n include_once('ComposerDependancies\\Team.php');\n include_once('ComposerDependancies\\Matchup.php');\n include_once('ComposerDependancies\\Player.php');\n include_once('ComposerDependancies\\Trade.php');\n include_once('ComposerDependancies\\Draft.php');\n include_once('ComposerDependancies\\Message.php');\n include_once('ComposerDependancies\\Poll.php');\n include_once('ComposerDependancies\\Chat.php');\n include_once('ComposerDependancies\\Rule.php');\n\n \n include_once('ComposerDependancies\\Admin\\Users.php');\n\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n if ($this->app instanceof LaravelApplication) {\n $this->publishes([\n __DIR__.'/../config/state-machine.php' => config_path('state-machine.php'),\n ], 'config');\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('state-machine');\n }\n }\n }", "public function boot()\n {\n $this->bootEvents();\n\n $this->bootPublishes();\n\n $this->bootTypes();\n\n $this->bootSchemas();\n\n $this->bootRouter();\n\n $this->bootViews();\n \n $this->bootSecurity();\n }", "public function boot()\n {\n //\n Configuration::environment(\"sandbox\");\n Configuration::merchantId(\"cmpss9trsxsr4538\");\n Configuration::publicKey(\"zy3x5mb5jwkcrxgr\");\n Configuration::privateKey(\"4d63c8b2c340daaa353be453b46f6ac2\");\n\n\n $modules = Directory::listDirectories(app_path('Modules'));\n\n foreach ($modules as $module)\n {\n $routesPath = app_path('Modules/' . $module . '/routes.php');\n $viewsPath = app_path('Modules/' . $module . '/Views');\n\n if (file_exists($routesPath))\n {\n require $routesPath;\n }\n\n if (file_exists($viewsPath))\n {\n $this->app->view->addLocation($viewsPath);\n }\n }\n }", "public function boot()\n {\n resolve(EngineManager::class)->extend('elastic', function () {\n return new ElasticScoutEngine(\n ElasticBuilder::create()\n ->setHosts(config('scout.elastic.hosts'))\n ->build()\n );\n });\n }", "public function boot(): void\n {\n try {\n // Just check if we have DB connection! This is to avoid\n // exceptions on new projects before configuring database options\n // @TODO: refcator the whole accessareas retrieval to be file-based, instead of db based\n DB::connection()->getPdo();\n\n if (Schema::hasTable(config('cortex.foundation.tables.accessareas'))) {\n // Register accessareas into service container, early before booting any module service providers!\n $this->app->singleton('accessareas', fn () => app('cortex.foundation.accessarea')->where('is_active', true)->get());\n }\n } catch (Exception $e) {\n // Be quiet! Do not do or say anything!!\n }\n\n $this->bootstrapModules();\n }", "public function boot()\n {\n $this->app->register(UserServiceProvider::class);\n $this->app->register(DashboardServiceProvider::class);\n $this->app->register(CoreServiceProvider::class);\n $this->app->register(InstitutionalVideoServiceProvider::class);\n $this->app->register(InstitutionalServiceProvider::class);\n $this->app->register(TrainingServiceProvider::class);\n $this->app->register(CompanyServiceProvider::class);\n $this->app->register(LearningUnitServiceProvider::class);\n $this->app->register(PublicationServiceProvider::class);\n }", "public function boot()\n {\n Schema::defaultStringLength(191);\n\n $this->app->bindMethod([SendMailPasswordReset::class, 'handle'], function ($job, $app) {\n return $job->handle($app->make(MailService::class));\n });\n\n $this->app->bindMethod([ClearTokenPasswordReset::class, 'handle'], function ($job, $app) {\n return $job->handle($app->make(PasswordResetRepository::class));\n });\n\n $this->app->bind(AuthService::class, function ($app) {\n return new AuthService($app->make(HttpService::class));\n });\n }", "public function boot()\n {\n $this->makeRepositories();\n }", "public function boot(): void\n {\n $this->loadMiddlewares();\n }", "public function boot()\n {\n $this->app->when(ChatAPIChannel::class)\n ->needs(ChatAPI::class)\n ->give(function () {\n $config = config('services.chatapi');\n return new ChatAPI(\n $config['token'],\n $config['api_url']\n );\n });\n }", "public function boot() {\r\n\t\t$hosting_service = HostResolver::get_host_service();\r\n\r\n\t\tif ( ! empty( $hosting_service ) ) {\r\n\t\t\t$this->provides[] = $hosting_service;\r\n\t\t}\r\n\t}", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n require(__DIR__ . '/../routes/console.php');\n } else {\n // Menus for BPM are done through middleware. \n Route::pushMiddlewareToGroup('web', AddToMenus::class);\n \n // Assigning to the web middleware will ensure all other middleware assigned to 'web'\n // will execute. If you wish to extend the user interface, you'll use the web middleware\n Route::middleware('web')\n ->namespace($this->namespace)\n ->group(__DIR__ . '/../routes/web.php');\n \n // If you wish to extend the api, be sure to utilize the api middleware. In your api \n // Routes file, you should prefix your routes with api/1.0\n Route::middleware('api')\n ->namespace($this->namespace)\n ->prefix('api/1.0')\n ->group(__DIR__ . '/../routes/api.php');\n \n Event::listen(ScreenBuilderStarting::class, function($event) {\n $event->manager->addScript(mix('js/screen-builder-extend.js', 'vendor/api-connector'));\n $event->manager->addScript(mix('js/screen-renderer-extend.js', 'vendor/api-connector'));\n });\n }\n\n // load migrations\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n\n // Load our views\n $this->loadViewsFrom(__DIR__.'/../resources/views/', 'api-connector');\n\n // Load our translations\n $this->loadTranslationsFrom(__DIR__.'/../lang', 'api-connector');\n\n $this->publishes([\n __DIR__.'/../public' => public_path('vendor/api-connector'),\n ], 'api-connector');\n\n $this->publishes([\n __DIR__ . '/../database/seeds' => database_path('seeds'),\n ], 'api-connector');\n\n $this->app['events']->listen(PackageEvent::class, PackageListener::class);\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->bindCommands();\n $this->registerCommands();\n $this->app->bind(InstallerContract::class, Installer::class);\n\n $this->publishes([\n __DIR__.'/../config/exceptionlive.php' => base_path('config/exceptionlive.php'),\n ], 'config');\n }\n\n $this->registerMacros();\n }", "public function boot(){\r\n $this->app->configure('sdk');\r\n $this->publishes([\r\n __DIR__.'/../../resources/config/sdk.php' => config_path('sdk.php')\r\n ]);\r\n $this->mergeConfigFrom(__DIR__.'/../../resources/config/sdk.php','sdk');\r\n\r\n $api = config('sdk.api');\r\n foreach($api as $key => $value){\r\n $this->app->singleton($key,$value);\r\n }\r\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n EnvironmentCommand::class,\n EventGenerateCommand::class,\n EventMakeCommand::class,\n JobMakeCommand::class,\n KeyGenerateCommand::class,\n MailMakeCommand::class,\n ModelMakeCommand::class,\n NotificationMakeCommand::class,\n PolicyMakeCommand::class,\n ProviderMakeCommand::class,\n RequestMakeCommand::class,\n ResourceMakeCommand::class,\n RuleMakeCommand::class,\n ServeCommand::class,\n StorageLinkCommand::class,\n TestMakeCommand::class,\n ]);\n }\n }", "public function boot()\n {\n $this->app->bind(WeatherInterface::class, OpenWeatherMapService::class);\n $this->app->bind(OrderRepositoryInterface::class, EloquentOrderRepository::class);\n $this->app->bind(NotifyInterface::class, EmailNotifyService::class);\n }", "public function boot()\n {\n $this->app->bind(DateService::class,DateServiceImpl::class);\n $this->app->bind(DisasterEventQueryBuilder::class,DisasterEventQueryBuilderImpl::class);\n $this->app->bind(MedicalFacilityQueryBuilder::class,MedicalFacilityQueryBuilderImpl::class);\n $this->app->bind(RefugeCampQueryBuilder::class,RefugeCampQueryBuilderImpl::class);\n $this->app->bind(VictimQueryBuilder::class,VictimQueryBuilderImpl::class);\n $this->app->bind(VillageQueryBuilder::class,VillageQueryBuilderImpl::class);\n }", "public function boot()\n {\n\t\tif ( $this->app->runningInConsole() ) {\n\t\t\t$this->loadMigrationsFrom(__DIR__.'/migrations');\n\n//\t\t\t$this->publishes([\n//\t\t\t\t__DIR__.'/config/scheduler.php' => config_path('scheduler.php'),\n//\t\t\t\t__DIR__.'/console/CronTasksList.php' => app_path('Console/CronTasksList.php'),\n//\t\t\t\t__DIR__.'/views' => resource_path('views/vendor/scheduler'),\n//\t\t\t]);\n\n//\t\t\tapp('Revolta77\\ScheduleMonitor\\Conntroller\\CreateController')->index();\n\n//\t\t\t$this->commands([\n//\t\t\t\tConsole\\Commands\\CreateController::class,\n//\t\t\t]);\n\t\t}\n\t\t$this->loadRoutesFrom(__DIR__.'/routes/web.php');\n }", "public function boot()\n {\n $this->bootPackages();\n }", "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->commands($this->load(__DIR__.'/../Console', Command::class));\n }\n }", "public function boot(): void\n {\n $this->publishes(\n [\n __DIR__ . '/../config/laravel_entity_services.php' =>\n $this->app->make('path.config') . DIRECTORY_SEPARATOR . 'laravel_entity_services.php',\n ],\n 'laravel_repositories'\n );\n $this->mergeConfigFrom(__DIR__ . '/../config/laravel_entity_services.php', 'laravel_entity_services');\n\n $this->registerCustomBindings();\n }", "public function boot()\n {\n // DEFAULT STRING LENGTH\n Schema::defaultStringLength(191);\n\n // PASSPORT\n Passport::routes(function (RouteRegistrar $router)\n {\n $router->forAccessTokens();\n });\n Passport::tokensExpireIn(now()->addDays(1));\n\n // SERVICES, REPOSITORIES, CONTRACTS BINDING\n $this->app->bind('App\\Contracts\\IUser', 'App\\Repositories\\UserRepository');\n $this->app->bind('App\\Contracts\\IUserType', 'App\\Repositories\\UserTypeRepository');\n $this->app->bind('App\\Contracts\\IApiToken', 'App\\Services\\ApiTokenService');\n $this->app->bind('App\\Contracts\\IModule', 'App\\Repositories\\ModuleRepository');\n $this->app->bind('App\\Contracts\\IModuleAction', 'App\\Repositories\\ModuleActionRepository');\n }", "public function bootstrap(): void\n {\n $globalConfigurationBuilder = (new GlobalConfigurationBuilder())->withEnvironmentVariables()\n ->withPhpFileConfigurationSource(__DIR__ . '/../config.php');\n (new BootstrapperCollection())->addMany([\n new DotEnvBootstrapper(__DIR__ . '/../.env'),\n new ConfigurationBootstrapper($globalConfigurationBuilder),\n new GlobalExceptionHandlerBootstrapper($this->container)\n ])->bootstrapAll();\n }", "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'deniskisel');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'deniskisel');\n// $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function boot()\n {\n $this->bootingDomain();\n\n $this->registerCommands();\n $this->registerListeners();\n $this->registerPolicies();\n $this->registerRoutes();\n $this->registerBladeComponents();\n $this->registerLivewireComponents();\n $this->registerSpotlightCommands();\n\n $this->bootedDomain();\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->registerMigrations();\n $this->registerMigrationFolder();\n $this->registerConfig();\n }\n }", "public function boot()\n {\n $this->bootModulesMenu();\n $this->bootSkinComposer();\n $this->bootCustomBladeDirectives();\n }", "public function boot(): void\n {\n $this->app->bind(Telegram::class, static function () {\n return new Telegram(\n config('services.telegram-bot-api.token'),\n new HttpClient()\n );\n });\n }", "public function boot()\n {\n\n if (! config('app.installed')) {\n return;\n }\n\n $this->loadRoutesFrom(__DIR__ . '/Routes/admin.php');\n $this->loadRoutesFrom(__DIR__ . '/Routes/public.php');\n\n $this->loadMigrationsFrom(__DIR__ . '/Database/Migrations');\n\n// $this->loadViewsFrom(__DIR__ . '/Resources/Views', 'portfolio');\n\n $this->loadTranslationsFrom(__DIR__ . '/Resources/Lang/', 'contact');\n\n //Add menu to admin panel\n $this->adminMenu();\n\n }", "public function boot()\n {\n if (! config('app.installed')) {\n return;\n }\n\n $this->app['config']->set([\n 'scout' => [\n 'driver' => setting('search_engine', 'mysql'),\n 'algolia' => [\n 'id' => setting('algolia_app_id'),\n 'secret' => setting('algolia_secret'),\n ],\n ],\n ]);\n }", "protected function bootServiceProviders()\n {\n foreach($this->activeProviders as $provider)\n {\n // check if the service provider has a boot method.\n if (method_exists($provider, 'boot')) {\n $provider->boot();\n }\n }\n }", "public function boot(): void\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'imc');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'imc');\n $this->registerPackageRoutes();\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function boot()\n {\n // Larapex Livewire\n $this->mergeConfigFrom(__DIR__ . '/../configs/larapex-livewire.php', 'larapex-livewire');\n\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'larapex-livewire');\n\n $this->registerBladeDirectives();\n\n if ($this->app->runningInConsole()) {\n $this->registerCommands();\n $this->publishResources();\n }\n }", "public function boot()\n {\n // Bootstrap code here.\n $this->app->singleton(L9SmsApiChannel::class, function () {\n $config = config('l9smsapi');\n if (empty($config['token']) || empty($config['service'])) {\n throw new \\Exception('L9SmsApi missing token and service in config');\n }\n\n return new L9SmsApiChannel($config['token'], $config['service']);\n });\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/l9smsapi.php' => config_path('l9smsapi.php'),\n ], 'config');\n }\n }", "public function boot()\n\t{\n\t\t$this->bindRepositories();\n\t}", "public function boot()\n {\n if (!$this->app->runningInConsole()) {\n return;\n }\n\n $this->commands([\n ListenCommand::class,\n InstallCommand::class,\n EventsListCommand::class,\n ObserverMakeCommand::class,\n ]);\n\n foreach ($this->listen as $event => $listeners) {\n foreach ($listeners as $listener) {\n RabbitEvents::listen($event, $listener);\n }\n }\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n MultiAuthInstallCommand::class,\n ]);\n }\n }", "public function boot() {\n\n\t\t$this->registerProviders();\n\t\t$this->bootProviders();\n\t\t$this->registerProxies();\n\t}", "public function boot(): void\n {\n // routes\n $this->loadRoutes();\n // assets\n $this->loadAssets('assets');\n // configuration\n $this->loadConfig('configs');\n // views\n $this->loadViews('views');\n // view extends\n $this->extendViews();\n // translations\n $this->loadTranslates('views');\n // adminer\n $this->loadAdminer('adminer');\n // commands\n $this->loadCommands();\n // gates\n $this->registerGates();\n // listeners\n $this->registerListeners();\n // settings\n $this->applySettings();\n }", "public function boot()\n {\n $this->setupFacades();\n $this->setupViews();\n $this->setupBlades();\n }", "public function boot()\n {\n\n $this->app->translate_manager->addTranslateProvider(TranslateMenu::class);\n\n\n\n $this->loadRoutesFrom(__DIR__ . '/../routes/api.php');\n $this->loadMigrationsFrom(__DIR__ . '/../migrations/');\n\n\n\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/larkeauth-rbac-model.conf' => config_path('larkeauth-rbac-model.conf.larkeauth'),\n __DIR__ . '/../config/larkeauth.php' => config_path('larkeauth.php.larkeauth')\n ], 'larke-auth-config');\n\n $this->commands([\n Commands\\Install::class,\n Commands\\GroupAdd::class,\n Commands\\PolicyAdd::class,\n Commands\\RoleAssign::class,\n ]);\n }\n\n $this->mergeConfigFrom(__DIR__ . '/../config/larkeauth.php', 'larkeauth');\n\n $this->bootObserver();\n }", "public function boot(): void\n {\n $this->app\n ->when(RocketChatWebhookChannel::class)\n ->needs(RocketChat::class)\n ->give(function () {\n return new RocketChat(\n new HttpClient(),\n Config::get('services.rocketchat.url'),\n Config::get('services.rocketchat.token'),\n Config::get('services.rocketchat.channel')\n );\n });\n }", "public function boot()\n {\n if ($this->booted) {\n return;\n }\n\n $this->app->registerConfiguredProvidersInRequest();\n\n $this->fireAppCallbacks($this->bootingCallbacks);\n\n /** array_walk\n * If when a provider booting, it reg some other providers,\n * then the new providers added to $this->serviceProviders\n * then array_walk will loop the new ones and boot them. // pingpong/modules 2.0 use this feature\n */\n array_walk($this->serviceProviders, function ($p) {\n $this->bootProvider($p);\n });\n\n $this->booted = true;\n\n $this->fireAppCallbacks($this->bootedCallbacks);\n }", "public function boot()\n {\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function boot()\n\t{\n\t\t$this->package('atlantis/admin');\n\n\t\t#i: Set the locale\n\t\t$this->setLocale();\n\n $this->registerServiceAdminValidator();\n $this->registerServiceAdminFactory();\n $this->registerServiceAdminDataTable();\n $this->registerServiceModules();\n\n\t\t#i: Include our filters, view composers, and routes\n\t\tinclude __DIR__.'/../../filters.php';\n\t\tinclude __DIR__.'/../../views.php';\n\t\tinclude __DIR__.'/../../routes.php';\n\n\t\t$this->app['events']->fire('admin.ready');\n\t}", "public function boot()\n {\n $this->app->booted(function () {\n $this->callMethodIfExists('jobs');\n });\n }", "public function boot()\n {\n $this->bootSetTimeLocale();\n $this->bootBladeHotelRole();\n $this->bootBladeHotelGuest();\n $this->bootBladeIcon();\n }", "public function boot(): void\n {\n $this->registerRoutes();\n $this->registerResources();\n $this->registerMixins();\n\n if ($this->app->runningInConsole()) {\n $this->offerPublishing();\n $this->registerMigrations();\n }\n }", "public function boot()\n {\n $this->dispatch(new SetCoreConnection());\n $this->dispatch(new ConfigureCommandBus());\n $this->dispatch(new ConfigureTranslator());\n $this->dispatch(new LoadStreamsConfiguration());\n\n $this->dispatch(new InitializeApplication());\n $this->dispatch(new AutoloadEntryModels());\n $this->dispatch(new AddAssetNamespaces());\n $this->dispatch(new AddImageNamespaces());\n $this->dispatch(new AddViewNamespaces());\n $this->dispatch(new AddTwigExtensions());\n $this->dispatch(new RegisterAddons());\n }", "public function boot(): void\n {\n $this->loadViews();\n $this->loadTranslations();\n\n if ($this->app->runningInConsole()) {\n $this->publishMultipleConfig();\n $this->publishViews(false);\n $this->publishTranslations(false);\n }\n }", "public function boot()\n {\n $this->bootForConsole();\n $this->loadRoutesFrom(__DIR__ . '/routes/web.php');\n $this->loadViewsFrom(__DIR__ . '/./../resources/views', 'bakerysoft');\n }", "public function boot()\n {\n $this->app->booted(function () {\n $this->defineRoutes();\n });\n $this->defineResources();\n $this->registerDependencies();\n }", "public function boot()\n {\n $this->app->bind(CustomersRepositoryInterface::class, CustomersRepository::class);\n $this->app->bind(CountryToCodeMapperInterface::class, CountryToCodeMapper::class);\n $this->app->bind(PhoneNumbersValidatorInterface::class, PhoneNumbersRegexValidator::class);\n $this->app->bind(CustomersFilterServiceInterface::class, CustomersFilterService::class);\n $this->app->bind(CacheInterface::class, CacheAdapter::class);\n\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([$this->configPath() => config_path('oauth.php')], 'oauth');\n }\n\n app()->bind(ClientToken::class, function () {\n return new ClientToken();\n });\n\n app()->bind(TokenParser::class, function () {\n return new TokenParser(\n app()->get(Request::class)\n );\n });\n\n app()->bind(OAuthClient::class, function () {\n return new OAuthClient(\n app()->get(Request::class),\n app()->get(ClientToken::class)\n );\n });\n\n app()->bind(AccountService::class, function () {\n return new AccountService(app()->get(OAuthClient::class));\n });\n }", "public function boot()\n {\n Client::observe(ClientObserver::class);\n $this->app->bind(ClientRepositoryInterface::class, function ($app) {\n return new ClientRepository(Client::class);\n });\n $this->app->bind(UserRepositoryInterface::class, function ($app) {\n return new UserRepository(User::class);\n });\n }", "public function boot()\n {\n $this->setupFacades(); \n //$this->setupConfigs(); \n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n //\n }\n\n $this->loadRoutesFrom(__DIR__ . '/routes.php');\n }", "public function boot()\n {\n $path = __DIR__.'/../..';\n\n $this->package('clumsy/cms', 'clumsy', $path);\n\n $this->registerAuthRoutes();\n $this->registerBackEndRoutes();\n\n require $path.'/helpers.php';\n require $path.'/errors.php';\n require $path.'/filters.php';\n\n if ($this->app->runningInConsole()) {\n $this->app->make('Clumsy\\CMS\\Clumsy');\n }\n\n }", "public function boot()\n {\n $this->mergeConfigFrom(__DIR__ . '/../../config/bs4.php', 'bs4');\n $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'bs');\n $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'bs');\n\n if ($this->app->runningInConsole())\n {\n $this->publishes([\n __DIR__ . '/../../resources/views' => resource_path('views/vendor/bs'),\n ], 'views');\n\n $this->publishes([\n __DIR__ . '/../../resources/lang' => resource_path('lang/vendor/bs'),\n ], 'lang');\n\n $this->publishes([\n __DIR__ . '/../../config' => config_path(),\n ], 'config');\n }\n }", "public function boot()\n {\n $this->client = new HttpClient([\n 'base_uri' => 'https://api.ipfinder.io/v1/',\n 'headers' => [\n 'User-Agent' => 'Laravel-GeoIP-Torann',\n ],\n 'query' => [\n 'token' => $this->config('key'),\n ],\n ]);\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Check::class,\n Clear::class,\n Fix::class,\n Fresh::class,\n Foo::class,\n Ide::class,\n MakeDatabase::class,\n Ping::class,\n Version::class,\n ]);\n }\n }", "public function boot()\n {\n $app = $this->app;\n\n if (!$app->runningInConsole()) {\n return;\n }\n\n $source = realpath(__DIR__ . '/config/config.php');\n\n if (class_exists('Illuminate\\Foundation\\Application', false)) {\n // L5\n $this->publishes([$source => config_path('sniffer-rules.php')]);\n $this->mergeConfigFrom($source, 'sniffer-rules');\n } elseif (class_exists('Laravel\\Lumen\\Application', false)) {\n // Lumen\n $app->configure('sniffer-rules');\n $this->mergeConfigFrom($source, 'sniffer-rules');\n } else {\n // L4\n $this->package('chefsplate/sniffer-rules', null, __DIR__);\n }\n }", "public function boot()\r\n\t{\r\n\t\t$this->package('estey/hipsupport');\r\n\t\t$this->registerHipSupport();\r\n\t\t$this->registerHipSupportOnlineCommand();\r\n\t\t$this->registerHipSupportOfflineCommand();\r\n\r\n\t\t$this->registerCommands();\r\n\t}", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n ControllerMakeCommand::class,\n ServiceMakeCommand::class,\n RepositoryMakeCommand::class,\n ModelMakeCommand::class,\n RequestRuleMakeCommand::class,\n ]);\n }\n }", "public function boot() {\n $srcDir = __DIR__ . '/../';\n \n $this->package('baseline/baseline', 'baseline', $srcDir);\n \n include $srcDir . 'Http/routes.php';\n include $srcDir . 'Http/filters.php';\n }", "public function boot()\n {\n $this->app->bind('App\\Services\\ProviderAccountService', function() {\n return new ProviderAccountService;\n });\n }", "public function boot()\n {\n $this->loadViewsFrom(__DIR__ . '/resources/views', 'Counters');\n\n $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'Counters');\n\n\n //To load migration files directly from the package\n// $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n\n $this->app->booted(function () {\n $loader = AliasLoader::getInstance();\n $loader->alias('Counters', Counters::class);\n\n });\n\n $this->publishes([\n __DIR__ . '/../config/counter.php' => config_path('counter.php'),\n ], 'config');\n\n\n\n $this->publishes([\n __DIR__.'/../database/migrations/0000_00_00_000000_create_counters_tables.php' => $this->app->databasePath().\"/migrations/0000_00_00_000000_create_counters_tables.php\",\n ], 'migrations');\n\n\n if ($this->app->runningInConsole()) {\n $this->commands([\\Maher\\Counters\\Commands\\MakeCounter::class]);\n }\n\n\n }", "public function boot(Application $app)\n {\n\n }", "public function boot()\n {\n }", "public function boot()\n {\n }", "public function boot()\n {\n }", "public function boot()\n {\n }", "public function boot()\n {\n }" ]
[ "0.7344842", "0.7212776", "0.7207748", "0.7123287", "0.7109729", "0.70822036", "0.7076881", "0.70718396", "0.7051853", "0.7025475", "0.7011949", "0.70043486", "0.6955807", "0.69322443", "0.69319373", "0.69272774", "0.6911386", "0.69069713", "0.6898877", "0.6898432", "0.6896597", "0.6889767", "0.6886577", "0.6880688", "0.6875815", "0.6874972", "0.68696195", "0.6864291", "0.6864246", "0.68631536", "0.68599164", "0.6857919", "0.685537", "0.68552583", "0.68522125", "0.6839775", "0.683261", "0.6831196", "0.68272495", "0.68250644", "0.68241394", "0.68181944", "0.68132496", "0.68117976", "0.6811785", "0.6808445", "0.68066794", "0.680175", "0.68005246", "0.67994386", "0.67969066", "0.67912513", "0.67884964", "0.678574", "0.678558", "0.6783794", "0.67782456", "0.6773669", "0.6766658", "0.6766194", "0.67617613", "0.67611295", "0.6758855", "0.6756636", "0.6754412", "0.6751842", "0.6747439", "0.6744991", "0.67441815", "0.6743506", "0.67400324", "0.6739403", "0.6738356", "0.6738189", "0.6731425", "0.6730627", "0.67293024", "0.6726232", "0.67261064", "0.67192256", "0.6716676", "0.6716229", "0.671442", "0.6713091", "0.6702467", "0.66990495", "0.66913867", "0.6689953", "0.66861963", "0.66840357", "0.66826946", "0.6681548", "0.6680455", "0.6676407", "0.6675645", "0.6672465", "0.66722375", "0.66722375", "0.66722375", "0.66722375", "0.66722375" ]
0.0
-1
Display a listing of the resource.
public function index() { return view('welcome'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store(Request $request)\n {\n $request->validate([\n 'name' => 'required',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n 'description' => 'nullable|string',\n ]);\n\n $resource = Resource::create($request->all());\n\n if ( $request->hasFile('file') ) {\n $resourceFile = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resourceFile);\n $resource->file = $resourceFile;\n $resource->save();\n }\n\n if ( $request->submit == 'Save' ) {\n return redirect()->route('admin.resources.index')->with('success','Resource Successfully Uploaded');\n } else {\n return redirect()->route('admin.resources.create')->with('success','Resource Successfully Uploaded');\n }\n }", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.728708", "0.7144915", "0.7132209", "0.66401577", "0.66205436", "0.65682197", "0.6526531", "0.65085673", "0.6449452", "0.63749766", "0.63726056", "0.6364582", "0.6364582", "0.6364582", "0.6341498", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726" ]
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Create a new controller instance.
public function __construct(Setting $setting) { $this->middleware('auth'); $this->setting = $setting; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82678324", "0.8173564", "0.78118384", "0.7706353", "0.76816905", "0.7659159", "0.74858105", "0.7406485", "0.7298472", "0.7253435", "0.7196091", "0.7174443", "0.7016074", "0.6989523", "0.69837826", "0.69728553", "0.69640046", "0.69357765", "0.6897687", "0.689282", "0.68775725", "0.6868809", "0.68633306", "0.6839021", "0.6779905", "0.6705274", "0.6670987", "0.66623807", "0.6652613", "0.6643801", "0.6616729", "0.66143125", "0.65891534", "0.6449129", "0.64461046", "0.6429425", "0.6426337", "0.63015336", "0.6298573", "0.6294075", "0.62801653", "0.6259914", "0.62554234", "0.6167662", "0.61630553", "0.61601174", "0.6141946", "0.6137726", "0.6134302", "0.6133732", "0.61287725", "0.6110795", "0.60950965", "0.6089703", "0.60768735", "0.6066286", "0.60595477", "0.6055387", "0.60451794", "0.6028352", "0.60246956", "0.60228956", "0.6019088", "0.6012698", "0.6011448", "0.60113615", "0.60076576", "0.6004189", "0.5998927", "0.5997798", "0.5993557", "0.59863526", "0.59863526", "0.59863526", "0.59706056", "0.59546155", "0.59493065", "0.5940633", "0.59251904", "0.59143347", "0.5913916", "0.59121555", "0.59111917", "0.5909761", "0.59026676", "0.59009403", "0.5899209", "0.58973104", "0.58964044", "0.58933777", "0.5888429", "0.58760023", "0.5869122", "0.5863149", "0.58622074", "0.5849116", "0.5838678", "0.5831741", "0.5824525", "0.58167094", "0.58122987" ]
0.0
-1
Show the application dashboard.
public function index() { return view('settings.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
REGISTER SIDEBARS Sidebars & Widgetizes Areas
function bones_register_sidebars() { register_sidebar(array( 'id' => 'sidebar_blog', 'name' => __( 'Blog Sidebar', 'bonestheme' ), 'description' => __( 'Blog Sidebar', 'bonestheme' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); // add footer widgets register_sidebar(array( 'id' => 'footer-1', 'name' => __( 'Footer Widget 1', 'bonestheme' ), 'description' => __( 'The first footer widget.', 'bonestheme' ), 'before_widget' => '<div id="%1$s" class="widget widgetFooter %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'id' => 'footer-2', 'name' => __( 'Footer Widget 2', 'bonestheme' ), 'description' => __( 'The second footer widget.', 'bonestheme' ), 'before_widget' => '<div id="%1$s" class="widget widgetFooter %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'id' => 'footer-3', 'name' => __( 'Footer Widget 3', 'bonestheme' ), 'description' => __( 'The third footer widget.', 'bonestheme' ), 'before_widget' => '<div id="%1$s" class="widget widgetFooter %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'id' => 'footer-4', 'name' => __( 'Footer Widget 4', 'bonestheme' ), 'description' => __( 'The fourth footer widget.', 'bonestheme' ), 'before_widget' => '<div id="%1$s" class="widget widgetFooter %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_sidebars() {\n\n\t\t\t// Get widget areas\n\t\t\tif ( empty( $this->widget_areas ) ) {\n\t\t\t\t$this->widget_areas = $this->get_widget_areas();\n\t\t\t}\n\n\t\t\t// Original widget areas is empty\n\t\t\t$this->orig = array();\n\n\t\t\t// Save widget areas\n\t\t\tif ( ! empty( $this->orig ) && $this->orig != $this->widget_areas ) {\n\t\t\t\t$this->widget_areas = array_unique( array_merge( $this->widget_areas, $this->orig ) );\n\t\t\t\t$this->save_widget_areas();\n\t\t\t}\n\n\t\t\t// If widget areas are defined add a sidebar area for each\n\t\t\tif ( is_array( $this->widget_areas ) ) {\n\t\t\t\tforeach ( array_unique( $this->widget_areas ) as $widget_area ) {\n\t\t\t\t\t$args = array(\n\t\t\t\t\t\t'id'\t\t\t=> sanitize_key( $widget_area ),\n\t\t\t\t\t\t'name'\t\t\t=> $widget_area,\n\t\t\t\t\t\t'class'\t\t\t=> 'wprt-custom',\n\t\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t\t'before_title' => '<h2 class=\"widget-title\"><span>',\n\t\t\t\t\t\t'after_title' => '</span></h2>'\n\t\t\t\t\t);\n\t\t\t\t\tregister_sidebar( $args );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function register_sidebars() {\n\t\t// Primary\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Primary',\n\t\t\t'id' => 'primary',\n\t\t\t'description' => 'Main widget-area aside content.',\n\t\t\t'class' => 'aside widgets',\n\t\t\t'before_widget' => '<section id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t'after_widget' => '</section>',\n\t\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t\t'after_title' => '</h4>'\n\t\t));\n\n\t\t// Subsidiary\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Subsidiary',\n\t\t\t'id' => 'subsidiary',\n\t\t\t'description' => 'Footer widget-area content.',\n\t\t\t'class' => 'subsidiary widgets',\n\t\t\t'before_widget' => '<section id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t'after_widget' => '</section>',\n\t\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t\t'after_title' => '</h4>'\n\t\t));\n\t}", "public function registerSidebars() {\n\t\t\tregister_sidebar([\n\t\t\t\t'name' => __('Footer Navigation', 'footer-widget-nav'),\n\t\t\t\t'id' => 'footer-widget-nav',\n\t\t\t\t'description' => 'Footer at the bottom of every page',\n\t\t\t]);\n\n\t\t\tregister_sidebar([\n\t\t\t\t'name' => __('Footer Social', 'footer-widget-social'),\n\t\t\t\t'id' => 'footer-widget-social',\n\t\t\t\t'description' => 'Footer at the bottom of every page',\n\t\t\t]);\n\n\t\t\tregister_sidebar([\n\t\t\t\t'name' => __('Footer Locations', 'footer-widget-locations'),\n\t\t\t\t'id' => 'footer-widget-locations',\n\t\t\t\t'description' => 'Footer at the bottom of every page',\n\t\t\t]);\n\t\t}", "function aton_qodef_register_sidebars() {\n\n register_sidebar(array(\n 'name' => 'Sidebar',\n 'id' => 'sidebar',\n 'description' => 'Default Sidebar',\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4>',\n 'after_title' => '</h4>'\n ));\n\n }", "function registerSidebars() {\n\t\t\tregister_sidebar(array(\n\t\t\t\t'name' => __( 'Sidebar', 'titan' ),\n\t\t\t\t'id' => 'normal_sidebar',\n\t\t\t\t'before_widget' => '<li id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t'after_widget' => '</li>',\n\t\t\t\t'before_title' => '<h2 class=\"widgettitle\">',\n\t\t\t\t'after_title' => '</h2>',\n\t\t\t));\n\t\t}", "function partoo_register_sidebars()\n\t{\n\n\t\t$sidebars = (array)apply_filters(\n\t\t\t'partoo_sidebars',\n\t\t\tarray(\n\t\t\t\t'sidebar-1' => array(\n\t\t\t\t\t'name' => '栏目页边栏',\n\t\t\t\t\t'description' => esc_html__('The primary sidebar appears alongside the content of every page, post, archive, and search template.', 'partoo'),\n\t\t\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</aside>',\n\t\t\t\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</h4>',\n\t\t\t\t),\n\t\t\t\t'sidebar-2' => array(\n\t\t\t\t\t'name' => '内容页边栏',\n\t\t\t\t\t'description' => esc_html__('The secondary sidebar will only appear when you have selected a three-column layout.', 'partoo'),\n\t\t\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</aside>',\n\t\t\t\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</h4>',\n\t\t\t\t),\n\t\t\t\t'sidebar-contact' => array(\n\t\t\t\t\t'name' => '联系页面边栏',\n\t\t\t\t\t'description' => '联系页面的边栏',\n\t\t\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</aside>',\n\t\t\t\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</h4>',\n\t\t\t\t),\n\t\t\t\t'footer-1' => array(\n\t\t\t\t\t'name' => '页脚',\n\t\t\t\t\t'description' => esc_html__('This sidebar is the first column of the footer widget area.', 'partoo'),\n\t\t\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</aside>',\n\t\t\t\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</h4>',\n\t\t\t\t),\n//\t\t\t\t'footer-2' => array(\n//\t\t\t\t\t'name' => esc_html__('Footer 2', 'partoo'),\n//\t\t\t\t\t'description' => esc_html__('This sidebar is the second column of the footer widget area.', 'partoo'),\n//\t\t\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n//\t\t\t\t\t'after_widget' => '</aside>',\n//\t\t\t\t\t'before_title' => '<h4 class=\"widget-title\">',\n//\t\t\t\t\t'after_title' => '</h4>',\n//\t\t\t\t),\n\t\t\t\t'home-area-1' => array(\n\t\t\t\t\t'name' => '首页焦点位置',\n\t\t\t\t\t'description' => '首页导航下方焦点位置',\n\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s container py-5\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<div class=\"title mb-5\"><h2>',\n\t\t\t\t\t'after_title' => '</div></h2>',\n\t\t\t\t),\n\t\t\t\t'home-fluid-area-grey' => array(\n\t\t\t\t\t'name' => '首页横幅位置',\n\t\t\t\t\t'description' => '首页中心横幅位置',\n//\t\t\t\t\t'before_widget' => '<section id=\"%1$s\" class=\"widget %2$s bg-world py-5\">',\n//\t\t\t\t\t'after_widget' => '</section>',\n//\t\t\t\t\t'before_title' => '<div class=\"title mb-5\"><h2>',\n//\t\t\t\t\t'after_title' => '</div></h2>',\n\t\t\t\t),\n\t\t\t\t'half-area-left' => array(\n\t\t\t\t\t'name' => '半块左侧',\n\t\t\t\t\t'description' => '用在两栏同时等高时',\n\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<h5 class=\"title\">',\n\t\t\t\t\t'after_title' => '</h5>',\n\t\t\t\t),\n\t\t\t\t'half-area-right' => array(\n\t\t\t\t\t'name' => '半块右侧',\n\t\t\t\t\t'description' => '用在两栏同时等高时',\n\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<h5 class=\"title\">',\n\t\t\t\t\t'after_title' => '</h5>',\n\t\t\t\t),\n\t\t\t\t'home-primary-color-area' => array(\n\t\t\t\t\t'name' => '首页横幅-2',\n\t\t\t\t\t'description' => '首页下方横幅位置',\n//\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s bg-success text-white p-5 text-center\">',\n//\t\t\t\t\t'after_widget' => '</div>',\n//\t\t\t\t\t'before_title' => '<div class=\"title mb-5\"><h2>',\n//\t\t\t\t\t'after_title' => '</div></h2>',\n\t\t\t\t),\n\t\t\t\t'home-container-left' => array(\n\t\t\t\t\t'name' => '首页下方固定宽度左侧',\n\t\t\t\t\t'description' => '首页下方固定宽度左侧',\n\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<h5 class=\"title\">',\n\t\t\t\t\t'after_title' => '</h5>',\n\t\t\t\t),\n\t\t\t\t'home-container-right' => array(\n\t\t\t\t\t'name' => '首页下方固定宽度右侧',\n\t\t\t\t\t'description' => '首页下方固定宽度右侧',\n\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<h5 class=\"title\">',\n\t\t\t\t\t'after_title' => '</h5>',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\tforeach ($sidebars as $id => $args) {\n\t\t\tregister_sidebar(array_merge(array('id' => $id), $args));\n\t\t}\n\t}", "function add_widget_sidebar()\r\n{\r\n register_sidebar(\r\n array(\r\n 'name' => 'Sidebar',\r\n 'id' => 'main-sidebar',\r\n )\r\n );\r\n register_sidebar(\r\n array(\r\n 'name' => 'Sidebar du footer',\r\n 'id' => 'footer-sidebar',\r\n )\r\n );\r\n}", "function pickleplease_sidebars_init() {\n\n // Register the New Footer Sidebar\n register_sidebar(array(\n \n // Title for the Widget Dashboard\n 'name' => 'New Sidebar',\n \n // ID for the XHTML Markup\n 'id' => 'new-sidebar',\n\n // Description for the Widget Dashboard Box\n 'description' => __('This is a right column widget area.', 'thematic'),\n\n // Do not edit these. It keeps Headers and lists consistent for Thematic\n 'before_widget' => thematic_before_widget(),\n 'after_widget' => thematic_after_widget(),\n 'before_title' => thematic_before_title(),\n 'after_title' => thematic_after_title(),\n ));\n\n\n // Unregister and sidebars you donŐt need based on its ID.\n // For a full list of Thematic sidebar IDs, look at /thematc/library/extensions/widgets-extensions.php\n //unregister_sidebar('primary-aside');\n unregister_sidebar('secondary-aside');\n unregister_sidebar('index-top');\n unregister_sidebar('index-insert');\n unregister_sidebar('index-bottom');\n unregister_sidebar('single-top');\n unregister_sidebar('single-insert');\n unregister_sidebar('single-bottom');\n unregister_sidebar('page-top');\n unregister_sidebar('page-bottom');\n }", "function register_sidebar_locations() {\n register_sidebar(\n array(\n 'id' => 'primary-sidebar',\n 'name' => __( 'Primary Sidebar' ),\n 'description' => __( 'A short description of the sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n )\n );\n /* Repeat register_sidebar() code for additional sidebars. */\n // dit zijn zones die we aanmaken.\n register_sidebar(\n array(\n 'id' => 'secondary-sidebar',\n 'name' => __( 'Secondary Sidebar' ),\n 'description' => __( 'A short description of the sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n )\n );\n}", "function medigroup_mikado_register_side_area_sidebar() {\n\n\t\tregister_sidebar(array(\n\t\t\t'name' => esc_html__('Side Area', 'medigroup'),\n\t\t\t'id' => 'sidearea', //TODO Change name of sidebar\n\t\t\t'description' => esc_html__('Side Area', 'medigroup'),\n\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget mkd-sidearea %2$s\">',\n\t\t\t'after_widget' => '</div>',\n\t\t\t'before_title' => '<h4 class=\"mkd-sidearea-widget-title\">',\n\t\t\t'after_title' => '</h4>'\n\t\t));\n\n\t}", "function gotravel_mikado_register_sidebars() {\n\n\t\tregister_sidebar(array(\n\t\t\t'name' => esc_html__('Sidebar', 'gotravel'),\n\t\t\t'id' => 'sidebar',\n\t\t\t'description' => esc_html__('Default Sidebar', 'gotravel'),\n\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t'after_widget' => '</div>',\n\t\t\t'before_title' => '<h4><span class=\"mkdf-sidearea-title\">',\n\t\t\t'after_title' => '</span></h4>'\n\t\t));\n\t}", "function dft_register_sidebars() {\n register_sidebar(array(\n 'name' => 'Blog Sidebar',\n 'id' => 'sidebar-blog',\n 'description' => 'Sidebar visível apenas na página de blog.'\n ));\n\n register_sidebar(array(\n 'name' => 'Single Post Sidebar',\n 'id' => 'sidebar-singlepost',\n 'description' => 'Sidebar visível apenas no single post.'\n ));\n}", "function mocca_main_sidebar() {\n register_sidebar(array(\n 'name' => 'Mocca Sidebar',\n 'id' => 'mocca-sidebar', \n 'description' => 'Wordpress Apper SideBar',\n 'class' => 'sidebar-wordpress',\n 'before_widget' => '<div class=\"widget-content\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n ));\n }", "public function register_sidebars() {\n register_sidebar(\n array(\n 'id' => 'blog-sidebar',\n 'name' => __( 'Blog Sidebar', 'pizzashop' ),\n 'description' => __( 'Main sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget widget-sidebar %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n )\n );\n }", "function arphabet_widgets_init() {\n\n register_sidebar(array(\n 'name' => esc_html__( 'Property side bar', 'wpestate'),\n 'id' => 'property_side_bar',\n 'description' => esc_html__( 'Property side bar widget area', 'wpestate'),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title-sidebar\">',\n 'after_title' => '</h3>',\n ));\n\n register_sidebar(array(\n 'name' => esc_html__( 'Blog side bar', 'wpestate'),\n 'id' => 'blog_side_bar',\n 'description' => esc_html__( 'Blog side bar widget area', 'wpestate'),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title-sidebar\">',\n 'after_title' => '</h3>',\n ));\n\n register_sidebar(array(\n 'name' => esc_html__( 'Blog Post side bar', 'wpestate'),\n 'id' => 'blog_post_side_bar',\n 'description' => esc_html__( 'Blog Post side bar widget area', 'wpestate'),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title-sidebar\">',\n 'after_title' => '</h3>',\n ));\n\n}", "private function mapSidebars(){\n \n /* register menu package theme*/\n $manager = app()->make(SidebarManager::class);\n $manager->register(CoreSidebar::class);\n View::composer(\n 'theme::layouts.sidebar', CoreSidebarCompose::class\n );\n }", "function chandelier_elated_register_sidebars() {\n\n register_sidebar(array(\n 'name' => 'Sidebar',\n 'id' => 'sidebar',\n 'description' => 'Default Sidebar',\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h6 class=\"eltd-widget-title\">',\n 'after_title' => '</h6>'\n ));\n\n }", "function cradle_register_sidebars() {\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar1',\n\t\t'name' => __('Sidebar', 'wpcradle'),\n\t\t'description' => __('Primary sidebar area.', 'wpcradle'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'footersidebar',\n\t\t'name' => __('Footer widgets', 'wpcradle'),\n\t\t'description' => __('Widget area for the footer', 'wpcradle'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n}", "function shape_widgets_init() {\n register_sidebar( array(\n 'name' => __( 'Primary Widget Area', 'shape' ),\n 'id' => 'sidebar-1',\n 'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</aside>',\n 'before_title' => '<h1 class=\"widget-title\">',\n 'after_title' => '</h1>',\n ) );\n \n register_sidebar( array(\n 'name' => __( 'Secondary Widget Area', 'shape' ),\n 'id' => 'sidebar-2',\n 'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</aside>',\n 'before_title' => '<h1 class=\"widget-title\">',\n 'after_title' => '</h1>',\n ) );\n}", "function rhd_register_sidebars() {\n\tregister_sidebar(array(\n\t\t'name'\t\t\t=> __( 'Sidebar', 'rhd' ),\n\t\t'id'\t\t\t=> 'sidebar',\n\t\t'description'\t=> 'Menu hard-coded. Additional widgets will show below nav menu.',\n\t\t'before_title'\t=> '<h2 class=\"widget-title\">',\n\t\t'after_title'\t=> '</h2>',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>'\n\t));\n\n\tregister_sidebar(array(\n\t\t'name'\t\t\t=> __( 'Footer Widget Area', 'rhd' ),\n\t\t'id'\t\t\t=> 'footer',\n\t\t'before_title'\t=> '<h2 class=\"widget-title\">',\n\t\t'after_title'\t=> '</h2>',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget footer-widget %2$s\">',\n\t\t'after_widget' => '</div>'\n\t));\n}", "function pamparam_register_sidebars() {\n register_sidebar(array(\n \t'id' => 'main_sidebar',\n \t'name' => 'Main sidebar',\n \t'description' => 'The main sidebar.',\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n \t'after_widget' => '</div>',\n \t'before_title' => '<h4 class=\"widgettitle\">',\n \t'after_title' => '</h4>',\n ));\n \n register_sidebar(array(\n \t'id' => 'search_sidebar',\n \t'name' => 'Search sidebar',\n \t'description' => 'The search sidebar.',\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n \t'after_widget' => '</div>',\n \t'before_title' => '<h4 class=\"widgettitle\">',\n \t'after_title' => '</h4>',\n ));\n \n register_sidebar(array(\n \t'id' => 'simple_sidebar',\n \t'name' => 'Simple sidebar',\n \t'description' => 'The simple sidebar.',\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n \t'after_widget' => '</div>',\n \t'before_title' => '<h4 class=\"widgettitle\">',\n \t'after_title' => '</h4>',\n ));\n \n register_sidebar(array(\n \t'id' => 'footer_bar',\n \t'name' => 'Footer bar',\n \t'description' => 'The footer bar.',\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n \t'after_widget' => '</div>',\n \t'before_title' => '<h4 class=\"widgettitle\">',\n \t'after_title' => '</h4>',\n ));\n \n}", "function ncc_widget_areas_init() {\n\n\tregister_sidebar( array(\n\t\t'name' => 'Dekstop Flyout (Left)',\n\t\t'id' => 'desktop_flyout_left',\n\t\t'before_widget' => '<div>',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h2>',\n\t\t'after_title' => '</h2>',\n\t));\n register_sidebar( array(\n\t\t'name' => 'Dekstop Flyout (Center)',\n\t\t'id' => 'desktop_flyout_center',\n\t\t'before_widget' => '<div>',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h2>',\n\t\t'after_title' => '</h2>',\n\t));\n register_sidebar( array(\n 'name' => 'Dekstop Flyout (Right)',\n 'id' => 'desktop_flyout_right',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>',\n ));\n register_sidebar( array(\n 'name' => 'Sidebar (Pages)',\n 'id' => 'sidebar_pages',\n 'before_widget' => '<div class=\"widget-class__blog\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>',\n ));\n register_sidebar( array(\n 'name' => 'Sidebar (Blog)',\n 'id' => 'sidebar_blog',\n 'before_widget' => '<div class=\"widget-class__blog\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>',\n ));\n}", "function doddy_child_register_sidebars() {\n register_sidebar(\n array(\n 'id' => 'cover-sidebar',\n 'name' => __( 'Widget para cover' ),\n 'description' => __( 'Widget para capa da front-page' ),\n 'class' => 'nav',\n 'before_widget' => '<div id=\"%1$s\" class=\"d-inline-flexd %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '',\n 'after_title' => '',\n ));\n}", "function add_sidebars() {\n\tregister_sidebar( array(\n\t\t'name' => 'Main Sidebar',\n\t\t'id' => 'main-sidebar',\n\t\t'before_widget' => '<li id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</li>',\n\t\t'before_title' => '<h2 class=\"sidebar-title\">',\n\t\t'after_title' => '</h2>',\n\t) );\n}", "function naked_register_sidebars() {\n register_sidebar(array( // Start a series of sidebars to register\n 'id' => 'sidebar', // Make an ID\n 'name' => 'Sidebar', // Name it\n 'description' => 'Take it on the side...', // Dumb description for the admin side\n 'before_widget' => '<div>', // What to display before each widget\n 'after_widget' => '</div>', // What to display following each widget\n 'before_title' => '<h1 class=\"title\">', // What to display before each widget's title\n 'after_title' => '</h1>', // What to display following each widget's title\n 'empty_title'=> '', // What to display in the case of no title defined for a widget\n // Copy and paste the lines above right here if you want to make another sidebar,\n // just change the values of id and name to another word/name\n ));\n}", "function bones_register_sidebars() {\n register_sidebar(array(\n \t'id' => 'sidebar1',\n \t'name' => 'Main sidebar',\n \t'description' => 'The first (primary) sidebar.',\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n \t'after_widget' => '</div>',\n \t'before_title' => '<h4 class=\"widgettitle\">',\n \t'after_title' => '</h4>',\n ));\n\n}", "public static function registerWidgetAreas()\n {\n /**\n * Footer Area\n */\n register_sidebar(array(\n 'id' => 'footer-area',\n 'name' => __('Footerarea', 'Helsingborg'),\n 'description' => __('Arean längst ner på sidan', 'Helsingborg'),\n 'before_widget' => '<div class=\"left large-6 medium-6 print-6 columns\"><div class=\"footer-content\">',\n 'after_widget' => '</div></div>',\n 'before_title' => '<h2 class=\"footer-title\">',\n 'after_title' => '</h2>'\n ));\n\n /**\n * Slider Area\n */\n register_sidebar(array(\n 'id' => 'slider-area',\n 'name' => __('Topparea', 'Helsingborg'),\n 'description' => __('Visas under huvudmenyn', 'Helsingborg'),\n 'before_widget' => '<div class=\"large-12 medium-12 small-12 print-12 columns widget\">' .\n '<div class=\"box %2$s\">',\n 'after_widget' => '</div></div>',\n 'before_title' => '<h3>',\n 'after_title' => '</h3>'\n ));\n\n /**\n * Content Area\n */\n register_sidebar(array(\n 'id' => 'content-area',\n 'name' => __('Innehållsarea', 'Helsingborg'),\n 'description' => __('Visas strax under en artikels brödtext', 'Helsingborg'),\n 'before_widget' => '<div class=\"box box-outlined widget %2$s\">',\n 'after_widget' => '</div>'\n ));\n\n /**\n * Content Area Bottom\n */\n register_sidebar(array(\n 'id' => 'content-area-bottom',\n 'name' => __('Innehåll bottenarea', 'Helsingborg'),\n 'description' => __('Visas under vänstermeny och artikel (fullbredd) ', 'Helsingborg'),\n 'before_widget' => '<div class=\"large-12 medium-12 small-12 print-12 columns widget\">' .\n '<div class=\"box box-outlined %2$s\">',\n 'after_widget' => '</div>'\n ));\n\n /**\n * Service Area\n */\n register_sidebar(array(\n 'id' => 'service-area',\n 'name' => __('Servicearea', 'Helsingborg'),\n 'description' => __('De service-länkar som visas i grått fält på startsidan', 'Helsingborg'),\n 'before_widget' => '<div class=\"widget columns large-4 medium-4 small-12 pprint-4\">',\n 'after_widget' => '</div>'\n ));\n\n /**\n * Fun Facts Area\n */\n register_sidebar(array(\n 'id' => 'fun-facts-area',\n 'name' => __('Fakta', 'Helsingborg'),\n 'description' => __('Faktarutor som visas innan footer (visar tre slumpmässiga).', 'Helsingborg'),\n 'before_widget' => '<div class=\"widget columns large-3 medium-3 print-3 left\">',\n 'after_widget' => '</div>'\n ));\n\n /**\n * Left Sidebar\n */\n register_sidebar(array(\n 'id' => 'left-sidebar',\n 'name' => __('Vänster area', 'Helsingborg'),\n 'description' => __('Visas ovanför vänstermenyn.', 'Helsingborg'),\n 'before_widget' => '<div class=\"large-12 medium-12 small-12 print-12 columns widget\">' .\n '<div class=\"box box-filled widget %2$s\">',\n 'after_widget' => '</div></div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>'\n ));\n\n /**\n * Left Sidebar Bottom\n */\n register_sidebar(array(\n 'id' => 'left-sidebar-bottom',\n 'name' => __('Vänster bottenarea', 'Helsingborg'),\n 'description' => __('Visas under vänstermenyn.', 'Helsingborg'),\n 'before_widget' => '<div class=\"large-12 medium-12 small-12 print-12 columns widget\">' .\n '<div class=\"box box-filled widget %2$s\">',\n 'after_widget' => '</div></div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>'\n ));\n\n /**\n * Right Sidebar\n */\n register_sidebar(array(\n 'id' => 'right-sidebar',\n 'name' => __('Höger area', 'Helsingborg'),\n 'description' => __('Visas i högerspalten.', 'Helsingborg'),\n 'before_widget' => '<div class=\"large-12 medium-12 small-12 print-12 columns widget\">' .\n '<div class=\"box box-filled widget %2$s\">',\n 'after_widget' => '</div></div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>'\n ));\n }", "function humcore_register_sidebars() {\n\n\tregister_sidebar( array(\n\t\t'name' => 'Deposits Directory Sidebar',\n\t\t'id' => 'deposits-directory-sidebar',\n\t\t'description' => __( 'The Deposits directory widget area', 'humcore_domain' ),\n\t\t'before_widget' => '',\n\t\t'after_widget' => '',\n\t\t'before_title' => '',\n\t\t'after_title' => '',\n\t) );\n\n\tregister_sidebar( array(\n\t\t'name' => 'Deposits Search Sidebar',\n\t\t'id' => 'deposits-search-sidebar',\n\t\t'description' => __( 'The Deposits faceted search widget area', 'humcore_domain' ),\n\t\t'before_widget' => '',\n\t\t'after_widget' => '',\n\t\t'before_title' => '<h4>',\n\t\t'after_title' => '</h4>',\n\t) );\n\n}", "function register_sidebar_init() {\n\n\t}", "function fen_register_sidebars() {\n // DOCS: http://codex.wordpress.org/Function_Reference/dynamic_sidebar\n\n register_sidebar(array(\n 'id' => 'page-sidebar', // ID must be unique\n 'name' => '[Page] Sidebar', // Name must let the user know the location of the sidebar.\n 'description' => 'Add some widgets.',\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"widgettitle\">',\n 'after_title' => '</h4>',\n ));\n\n register_sidebar(array(\n 'id' => 'single-sidebar', // ID must be unique\n 'name' => '[Single] Sidebar', // Name must let the user know the location of the sidebar.\n 'description' => 'Add some widgets.',\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"widgettitle\">',\n 'after_title' => '</h4>',\n ));\n\n register_sidebar(array(\n 'id' => 'archive-sidebar', // ID must be unique\n 'name' => '[Archive] Sidebar', // Name must let the user know the location of the sidebar.\n 'description' => 'Add some widgets.',\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"widgettitle\">',\n 'after_title' => '</h4>',\n ));\n\n}", "function register_my_sidebar(){\n \n register_sidebar( array(\n\t\t\"name\" => \"Sidebar widget\",\n \"id\" => \"sidebar1\", \n ));\n\n}", "function arphabet_widgets_init() {\n\n register_sidebar( array(\n 'name' => 'Home right sidebar',\n 'id' => 'home_right_1',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"rounded\">',\n 'after_title' => '</h2>',\n ) );\n }", "function my_register_sidebars() {\n register_sidebar(\n array(\n 'id' => 'bootom_footer_left',\n 'name' => __( 'Column_1' ),\n 'description' => __( 'A short description of the sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n )\n );\n register_sidebar(\n array(\n 'id' => 'bootom_footer_right',\n 'name' => __( 'Column_2' ),\n 'description' => __( 'A short description of the sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n )\n ); \n register_sidebar(\n array(\n 'id' => 'header-logo',\n 'name' => __( 'header-logo' ),\n 'description' => __( 'KidsCorner.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n )\n );\n register_sidebar(\n array(\n 'id' => 'contact-us',\n 'name' => __( 'contact-us' ),\n 'description' => __( 'ContactUs' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n )\n );\n register_sidebar(\n array(\n 'id' => 'contact-form',\n 'name' => __( 'contact-form' ),\n 'description' => __( 'ContactUs' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n )\n );\n register_sidebar(\n array(\n 'id' => 'address',\n 'name' => __( 'address' ),\n 'description' => __( 'address' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n )\n );\nregister_sidebar(\n array(\n 'id' => 'email',\n 'name' => __( 'email' ),\n 'description' => __( 'email' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n)\n);\nregister_sidebar(\n array(\n 'id' => 'phone',\n 'name' => __( 'phone' ),\n 'description' => __( 'phone' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n)\n);\nregister_sidebar(\n array(\n 'id' => 'contact',\n 'name' => __( 'contact' ),\n 'description' => __( 'contact' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n)\n);\nregister_sidebar(\n array(\n 'id' => 'mail',\n 'name' => __( 'mail' ),\n 'description' => __( 'mail' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n)\n);\nregister_sidebar(\n array(\n 'id' => 'road',\n 'name' => __( 'road' ),\n 'description' => __( 'road' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n)\n);\nregister_sidebar(\n array(\n 'id' => 'android',\n 'name' => __( 'android' ),\n 'description' => __( 'android' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n)\n);\n}", "function elhero_sidebar()\r\n{\r\n register_sidebar( array(\r\n 'name' => 'MainSidebar',\r\n 'id' => 'main-sidebar',\r\n 'description' => 'appear evry were',\r\n 'class' => 'main_sidebar',\r\n 'before_widget' => '<div class=\"widget-content\">',\r\n 'after_widget' => '</div>',\r\n 'before_title' => '<h3 class=\"widget-title\">',\r\n 'after_title' => '</h3>'\r\n ));\r\n}", "function bones_register_sidebars() {\n\n register_sidebar(array(\n\n \t'id' => 'sidebar1',\n\n \t'name' => __('Default Sidebar', 'bonestheme'),\n\n \t'description' => __('The first (primary) sidebar.', 'bonestheme'),\n\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\n \t'after_widget' => '</div>',\n\n \t'before_title' => '<h3 class=\"widgettitle\">',\n\n \t'after_title' => '</h3>',\n\n )); \n\n}", "function phoenix_widget_setup() {\n register_sidebar(array(\n 'name' => 'Sidebar',\n 'id' => 'sidebar-1',\n 'class' => 'custom',\n 'description' => 'Single post of blog sidebar',\n ));\n}", "function add_sidebar_area(){\n\t\t\tif(!empty($_POST['qode-add-widget'])){\n\t\t\t\t$this->sidebars = get_option($this->stored);\n\t\t\t\t$name = $this->get_name(sanitize_text_field($_POST['qode-add-widget']));\n\n\t\t\t\tif(empty($this->sidebars)){\n\t\t\t\t\t$this->sidebars = array($name);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$this->sidebars = array_merge($this->sidebars, array($name));\n\t\t\t\t}\n\n\t\t\t\tupdate_option($this->stored, $this->sidebars);\n\t\t\t\twp_redirect( admin_url('widgets.php') );\n\t\t\t\tdie();\n\t\t\t}\n\t\t}", "function bethel_register_widget_areas() {\n\tunregister_sidebar( 'header-right' ); // Remove the right header widget area\n\tgenesis_register_sidebar (array ('id' => 'header-right-top', 'name' => 'Header Right Top', 'description' => 'The upper widget to the right of the header image.'));\t\n\tgenesis_register_sidebar (array ('id' => 'footer-bottom', 'name' => 'Footer Bottom', 'description' => 'Full-width widget at the very bottom of the page.'));\t\n}", "function add_widgets() {\n\n register_sidebar( array(\n 'name' => 'Right Sidebar',\n 'id' => 'right_sidebar',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>',\n ) );\n}", "function gymfitness_widgets(){\n register_sidebar( array(\n 'name'=>'Sidebar 1',\n 'id' => 'sidebar_1',\n 'before-widget' => '<div class=\"widget\">', \n 'after-widget' => '</div>', \n 'before_title' => '<h3 class=\"text-center texto-primario\">',\n 'after_title' => '</h3>'\n\n\n ));\n register_sidebar( array(\n 'name'=>'Sidebar 2',\n 'id' => 'sidebar_2',\n 'before-widget' => '<div class=\"widget\">', \n 'after-widget' => '</div>', \n 'before_title' => '<h3 class=\"text-center texto-primario\">',\n 'after_title' => '</h3>'\n\n\n ));\n}", "function sidebar() {\n register_sidebar(\n array(\n 'name' => 'Pie de Pagina',\n 'id' => 'footer',\n 'description' => 'Zona de widget para el footer',\n 'before_title' => '<p>',\n 'after_title' => '</p>',\n 'before_widget' => '<div id=\"%1$s\" class=\"%2$s\">',\n 'after_widget' => '</div>',\n )\n );\n}", "function gymfitness_widgets(){\n\n register_sidebar(array(\n 'name' => 'Sidebar 1', \n 'id' => 'sidebar_1',\n 'before_widget' => '<div class=\"\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"widget-title\">',\n 'after_title' => '</h2>'\n ));\n register_sidebar(array(\n 'name' => 'Sidebar 2', \n 'id' => 'sidebar_2',\n 'before_widget' => '<div class=\"\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"widget-title\">',\n 'after_title' => '</h2>'\n ));\n\n}", "function arphabet_widgets_init() {\r\n register_sidebar( array(\r\n 'name' => 'Below main content',\r\n 'id' => 'home_right_1',\r\n 'before_widget' => '<div class=\"widget\">',\r\n 'after_widget' => '</div>',\r\n 'before_title' => '<h2 class=\"widget-title\">',\r\n 'after_title' => '</h2>',\r\n ) );\r\n //gallery side bar\r\n register_sidebar( array(\r\n 'name' => 'Gallery Main Page',\r\n 'id' => 'home_right_2',\r\n 'before_widget' => '<div class=\"gallery-widget\">',\r\n 'after_widget' => '</div>',\r\n 'before_title' => '<h2 class=\"gallery-widget-title\">',\r\n 'after_title' => '</h2>',\r\n ) );\r\n}", "function theme_register_sidebar(){\n\n\n register_sidebar(array(\n 'name' => 'Main Sidebar',\n 'id' => 'main_sidebar',\n 'description' => 'Sidebar Principal',\n 'before_widget' => '',\n 'after_widget' => '',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n ));\n register_sidebar(array(\n 'name' => 'Sidebar Secundario',\n 'id' => 'second_sidebar',\n 'description' => ' Side bar secundario',\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n ));\n\n}", "function my_register_sidebars() {\n register_sidebar(\n array(\n 'id' => 'main_sidebar',\n 'name' => __( 'Right Sidebar' ),\n 'description' => __( 'A short description of the sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n )\n );\n\n /* Register the 'Footers' sidebar. */\n register_sidebar(\n array(\n 'id' => 'footer1',\n 'name' => __( 'Footer 1' ),\n 'description' => __( 'A short description of the sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n )\n );\n register_sidebar(\n array(\n 'id' => 'footer2',\n 'name' => __( 'Footer 2' ),\n 'description' => __( 'A short description of the sidebar.' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n )\n );\n \n}", "function ac_widgets_init() \n{\n register_sidebar( array(\n 'name' => __( 'Main Sidebar', 'acframework' ),\n 'id' => 'sidebar',\n 'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'acframework' ),\n 'before_widget' => '<div class=\"widget\" id=\"%1$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>',\n ) );\n register_sidebar( array(\n 'name' => __('Form Container', 'acframework'),\n 'id' => 'ac-form-container',\n 'description' => __('Homepage form widget position.', 'acframework'),\n 'before_widget' => '<div id=\"%1$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"main-color\">',\n 'after_title' => '</h2>'\n ) );\n register_sidebar(array(\n 'name' => __('Footer Left', 'acframework'),\n 'id' => 'ac-footer-left',\n 'description' => __('Left footer widget position.', 'acframework'),\n 'before_widget' => '<div id=\"%1$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"main-color\">',\n 'after_title' => '</h2>'\n ));\n register_sidebar(array(\n 'name' => __('Footer Left Center', 'acframework'),\n 'id' => 'ac-footer-center-left',\n 'description' => __('Center-left footer widget position.', 'acframework'),\n 'before_widget' => '<div id=\"%1$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"main-color\">',\n 'after_title' => '</h2>'\n ));\n register_sidebar(array(\n 'name' => __('Footer Right Center', 'acframework'),\n 'id' => 'ac-footer-center-right',\n 'description' => __('Center-Right footer widget position.', 'acframework'),\n 'before_widget' => '<div id=\"%1$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"main-color\">',\n 'after_title' => '</h2>'\n ));\n register_sidebar( array(\n 'name' => __('Footer Right', 'acframework'),\n 'id' => 'ac-footer-right',\n 'description' => __('Right footer widget position.', 'acframework'),\n 'before_widget' => '<div id=\"%1$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"main-color\">',\n 'after_title' => '</h2>'\n ) ); \n}", "public function register_sidebars() {\n\n\t\t// Heading element type\n\t\t$sidebar_headings = get_theme_mod( 'sidebar_headings', 'div' );\n\t\t$sidebar_headings = $sidebar_headings ? $sidebar_headings : 'div';\n\t\t$footer_headings = get_theme_mod( 'footer_headings', 'div' );\n\t\t$footer_headings = $footer_headings ? $footer_headings : 'div';\n\n\t\t// Main Sidebar\n\t\tregister_sidebar( array (\n\t\t\t'name' => __( 'Main Sidebar', 'wpex' ),\n\t\t\t'id' => 'sidebar',\n\t\t\t'description' => __( 'Widgets in this area are used in the default sidebar. This sidebar will be used for your standard blog posts.', 'wpex' ),\n\t\t\t'before_widget' => '<div class=\"sidebar-box %2$s clr\">',\n\t\t\t'after_widget' => '</div>',\n\t\t\t'before_title' => '<'. $sidebar_headings .' class=\"widget-title\">',\n\t\t\t'after_title' => '</'. $sidebar_headings .'>',\n\t\t) );\n\n\t\t// Pages Sidebar\n\t\tif ( get_theme_mod( 'pages_custom_sidebar', true ) ) {\n\t\t\tregister_sidebar( array (\n\t\t\t\t'name' => __( 'Pages Sidebar', 'wpex' ),\n\t\t\t\t'id' => 'pages_sidebar',\n\t\t\t\t'before_widget' => '<div class=\"sidebar-box %2$s clr\">',\n\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t'before_title' => '<'. $sidebar_headings .' class=\"widget-title\">',\n\t\t\t\t'after_title' => '</'. $sidebar_headings .'>',\n\t\t\t) );\n\t\t}\n\n\t\t// Search Results Sidebar\n\t\tif ( get_theme_mod( 'search_custom_sidebar', true ) ) {\n\t\t\tregister_sidebar( array (\n\t\t\t\t'name' => __( 'Search Results Sidebar', 'wpex' ),\n\t\t\t\t'id' => 'search_sidebar',\n\t\t\t\t'before_widget' => '<div class=\"sidebar-box %2$s clr\">',\n\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t'before_title' => '<'. $sidebar_headings .' class=\"widget-title\">',\n\t\t\t\t'after_title' => '</'. $sidebar_headings .'>',\n\t\t\t) );\n\t\t}\n\n\t\t// Testimonials Sidebar\n\t\tif ( post_type_exists( 'testimonials' ) && get_theme_mod( 'testimonials_custom_sidebar', true ) ) {\n\t\t\t$obj = get_post_type_object( 'testimonials' );\n\t\t\t$post_type_name = $obj->labels->name;\n\t\t\tregister_sidebar( array (\n\t\t\t\t'name' => $post_type_name .' '. __( 'Sidebar', 'wpex' ),\n\t\t\t\t'id' => 'testimonials_sidebar',\n\t\t\t\t'before_widget' => '<div class=\"sidebar-box %2$s clr\">',\n\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t'before_title' => '<'. $sidebar_headings .' class=\"widget-title\">',\n\t\t\t\t'after_title' => '</'. $sidebar_headings .'>',\n\t\t\t) );\n\t\t}\n\n\t\t// bbPress Sidebar\n\t\tif ( WPEX_BBPRESS_ACTIVE && get_theme_mod( 'bbpress_custom_sidebar', true ) ) {\n\t\t\tregister_sidebar( array (\n\t\t\t\t'name' => __( 'bbPress Sidebar', 'wpex' ),\n\t\t\t\t'id' => 'bbpress_sidebar',\n\t\t\t\t'before_widget' => '<div class=\"sidebar-box %2$s clr\">',\n\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t'before_title' => '<'. $sidebar_headings .' class=\"widget-title\">',\n\t\t\t\t'after_title' => '</'. $sidebar_headings .'>',\n\t\t\t) );\n\t\t}\n\n\t\t// Footer Sidebars\n\t\tif ( get_theme_mod( 'footer_widgets', true ) ) {\n\n\t\t\t// Footer widget columns\n\t\t\t$footer_columns = get_theme_mod( 'footer_widgets_columns', '4' );\n\t\t\t\n\t\t\t// Footer 1\n\t\t\tregister_sidebar( array (\n\t\t\t\t'name' => __( 'Footer Column 1', 'wpex' ),\n\t\t\t\t'id' => 'footer_one',\n\t\t\t\t'before_widget' => '<div class=\"footer-widget %2$s clr\">',\n\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t'before_title' => '<'. $footer_headings .' class=\"widget-title\">',\n\t\t\t\t'after_title' => '</'. $footer_headings .'>',\n\t\t\t) );\n\t\t\t\n\t\t\t// Footer 2\n\t\t\tif ( $footer_columns > '1' ) {\n\t\t\t\tregister_sidebar( array (\n\t\t\t\t\t'name' => __( 'Footer Column 2', 'wpex' ),\n\t\t\t\t\t'id' => 'footer_two',\n\t\t\t\t\t'before_widget' => '<div class=\"footer-widget %2$s clr\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<'. $footer_headings .' class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</'. $footer_headings .'>'\n\t\t\t\t) );\n\t\t\t}\n\t\t\t\n\t\t\t// Footer 3\n\t\t\tif ( $footer_columns > '2' ) {\n\t\t\t\tregister_sidebar( array (\n\t\t\t\t\t'name' => __( 'Footer Column 3', 'wpex' ),\n\t\t\t\t\t'id' => 'footer_three',\n\t\t\t\t\t'before_widget' => '<div class=\"footer-widget %2$s clr\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<'. $footer_headings .' class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</'. $footer_headings .'>',\n\t\t\t\t) );\n\t\t\t}\n\t\t\t\n\t\t\t// Footer 4\n\t\t\tif ( $footer_columns > '3' ) {\n\t\t\t\tregister_sidebar( array (\n\t\t\t\t\t'name' => __( 'Footer Column 4', 'wpex' ),\n\t\t\t\t\t'id' => 'footer_four',\n\t\t\t\t\t'before_widget' => '<div class=\"footer-widget %2$s clr\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<'. $footer_headings .' class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</'. $footer_headings .'>',\n\t\t\t\t) );\n\t\t\t}\n\n\t\t\t// Footer 5\n\t\t\tif ( $footer_columns > '4' ) {\n\t\t\t\tregister_sidebar( array (\n\t\t\t\t\t'name' => __( 'Footer Column 5', 'wpex' ),\n\t\t\t\t\t'id' => 'footer_five',\n\t\t\t\t\t'before_widget' => '<div class=\"footer-widget %2$s clr\">',\n\t\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t\t'before_title' => '<'. $footer_headings .' class=\"widget-title\">',\n\t\t\t\t\t'after_title' => '</'. $footer_headings .'>',\n\t\t\t\t) );\n\t\t\t}\n\n\t\t}\n\n\t}", "function register_custom_sidebars(){\n\n\t\t\tif(empty($this->sidebars)) $this->sidebars = get_option($this->stored);\n\n\t\t\t$args = array(\n\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t'before_title' => '<h5>',\n\t\t\t\t'after_title' => '</h5>'\n\t\t\t);\n\n\t\t\t$args = apply_filters('bridge_qode_filter_custom_widget_args', $args);\n\n\t\t\tif(is_array($this->sidebars)){\n\t\t\t\tforeach ($this->sidebars as $sidebar){\n\t\t\t\t\t$args['name'] = $sidebar;\n\t\t\t\t\t$args['id'] = sanitize_text_field( $sidebar );\n\t\t\t\t\t$args['class'] = 'qode-custom';\n\t\t\t\t\tregister_sidebar($args);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function naked_register_sidebars() {\n\tregister_sidebar(array(\t\t\t\t// Start a series of sidebars to register\n\t\t'id' => 'sidebar', \t\t\t\t\t// Make an ID\n\t\t'name' => 'Sidebar',\t\t\t\t// Name it\n\t\t'description' => 'Take it on the side...', // Dumb description for the admin side\n\t\t'before_widget' => '<div>',\t// What to display before each widget\n\t\t'after_widget' => '</div>',\t// What to display following each widget\n\t\t'before_title' => '<h3 class=\"side-title\">',\t// What to display before each widget's title\n\t\t'after_title' => '</h3>',\t\t// What to display following each widget's title\n\t\t'empty_title'=> '',\t\t\t\t\t// What to display in the case of no title defined for a widget\n\t\t// Copy and paste the lines above right here if you want to make another sidebar, \n\t\t// just change the values of id and name to another word/name\n\t));\n}", "function theme_widgets_init() {\n register_sidebar(array(\n 'name' => __('Main Widget Area', 'theme'),\n 'id' => 'sidebar-1',\n 'description' => __('Appears in the footer section of the site.', 'law-firm'),\n 'before_widget' => '',\n 'after_widget' => '',\n 'before_title' => '',\n 'after_title' => '<',\n ));\n\n register_sidebar(array(\n 'name' => __('Secondary Widget Area', 'theme'),\n 'id' => 'sidebar-2',\n 'description' => __('Appears on posts and pages in the sidebar.', 'law-firm'),\n 'before_widget' => '',\n 'after_widget' => '',\n 'before_title' => '',\n 'after_title' => '',\n ));\n}", "function joints_register_sidebars() {\n\tregister_sidebar(array(\n\t\t'id' => 'postleft',\n\t\t'name' => __('Sidebar - Post - Left', 'jointswp'),\n\t\t'description' => __('The left sidebar for posts on desktop.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'postright',\n\t\t'name' => __('Sidebar - Post - Right', 'jointswp'),\n\t\t'description' => __('The right sidebar for posts on desktop.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n\tregister_sidebar(array(\n\t\t'id' => 'pageright',\n\t\t'name' => __('Sidebar - Page - Right', 'jointswp'),\n\t\t'description' => __('The first (primary) sidebar on pages.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'alertmessage',\n\t\t'name' => __('Widget - Alert Message', 'jointswp'),\n\t\t'description' => __('If populated, will display an alert on homepage, pages, posts.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'offcanvas',\n\t\t'name' => __('Offcanvas', 'jointswp'),\n\t\t'description' => __('The offcanvas sidebar.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\n\tregister_sidebar(array(\n\t\t'id' => 'footerleft',\n\t\t'name' => __('Widget - Footer Left', 'jointswp'),\n\t\t'description' => __('Populates top-left of footer.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'footerright',\n\t\t'name' => __('Widget - Footer Right', 'jointswp'),\n\t\t'description' => __('Populates top-right of footer.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'featuredhomepagearea',\n\t\t'name' => __('Widget - Featured Homepage Area', 'jointswp'),\n\t\t'description' => __('Populates optional Featured Homepage Area.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'emailhomepagearea',\n\t\t'name' => __('Widget - Email Homepage Area', 'jointswp'),\n\t\t'description' => __('Populates optional Email Homepage Area.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'beliefshomepagearea',\n\t\t'name' => __('Widget - Beliefs Homepage Area', 'jointswp'),\n\t\t'description' => __('Populates optional Beliefs Homepage Area.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\n\t/*\n\tto add more sidebars or widgetized areas, just copy\n\tand edit the above sidebar code. In order to call\n\tyour new sidebar just use the following code:\n\n\tJust change the name to whatever your new\n\tsidebar's id is, for example:\n\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar2',\n\t\t'name' => __('Sidebar 2', 'jointswp'),\n\t\t'description' => __('The second (secondary) sidebar.', 'jointswp'),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tTo call the sidebar in your template, you can just copy\n\tthe sidebar.php file and rename it to your sidebar's name.\n\tSo using the above example, it would be:\n\tsidebar-sidebar2.php\n\n\t*/\n}", "function sbc_widgets_init() {\n\n register_sidebar( array(\n 'name' => 'Left Column',\n 'id' => 'left-col',\n 'before_widget' => '<div class=\"left-col widget\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"head widget-head\">',\n 'after_title' => '</h4>',\n ) );\n\n register_sidebar( array(\n 'name' => 'Center Column',\n 'id' => 'center-col',\n 'before_widget' => '<div class=\"center-col widget\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"head widget-head\">',\n 'after_title' => '</h4>',\n ) );\n\n register_sidebar( array(\n 'name' => 'Right Column',\n 'id' => 'right-col',\n 'before_widget' => '<div class=\"right-col widget\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"head widget-head\">',\n 'after_title' => '</h4>',\n ) );\n\n register_sidebar( array(\n 'name' => 'Service Sidebar',\n 'id' => 'service-sidebar',\n 'before_widget' => '<div class=\"sidebar service-sidebar\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"head service-widget-head\">',\n 'after_title' => '</h4>',\n ) );\n\n}", "function massively_register_sidebar() {\n\t\t$args = array(\n\n\t\t\t'id'\t\t\t=> 'footer_sidebar',\n\t\t\t'name'\t\t\t=> __( 'Footer Sidebar', 'massively' ),\n\t\t\t'description'\t=> __( 'Set your footer widgets from widgets area.', 'massively' ),\n\t\t\t'before_widget'\t=> '<section>',\n\t\t\t'after_section'\t=> '</section>'\n\t\t);\n\t\tregister_sidebar($args);\n\t}", "function happy_register_sidebars() {\n\n\tregister_sidebar( array( 'name' => __( 'Feature', hybrid_get_textdomain() ), 'id' => 'feature', 'description' => __( 'Displayed in the feature area.', hybrid_get_textdomain() ), 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s widget-%2$s\"><div class=\"widget-inside\">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class=\"widget-title\">', 'after_title' => '</h3>' ) );\n\n}", "function bp_widgets_init() {\n // register_sidebar( array(\n // 'name' => __( 'Footer Widget Area', 'holstein' ),\n // 'id' => 'footer-widget',\n // 'description' => __( 'Appears on the bottom of every page.', 'holstein' ),\n // 'before_widget' => '<div class=\"col\">',\n // 'after_widget' => '</div>',\n // 'before_title' => '<h2>',\n // 'after_title' => '</h2>'\n // ) );\n\n register_sidebar( array(\n 'name' => __( 'Right Sidebar Widget Area', 'bp' ),\n 'id' => 'right-sidebar',\n 'description' => __( 'Appears on the right side of the blog index.', 'bp' ),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"widget-title\">',\n 'after_title' => '</h4>'\n ) );\n\n // register_sidebar( array(\n // 'name' => __( 'Left Sidebar Widget Area', 'holstein' ),\n // 'id' => 'left-sidebar',\n // 'description' => __( 'Appears on the left side of pages', 'holstein' ),\n // 'before_widget' => '<div id=\"%1$s\" class=\"area %2$s\">',\n // 'after_widget' => '</div>',\n // 'before_title' => '<h3>',\n // 'after_title' => '</h3>'\n // ) ); \n}", "function ourWidgetsInit(){\n\n register_sidebar(array(\n 'name' => 'Sidebar',\n 'id' => 'sidebar1',\n 'before_widget' => '<div class=\"widget-item\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"my-special-class\">',\n 'after_title' => '</h4>'\n\n ));\n}", "function mm_widgets_init() {\n register_sidebar( array(\n 'name' => esc_html__( 'Footer Sidebar 1', 'monza' ),\n 'id' => 'footer-sidebar-1',\n 'description' => esc_html__( 'Left footer widget area', 'monza' ),\n 'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</aside>',\n 'before_title' => '<h2 class=\"widget-title\">',\n 'after_title' => '</h2>',\n ) );\n register_sidebar( array(\n 'name' => esc_html__( 'Footer Sidebar 2', 'monza' ),\n 'id' => 'footer-sidebar-2',\n 'description' => esc_html__( 'Middle footer widget area', 'monza' ),\n 'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</aside>',\n 'before_title' => '<h2 class=\"widget-title\">',\n 'after_title' => '</h2>',\n ) );\n register_sidebar( array(\n 'name' => esc_html__( 'Footer Sidebar 3', 'monza' ),\n 'id' => 'footer-sidebar-3',\n 'description' => esc_html__( 'Right footer widget area', 'monza' ),\n 'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</aside>',\n 'before_title' => '<h2 class=\"widget-title\">',\n 'after_title' => '</h2>',\n ) );\n}", "function my_register_sidebars() {\r\n register_sidebar(\r\n array(\r\n 'id' => 'primary',\r\n 'name' => __( 'Primary Sidebar' ),\r\n 'description' => __( 'A short list of google searches.' ),\r\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\r\n 'after_widget' => '</div>',\r\n 'before_title' => '<h3 class=\"widget-title\">',\r\n 'after_title' => '</h3>',\r\n )\r\n );\r\n /* Repeat register_sidebar() code for additional sidebars. */\r\n}", "function morganceken_register_sidebars() {\r\n\tregister_sidebar( $args );\r\n}", "function iiess_widgets(){\n register_sidebar(array(\n 'name' => 'Sidebar Eventos',\n 'id' => 'sidebar',\n 'before_widget' => '<div class=\"widget\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"text-center texto-primario\">',\n 'after_title' => '</h3>'\n ));\n}", "function mgc_widgets_init() {\n\n // Area 1, located in the sidebar. Empty by default.\n register_sidebar( array(\n 'name' => __( 'First Sidebar Widget Area', 'mgc' ),\n 'id' => 'first-sidebar-widget-area',\n 'description' => __( 'The first sidebar widget area', 'mgc' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h2 class=\"widget-title title\">',\n 'after_title' => '</h2>',\n ) );\n\n // Area 2, located in the page. Empty by default.\n register_sidebar( array(\n 'name' => __( 'Second Sidebar Widget Area', 'mgc' ),\n 'id' => 'second-sidebar-widget-area',\n 'description' => __( 'The second sidebar widget area', 'mgc' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h2 class=\"widget-title title\">',\n 'after_title' => '</h2>',\n ) );\n\n // Area 3, located in the page. Empty by default.\n register_sidebar( array(\n 'name' => __( 'First Page Widget Area', 'mgc' ),\n 'id' => 'first-page-widget-area',\n 'description' => __( 'The first page widget area', 'mgc' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title title\">',\n 'after_title' => '</h3>',\n ) );\n\n // Area 4, located in the page. Empty by default.\n register_sidebar( array(\n 'name' => __( 'Second Page Widget Area', 'mgc' ),\n 'id' => 'second-page-widget-area',\n 'description' => __( 'The second page widget area', 'mgc' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title title\">',\n 'after_title' => '</h3>',\n ) );\n\n // Area 5, located in the footer. Empty by default.\n register_sidebar( array(\n 'name' => __( 'First Footer Widget Area', 'mgc' ),\n 'id' => 'first-footer-widget-area',\n 'description' => __( 'The first footer widget area', 'mgc' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title title\">',\n 'after_title' => '</h3>',\n ) );\n\n // Area 6, located in the footer. Empty by default.\n register_sidebar( array(\n 'name' => __( 'Second Footer Widget Area', 'mgc' ),\n 'id' => 'second-footer-widget-area',\n 'description' => __( 'The second footer widget area', 'mgc' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title title\">',\n 'after_title' => '</h3>',\n ) );\n\n // Area 7, located in the footer. Empty by default.\n register_sidebar( array(\n 'name' => __( 'Third Footer Widget Area', 'mgc' ),\n 'id' => 'third-footer-widget-area',\n 'description' => __( 'The third footer widget area', 'mgc' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget widget-container %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h3 class=\"widget-title title\">',\n 'after_title' => '</h3>',\n ) );\n\n}", "function __construct(){\n\t\t\t$this->stored\t= 'qode_sidebars';\n\t\t\t$this->title = esc_html__('Custom Widget Area','bridge');\n\n\t\t\tadd_action('load-widgets.php', array(&$this, 'load_assets') , 5 );\n\t\t\tadd_action('widgets_init', array(&$this, 'register_custom_sidebars') , 1000 );\n\t\t\tadd_action('wp_ajax_qode_ajax_delete_custom_sidebar', array(&$this, 'delete_sidebar_area') , 1000 );\n\n\t\t\t// Migrate old custom sidebars to new\n\t\t\tadd_action( 'after_setup_theme', array( $this, 'migrate_custom_sidebars' ) );\n\t\t}", "function wpdocs_theme_slug_widgets_init() {\nregister_sidebar( array(\n'name' => __( 'Main Sidebar' ),\n'id' => 'sidebar_1',\n'description' => __( 'aprafiq is a man' ),\n'before_widget' => '<aside id=\"main_sidebar\">',\n'after_widget' => '</aside>',\n'before_title' => '<h2>',\n'after_title' => '</h2>',\n) );\n}", "public function register_sidebars() {\n\t\t\tforeach ( static::$sidebars as $sidebar ) {\n\t\t\t\tregister_sidebar( $sidebar );\n\t\t\t}\n\t\t}", "function inxboilerplate_widgets_init() {\n register_sidebar( array(\n \"name\" => __( \"Sidebar\", \"inxboilerplate\" ),\n \"id\" => \"r_sidebar\",\n \"before_widget\" => '<section id=\"%1$s\" class=\"widget %2$s\">',\n \"after_widget\" => \"</section>\",\n \"before_title\" => '<h3 class=\"wigtitle\">',\n \"after_title\" => \"</h3>\",\n ) );\n}", "public static function register()\n {\n register_sidebar( array(\n 'name' => 'Widget Area 1',\n 'id' => 'widget_1',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>',\n ) );\n }", "function bones_register_sidebars() {\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar1',\n\t\t'name' => __( 'General Sidebar', 'bonestheme' ),\n\t\t'description' => __( 'The fallback sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar2',\n\t\t'name' => __( 'Lessons Sidebar', 'bonestheme' ),\n\t\t'description' => __( 'The courses, lessons and topics sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar3',\n\t\t'name' => __( 'Themepage Sidebar', 'bonestheme' ),\n\t\t'description' => __( 'The themepage sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar4',\n\t\t'name' => __( 'Events Sidebar', 'bonestheme' ),\n\t\t'description' => __( 'The themepage sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n\n\t/*\n\tto add more sidebars or widgetized areas, just copy\n\tand edit the above sidebar code. In order to call\n\tyour new sidebar just use the following code:\n\n\tJust change the name to whatever your new\n\tsidebar's id is, for example:\n\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar2',\n\t\t'name' => __( 'Sidebar 2', 'bonestheme' ),\n\t\t'description' => __( 'The second (secondary) sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tTo call the sidebar in your template, you can just copy\n\tthe sidebar.php file and rename it to your sidebar's name.\n\tSo using the above example, it would be:\n\tsidebar-sidebar2.php\n\n\t*/\n}", "function add_widget_Support() {\n register_sidebar( array(\n 'name' => 'Sidebar',\n 'id' => 'sidebar',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h2>',\n 'after_title' => '</h2>',\n ) );\n}", "function simple_boostrap_register_sidebars() {\n register_sidebar(array(\n 'id' => 'sidebar-right',\n 'name' => __('Right Sidebar', 'simple-bootstrap'),\n 'description' => __('Used on every page.', 'simple-bootstrap'),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"widgettitle\">',\n 'after_title' => '</h4>',\n ));\n register_sidebar(array(\n \t'id' => 'sidebar-left',\n \t'name' => __('Left Sidebar', 'simple-bootstrap'),\n \t'description' => __('Used on every page.', 'simple-bootstrap'),\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n \t'after_widget' => '</div>',\n \t'before_title' => '<h4 class=\"widgettitle\">',\n \t'after_title' => '</h4>',\n ));\n \n register_sidebar(array(\n 'id' => 'footer1',\n 'name' => __('Footer', 'simple-bootstrap'),\n 'before_widget' => '<div id=\"%1$s\" class=\"widget col-sm %2$s\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h4 class=\"widgettitle\">',\n 'after_title' => '</h4>',\n ));\n \n}", "function siteorigin_unwind_child_widgets_init() {\n\n\n\tregister_sidebar( array(\n\t\t'name' => esc_html__( 'Sidebar', 'siteorigin-unwind' ),\n\t\t'id' => 'main-sidebar',\n\t\t'description' => esc_html__( 'Visible on posts and pages that use the Default or Full Width, With Sidebar layout.', 'siteorigin-unwind' ),\n\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</aside>',\n\t\t'before_title' => '<h2 class=\"widget-title\">',\n\t\t'after_title' => '</h2>',\n\t) );\n\n\tregister_sidebar( array(\n\t\t'name' => esc_html__( 'Footer', 'siteorigin-unwind' ),\n\t\t'id' => 'footer-sidebar',\n\t\t'description' => esc_html__( 'A column will be automatically assigned to each widget inserted', 'siteorigin-unwind' ),\n\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</aside>',\n\t\t'before_title' => '<h2 class=\"widget-title\">',\n\t\t'after_title' => '</h2>',\n\t) );\n\n\tif ( function_exists( 'is_woocommerce' ) ) {\n\t\tregister_sidebar( array(\n\t\t\t'name' \t\t\t=> esc_html__( 'Shop', 'siteorigin-unwind' ),\n\t\t\t'id' \t\t\t=> 'shop-sidebar',\n\t\t\t'description' \t=> esc_html__( 'Displays on WooCommerce pages.', 'siteorigin-unwind' ),\n\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t'after_widget' \t=> '</aside>',\n\t\t\t'before_title' \t=> '<h2 class=\"widget-title\">',\n\t\t\t'after_title' \t=> '</h2>',\n\t\t) );\n\t}\n\n\tregister_sidebar( array(\n\t\t'name' => esc_html__( 'Masthead', 'siteorigin-unwind' ),\n\t\t'id' => 'masthead-sidebar',\n\t\t'description' => esc_html__( 'Replaces the logo and description.', 'siteorigin-unwind' ),\n\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</aside>',\n\t\t'before_title' => '<h2 class=\"widget-title\">',\n\t\t'after_title' => '</h2>',\n\t) );\n}", "function bones_register_sidebars() {\r\n register_sidebar(array(\r\n \t'id' => 'sidebar1',\r\n \t'name' => 'Page Sidebar',\r\n \t'description' => 'The first (primary) sidebar.',\r\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\r\n \t'after_widget' => '</div>',\r\n \t'before_title' => '<h3 class=\"widget-title\">',\r\n \t'after_title' => '</h3>',\r\n ));\r\n\tregister_sidebar(array(\r\n\t\t'id' => 'sidebar2',\r\n\t\t'name' => 'Blog Sidebar',\r\n\t\t'description' => 'Secondary sidebar for pages.',\r\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\r\n\t\t'after_widget' => '</div>',\r\n\t\t'before_title' => '<h3 class=\"widget-title\">',\r\n\t\t'after_title' => '</h3>',\r\n\t));\r\n\tregister_sidebar(array(\r\n\t\t'id' => 'sidebar3',\r\n\t\t'name' => 'Footer Columns',\r\n\t\t'description' => 'Footer three columns.',\r\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s fourcol\">',\r\n\t\t'after_widget' => '</div>',\r\n\t\t'before_title' => '<h3 class=\"widgettitle\">',\r\n\t\t'after_title' => '</h3>',\r\n\t));\r\n \r\n /* \r\n to add more sidebars or widgetized areas, just copy\r\n and edit the above sidebar code. In order to call \r\n your new sidebar just use the following code:\r\n \r\n Just change the name to whatever your new\r\n sidebar's id is, for example:\r\n \r\n register_sidebar(array(\r\n \t'id' => 'sidebar2',\r\n \t'name' => 'Sidebar 2',\r\n \t'description' => 'The second (secondary) sidebar.',\r\n \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\r\n \t'after_widget' => '</div>',\r\n \t'before_title' => '<h4 class=\"widgettitle\">',\r\n \t'after_title' => '</h4>',\r\n ));\r\n \r\n To call the sidebar in your template, you can just copy\r\n the sidebar.php file and rename it to your sidebar's name.\r\n So using the above example, it would be:\r\n sidebar-sidebar2.php\r\n \r\n */\r\n}", "function anipics_add_widget_area(){\n register_sidebar(array(\n 'id' => 'projet',\n 'name' => 'Photo gallery',\n 'description' => ' Apparait au centre',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h1>',\n 'after_title' => '</h1>'\n ));\n register_sidebar(array(\n 'id' => 'footer',\n 'name' => 'footer',\n 'description' => ' Apparait bas',\n 'before_widget' => '<div class=\"col s4\" style=\"margin: 0 18em 0 3em \" >',\n 'after_widget' => '</div>',\n 'before_title' => '<h1>',\n 'after_title' => '</h1>'\n ));\n register_sidebar(array(\n 'id' => 'footer2',\n 'name' => 'footer2',\n 'description' => ' Apparait bas',\n 'before_widget' => '<div class=\"col s6\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h1>',\n 'after_title' => '</h1>'\n ));\n}", "function wpdocs_theme_slug_widgets_init() {\n register_sidebar( array(\n 'name' => __( 'Main Sidebar', 'webino' ),\n 'id' => 'sidebar-1',\n 'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'webino' ),\n 'before_widget' => '<li id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</li>',\n 'before_title' => '<h2 class=\"widgettitle\">',\n 'after_title' => '</h2>',\n ) );\n}", "public function register_sidebars() {\n\n\t\t//Init vars\n\t\t$sidebar_defaults = array(\n\t\t\t'id' => '',\n\t\t\t'name' => '',\n\t\t\t'description' => '',\n\t\t\t'class' => '',\n\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t'after_widget' => '</aside>',\n\t\t\t'before_title' => '<h2 class=\"widgettitle\">',\n\t\t\t'after_title' => '</h2>'\n\t\t);\n\n\t\tif( isset($this->theme_sidebar_settings) && is_array($this->theme_sidebar_settings) ) {\n\n\t\t\t//Loop each sidebar setting from config class and call WP register_sidebar() function\n\t\t\tforeach( $this->theme_sidebar_settings as $sidebar_ID => $sidebar_args ) {\n\n\t\t\t\t$sidebar_args = wp_parse_args( $sidebar_args, $sidebar_defaults );\n\n\t\t\t\textract($sidebar_args);\n\n\t\t\t\tif( !empty($id) && !empty($name) ) {\n\n\t\t\t\t\tregister_sidebar(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'id' => $id,\n\t\t\t\t\t\t\t'name' => $name,\n\t\t\t\t\t\t\t'description' => $description,\n\t\t\t\t\t\t\t'class' => $class,\n\t\t\t\t\t\t\t'before_widget' => $before_widget,\n\t\t\t\t\t\t\t'after_widget' => $after_widget,\n\t\t\t\t\t\t\t'before_title' => $before_title,\n\t\t\t\t\t\t\t'after_title' => $after_title\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}", "function Task_widgets_init() {\n \n // The SideBar\n register_sidebar( array(\n 'name' => esc_html__( 'SideBar', 'Task' ),\n 'id' => 'sidebar-1',\n 'description' => esc_html__( 'Add widgets here.', 'Task' ),\n 'before_widget' => '',\n 'after_widget' => '',\n ) );\n \n // The Banner Above The Navigation Bar In The Header\n register_sidebar( array(\n 'name' => esc_html__( 'Banner Above Navigation Bar', 'Task' ),\n 'id' => 'sidebar-2',\n 'description' => esc_html__( 'Add widgets here.', 'Task' ),\n 'before_widget' => '',\n 'after_widget' => '',\n ) );\n \n // The Square Banner Next To The 3 Main Posts\n register_sidebar( array(\n 'name' => esc_html__( 'The Square Banner Next To The 3 Main Posts', 'Task' ),\n 'id' => 'sidebar-3',\n 'description' => esc_html__( 'Add widgets here.', 'Task' ),\n 'before_widget' => '',\n 'after_widget' => '',\n ) );\n \n // The Side Banner In The Left\n register_sidebar( array(\n 'name' => esc_html__( 'The Side Banner In The Left', 'Task' ),\n 'id' => 'sidebar-4',\n 'description' => esc_html__( 'Add widgets here.', 'Task' ),\n 'before_widget' => '',\n 'after_widget' => '',\n ) );\n \n }", "function register_widget_areas() {\n\t\tregister_sidebar( array(\n\t 'name' => __('Header: Hours of Operation and Contact'),\n\t 'id' => 'Header-Hours-of-operation-and-contact',\n\t 'description' => __('The logo section of the footer'),\n\t 'before_widget' => '<div id=\"%1$s\" class=\"widget-container %2$s\">',\n\t 'after_widget' => '</div>',\n\t // 'before_title' => '<h3 class=\"widget-title\">',\n\t // 'after_title' => '</h3>',\n\t ) );\n\n\t register_sidebar( array(\n\t 'name' => __('Testimonials'),\n\t 'id' => 'testimonials',\n\t 'description' => __('Testimonials section on homepage'),\n\t 'before_widget' => '<div id=\"%1$s\" class=\"widget-container %2$s\">',\n\t 'after_widget' => '</div>',\n\t // 'before_title' => '<h3 class=\"widget-title\">',\n\t // 'after_title' => '</h3>',\n\t ) );\n\n \tregister_sidebar( array(\n\t 'name' => __('Footer Logo and Contact Info'),\n\t 'id' => 'footer-logo-and-contact-info',\n\t 'description' => __('The logo section of the footer'),\n\t 'before_widget' => '<div id=\"%1$s\" class=\"widget-container %2$s\">',\n\t 'after_widget' => '</div>',\n\t 'before_title' => '<h3 class=\"widget-title\">',\n\t 'after_title' => '</h3>',\n\t ) );\n\n\t register_sidebar( array(\n\t 'name' => __('Footer Form'),\n\t 'id' => 'footer-form',\n\t 'description' => __('The form section of the footer'),\n\t 'before_widget' => '<div id=\"%1$s\" class=\"widget-container %2$s\">',\n\t 'after_widget' => '</div>',\n\t 'before_title' => '<h3 class=\"widget-title\">',\n\t 'after_title' => '</h3>',\n\t ) );\n\n\t register_sidebar( array(\n\t 'name' => __('Footer Map'),\n\t 'id' => 'footer-map',\n\t 'description' => __('The map section of the footer'),\n\t 'before_widget' => '<div id=\"%1$s\" class=\"widget-container %2$s\">',\n\t 'after_widget' => '</div>',\n\t 'before_title' => '<h3 class=\"widget-title\">',\n\t 'after_title' => '</h3>',\n\t ));\n\t \n\t register_sidebar( array(\n\t 'name' => __('Popup Logo and Contact Info'),\n\t 'id' => 'popup-logo-and-contact-info',\n\t 'description' => __('The logo section of the popup'),\n\t 'before_widget' => '<div id=\"%1$s\" class=\"widget-container %2$s\">',\n\t 'after_widget' => '</div>',\n\t 'before_title' => '<h3 class=\"widget-title\">',\n\t 'after_title' => '</h3>',\n\t ) );\n\t \n\t register_sidebar( array(\n\t 'name' => __('Popup Form'),\n\t 'id' => 'popup-form',\n\t 'description' => __('The form section of the popup'),\n\t 'before_widget' => '<div id=\"%1$s\" class=\"widget-container %2$s\">',\n\t 'after_widget' => '</div>',\n\t 'before_title' => '<h3 class=\"widget-title\">',\n\t 'after_title' => '</h3>',\n\t ));\n\t\n\t}", "function travomath_sidebar_init()\n{\n register_sidebar(\n array(\n 'name' => esc_html__('TravOMath News Letter', 'travomath'),\n 'id' => 'travomath-newsletter-widget',\n 'description' => 'Widgets For News Letter',\n 'before_widget' => '<section id=\"%1$s\" class=\"travomath-newsletter-widget %2$s\">',\n 'after_widget' => '</section>',\n 'before_title' => '<h2 class=\"travomath-newsletter-widget-title\">',\n 'after_title' => '</h2>',\n )\n\t);\n\t\n\t\n register_sidebar(\n array(\n 'name' => esc_html__('TravOMath Travel By Location', 'travomath'),\n 'id' => 'travomath-travelbylocation-widget',\n 'description' => 'Widgets For Travel By Location',\n 'before_widget' => '<section id=\"%1$s\" class=\"travomath-travelbylocation-widget %2$s\">',\n 'after_widget' => '</section>',\n 'before_title' => '<h2 class=\"link-title\">',\n 'after_title' => '</h2>',\n )\n\t);\n\t\n register_sidebar(\n array(\n 'name' => esc_html__('TravOMath Tips & Tricks', 'travomath'),\n 'id' => 'travomath-tipsandtricks-widget',\n 'description' => 'Widgets For Tips & Tricks',\n 'before_widget' => '<section id=\"%1$s\" class=\"travomath-tipsandtricks-widget %2$s\">',\n 'after_widget' => '</section>',\n 'before_title' => '<h2 class=\"link-title\">',\n 'after_title' => '</h2>',\n )\n\t);\n\t\n register_sidebar(\n array(\n 'name' => esc_html__('TravOMath Travel Shops', 'travomath'),\n 'id' => 'travomath-travelshops-widget',\n 'description' => 'Widgets For Tips & Tricks',\n 'before_widget' => '<section id=\"%1$s\" class=\"travomath-travelshops-widget %2$s\">',\n 'after_widget' => '</section>',\n 'before_title' => '<h2 class=\"link-title\">',\n 'after_title' => '</h2>',\n )\n\t);\n\t\n register_sidebar(\n array(\n 'name' => esc_html__('TravOMath Videos', 'travomath'),\n 'id' => 'travomath-videos-widget',\n 'description' => 'Widgets For Tips & Tricks',\n 'before_widget' => '<section id=\"%1$s\" class=\"travomath-videos-widget %2$s\">',\n 'after_widget' => '</section>',\n 'before_title' => '<h2 class=\"link-title\">',\n 'after_title' => '</h2>',\n )\n );\n}", "function wowaries_widgets_init() {\n /* WowAriesProject generated Register Sidebars Begin */\n\n /* WowAriesProject generated Register Sidebars End */\n}", "function ourWidgetsInit(){\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Sidebar',\n\t\t\t'id' => 'sidebar1',\n\t\t\t'before_widget' => '<div class=\"widget-item\">',\n\t\t\t'after_widget' => '</div>',\n\t\t\t'before_title' => '<h4 class=\"my-special-class\">',\n\t\t\t'after_title' => '</h4>'\n\t\t));\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Footer Area 1',\n\t\t\t'id' => 'footer1'\n\t\t));\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Footer Area 2',\n\t\t\t'id' => 'footer2'\n\t\t));\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Footer Area 3',\n\t\t\t'id' => 'footer3'\n\t\t));\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Footer Area 4',\n\t\t\t'id' => 'footer4'\n\t\t));\n\t}", "function bones_register_sidebars() {\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar1',\n\t\t'name' => __( 'Sidebar 1', 'bonestheme' ),\n\t\t'description' => __( 'The first (primary) sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'works',\n\t\t'name' => __( 'Works', 'bonestheme' ),\n\t\t'description' => __( 'Works page sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n register_sidebar(array(\n\t\t'id' => 'contact',\n\t\t'name' => __( 'Contact', 'bonestheme' ),\n\t\t'description' => __( 'Contact page sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tregister_sidebar(array(\n\t\t'id' => 'about',\n\t\t'name' => __( 'About', 'bonestheme' ),\n\t\t'description' => __( 'About page sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\tregister_sidebar(array(\t\t'id' => 'home',\t\t'name' => __( 'Home', 'bonestheme' ),\t\t'description' => __( 'Home page sidebar.', 'bonestheme' ),\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\t\t'after_widget' => '</div>',\t\t'before_title' => '<h4 class=\"widgettitle\">',\t\t'after_title' => '</h4>',\t));\n\n\t/*\n\tto add more sidebars or widgetized areas, just copy\n\tand edit the above sidebar code. In order to call\n\tyour new sidebar just use the following code:\n\n\tJust change the name to whatever your new\n\tsidebar's id is, for example:\n\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar2',\n\t\t'name' => __( 'Sidebar 2', 'bonestheme' ),\n\t\t'description' => __( 'The second (secondary) sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\n\tTo call the sidebar in your template, you can just copy\n\tthe sidebar.php file and rename it to your sidebar's name.\n\tSo using the above example, it would be:\n\tsidebar-sidebar2.php\n\n\t*/\n}", "function caldol_register_nav_sidebar(){\n\n\tregister_sidebar(array(\n\n\t\t\t'name' => 'CALDOL Nav Sidebar',\n\n\t\t\t'id' => 'caldol-nav-sidebar',\n\n\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\n\t\t\t'after_widget' => '</div>',\n\n\t\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\n\t\t\t'after_title' => '</h4>',\n\n\t));\n\n}", "function bones_register_sidebars() {\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar-blog',\n\t\t'name' => __( 'Sidebar —Blog', 'bonestheme' ),\n\t\t'description' => __( 'The blog sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n\tregister_sidebar(array(\n\t\t'id' => 'sidebar-contact',\n\t\t'name' => __( 'Sidebar —Contact', 'bonestheme' ),\n\t\t'description' => __( 'The Contact page sidebar.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n\tregister_sidebar(array(\n\t\t'id' => 'footer1',\n\t\t'name' => __( 'Footer —Company', 'bonestheme' ),\n\t\t'description' => __( 'The company information in the footer.', 'bonestheme' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widgettitle\">',\n\t\t'after_title' => '</h4>',\n\t));\n\t\n}", "function register_widget_areas()\n {\n register_sidebar(array(\n 'name' => 'Latest Tweets',\n 'id' => 'latest_tweets',\n 'description' => 'latest tweets',\n 'before_widget' => '<section class=\"widget-area latest-tweets\">',\n 'after_widget' => '</section>',\n 'before_title' => '<h4>',\n 'after_title' => '</h4>',\n ));\n }", "function arphabet_widgets_init() {\n\n\tregister_sidebar( array(\n\t\t'name' => 'Page Sidebar',\n\t\t'id' => 'page-sidebar',\n\t\t'before_widget' => '<div>',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h2>',\n\t\t'after_title' => '</h2>',\n\t) );\n\n}", "function arphabet_widgets_init() {\r\n\r\n\tregister_sidebar( array(\r\n\t\t'name' => 'left sidebar',\r\n\t\t'id' => 'left_1',\r\n\t\t'before_widget' => '<div id=\"genres_box\">',\r\n\t\t'after_widget' => '</div>',\r\n\t\t'before_title' => '',\r\n\t\t'after_title' => '',\r\n\t) );\r\n\r\n}", "function kvell_edge_register_header_vertical_widget_areas() {\n\t\tregister_sidebar(\n\t\t\tarray(\n\t\t\t\t'id' => 'edgtf-vertical-area',\n\t\t\t\t'name' => esc_html__( 'Header Vertical Widget Area', 'kvell' ),\n\t\t\t\t'description' => esc_html__( 'Widgets added here will appear on the bottom of header vertical menu', 'kvell' ),\n\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s edgtf-vertical-area-widget\">',\n\t\t\t\t'after_widget' => '</div>',\n\t\t\t\t'before_title' => '<h5 class=\"edgtf-widget-title\">',\n\t\t\t\t'after_title' => '</h5>'\n\t\t\t)\n\t\t);\n\t}", "public static function init(){\n\t $sidebars = sidebar_generator::get_sidebars();\n\t \n\t if(is_array($sidebars)){\n\t\t\tforeach($sidebars as $sidebar){\n\t\t\t\t$sidebar_class = sidebar_generator::name_to_class($sidebar);\n\t\t\t\tregister_sidebar(array(\n\t\t\t\t\t'name' => esc_html($sidebar), // Does not need to be sanitized\n\t\t\t\t\t'id' => sanitize_title($sidebar),\n\t\t\t \t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t \t\t\t'after_widget' => '</div>',\n\t\t \t\t\t'before_title' => '<h3>',\n\t\t\t\t\t'after_title' => '</h3>',\n\t\t \t));\n\t\t\t}\n\t\t}\n\t}", "function control_widgets_init() {\n\tregister_sidebar( array(\n\t\t'name' => __( 'Sidebar', 'control' ),\n\t\t'id' => 'sidebar-1',\n\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</aside>',\n\t\t'before_title' => '<h1 class=\"widget-title\">',\n\t\t'after_title' => '</h1>',\n\t) );\n}", "function ourWidgetsInit() {\n // register widget location\n register_sidebar( array(\n 'name' => 'Sidebarr',\n 'id' => 'sidebar1',\n 'before_widget' => '<div class=\"widget-item\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h2 class=\"a-special-class\">',\n 'after_title' => '</h2>'\n ));\n\n register_sidebar( array(\n 'name' => 'Footer Area 1',\n 'id' => 'footer1',\n 'before_widget' => '<div class=\"widget-item\">',\n 'after_widget' => '</div>'\n ));\n\n register_sidebar( array(\n 'name' => 'Footer Area 2',\n 'id' => 'footer2',\n 'before_widget' => '<div class=\"widget-item\">',\n 'after_widget' => '</div>'\n ));\n\n register_sidebar( array(\n 'name' => 'Footer Area 3',\n 'id' => 'footer3',\n 'before_widget' => '<div class=\"widget-item\">',\n 'after_widget' => '</div>'\n ));\n\n register_sidebar( array(\n 'name' => 'Footer Area 4',\n 'id' => 'footer4',\n 'before_widget' => '<div class=\"widget-item\">',\n 'after_widget' => '</div>'\n ));\n}", "function resource_page_widgets_init() {\n\n\tregister_sidebar( array(\n\t\t'name' => 'Resource Page Left Col',\n\t\t'id' => 'resource_page',\n\t\t'before_widget' => '<div id=\"resourcePageNavWidget\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '',\n\t\t'after_title' => '',\n\t) );\n\n}", "function mythemepost_widgets(){ \n register_sidebar( array(\n 'name' => 'Lavel Up New Widget Area',\n 'id' => 'level_up_new_widget_area',\n 'before_widget' => '<aside>',\n 'after_widget' => '</aside>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n \n ));\n}", "function wpdocs_theme_slug_widgets_init() {\n register_sidebar( array(\n 'name' => __( 'footer 2', 'wordpress' ),\n 'id' => 'sidebar-1',\n 'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'wordpress' ),\n 'before_widget' => '',\n 'after_widget' => '',\n 'before_title' => '',\n 'after_title' => '',\n ) );\n}", "function forty_register_sidebar() {\r\n\t$args = array(\r\n\t\t'id'\t\t\t=> 'footer_sidebar_left',\r\n\t\t'name'\t\t\t=> __( 'Footer Left Sidebar', 'forty' ),\r\n\t\t'description'\t=> __( 'Set your footer widgets from widgets area.', 'forty' ),\r\n\t\t'before_widget'\t=> '<div id=\"%1$s\" class=\"widget %2$s\">',\r\n\t\t'after_section'\t=> '</div>'\r\n\t);\r\n\tregister_sidebar($args);\r\n\r\n\t$args1 = array(\r\n\t\t'id'\t\t\t=> 'footer_sidebar_right',\r\n\t\t'name'\t\t\t=> __( 'Footer Right Sidebar', 'forty' ),\r\n\t\t'description'\t=> __( 'Set your footer widgets from widgets area.', 'forty' ),\r\n\t\t'before_widget'\t=> '<section id=\"%1$s\" class=\"split\">',\r\n\t\t'after_section'\t=> '</section>',\r\n\t\t'before_title' => '<span id=\"%1$s\" class=\"widget %2$s\"><h3>',\r\n 'after_title' => '</h3></span>'\r\n\t);\r\n\tregister_sidebar($args1);\r\n}", "function jn_widgets_init() {\n register_sidebar( array(\n 'name' => __('Main Sidebar', 'jn'),\n 'id' => 'sidebar-1',\n 'description' => __('The default sidebar to be used on pages','jn'),\n 'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => '</aside>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>'\n ));\n}", "function posifon_widgets_init() {\n\t// Area 1, located at the top of the sidebar.\n\tregister_sidebar( array(\n\t\t'name' => __( 'Standard Sidebar', 'posifon' ),\n\t\t'id' => 'primary-widget-area',\n\t\t'description' => __( 'The primary widget area', 'posifon' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h3>',\n\t\t'after_title' => '</h3>',\n\t) );\n\n\t// Area 3, located on template-omoss.\n\tregister_sidebar( array(\n\t\t'name' => __( 'Om Oss Sidebar', 'posifon' ),\n\t\t'id' => 'third-widget-area',\n\t\t'description' => __( 'Widget area shown on the \"om\" page template', 'posifon' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h3>',\n\t\t'after_title' => '</h3>',\n\t) );\n\n \t// Area 4, located in the footer. Empty by default.\n\tregister_sidebar( array(\n\t\t'name' => __( 'Footer Widget Area 1', 'posifon' ),\n\t\t'id' => 'footer-widget-area-1',\n\t\t'description' => __( 'Footer column 1', 'posifon' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget-1 %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h3 class=\"widget-title\">',\n\t\t'after_title' => '</h3>',\n\t) );\n\n \t// Area 5, located in the footer. Empty by default.\n\tregister_sidebar( array(\n\t\t'name' => __( 'Footer Widget Area 2', 'posifon' ),\n\t\t'id' => 'footer-widget-area-2',\n\t\t'description' => __( 'Footer column 2', 'posifon' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget-2 %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h3 class=\"widget-title\">',\n\t\t'after_title' => '</h3>',\n\t) );\n\n\t// Area 6, located in the footer. Empty by default.\n\tregister_sidebar( array(\n\t\t'name' => __( 'Footer Widget Area 3', 'posifon' ),\n\t\t'id' => 'footer-widget-area-3',\n\t\t'description' => __( 'Footer column 3', 'posifon' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget-3 %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h3 class=\"widget-title\">',\n\t\t'after_title' => '</h3>',\n\t) );\n\n\t// Area 7, located in the footer at the bottom of the page. Empty by default.\n\tregister_sidebar( array(\n\t\t'name' => __( 'Footer bottom area', 'posifon' ),\n\t\t'id' => 'footer-widget-area-4',\n\t\t'description' => __( 'Full span bottom area', 'posifon' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget-4 %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h3 class=\"widget-title\">',\n\t\t'after_title' => '</h3>',\n\t) );\n}", "function cbc_widgets_init() {\n\n\tregister_sidebar( array(\n\t\t'name' => 'Footer bar 1',\n\t\t'id' => 'footer_bar_1',\n\t\t'before_widget' => '<li>',\n\t\t'after_widget' => '</li>',\n\t\t'before_title' => '<h2>',\n\t\t'after_title' => '</h2>',\n\t) );\n\n}", "function gp_widgets_init() {\n\n /**\n * Register sidebars.\n */\n\n $sidebar_main = array_merge(\n array( 'name' => __( 'General Sidebar', 'gp' ), 'id' => 'sidebar-main' ),\n gp_get_default_widget_params()\n );\n register_sidebar( $sidebar_main );\n\n // $sidebar_post = array_merge(\n // array( 'name' => __( 'Blog Sidebar', 'gp' ), 'id' => 'sidebar-blog' ),\n // gp_get_default_widget_params()\n // );\n // register_sidebar( $sidebar_post );\n\n\n // $sidebar_post = array_merge(\n // array( 'name' => __( 'Blog Post Sidebar', 'gp' ), 'id' => 'sidebar-post' ),\n // gp_get_default_widget_params()\n // );\n // register_sidebar( $sidebar_post );\n\n\n // $sidebar_portfolio = array_merge(\n // array( 'name' => __( 'Portfolio Sidebar', 'gp' ), 'id' => 'sidebar-portfolio' ),\n // gp_get_default_widget_params()\n // );\n // register_sidebar( $sidebar_portfolio );\n\n\n // $sidebar_portfolio_single = array_merge(\n // array( 'name' => __( 'Portfolio Project Sidebar', 'gp' ), 'id' => 'sidebar-portfolio-single' ),\n // gp_get_default_widget_params()\n // );\n // register_sidebar( $sidebar_portfolio_single );\n\n // $persy_fuer_kmu = array_merge(\n // array( 'name' => __( 'Persy für KMU', 'gp' ), 'id' => 'persy-fuer-kmu' ),\n // gp_get_default_widget_params()\n // );\n // register_sidebar( $persy_fuer_kmu );\n\n // $persy_fuer_pdl = array_merge(\n // array( 'name' => __( 'Persy für PDL', 'gp' ), 'id' => 'persy-fuer-pdl' ),\n // gp_get_default_widget_params()\n // );\n // register_sidebar( $persy_fuer_pdl );\n\n // $persy_support = array_merge(\n // array( 'name' => __( 'Persy Support', 'gp' ), 'id' => 'persy-support' ),\n // gp_get_default_widget_params()\n // );\n // register_sidebar( $persy_support );\n\n $template_with_subnav = array_merge(\n array( 'name' => __( 'Template with subnav', 'gp' ), 'id' => 'sidebar-template-with-subnav' ),\n gp_get_default_widget_params()\n );\n register_sidebar( $template_with_subnav );\n\n\n // Removes the default styles that are packaged with the Recent Comments widget.\n add_filter( 'show_recent_comments_widget_style', '__return_false' );\n\n}", "function category_sidebars() {\n\t\t\t$categories = get_categories( array( 'hide_empty'=> 0 ) );\n\t\t\n\t\t\tforeach ( $categories as $category ) {\n\t\t\t\tif ( 0 == $category->parent )\n\t\t\t\t\tregister_sidebar( array(\n\t\t\t\t\t\t'name' => $category->cat_name,\n\t\t\t\t\t\t'id' => $category->category_nicename . '-sidebar',\n\t\t\t\t\t\t'description' => 'This is the ' . $category->cat_name . ' widgetized area',\n\t\t\t\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t\t\t\t'after_widget' => '</aside>',\n\t\t\t\t\t\t'before_title' => '<h3 class=\"widget-title\">',\n\t\t\t\t\t\t'after_title' => '</h3>',\n\t\t\t\t\t) );\n\t\t\t}\n\t\t}", "function alex_castro_sidebar_registration() {\n\t$shared_args = array(\n\t\t'before_title' => '<h2 class=\"widget-title subheading heading-size-3\">',\n\t\t'after_title' => '</h2>',\n\t\t'before_widget' => '<div class=\"widget %2$s\"><div class=\"widget-content\">',\n\t\t'after_widget' => '</div></div>',\n );\n \n register_sidebar(\n array_merge(\n $shared_args,\n array(\n 'name' => 'Header',\n 'id' => 'header-sidebar',\n 'description' => 'Widgets in this area will be displayed beneath the header of the home page',\n )\n )\n );\n}", "function uwmadison_widgets_init() {\n\n\t\tregister_sidebar( array(\n\t\t\t'name' => __( 'Main Sidebar', 'uw-madison-160' ),\n\t\t\t'id' => 'sidebar-1',\n\t\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t\t'after_widget' => \"</aside>\",\n\t\t\t'before_title' => '<h3 class=\"widget-title\">',\n\t\t\t'after_title' => '</h3>',\n\t\t) );\n\n\t}", "function arphabet_widgets_init() {\n\n\tregister_sidebar( array(\n\t\t'name' => 'Home right sidebar',\n\t\t'id' => 'home_right_1',\n\t\t'before_widget' => '<div>',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h2 class=\"rounded\">',\n\t\t'after_title' => '</h2>',\n\t) );\n\n}" ]
[ "0.8038387", "0.79538476", "0.7930505", "0.77855957", "0.77690387", "0.773587", "0.7727113", "0.77258646", "0.77216333", "0.77103156", "0.77057284", "0.7669056", "0.7643646", "0.7640288", "0.7624431", "0.7588374", "0.7574568", "0.75618887", "0.75311726", "0.75098044", "0.7509669", "0.74970365", "0.7490882", "0.7488419", "0.7472415", "0.7451303", "0.7438377", "0.74269545", "0.74114424", "0.7408639", "0.7404461", "0.74014527", "0.7387998", "0.73877865", "0.7376402", "0.7376252", "0.7376101", "0.736202", "0.73545504", "0.73537", "0.73477155", "0.7343047", "0.73387855", "0.7334784", "0.73116994", "0.72935796", "0.728428", "0.7267716", "0.7265092", "0.7261514", "0.72581923", "0.7256281", "0.7253108", "0.72513855", "0.72435445", "0.72411025", "0.7239546", "0.72389936", "0.7237192", "0.7232505", "0.72302556", "0.7216569", "0.720834", "0.72017014", "0.71944326", "0.7188465", "0.71827585", "0.7179143", "0.7177473", "0.71761155", "0.7172662", "0.71630055", "0.7161017", "0.71498626", "0.7149494", "0.7138607", "0.71368146", "0.7134724", "0.713287", "0.71313494", "0.71213824", "0.71184117", "0.71183586", "0.71160084", "0.7112605", "0.7110375", "0.71035683", "0.71026874", "0.7102262", "0.70892423", "0.70890856", "0.7088579", "0.7087848", "0.7087641", "0.7077555", "0.7073448", "0.707335", "0.706649", "0.705231", "0.7046261", "0.70436096" ]
0.0
-1
Set Auth User base currency
public function setBaseCurrency(SetBaseCurrencyRequest $request) { $message = $this->exchange_service->updateUserBaseCurrency( auth()->user(), $request->base_currency )->message; return Responser::send(200, [], $message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setCurrency()\n {\n $currency = $this->em->getRepository('ClubUserBundle:LocationConfig')->getObjectByKey('default_currency',$this->order->getLocation());\n\n $this->order->setCurrency($currency);\n $this->order->setCurrencyValue(1);\n }", "function setCurrencyCode(){\n switch($this->Currency){\n case \"USD\": $this->CurrencyCode = 840;\n break;\n case \"EUR\": $this->CurrencyCode = 978;\n break;\n case \"AUD\": $this->CurrencyCode = 036;\n break;\n case \"CAD\": $this->CurrencyCode = 124;\n break;\n case \"GBP\": $this->CurrencyCode = 826;\n break;\n case \"JPY\": $this->CurrencyCode = 392;\n break;\n }// end switch\n }", "public function setBaseCurrencyCode($code);", "public function setCurrency(string $currency);", "private function __setAuthUser()\n {\n $authUser = $this->request->session()->read('Auth');\n\n $accountType = 'FREE';\n if (!empty($authUser)) {\n $accountType = $authUser['User']['account_type'];\n }\n\n $this->set(compact('authUser', 'accountType'));\n }", "public function getCurrency(){\n return $this->currency;\n }", "public function setCurrency($currency){\n $this->currency = $currency;\n }", "public function getBaseCurrency()\n {\n return $this->base_currency;\n }", "public function setCurrency($currency);", "public function setCurrency($c)\n {\n $this->setOption('currency',$c);\n }", "function currSetCurrentCurrency($currencyID)\r\n{\r\n $_SESSION[\"current_currency\"] = (int)$currencyID;\r\n\r\n if (isset($_SESSION[\"log\"])) {\r\n db_query(\"UPDATE \" . CUSTOMERS_TABLE . \" SET CID=\" . (int)$currencyID .\r\n \" WHERE Login='\" . xEscSQL($_SESSION[\"log\"]) . \"'\");\r\n }\r\n}", "public function getCurrency();", "public function getCurrency();", "public function getCurrency(): string;", "public function getCurrency(): string;", "public function getBaseCurrency()\n {\n return $this->baseCurrency;\n }", "function initCurrentUser(){\n if (!XUser::isNobody()){\n $user = XUser::get_user();\n } else {\n $user = NULL;\n }\n if ($user == NULL)\n die(json_encode(array('fullnam'=>'', 'error'=>1)));\n // gestion de la fidelite : groupe associé\n $ok = $this->modcustomer->initUser($user);\n if (!$ok)\n die(json_encode(array('fullnam'=>'', 'error'=>1)));\n $loyalty = NULL;\n if ($this->modcustomer->loyaltyActive())\n $loyalty = getSessionVar('epl_loyalty');\n die(json_encode(array('fullnam'=>$user->_cur['fullnam'], 'loyalty'=>$loyalty)));\n }", "public function getBaseCurrencyCode();", "public function getGlobalCurrencyCode();", "public function setCurrency(Currency|string $currency): self;", "public function preferredCurrency()\n {\n return config('cashier.currency');\n }", "public function setGlobalCurrencyCode($code);", "private function __getCurrency()\n\t{\n\t\tif($this->currency == null)\n\t\t$this->currency = 1;\n\t\treturn $this->currency;\n\t}", "function set_values() {\n\t\tparent::set_values();\n\t\t$currency = new currency($this->_currency_id);\n\t\t\n\t\t$this->order_id->value = $this->_order_id;\n\t\t$this->timestamp->value = date(\"j M Y\");\n\t\t$this->total_amount->value = $currency->format_money($this->_total_amount);\n\t}", "public function askCurrency()\n {\n $this->ask('What is you main currency?', function (Answer $answer) {\n $this->account_currency = $answer->getText();\n\n $urlConvert = \"https://api.exchangeratesapi.io/latest?base={$this->account_currency}\";\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $urlConvert);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $json_string = curl_exec($ch);\n $parsed_json = json_decode($json_string, true);\n\n if (isset($parsed_json['error'])) {\n $this->say($parsed_json['error']);\n $this->repeat();\n } else {\n $this->say('Great - that is all we need, ' . $this->user->name);\n\n $this->user->save();\n\n $this->account_number = sprintf(\"%06d\", $this->user->id+1);\n\n $this->user->account()->create([\n 'number' => $this->account_number,\n 'balance' => $this->account_balance,\n 'currency' => $this->account_currency\n ]);\n\n $this->say($this->user->name . ' your account number is ' . $this->account_number);\n }\n });\n }", "public function getCurrentBaseCurrency() {\n $currencysymbol = $this->objectManager->get ( 'Magento\\Store\\Model\\StoreManagerInterface' );\n\n return $currencysymbol->getStore ()->getCurrentCurrencyCode ();\n }", "public function setCoin(string $cryptoCoin);", "public function getCurrency(): Currency;", "protected function setInitCurrencyFormatter(){\n # $fmt = new NumberFormatter('en_US', NumberFormatter::CURRENCY);\n $fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL );\n $fmt->setAttribute(NumberFormatter::MIN_FRACTION_DIGITS ,2 );\n # $fmt->setAttribute(NumberFormatter::MAX_SIGNIFICANT_DIGITS ,25 );\n #$fmt->setAttribute(NumberFormatter::DECIMAL_SEPARATOR_SYMBOL ,'.');\n $fmt->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS,100); #// by default some locales got max 2 fraction digits, so if there are more digi fractions these will be dropped\n $this->currencyFormatter=$fmt;\n }", "private function getBaseCurrencyCode()\n {\n return $this->scopeConfig->getValue($this->xmlPathBaseCurrency, $this->defaultCurrencyCodeValue);\n }", "public function save_currency() {\n\t\t// Validate nonce\n\t\tforminator_validate_ajax( \"forminator_save_popup_currency\" );\n\n\t\tupdate_option( \"forminator_currency\", sanitize_text_field( $_POST['currency'] ) );\n\t\twp_send_json_success();\n\t}", "public function getCurrency()\n {\n return \"/V1/directory/currency\";\n }", "protected function get_currency() {\n\t\treturn $this->currency;\n\t}", "public static function currency() {\n\t\treturn self::$currency;\n\t}", "public function getCurrencyCode();", "public function getCurrencyCode();", "public function getCurrencyCode();", "public function toCurrency()\n {\n return $this->amount * config('foria.tokens.value');\n }", "public function defaultHomeCurrency()\n {\n Validator::extend('default_home_currency', function ($attribute, $value, $parameters, $validator) {\n $request = app(\\Illuminate\\Http\\Request::class);\n $homeCurrency = Settings::where(['name'=>'default_currency'])->first();\n if ($homeCurrency->value==Request()->segment(4) && $request->status=='Inactive') {\n return false;\n } else {\n return true;\n }\n });\n }", "public function getStoreCurrencyCode();", "public function __construct(User $user, Currency $currency, float $oldRate)\n {\n $this->user = $user;\n $this->currency = $currency;\n $this->oldRate = $oldRate;\n }", "function set_base($val) {\n\t\t$this->base = $val;\n\t}", "function getWithCurrency($amount, $decimals = 2)\n{\n return FormatNumber($amount, $decimals) . \\Config::get('website.currency');\n}", "public function setUserId()\n {\n if(isset($_GET['userId']))\n {\n echo 'const userId = '.$_GET['userId'].';';\n }\n else\n {\n $config = new Config;\n echo 'const userId = '.$config->defaultUser.';';\n }\n }", "public function get_currency() {\n\t\t$data['currency'] = $this->session->data['currency'];\n\t\t/* added by it-lab end */\n\n\t\t$this->response->setOutput(json_encode($data));\n\t}", "public function getTargetCurrency();", "public function setCurrency($currency) {\n\t\t$this->currency = $currency;\n\t}", "public function setCurrency($currency)\n {\n $this->currency = $currency;\n }", "public function setCurrency($currency)\n {\n $this->currency = $currency;\n }", "public function initializeBackendUser() {}", "public static function usesCurrency()\n {\n return static::$currency;\n }", "public function initializeBackendUser() {}", "public function __construct(string $userName,Currency $currency,float $oldRate)\n {\n $this->userName = $userName;\n $this->currency = $currency;\n $this->oldRate = $oldRate;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function getCurrency()\n {\n return $this->currency;\n }", "public function save()\n {\n $this->user->setCulture($this->getValue('language'));\n }", "public function setBaseToGlobalRate($rate);", "public function __construct()\n {\n $this->sale_account = config('global.sale');\n $this->cash_sale = config('global.cash_sale');\n $this->sale_advance = config('global.sale_advance');\n $this->discount_allowed = config('global.discount_allowed');\n $this->credit_collection = config('global.credit_collection');\n // sub account for purcahse\n $this->purchase_account = config('global.purchase');\n $this->cash_purchase = config('global.cash_purchase');\n $this->purchase_advance = config('global.purchase_advance');\n $this->discount_received = config('global.discount_received');\n $this->credit_payment = config('global.credit_payment');\n $this->opening_balance=null;\n }", "public function setCurrency($currency) {\n\t\t$this->_currency = $currency;\n\t}", "public function getCurrency() : string\n {\n return $this->currency;\n }", "public function getCurrency() : string\n {\n return $this->currency;\n }", "public function testUpdateNetworkMerakiAuthUser()\n {\n }", "private function get_currency_code() : string {\n\t\tpreg_match( '/runParams\\.baseCurrencyCode=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 'USD';\n\t\t}\n\t\treturn sanitize_text_field( $matches[1] );\n\t}", "protected function set_current_user()\n\t{\n\t\tif (class_exists('Auth'))\n\t\t{\n\t\t\t// Load our current logged in user for convenience\n\t\t\tif ($this->auth->is_logged_in())\n\t\t\t{\n\t\t\t\t$this->current_user = clone $this->auth->user();\n\n\t\t\t\t$this->current_user->user_img = gravatar_link($this->current_user->email, 22, $this->current_user->email, \"{$this->current_user->email} Profile\");\n\n\t\t\t\t// if the user has a language setting then use it\n\t\t\t\tif (isset($this->current_user->language))\n\t\t\t\t{\n\t\t\t\t\t$this->config->set_item('language', $this->current_user->language);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make the current user available in the views\n\t\t\tif (!class_exists('Template'))\n\t\t\t{\n\t\t\t\t$this->load->library('Template');\n\t\t\t}\n\t\t\tTemplate::set('current_user', $this->current_user);\n\t\t}\n\t}", "public function getBaseCurrencyCode()\n {\n if ($this->baseCurrencyCode === null) {\n $this->baseCurrencyCode = strtoupper(\n $this->getStore()->getBaseCurrencyCode()\n );\n }\n\n return $this->baseCurrencyCode;\n }", "public function getCurrencyDefaultAttribute()\n {\n return Currency::isDefault()->first()->value;\n }", "public function setCustomGiftcardAmount($value);", "public function getFormatedBaseCredit(){\n return $this->formatBasePrice($this->getBaseCredit());\n// $baseCurrency = $this->_storeManager->getStore()->getBaseCurrency();\n// return $baseCurrency->formatPrecision($this->getBaseCredit(),2,[],false);\n }", "public function getNewUserPrice()\n {\n $value = $this->get(self::new_user_price);\n return $value === null ? (integer)$value : $value;\n }", "public function getUserAmount() {\n \t$_user = new class_User();\n \n \t$userAmount = $_user->getUserAmount();\n \n \treturn $userAmount;\n }", "function user_user_construct_($user){\n\t\t$CI =& get_instance();\n\t\t//if($user->is_logged() && $user->get()->avatar == '') $user->update('avatar',$CI->gears->user->avatar->default);\n\t}", "public function getSourceCurrency();", "public static function set_currency($currency) {\n\t\tself::$currency = $currency;\n\t}", "function currency_symbol() {\n\t\treturn DEFAULT_CURRENCY;\n\t}", "function setUser($usr) \n {\n\t\t\t$this->user = ((empty($usr)) ? \"root\" : $usr);\n\t\t}", "function set_user($user)\r\n {\r\n $this->set_default_property(self :: PROPERTY_USER, $user);\r\n }", "function set_user($user)\r\n {\r\n $this->set_default_property(self :: PROPERTY_USER, $user);\r\n }", "public static function getSiteCurrency(){\n return 'SAR';\n }", "public function setCredentials($b64_user=\"\")\n\t{\t\n\t\t// It is possible to retrieve information form any user specified in here.\n\t\t// If no user is specified, the system will take the current one.\n\t\tif (empty($b64_user))\n\t\t{\n\t\t\tif (isset($_SESSION[\"USER\"]))\n\t\t\t{\n\t\t\t\t$this->curlObj->set_credentials($_SESSION[\"USER\"]);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->curlObj->set_credentials($b64_user);\n\t\t}\n\t}", "private function local_rate($currency)\n {\n switch ($currency) {\n case \"gbp\":\n $this->exchange_rate = 1;\n break;\n case \"usd\":\n $this->exchange_rate = 1.3;\n break;\n case \"eur\":\n $this->exchange_rate = 1.1;\n break;\n }\n }", "public function getCurrencyCode(){\n if(!$this->currencyCode){\n return $this->currencyCode = Shop_CurrencySettings::get()->code;\n }\n return $this->currencyCode;\n }", "public function getCurrentUser(){\n\t\treturn BankAccessor::create()->getCurrentUser();\n\t}", "public function setStoreToBaseRate($rate);", "function acadp_get_currency() {\n\n\t$currency_settings = get_option( 'acadp_currency_settings' );\n\t$currency = ! empty( $currency_settings[ 'currency' ] ) ? $currency_settings[ 'currency' ] : 'USD';\n\n\treturn strtoupper( $currency );\n\n}", "public function setBaseCurrency($var)\n {\n GPBUtil::checkString($var, True);\n $this->base_currency = $var;\n\n return $this;\n }", "function GetBaseCurrency()\n\t{\n\t\t$result = $this->sendRequest(\"GetBaseCurrency\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function setCurrency($currency = NULL) {\n if (($currency === NULL) || is_string($currency)) {\n $this->currency = $currency;\n }\n }", "function set_default_shop($google_id, $user_id, $shop_id){\n \n include_once 'db_connection.php'; \n $database = new db_connection(); \n $db = $database->getConnection();\n \n include_once 'etsy_user.php';\n $etsy_user=new etsy_user($db);\n \n $etsy_user->reset_default($google_id);\n \n $etsy_user->set_default($google_id, $user_id, $shop_id); \n}", "public function getCurrency() {\n\t\treturn $this->currency;\n\t}", "public function gformCurrency($currency)\n {\n return $currency;\n }", "public function admin_currency_settings() {\n if ($this->checkLogin('A') == '') {\n redirect(ADMIN_ENC_URL);\n } else {\n if ($this->checkPrivileges('admin', '2') == TRUE) {\n\t\t\t if ($this->lang->line('admin_settings_currency_setting') != '') \n\t\t $this->data['heading']= stripslashes($this->lang->line('admin_settings_currency_setting')); \n\t\t else $this->data['heading'] = 'Currency Settings';\n $this->load->view(ADMIN_ENC_URL.'/adminsettings/currency_settings', $this->data);\n } else {\n redirect(ADMIN_ENC_URL);\n }\n }\n }", "function set_user($user)\n\t{\n\t\t$this->user=$user;\n\t}", "public function getBaseCurrencyCode() {\r\n\t\treturn $this->_storeManager->getStore()->getBaseCurrencyCode();\r\n\t}", "public function getCurrency()\n {\n return $this->MoneyCurrency;\n }" ]
[ "0.63269025", "0.6131675", "0.6108748", "0.60412985", "0.5919966", "0.5913986", "0.5897016", "0.5790924", "0.5787512", "0.5738755", "0.5726778", "0.56876475", "0.56876475", "0.5650384", "0.5650384", "0.56483763", "0.5620562", "0.5605141", "0.5577068", "0.55661565", "0.5533201", "0.5530905", "0.55161786", "0.5496176", "0.549246", "0.54911274", "0.54883236", "0.54798174", "0.54733205", "0.54086024", "0.5394789", "0.5373903", "0.53369844", "0.5327208", "0.5319648", "0.5319648", "0.5319648", "0.52929586", "0.5282119", "0.52603066", "0.525731", "0.52224207", "0.5194309", "0.51832134", "0.5182734", "0.51816666", "0.5170867", "0.51646525", "0.51646525", "0.5148381", "0.5148125", "0.5148", "0.5147914", "0.5147012", "0.5147012", "0.5147012", "0.5147012", "0.5147012", "0.5147012", "0.5147012", "0.5147012", "0.51459354", "0.51425874", "0.51386076", "0.5130821", "0.5117126", "0.5117126", "0.510714", "0.51055706", "0.5104214", "0.5096437", "0.50951004", "0.5093918", "0.50851756", "0.50758916", "0.505225", "0.50499004", "0.50394857", "0.5039467", "0.50391585", "0.50342023", "0.5031432", "0.5031432", "0.50299156", "0.5026233", "0.50161254", "0.49920315", "0.49905124", "0.49815083", "0.49733442", "0.49722713", "0.49721596", "0.49692115", "0.49681926", "0.49586135", "0.49552643", "0.4955037", "0.49460688", "0.49446937", "0.49193817" ]
0.6169092
1
List Exchange Rates for Auth User
public function listCurrenciesWithExchangeRate() { $service_response = $this->exchange_service ->getCurrenciesWithExchangeRate( auth()->user(), ); return $service_response->success ? Responser::send(200, $service_response->data, $service_response->message) : Responser::sendError(400, $service_response->message, $service_response->message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getExchangeRates()\n\t{\n\t\t$date = $this->getDate()->format('d.m.Y');\n\t\t$locale = $this->getLocale();\n\t\t$cacheKey = $date . '-' . $locale;\n\n\t\t// Check the cache\n\t\tif (isset($this->cache[$cacheKey])) {\n\t\t\treturn $this->cache[$cacheKey];\n\t\t}\n\n\t\t$response = $this->requestRemoteServer($date, $locale);\n\t\tif (!$response) {\n\t\t\treturn [];\n\t\t}\n\n\t\t$rates = $this->parseRatesFromResponse($response);\n\t\tif (empty($rates)) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn $this->cache[$cacheKey] = $rates;\n\t}", "public function getUseExchangeRates();", "public function exchange_rates()\n {\n $exchangeRates = ExchangeRates::with('Currencies:name')->get();\n return view('setup.exchange_rates.index', compact('exchangeRates'));\n }", "public function listExchange()\n\t{\n\t\t$params = $this->session->get('user');\n\t\t$result = $this->model->listExchange();\n\t\t $i = 0;\n\t\t\twhile($row = $result->fetch_assoc()){\n\t\t\t\t$rowdata[$i] = $row;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\tif ($i>0){\n\t\t\t\t$res = json_encode($rowdata,JSON_UNESCAPED_UNICODE);\n\t\t\t} else {\n\t\t\t\t$res = '[{\"ext_id\":\"0\"}]';\t\n\t\t\t}\n\t\t\techo $res;\n\n\t\t // $params = array('unidad' => $res);\n\t\t // $this->render(__CLASS__, $params);\n\t}", "public function getRates()\n {\n return (new Rates)->fetchRates(); \n }", "public function getExchangeRates(): array\n {\n $out = $this->request('getExchangeRates');\n return $out['result'];\n }", "public function getCalendars(User $user = null);", "public function listExpired() \n\t{\n\t\treturn $this->list(true);\n\t}", "public function getRecurringOrders();", "public function index()\n {\n $exchanges = Auth()->user()->exchanges()->paginate(20);\n return view('theme::goods.exchanges')->with(compact('exchanges'));\n }", "function statReceiveAuth()\n{\n $post = getPostInfo();\n $startDate= isset($post['reportstartdate'])?$post['reportstartdate']:'2016-11-01';\n $endDate = isset($post['reportenddate'])?$post['reportenddate']:'2017-01-20';\n\n XLog::formatLog(\"statReceiveAuth\", json_encode($post), XLog::$errorFile);\n\n $dateArr = parseDate($startDate,$endDate);\n\n $curTime = date('Y-m-d H:i:s');\n\n $pageInfo = DB::fetchAll(DB_NUMBER, \"\n SELECT SUM(`Received`) AS total,SUM(`Authorised`) AS auths,date_format(`CreateDate`, '%Y-%m-%d') as `day`\n FROM `dashboard`\n WHERE `CreateDate` <= '{$curTime}' AND `CreateDate` BETWEEN '{$dateArr['start']}' AND '{$dateArr['end']}'\n GROUP BY `day`\n \");\n\n return $pageInfo;\n}", "public function calendar_get_list($ews,$startdate, $enddate){\n\t\t// Set init class\n\t\t$request = new EWSType_FindItemType();\n\t\t// Use this to search only the items in the parent directory in question or use ::SOFT_DELETED\n\t\t// to identify \"soft deleted\" items, i.e. not visible and not in the trash can.\n\t\t$request->Traversal = EWSType_ItemQueryTraversalType::SHALLOW;\n\t\t// This identifies the set of properties to return in an item or folder response\n\t\t$request->ItemShape = new EWSType_ItemResponseShapeType();\n\t\t$request->ItemShape->BaseShape = EWSType_DefaultShapeNamesType::DEFAULT_PROPERTIES;//Returns ID_ONLY - DEFAULT_PROPERTIES - ALL_PROPERTIES\n\t\t\n\t\t// Define the timeframe to load calendar items\n\t\t$request->CalendarView = new EWSType_CalendarViewType();\n\t\t$request->CalendarView->StartDate = $startdate; // an ISO8601 date e.g. 2012-06-12T15:18:34+03:00\n\t\t$request->CalendarView->EndDate = $enddate; // an ISO8601 date later than the above\n\t\t\n\t\t// Only look in the \"calendars folder\"\n\t\t$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsType();\n\t\t$request->ParentFolderIds->DistinguishedFolderId = new EWSType_DistinguishedFolderIdType();\n\t\t$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::CALENDAR;\n\t\t\n\t\t// Send request\n\t\t$response = $ews->FindItem($request);\n\t\t\n\t\t// Add events to array if event(s) were found in the timeframe specified\n\t\tif ($response->ResponseMessages->FindItemResponseMessage->RootFolder->TotalItemsInView > 0){\n\t\t $events = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem;\t\n\t\t}\n\t\telse{\n\t\t\tif(empty($events)){\n\t\t\t\t$events = \"No Events Found\"; \t\n\t\t\t}\n\t\t}\n\t\t \n\t\treturn $events; //remember to use the php function urlencode on the id and changekey else it will not work when sent to other EWS functions\n\t }", "public function index()\n {\n return UserResource::collection(User::restaurant()->with(['lastAttendance'])->get());\n }", "public function getUserEvents() {\n $user = Auth::user();\n $userEvents = $user->events()->get();\n $userEvents = $userEvents->concat(Event::where('leader_id', $user->id)->get());\n return Response(EventResource::collection($userEvents), 200);\n }", "public function index()\n {\n $offices = Office::query()\n ->where('approval_status', Office::APPROVAL_APPROVED)\n ->where('hidden', false)\n ->when(request('user_id'), fn($builder) => $builder->whereUserId(request('user_id')))\n ->when(request('visitor_id'), \n fn(Builder $builder) \n => $builder->whereRelation('reseravations', 'user_id', '=', request('visitor_id')))\n ->latest('id')\n ->when(\n request('lat') && request('lng'),\n fn($builder) => $builder->nearestTo(request('lat'), request('lng')),\n fn($builder) => $builder->orderBy('id', 'ASC')\n )\n ->with(['images', 'tags', 'user'])\n ->withCount(['reservations' => fn ($builder) => $builder->where('status', Reservation::STATUS_ACTIVE)])\n ->paginate(20);\n\n return OfficeResource::collection(\n $offices\n );\n }", "public function index()\n {\n $numdays = NumDays::getAllNumDays();\n return NumDaysResource::collection($numdays);\n }", "public function getSubscriptionList()\n {\n $recruiterOffice = RecruiterOffice::getAllOffices();\n $subscription['data'] = [];\n $customerId = RecruiterProfile::where(['user_id' => Auth::user()->id])->pluck('customer_id');\n if ($customerId[0] == null) {\n $subscription['customer'] = [];\n } else {\n $customer = \\Stripe\\Customer::retrieve($customerId[0]);\n $subscription['customer'] = [$customer];\n }\n foreach ($recruiterOffice as $office) {\n if ($office['free_trial_period'] != config('constants.ZeroValue')) {\n $subscription['data'] = $office;\n break;\n }\n }\n return $subscription;\n }", "function GetExchangeRateAPI() {\n $conditions = '?base=JPY';\n $request = EXCHANGE_RATE_API_URL.$conditions;\n $response = file_get_contents($request);\n\n return json_decode($response, true);\n }", "public function get_expired_ride_list($start_time) {\n if ($start_time != '') {\n $this->mongo_db->select(array('ride_id', 'type', 'ride_status', 'user'));\n $this->mongo_db->where(array(\"ride_status\" => 'Booked'));\n $this->mongo_db->where(array('booking_information.est_pickup_date'=>array('$lt'=>MongoDATE($start_time))));\n $this->mongo_db->order_by(array('_id' => 'ASC'));\n $res = $this->mongo_db->get(RIDES);\n return $res;\n }\n }", "public function get_calendar_list() {\n $calendars = array();\n $uri = 'https://www.googleapis.com/calendar/v3/users/me/calendarList';\n $params = array(\n 'sslverify' => false,\n 'timeout' => 60,\n 'headers' => array(\n 'Content-Type' => 'application/json',\n 'Authorization' => 'Bearer ' . $this->get_access_token(),\n ),\n );\n\n $response = wp_remote_get( $uri, $params );\n\n if ( !is_wp_error( $response ) && 200 == $response[ 'response' ][ 'code' ] && 'OK' == $response[ 'response' ][ 'message' ] ) {\n $body = json_decode( $response[ 'body' ] );\n $calendars = $body->items;\n\n $this->debug( 'Calendar List retrieved successfully', $body );\n } else {\n $this->error( 'Error while retrieving Calendar List: ', $response );\n }\n\n return $calendars;\n }", "public function getSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id = %1d AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "public function recharge_list(){\n $recharge_log_where['user_id'] = ['eq',$this->user_id];\n $p = I('p/d',1);\n $page_last = 7;\n $count = M('recharge')->where($recharge_log_where)->count();\n $withdrawals_log = M('recharge')->where($recharge_log_where)\n ->order('order_id desc')\n ->page(\"{$p},{$page_last}\")\n ->select();\n $Page = new Page($count,$page_last);\n $Page->rollPage = 2;\n $page = $Page->show(); \n $this->assign('lists',$withdrawals_log);\n $this->assign('page', $page);\n \treturn $this->fetch();\n }", "public function getByExpiredUsers($paymentGateway='')\n\t{\n\t\t$today = time();\n\t\t$startat = 1477060836;\n $queryBuilder = $this->createQueryBuilder('s');\n $query = $queryBuilder\n ->select('s')\n ->innerJoin('Api\\\\V1\\\\Entity\\\\User', 'u')\n ->where('u.subscriptionId = s.id')\n ->andWhere('s.paymentGateway = :paymentGateway')\n ->andWhere('u.subscriptionExpireAt > 0')\n ->andWhere('u.subscriptionExpireAt <= :today')\n ->andWhere('u.subscriptionStartAt >= :startat')\n ->andWhere('u.flags <> :status')\n ->setParameter('paymentGateway', $paymentGateway)\n ->setParameter('today', $today)\n ->setParameter('startat', $startat)\n ->setParameter('status', User::STATUS_SUSPENDED)\n\t\t\t->getQuery();\n\t\t/*$sql =\"select * from subscription as s INNER JOIN user as u where u.subscription_id=s.id and u.subscription_start_at>=$start_at and u.subscription_expire_at >0 and u.subscription_expire_at<=$today and u.flags!=1 and s.payment_gateway='$paymentGateway'\";\n\t\t$stmt = $this->getEntityManager()->getConnection()->prepare($sql);\n $stmt->execute();\n\t\t$subscriptions = $stmt->fetchAll();*/\n\t//\t$q=$query->getSQL();\n\t//\terror_log(\"Query: \".$q.\"\\n\" , 3, \"/volumes/log/api/test-log.log\");\n\t//\terror_log(\"Parameters: \".print_r($query->getParameters(), TRUE).\"\\n\" , 3, \"/volumes/log/api/test-log.log\");\n $subscriptions = $query->getResult();\n\n return $subscriptions;\n }", "public function getExchangeRate();", "public function get_all_subscribed4explanations () {\n\n $list = array();\n $result = $this->query( \"SELECT * FROM beamtime_subscriber\" );\n $nrows = mysql_numrows( $result );\n for( $i = 0; $i < $nrows; $i++ ) {\n $row = mysql_fetch_array( $result, MYSQL_ASSOC );\n $row['subscribed_time'] = LusiTime::from64($row['subscribed_time']);\n array_push ( $list, $row );\n }\n return $list;\n }", "public function getIssuers();", "public function user_reactions() {\n $method = 'reactions.list';\n $payload = array(\n 'user' => $this->user,\n 'full' => '1',\n );\n $result = $this->apicall($method, $payload);\n return $result['items'];\n\n }", "function fetchExpiryDates($json) {\n $expDates = array();\n foreach($json['optionChain']['result'][0]['expirationDates'] as $item) {\n array_push($expDates, $item);\n }\n return $expDates;\n}", "public function fetchAllForCalendarHome(string $principalUri): array;", "public function getExchangeInfo();", "public function index()\n {\n $AvanceSorties = JWTAuth::parseToken()->toUser()->sorties;\n return AvanceSortieResource::collection($AvanceSorties);\n }", "public function getExchangeRates()\n {\n return Controllers\\ExchangeRatesController::getInstance();\n }", "public function action_index()\n\t{\n\t\t// Date Today > Deals End Date\n\t\t$expired_deals = ORM::factory('deal')->get_to_expire_deals();\n\t\t\n\t\t// Check if reached Minimum Sales\n\t\tforeach($expired_deals as $xdeal) {\n\t\t\t\n\t\t\t$end_date = date(\"Y-m-d\"); // returns YYYY-MM-DD Format\n\t\t\t\n\t\t\t// Update Status to Expired\t\n\t\t\t$deal = ORM::factory('deal', $xdeal['ID']);\n\t\t\t$deal->status = 'expired';\n\t\t\t\n\t\t\t$deal->save();\n\t\t\t\n\t\t\t// Email Users\n\t\t\t\n\t\t}\n\t}", "function get_dates($all=null){\r\n\t /* get status of the user \r\n\t * might not be necessary but could be useful later for the personalized calendar \r\n\t */\r\n /* $sql = \"SELECT status\r\n FROM `\".TABLE_PREFIX.\"members`\r\n WHERE `login`='\".$_SESSION['login'].\"'\";\r\n\t\t\t\t\t\r\n $result = mysql_query($sql,$db) or die(mysql_error());\r\n $row_count = mysql_num_rows($result);\r\n if($row_count > 0){\r\n $row = mysql_fetch_assoc($result);\r\n }\r\n\t */\r\n\tglobal $moduleFactory;\r\n\t$dates=array();\r\n $coursesmod = $moduleFactory->getModule(\"_core/courses\");\r\n $courses=$coursesmod->extend_date(); \r\n\t$assignmentsmod = $moduleFactory->getModule(\"_standard/assignments\");\r\n $assignments=$assignmentsmod->extend_date();\r\n\t$testsmod = $moduleFactory->getModule(\"_standard/tests\");\r\n $tests=$testsmod->extend_date();\r\n\t$dates['course']= $courses;\r\n\t$dates['assignments']=$assignments;\r\n\t$dates['tests']=\t$tests;\r\n\t//$dates[$_SESSION['course_id']]['assignments']=\t$assignments;\r\n echo(json_encode($dates));\r\n\t\t\t \r\n }", "public function testRetrieveExchangeRates()\n {\n\n // Set callback and perform API call\n $result = null;\n self::$controller->setHttpCallBack($this->httpResponse);\n try {\n $result = self::$controller->getExchangeRates();\n } catch (APIException $e) {\n }\n\n // Test response code\n $this->assertEquals(\n 200,\n $this->httpResponse->getResponse()->getStatusCode(),\n \"Status is not 200\"\n );\n\n // Test whether the captured response is as we expected\n $this->assertNotNull($result, \"Result does not exist\");\n\n $this->assertTrue(\n TestHelper::isJsonObjectProperSubsetOf(\n \"{\\n\t\\\"disclaimer\\\": \\\"Exchange rates are provided here for reference. They are updated at least once\" .\n \" a day and may have changed by time of order.\\\",\\n\t\\\"exchangeRates\\\": [{\\n\t\t\\\"lastModifiedDate\\\": \\\"\" .\n \"2018-04-19T13:00:14.291\\\",\\n\t\t\\\"rewardCurrency\\\": \\\"EUR\\\",\\n\t\t\\\"baseCurrency\\\": \\\"NZD\\\",\\n\t\t\\\"baseFx\" .\n \"\\\": 0.59120\\n\t}, {\\n\t\t\\\"lastModifiedDate\\\": \\\"2018-04-19T13:00:14.291\\\",\\n\t\t\\\"rewardCurrency\\\": \\\"US\" .\n \"D\\\",\\n\t\t\\\"baseCurrency\\\": \\\"NZD\\\",\\n\t\t\\\"baseFx\\\": 0.73130\\n\t}, {\\n\t\t\\\"lastModifiedDate\\\": \\\"2018-04-\" .\n \"19T13:00:14.230\\\",\\n\t\t\\\"rewardCurrency\\\": \\\"INR\\\",\\n\t\t\\\"baseCurrency\\\": \\\"AUD\\\",\\n\t\t\\\"baseFx\\\": 51.2\" .\n \"9066\\n\t}]\\n}\",\n $this->httpResponse->getResponse()->getRawBody(),\n false,\n true,\n false\n ),\n \"Response body does not match in keys\"\n );\n }", "public static function getRates() {\n $result = self::get(self::getPath('rates'));\n \n Return $result;\n }", "public static function query($options = [], $user = null)\n {\n $options[\"after\"] = new StarkDate(Checks::checkParam($options, \"after\"));\n $options[\"before\"] = new StarkDate(Checks::checkParam($options, \"before\"));\n return Rest::getList($user, CorporatePurchase::resource(), $options);\n }", "public function getAll()\n\t{\n\t\tif (!$this->isAssocResult()) {\n\t\t\treturn array_values($this->getExchangeRates());\n\t\t}\n\n\t\t$assocClosure = $this->getAssocClosure();\n\n\t\t$results = [];\n\t\tforeach ($this->getExchangeRates() as $rate) {\n\t\t\t$results[$assocClosure($rate)] = $rate;\n\t\t}\n\n\t\treturn $results;\n\t}", "public function userHistory() {\n\t\t[ $response, $error ] = $this->api('user/history');\n\n\t\tif($error) return $this->response($response, $error);\n\n\t\treturn $this->response($response['links']);\n\t}", "public function list()\n {\n $users = glpi_users::all();\n\n $timesMonths = glpi_tickets::getTimeMonth();\n\n return view('users')\n ->with('users',$users)\n ->with('timesMonths', $timesMonths);\n }", "public function iN_LatestPaymentsSubscriptionsList() {\n\t\t$query = mysqli_query($this->db, \"SELECT DISTINCT\n\t\t\tS.subscription_id, S.iuid_fk, S.subscribed_iuid_fk, S.subscriber_name, S.plan_id, S.plan_amount,S.admin_earning, S.plan_amount_currency, S.created, S.status, U.iuid, U.i_username, U.i_user_fullname\n\t\t\tFROM i_users U FORCE INDEX(ixForceUser)\n\t\t\tINNER JOIN i_user_subscriptions S FORCE INDEX(ix_Subscribe)\n\t\t ON S.subscribed_iuid_fk = U.iuid AND U.uStatus IN('1','3')\n\t\t\tWHERE S.status = 'active' ORDER BY S.subscription_id DESC LIMIT 5\n\t\t\t\") or die(mysqli_error($this->db));\n\t\twhile ($row = mysqli_fetch_array($query)) {\n\t\t\t$data[] = $row;\n\t\t}\n\t\tif (!empty($data)) {\n\t\t\treturn $data;\n\t\t}\n\t}", "public function onRefresh()\n {\n $startTime = 0;\n $endTime = 0;\n if (!$this->isFilteredByDateRange()){\n $dateData = $this->getMonthStartEndTime();\n if(!empty($dateData)){\n $startTime = $dateData['startTime'];\n $endTime = $dateData['endTime'];\n }\n }\n\n $records = $this->getRecords($startTime, $endTime);\n $records['id'] = 'calendar';\n $records['method'] = 'onRefresh';\n\n return $records;\n }", "public function getCheckexpiry(Request $request){\n\n\t\t$todays_date=date('Y-m-d');\n\t\t$new_expiry_date_plus_seven=date('Y-m-d', strtotime($today_s_date.\" + 7\"));\n\t\t$new_expiry_date_plus_three=date('Y-m-d', strtotime($today_s_date.\" + 3\"));\n\t\t\n\t\t$data = array($todays_date,$new_expiry_date_plus_three,$new_expiry_date_plus_seven);\n\n\t\t$customers = Customers::whereIn('expiry_date', $data)->toArray();\n\n\t\tforeach($customers as $cust_key){\n\t\t\tif($cust_key->expiry_date == $todays_date){\n\t\t\t\t/*todays mail*/\n\t\t\t\t$subject = \"your subscription expires today.\";\n\t\t\t} else if($cust_key->expiry_date ==$new_expiry_date_plus_three ) {\n\t\t\t\t/*after 3 days*/\n\t\t\t\t$subject = \"your subscription expires in 3 days.\";\n\t\t\t} else {\n\t\t\t\t/*after 7 days*/\n\t\t\t\t$subject = \"your subscription expires in 7 days.\";\n\t\t\t}\n\t\t\t/*send email function*/\n\n\t\t\t$usermail = array('email'=>$cust_key->email,'name'=>$cust_key->name);\n\t\t\tMail::send('emails.subscription', $usermail, function ($m) use ($usermail) {\n\t \t$m->from('[email protected]', 'PSN');\n\t \t$m->to($usermail['email'], $usermail['name'])->subject($subject);\n \t});\n\t\t}\n\t}", "public function getInvoices(Request $request)\n {\n $account_balance = $this->recurlyService->getAccountBalance($request->user());\n $past_due = 0;\n $user_identifier = Auth::user()->user_identifier;\n $recurlyInvoices = $this->recurlyService->getInvoicesForAccount($user_identifier);\n\n $invoices = [];\n foreach($recurlyInvoices as $invoice) {\n if ($invoice->state != 'collected' && $invoice->state != 'failed') {\n $past_due = $past_due + $invoice->total_in_cents;\n }\n $invoices[$invoice->invoice_number]['invoice_number'] = $invoice->invoice_number;\n $count = count($invoice->line_items);\n $invoices[$invoice->invoice_number]['description'] = isset($invoice->line_items[$count-1]) ? $invoice->line_items[$count-1]->description : null;\n if (is_null($invoices[$invoice->invoice_number]['description'])) $invoices[$invoice->invoice_number]['description'] = $invoice->line_items[0]->description;\n if ($invoice->subscription) {\n $href = $invoice->subscription->getHref();\n $subscription_id = substr($href, strrpos($href, '/')+1);\n $invoices[$invoice->invoice_number]['subscription_id'] = $subscription_id;\n } else {\n $invoices[$invoice->invoice_number]['subscription_id'] = '';\n }\n $invoices[$invoice->invoice_number]['created_at'] = $invoice->created_at ? $invoice->created_at->format('M d Y') : null;\n $invoices[$invoice->invoice_number]['closed_at'] = $invoice->closed_at ? $invoice->closed_at->format('M d Y') : null;\n $invoices[$invoice->invoice_number]['state'] = $invoice->state;\n $invoices[$invoice->invoice_number]['total_in_cents'] = number_format($invoice->total_in_cents / 100, 2, '.', '');\n $invoices[$invoice->invoice_number]['value'] = $invoice->total_in_cents;\n }\n $credit_value = $account_balance + $past_due;\n $selected_uuid = $request->get('uuid');\n return view('billing.invoices', ['invoices'=>$invoices, 'selected_uuid'=>$selected_uuid, 'credit_value'=>$credit_value/100, 'past_due'=>$past_due]);\n }", "public function getInvoices(User $user);", "public function getExchangeRates(string $base = CurrencyCode::POUND_STERLING, array $currencies = [], ?Carbon $timestamp = null): Collection\n {\n $appId = $this->config->get('services.oxr.appId');\n\n $endpoint = $timestamp->isCurrentDay() ?\n 'latest.json' :\n \"historical/{$timestamp->format('Y-m-d')}.json\";\n\n $params = [\n 'app_id' => $appId,\n 'base' => $base,\n ];\n\n if ($currencies) {\n $params['symbols'] = implode(',', $currencies);\n }\n\n $query = http_build_query($params);\n\n $response = $this->client->get(\"{$endpoint}?{$query}\");\n $json = Utils::jsonDecode($response->getBody()->getContents(), true);\n $timestamp = Carbon::createFromTimestamp($json['timestamp']);\n $rates = $json['rates'];\n\n $exchangeRates = new Collection();\n\n foreach ($rates as $currency => $rate) {\n $exchangeRate = new ExchangeRate(compact('base', 'currency', 'rate', 'timestamp'));\n\n $exchangeRates->push($exchangeRate);\n }\n\n return $exchangeRates;\n }", "public function getList($user);", "public function testGetExchangeRates()\n {\n $result = $this->currencyAPIService->getExchangeRates();\n $this->assertIsArray($result);\n $this->assertArrayHasKey('content', $result);\n $this->assertTrue($result['status']);\n $this->assertJson($result['content']);\n $content = json_decode($result['content'], true);\n $this->assertArrayHasKey('rates', $content);\n }", "public static function getUSDCurrencyExchangeRates()\n { \n $ch = curl_init(_URL_YAHOOAPI);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\n $html = curl_exec($ch);\n curl_close($ch);\n \n return json_decode($html);\n }", "public function userListWithdrawal()\n {\n $user = User::whereId(auth()->user()->id)->firstOrFail();\n $withdrawals = Withdrawal::select([\n 'code',\n 'amount',\n 'status',\n 'created_at',\n 'completed_at',\n ])->whereUserId($user->id)\n ->latest()\n ->paginate(10);\n return view('withdrawal_history', [\n 'withdrawals' => $withdrawals\n ]);\n }", "public function fetchRates()\n {\n $res = $this->_fetch($this->_cfg['ratesUri']);\n\n return $res;\n }", "public function getAgendaAlarmListAction(){\n /** @var Object_Agenda $agenda */\n $this->getDeviceSession()->getUserId();\n $agenda = new Object_Agenda();\n $this->_helper->json($agenda->getClass()->getFieldDefinition('Alarm'));\n }", "function invoices ($user_id) {\n global $sql;\n return $sql->sql_select_array_query(\"SELECT * FROM `invoice` WHERE user_id = '{$user_id}' ORDER BY invoice_date DESC\");\n }", "public function retrieveRefreshTokens($userId)\n {\n return $this->start()->uri(\"/api/jwt/refresh\")\n ->urlParameter(\"userId\", $userId)\n ->get()\n ->go();\n }", "public function index()\n {\n $resellers = $this->user->getMyResellers($this->userid);\n return view('resellers.my-resellers', ['resellers' => $resellers]); \n }", "public function index($request, $response, $args) {\n\t\t$currency = $args['currency'];\n\t\t$base_currency = array_key_exists('base_currency', $args) ? $args['base_currency'] : 'RON';\n\n\t\t$base_currency = 'RON';\n\t\tif(array_key_exists('base_currency', $args)) {\n\t\t\t$base_currency = $args['base_currency'];\n\t\t}\n\t\t$start_date = '2005-01-01';\n\t\tif(array_key_exists('start_date', $args)) {\n\t\t\t$start_date = new \\DateTime($args['start_date']);\n\t\t\t$start_date = $start_date->format('Y-m-d');\n\t\t}\n\t\t$end_date = date('Y').'-12-31';\n\t\tif(array_key_exists('end_date', $args)) {\n\t\t\t$end_date = new \\DateTime($args['end_date']);\n\t\t\t$end_date = $end_date->format('Y-m-d');\n\t\t}\n\n\t\t$rates = Rate::\n\t\t\tbetweenDates($start_date, $end_date)\n\t\t\t->getEquivalentValues($base_currency, 1, [$currency], null, true);\n\n\t\t$result = [];\n\t\t$min = null;\n\t\t$max = null;\n\t\tforeach($rates as $rate) {\n\t\t\t$format = (object) ['date' => $rate->published_on, 'value' => $rate->converted_value];\n\n\t\t\t$result[] = $format;\n\n\t\t\tif(!$min || $format->value < $min->value) {\n\t\t\t\t$min = $format;\n\t\t\t}\n\t\t\tif(!$max || $format->value >= $max->value) {\n\t\t\t\t$max = $format;\n\t\t\t}\n\t\t}\n\n\t\tif($min) {\n\t\t\t$min->bullet = \"round\";\n\t\t\t$min->label = \"min\";\n\t\t\t$min->bulletClass = 'min-pulsating-bullet';\n\t\t}\n\t\tif($max) {\n\t\t\t$max->bullet = \"round\";\n\t\t\t$max->label = \"max\";\n\t\t\t$max->bulletClass = 'max-pulsating-bullet';\n\t\t}\n\t\treturn $response\n\t\t\t->withStatus(200)\n\t\t\t->withHeader('Content-Type', 'application/json')\n\t\t\t->write(json_encode($result));\n\t}", "public function index() : AnonymousResourceCollection\n {\n $rates = QueryBuilder::for(Rate::class)\n ->defaultSort('buy')\n ->allowedFilters('name')\n ->where('date', (new DateTime)->format('Y-m-d'))\n ->get();\n\n return IndexResource::collection($rates);\n }", "public function index(User $user)\n {\n $invitations = Invitation::where('contact_id', $user->id)->where('viewed', false)->get();\n return $invitations;\n }", "public function index()\n {\n $users = User::with('roles')->latest()->paginate(10);\n return UserResource::collection($users);\n }", "public function index()\n\t{\n\t\tforeach (Auth::user()->unreadNotifications->where('type', 'App\\Notifications\\HaveBeenRated') as $notification) {\n\t\t\t$notification->markAsRead();\n\t\t}\n\t\t\n\t\t$client_ratings = Auth::user()->ratings()->paginate(5);\n\t\t\n\t\treturn view('ratings', [\n\t\t\t'user' => Auth::user(),\n\t\t\t'client_ratings' => $client_ratings,\n\t\t]);\n\t}", "function getAllVRSRead()\n\t\t {\n\t\t $date = date('Y-m-d');\n $day = date('l',strtotime($date));\n if($day=='Monday')\n {\n $from = date('Y-m-d',strtotime('-1 Monday', time()));\n }\n else{\n $from = date('Y-m-d',strtotime('-2 Monday', time()));\n }\n\t\t\t $to = date('Y-m-d',strtotime('Last Saturday', time()));\n\t\t \t\t \n\t\t$sql =\"SELECT * FROM pof_candidates LEFT JOIN be_users ON pof_candidates.user_id=be_users.id WHERE stage IN (SELECT id FROM segment_name WHERE segment_type_id='5' ) AND (date BETWEEN '\".$from.\"' AND '\".$to.\"') GROUP BY pof_candidates.user_id ORDER BY be_users.username ASC;\";\n\t $q = $this->db->query($sql);\n\t\tif($q->num_rows() > 0)\n\t\t{\n\t\t\tforeach($q->result() as $row)\n\t\t\t{\n\t\t\t\t$data[] = $row;\n\t\t\t}\n\t\t\treturn $data;\n\t\t}\n\t\t\t\n\t}", "public function get_exchange_user_details($user_id){\n\t\t//get user information\n\t\t$this->ci->db->where('user_id', $user_id);\n\t\t$this->ci->db->from('exchange_users');\n\t\t$query = $this->ci->db->get();\n\t\treturn $query->row_array();\n\t}", "function peryear(SS_HTTPRequest $r){\t\t\r\n\t\t$years = (int) $r->param('ID');\r\n\t\t$filter = \"\";\r\n\t\t$start_date = false;\r\n\t\tif($years) {\r\n\t\t\t$ago = strtotime(\"$years years ago\");\t\t\t\r\n\t\t\t$start_date = date('Y-m-d', $ago);\r\n\t\t\t$filter = \"`DateOfReview` > '$start_date' AND \";\r\n\t\t}\r\n\t\t$locale = $this->Locale;\r\n\t\t$percat = DataObject::get(\"SupportReview\",\"$filter `Published` = true AND `Locale` ='\".$locale.\"'\", null, null, $this->getLimit());\r\n\t\tif(!$percat) {\r\n\t\t\t$percat = Array();\r\n\t\t\t// return $this->httpError(404, _t('SupportDocsPage.NOTFOUD',\"Sorry that review could not be found\"));\r\n\t\t}\r\n\t\treturn array(\r\n\t\t\t\"Reviews\" => $percat,\r\n\t\t\t\"Heading\" => $start_date ? \"Start date: $start_date\" : \"All reviews\" // Debugging purposes only. Feel free to change.\r\n\t\t);\r\n\t}", "function getReviewers() {\n $strQuery = \"SELECT * FROM `users` WHERE `user_status` like '%Reviewer%'\";\n\n return $this->query($strQuery);\n }", "public function getRefreshListeUsers() {\n\t\t$users = \\App\\User::where('active','=',1)->get();\n\t\t$d = view('_users',array('users'=>$users));\n\t\treturn $d; // html\n }", "public function getRemindersForUser() {\r\n \r\n if (!$this->User instanceof User) {\r\n throw new Exception(\"Can't find reminders because we don't know which user to look up\");\r\n }\r\n \r\n $query = \"SELECT id FROM reminders WHERE user_id = ? AND reminder >= ? AND sent = ? ORDER BY reminder\";\r\n \r\n foreach ($this->db->fetchAll($query, array($this->User->id, date(\"Y-m-d\"), 0)) as $row) {\r\n yield new Reminder($row['id']);\r\n }\r\n \r\n }", "public function index()\n {\n $revenues = Revenue::with(['account', 'customer', 'category'])->collect();\n\n return $this->response->paginator($revenues, new Transformer());\n }", "public function get_rates(){\n\n \n $endpoint = 'live';\n $access_key = '6b976c41ce198b8b5d28f7890bd447f9';\n // Initialize CURL:\n $ch = curl_init('http://apilayer.net/api/'.$endpoint.'?access_key='.$access_key.'');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n // Store the data:\n $json = curl_exec($ch);\n curl_close($ch);\n\n // Decode JSON response:\n $exchangeRates = json_decode($json, true);\n \n #calculate the inverse rates \n\n #calculate ZAR -> USD Rate \n $zar_usd = 1 / $exchangeRates['quotes']['USDZAR'];\n # ZAR -> GBP\n $gbp_usd = (1 / $exchangeRates['quotes']['USDGBP']);\n $zar_gdp = $zar_usd / $gbp_usd;\n #ZAR->EUR\n $eur_usd = (1 / $exchangeRates['quotes']['USDEUR']);\n $zar_eur = $zar_usd / $eur_usd;\n #ZAR->KES\n $kes_usd = (1 / $exchangeRates['quotes']['USDKES']);\n $zar_kes = $zar_usd / $kes_usd;\n\n \n $updated_rates = array(\n array(\n 'er_id' => 1 , // ZAR -> GBP\n 'er_rate' => $zar_gdp \n ),\n array(\n 'er_id' => 2 , // ZAR -> EUR\n 'er_rate' => $zar_eur\n ),\n array(\n 'er_id' => 3 , // ZAR -> EUR\n 'er_rate' => $zar_kes\n ),\n array(\n 'er_id' => 4 , // ZAR -> EUR\n 'er_rate' => $zar_usd\n )\n );\n \n #batch update db\n $this->ExchangeRate->update_rates($updated_rates);\n\n echo \"Your exchange rates have been successfully updated\";\n\n // else do some exception handling here\n }", "public function reminder() {\n $this->load->model('Reminder_Model');\n $userbean = $this->session->userdata('userbean');\n $data['remindList'] = $this->Reminder_Model->getReminderList(\"ALL\",$userbean->userid);\n $this->load->view('reminder_view/reminder', $data);\n }", "public function getUserAgendasAction()\n {\n $agenda = new Workapp_Agenda();\n $this->_helper->json($agenda->getAgendaList(array('user_id' => $this->getDeviceSession()->getUserId())));\n }", "public function index()\n {\n $currencyExchange = CurrencyExchange::all();\n\n\n return view('currencyExchange.index',compact('currencyExchange'));\n }", "public function getTimesheetRecent(){\n $emp_id = Auth::user()->id;\n $data['response'] = $this->timesheet->getInformRecent($emp_id);\n $data = $this->formatDate($data);\n return $data;\n }", "public function index(Request $request)\n {\n $raids = Auth::user()\n ->raids()\n ->withLocations();\n\n if ($request->has('show_date'))\n {\n $date = Carbon::parse($request->input('show_date'));\n $raids->where('start_date', '<=', $date->format('Y-m-d'))\n ->where('end_date', '>=', $date->format('Y-m-d'));\n }\n\n $raids = $raids->latest()->get();\n\n return $raids ? $raids : [];\n }", "public function index()\n {\n $rols = Rol::all();\n\n return RolResource::collection($rols);\n }", "public function index()\n {\n $transactions = RecurringTransaction::getTransactionsForUser($this->user, $this->with);\n\n $transactions = TransactionMutator::set($this->set, $transactions);\n\n return $transactions->keyBy('id');\n }", "public function experienceUser()\n {\n $users = User::find()->orderBy(['last_name' => SORT_ASC])->all();\n $year = 3600 * 24 * 365;\n $date = [];\n foreach ($users as $user) {\n $date_receipt = ((!$user->date_receipt) ? time() : $user->date_receipt);\n $receipt = time() - $date_receipt;\n $month = floor($receipt / 2592000) - (intval($receipt / $year) * 12);\n $date[] = [\n 'userId' => $user->id,\n 'experience' => intval($receipt / $year) . ' ' . Yii::t('app', 'y') . ' ' . $month . ' ' . Yii::t('app', 'm'),\n ];\n }\n $date = ArrayHelper::index($date, 'userId');\n\n return $date;\n }", "public function getExternalSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id, s.user_email, p.is_public'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id IS NULL AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "function GetFavoriteDates()\n\t{\n\t\t$yt = new Zend_Gdata_YouTube();\n\t\t$yt->getHttpClient()->setConfig(array('timeout'=>180));\n\t\t$yt->setMajorProtocolVersion(2);\n\t\t$favoritesFeed = $yt->getUserFavorites($this->userName);\n\t\tforeach($favoritesFeed as $favorite)\n\t\t{\n\t\t\tif(strpos($this->srVideoList , $favorite->getTitle()->text) !== false)\n\t\t\t{\n\t\t\t\tarray_push($this->favoriteDates,$favorite->getPublished()->text);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public function readerAction() {\n\t\t$iduser = $_SESSION['iduser'];\n\t\t$invitationrep = new InvitationRepository();\n\t\t$readd = $invitationrep->getNonReadInvitation($iduser);\n\t\theader('Content-type: application/json');\n echo json_encode($readd);\n\t}", "public function index()\n {\n if(! $user = JWTAuth::parseToken()->authenticate()){\n return response()->json(['msg' => 'User Not Found'], 200);\n }\n\n $books = Book::join('users', 'books.user_id', '=', 'users.id')->orderBy('users.credit', 'desc')->where([\n ['status' , '=', '0'],\n ['user_id' , '<>', $user->id]\n ])->with('user')->get(['books.*']);\n\n return response()->json(['feeds' => $books]);\n }", "public function index()\n\t{\n\t\t$exchanges = $this->exchange->all();\n\n\t\treturn View::make('exchanges.index', compact('exchanges'));\n\t}", "public function getUserList(){\n\t\t$this->load->database();\n\t\t$eventlist = $this->db->query(\"SELECT * FROM user \");\n\t\treturn $eventlist;\n\t}", "public function getRates()\n {\n # Convert the rates to a key / value array:\n return json_decode( json_encode($this->rates), true );\n }", "public function setInterviewDates(){\n\t\t$data=[];\n\t\t$this->load->model('SAR/PanelDetails');\n\t\t$data['Members']=$this->PanelDetails->getAllEmailAddresses();\n\t\t//var_dump($data['Members']);\n\t\t$this->load->view('includes/header');\n $this->load->view('users/SAR/setDates', $data);\n $this->load->view('includes/footer');\n\t}", "function RealTimeInvites($last_invite,$uid=false){\r\n\r\n$invites=helpers::get_controller(INVITATION)->GetInvites($uid,$last_invite);\r\n\r\nif(!empty($invites)){\r\n\r\nforeach ($invites as $invite){\r\n\r\n$return[]=helpers::WidgetOutput(\"Singleinvite\",array(\"invite\"=>$invite));\r\n\r\n}\r\n\r\nreturn $return;\r\n\r\n}\r\n\r\nreturn array();\r\n\r\n}", "public function exchangeRate() {\n try{\n $client = new GuzzleHttp\\Client(['base_uri' => 'https://api.exchangeratesapi.io/']);\n // Latest endpoint \n $response = $client->request('GET', 'latest');\n $statusCode = $response->getStatusCode();\n if($statusCode == 200) {\n // Get body of the response and stringify\n $body = (string)$response->getBody();\n // Parse json to ApiResponse Object\n $apiResponse = new ApiResponse($body);\n // Print associative response to console\n print_r($apiResponse);\n }\n }catch(Exception $e){\n echo $e;\n }\n\n }", "public function index()\n {\n $employee = Employee::active()->latest()->get();\n \n return EmployeeResource::collection($employee);\n }", "public function index()\n {\n $user = Auth::user();\n $fields = ['call_to_action_clicks', 'cost_per_total_action', 'spend', 'unique_clicks'];\n $start_date = $this->getStartDate(Input::get('start_date'));\n $end_date = $this->getEndDate(Input::get('end_date'));\n $time_increment = (bool) Input::get('time_increment', false);\n\n // Fetch the users accounts from the database.\n //\n $accounts = $this->accountRepository->byUserWithMetricsByDate( $user, $fields, $start_date, $end_date, $time_increment );\n\n // Return the response.\n //\n return $this->response( $accounts ?: [] );\n }", "public function getRestTimes()\n {\n return $this->get(self::_REST_TIMES);\n }", "public function getAssocRateList($id)\n\t{\n\t\t$dt = new \\DateTime('now -2 month');\n\t\t$list=\\DB::table('prod_assoc_rates')->join('products','prod_assoc_rates.Prod_ID','=','products.Prod_ID')\n\t\t->join('prod_associate','prod_associate.MAssoc_ID','=','prod_assoc_rates.MAssoc_ID')\n\t\t->where('prod_assoc_rates.Prod_ID',$id)\n\t\t->where('prod_assoc_rates.CurrentDate','<', Now())\n\t\t//->where('prod_assoc_rates.CurrentDate','>',$dt)\n\t\t\n\t\t->select('prod_assoc_rates.MAssoc_ID','prod_assoc_rates.Rate','prod_assoc_rates.CurrentDate','prod_assoc_rates.ExpDate','prod_associate.MAssoc_FirstName','prod_associate.MAssoc_MiddleName','prod_associate.MAssoc_LastName','products.UnitofMeasure')\n\t\t->orderby('prod_assoc_rates.Rate','ASC')\n\t\t->get();\n\t\t$listResp=array('success'=>true, $list);\n\t\treturn $listResp;\n\t\t\t}", "public function entries_get()\n {\n $from = (int)$this->get('from');\n $to = (int)$this->get('to');\n $gender = $this->get('gender');\n if(is_numeric($from) && is_numeric($to)){\n $users = $this->survey_data_model->getEntriesByAgeGender($from, $to, $gender);\n if($users){\n $this->response($users, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code \n }else {\n // Set the response and exit\n $this->response([\n 'status' => FALSE,\n 'message' => 'No Entries OR Error!!',\n 'response' => $users\n ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n }\n }\n\n //Get By ID\n $id = $this->get('id');\n if($id != NULL){\n\n // Find and return a single record for a particular user.\n $id = (int)$id;\n\n // Validate the id.\n if ($id <= 0){\n\n // Invalid id, set the response and exit.\n $this->response(NULL, REST_Controller::HTTP_BAD_REQUEST); // BAD_REQUEST (400) being the HTTP response code\n }\n\n // Get the user from the array, using the id as key for retrieval.\n $user = $this->survey_data_model->getEntriesById($id);\n if (!empty($user))\n {\n $this->set_response($user, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code\n }\n else\n {\n $this->set_response([\n 'status' => FALSE,\n 'message' => 'User could not be found'\n ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n } \n }\n\n if (($id === NULL) && ($from === NULL) && ($to === NULL)){\n \n // Check if the users data store contains users (in case the database result returns NULL)\n $user = $this->survey_data_model->getEntries();\n if($users){\n $this->response($users, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code\n }else {\n // Set the response and exit\n $this->response([\n 'status' => FALSE,\n 'message' => 'No users were found'\n ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n }\n }\n }", "public function index()\n {\n $historys = History::with('getApiKeys')\n ->with('getWorkflow')\n ->with('getStateFrom')\n ->with('getStateTo')\n ->with('getUserName')\n ->paginate(10);\n $now = Carbon::now();\n $dates = [];\n foreach($historys as $history)\n {\n $end = Carbon::parse($history->created_at);\n array_push($dates,$end->diffForHumans($now));\n }\n return view('workflow.history.index',compact('historys', 'dates'));\n }", "public function index()\n {\n $title = \"Service Rates\";\n $rates = Rate::all();\n return view('rates.index', compact('title','rates') );\n }", "public function index()\n {\n $users = User::paginate(15);\n return UserResource::collection($users);\n }", "public function index()\n {\n $users = User::paginate(15);\n return UserResource::collection($users);\n }", "public function index()\n {\n $users = User::paginate(15);\n return UserResource::collection($users);\n }", "public function get_user_history(){\n \t$s = \"SELECT * FROM user_history WHERE username = ? group by ETF order by Date ASC\";\n \tif($stmt = $this->connection->prepare($s)){\n \t\t$stmt->bind_param(\"s\", $_SESSION['username']);\n \t\t$stmt->execute();\n \t\t$res = $stmt->get_result();\n \t\twhile($row = $res->fetch_object()){\n \t\t\t$history[] = $row;\n \t\t}\n \t\treturn $history;\n \t}\n \t \t\n }", "public function actionIndex()\n {\n //check if there are expire leads . leads passed 10 minutes\n // count them all\n //\n }", "public function index()\n {\n $fromInvoices = Auth::user()->fromInvoices()->get();\n $toInvoices = Auth::user()->toInvoices()->get();\n return Response::json(compact(['fromInvoices', 'toInvoices']));\n }", "public function index()\n {\n $data = User::orderBy('created_at', 'desc')\n ->whereHas('roles', function ($q) {\n $q->where('name', '<>', 'Super-admin');\n })\n ->with('roles')\n ->with(['tokens' => function ($q) {\n $q->where('revoked', false);\n }])\n ->orderBy('id', 'desc')\n ->withTrashed()\n ->paginate(10);\n\n return new UserCollection($data, User::getActiveUsers(), User::getTotalUsersCount(), User::getNewUsersToday()); \n }" ]
[ "0.59216326", "0.5827011", "0.57756233", "0.5728646", "0.56978375", "0.55804366", "0.53898424", "0.5386887", "0.5383655", "0.5354732", "0.5308894", "0.5276614", "0.52638197", "0.52518845", "0.5246922", "0.52315146", "0.52218205", "0.52074677", "0.5197628", "0.5195775", "0.5185245", "0.5172873", "0.51598483", "0.51547295", "0.5138653", "0.5127407", "0.51239944", "0.51193494", "0.51110214", "0.51043713", "0.51013535", "0.5084879", "0.50829864", "0.50782305", "0.5069552", "0.50651956", "0.5064982", "0.50602293", "0.5056879", "0.50517464", "0.5046215", "0.5039412", "0.50372547", "0.5036483", "0.50302154", "0.5029956", "0.5028435", "0.50268793", "0.5026101", "0.50212467", "0.5018566", "0.50158787", "0.50090545", "0.50077", "0.5004856", "0.50006807", "0.50002855", "0.4995355", "0.49896598", "0.49665433", "0.4961828", "0.4954994", "0.49528563", "0.49466085", "0.49406952", "0.4935824", "0.4932667", "0.4927219", "0.49265853", "0.49246874", "0.49223214", "0.49200267", "0.4914088", "0.4913635", "0.49011046", "0.48986536", "0.48918256", "0.4880476", "0.48780572", "0.48777345", "0.48762554", "0.48733628", "0.48707718", "0.48660687", "0.48647043", "0.48605746", "0.48574254", "0.48564172", "0.48546162", "0.4854286", "0.48519304", "0.4851184", "0.48478103", "0.48435035", "0.48435035", "0.48435035", "0.484115", "0.484108", "0.48379517", "0.48227924" ]
0.5789719
2
Set an AlertThreshold for Auth user
public function setAlertThreshold(SetAlertThresholdRequest $request) { $message = $this->exchange_service->setAlertThreshold( auth()->user(), $request->currency, $request->threshold )->message; return Responser::send(200, [], $message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setThreshold($threshold)\n {\n $this->threshold = $threshold;\n }", "public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('checkthreshold');\n \n\n }", "public function SetThresh($threshold)\n {\n $this->thresh = $threshold;\n }", "public function setScoreThreshold($threshold);", "public function setThreshold($val)\n {\n $this->_propDict[\"threshold\"] = $val;\n return $this;\n }", "abstract public function handleAlerts($thresholds);", "public function setPerMethod($threshold)\n {\n $this->_perMethod = $threshold;\n }", "function securite($alert) {\n\t\t$this -> profil($this -> vue -> afficheSecurite($alert));\n\t}", "private function __setAuthUser()\n {\n $authUser = $this->request->session()->read('Auth');\n\n $accountType = 'FREE';\n if (!empty($authUser)) {\n $accountType = $authUser['User']['account_type'];\n }\n\n $this->set(compact('authUser', 'accountType'));\n }", "public static function set_auth_level($userid = '') {\n\t\tif ($userid == '') {\n\t\t\tself::$auth_level = IS_GUEST;\n\t\t\treturn;\n\t\t}\n\t\t// Call our user model to retreive the authorization level\n\t\tself::$auth_level = User::getAuthLevel ( $userid );\n\t\treturn;\n\t}", "public function setSeverityThreshold(int $severityThreshold): void\n {\n $this->severityThreshold = $severityThreshold;\n }", "public function setTemperatureCallbackThreshold($option, $min, $max)\n {\n $payload = '';\n $payload .= pack('c', ord($option));\n $payload .= pack('v', $min);\n $payload .= pack('v', $max);\n\n $this->sendRequest(self::FUNCTION_SET_TEMPERATURE_CALLBACK_THRESHOLD, $payload);\n }", "public function getThreshold()\n {\n return 5000;\n }", "public function setPerClass($threshold)\n {\n $this->_perClass = $threshold;\n }", "public function setScoreThreshold($threshold)\n {\n $this->threshold = floatval($threshold);\n return $this;\n }", "public function __construct(int $threshold = 1)\n {\n $this->gateway = app(ApiGateway::class);\n $this->threshold = $threshold;\n }", "private function setFilterForAge(){\n $selfAge = $this->loggedInProfileObj->getAGE();\n $othersAge = $this->ProfileObj->getAGE();\n if($this->loggedInProfileObj->getGENDER()==self::maleProfile){\n $LAgeToSet = min($selfAge-self::AgeConstantToBeSub,$othersAge);\n $HAgeToSet = max($selfAge,$othersAge);\n }\n else{\n $LAgeToSet = min($selfAge,$othersAge);\n $HAgeToSet = max($selfAge+self::AgeConstantToBeSub,$othersAge);\n }\n $this->setLAGE($LAgeToSet);\n $this->setHAGE($HAgeToSet);\n }", "public function MessageThreshold(int $threshold)\n {\n IPS_SetProperty($this->InstanceID, 'MessageThreshold', $threshold);\n IPS_ApplyChanges($this->InstanceID);\n }", "public function __construct( $endpoint, $threshold ) {\n\t\t$this->endpoint = $endpoint;\n\t\t$this->threshold = $threshold;\n\t}", "public function SetErrorConditionTriggerThresh ($thresh)\n {\n $this->EnableQueueMode();\n $this->error_condition_trigger_thresh = $thresh;\n }", "public function setAlertFrequency($newAlertFrequency){\n\t\t//verify alert frequency is secure\n\t\t$newAlertFrequency = trim($newAlertFrequency);\n\t\t$newAlertFrequency = filter_var($newAlertFrequency, FILTER_SANITIZE_STRING);\n\t\tif(empty($newAlertFrequency)=== true){\n\t\t\tthrow(new InvalidArgumentException(\"alert frequency is empty or insecure\"));\n\t\t}\n\t\t//verify alert frequency will fit into database\n\t\tif(strlen($newAlertFrequency)>2){\n\t\t\tthrow(new RangeException(\"alert frequency is too large\"));\n\t\t}\n\t\t//store alert frequency\n\t\t$this->alertFrequency = $newAlertFrequency;\n\t}", "public function setRenewalThresholdPercentage(?int $value): void {\n $this->getBackingStore()->set('renewalThresholdPercentage', $value);\n }", "public function allowUser() {\n \t$level = -1;\n\t if ($this->userData !== null){\n\n\t $level = $this->userData->level;\n\n\t\t}\n\t\treturn $level;\n\t \n\t}", "public function check_threshold( $value ) {\n\t\t\tif ( (int) $value <= 0 || (int) $value > 100 ) {\n\t\t\t\t$this->add_admin_notice( __('Please revise your flagging threshold and enter a number between 1 and 100') );\n\t\t\t}\n\t\t\treturn (int) $value;\n\t\t}", "public function setPerProject($threshold)\n {\n $this->_perProject = $threshold;\n }", "public function SetErrorConditionThresh ($thresh)\n {\n $this->EnableQueueMode();\n $this->error_condition_thresh = $thresh;\n }", "public function setOnboardingAlerts(bool $onboarding_alerts) {\n $this->onboarding_alerts = (int) $onboarding_alerts;\n\n }", "protected function doTestExceedsThresholdSettings() {\n // Test with valid values.\n $thresholds = array(\n 'critical' => 11,\n 'warning' => 6,\n );\n $this->submitThresholdSettings('test_sensor_exceeds', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor exceeds')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_exceeds', $thresholds);\n\n // Make sure that it is possible to save empty thresholds.\n $thresholds = array(\n 'critical' => '',\n 'warning' => '',\n );\n $this->submitThresholdSettings('test_sensor_exceeds', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor exceeds')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_exceeds', $thresholds);\n\n monitoring_sensor_manager()->resetCache();\n \\Drupal::service('monitoring.sensor_runner')->resetCache();\n $sensor_result = $this->runSensor('test_sensor_exceeds');\n $this->assertTrue($sensor_result->isOk());\n\n // Test validation.\n $thresholds = array(\n 'critical' => 5,\n 'warning' => 10,\n );\n $this->submitThresholdSettings('test_sensor_exceeds', $thresholds);\n $this->assertText('Warning must be lower than critical or empty.');\n\n $thresholds = array(\n 'critical' => 5,\n 'warning' => 5,\n );\n $this->submitThresholdSettings('test_sensor_exceeds', $thresholds);\n $this->assertText('Warning must be lower than critical or empty.');\n\n $thresholds = array(\n 'critical' => 'alphanumeric',\n 'warning' => 'alphanumeric',\n );\n $this->submitThresholdSettings('test_sensor_exceeds', $thresholds);\n $this->assertText('Warning must be a number.');\n $this->assertText('Critical must be a number.');\n return $thresholds;\n }", "public function add_warning($uid = null)\n {\n\t\tif (!$this->ACL->turn(array('users', 'users_warnings'), false)) die(__('Permission denied'));\n\t\t$this->counter = false;\n\t\t$this->cached = false;\n\t\t\n\t\t$uid = intval($uid);\n\t\tif (empty($uid) && !empty($_POST['uid'])) $uid = intval($_POST['uid']);\n\t\tif (empty($uid)) die(__('Some error occurred'));\n\t\t\n\t\t\n\t\t$intruder = $this->Model->getById($uid);\n\t\tif (empty($intruder)) die(__('Can not find user'));\n\n\t\t\n\t\t// Action and cause\n\t\t$points = (!empty($_POST['points'])) ? intval($_POST['points']) : 1;\n\t\tif ((int)$points != 1 && (int)$points != -1) $points = 1;\n\t\t$cause = (!empty($_POST['cause'])) ? trim($_POST['cause']) : '';\n\t\t\n\t\t// Interval\n\t\tif (!empty($_POST['permanently'])) $timestamp = time() + 99999999;\n\t\telse if (!empty($_POST['mult']) && !empty($_POST['cnt'])) {\n\t\t\tswitch (trim($_POST['mult'])) {\n\t\t\t\tcase 'h':\n\t\t\t\t\t$timestamp = intval($_POST['cnt']) * 3600;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'd':\n\t\t\t\t\t$timestamp = intval($_POST['cnt']) * 86400;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'w':\n\t\t\t\t\t$timestamp = intval($_POST['cnt']) * 604800;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'm':\n\t\t\t\t\t$timestamp = intval($_POST['cnt']) * 2419200;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$timestamp = intval($_POST['cnt']) * 29030400;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif (!empty($timestamp)) {\n\t\t\t$interval = date(\"Y-m-d H:i:s\", time() + $timestamp);\n\t\t\t$ban = 1;\n\t\t} else {\n\t\t\t$interval = '0000-00-00 00:00:00';\n\t\t\t$ban = 0; \n\t\t}\n\t\t\n\t\t\n\t\t$adm_id = (!empty($_SESSION['user']['id'])) ? intval($_SESSION['user']['id']) : 0;\n\t\tif ($adm_id < 1) die(__('Permission denied'));\n\t\tif ($adm_id == $uid) die(__('Some error occurred'));\n\t\t\n\t\tif (!$ban) {\n\t\t\t$max_warnings = $this->Render['Config']->read('warnings_by_ban', 'users');\n\t\t\tif ($intruder->getWarnings() > 0 && $intruder->getWarnings() + $points >= $max_warnings) {\n\t\t\t\t$ban = 1;\n\t\t\t\t$interval = $this->Register['Config']->read('autoban_interval', 'users');\n\t\t\t\t$interval = time() + intval($interval);\n\t\t\t\t$interval = date(\"Y-m-d H:i:s\", $interval);\n\t\t\t\t\n\t\t\t\t$clean_warnings = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$intruder->setBan_expire($interval);\n\t\t$intruder->setLocked($ban);\n\n\t\t\n\n\t\tif (!empty($clean_warnings)) { \n\t\t\t$intruder->setWarnings(0);\n\t\t\t$votesModelName = $this->Register['ModManager']->getModelName('UsersVotes');\n\t\t\t$votesModel = new $votesModelName;\n\t\t\t$votesModel->deleteUserWarnings($uid);\n\n\t\t\t\n\t\t} else {\n\t\t\t$intruder->setWarnings($intruder->getWarnings() + $points);\n\t\t\t$votesEntityName = $this->Register['ModManager']->getEntityName('UsersVotes');\n\t\t\t$votesEntity = new $votesEntityName(array(\n\t\t\t\t'user_id' => $uid,\n\t\t\t\t'admin_id' => $adm_id,\n\t\t\t\t'points' => $points,\n\t\t\t\t'date' => 'NOW()',\n\t\t\t\t'cause' => $cause,\n\t\t\t));\n\t\t\t$votesEntity->save();\n\t\t}\n\t\t$intruder->save();\n\n\t\t\n\t\t\n\t\tif (!empty($_POST['noticepm'])) {\n\t\t\t$messEntityName = $this->Register['ModManager']->getEntityName('Messages');\n\t\t\t$messEntity = new $messEntityName(array(\n\t\t\t\t'to_user' => $uid,\n\t\t\t\t'from_user' => $adm_id,\n\t\t\t\t'subject' => __('You have new warnings'),\n\t\t\t\t'message' => __('Warnings cause').$cause,\n\t\t\t\t'sendtime' => 'NOW()',\n\t\t\t\t'id_rmv' => $adm_id,\n\t\t\t));\n\t\t\t$messEntity->save();\n\t\t}\n\t\t\n\t\tdie('ok');\n\t}", "public function tryUserLevelCheck(){\n if( $this->checkSessionSet() ){\n if($this->userLevelCheck()){\n\n }\n else{\n //TODO: log the user_id and activity\n redirect_invalid_user();\n }\n }\n else{\n //TODO: log the user IP information\n\n redirect_invalid_user();\n }\n }", "public function update_user_level_from_caps()\n {\n }", "public function lowBalanceAlert () {\n\t\t\t//check the sms balance before sending message out\n\t\t\t$balance = (int)$this->balance();\n\t\t\tif ($balance < 300) {\n\t\t\t\t// build the query\n\t\t\t\tif (!$this->lowBalanceAlertTo) return;\n\t\t\t\t\n\t\t\t\t$query_key_value = [\n\t\t\t\t\t'to' \t=> $this->lowBalanceAlertTo,\n\t\t\t\t\t'text' \t=> sprintf($this->lowBalanceMessage, $balance)\n\t\t\t\t];\n\t\t\t\t\n\t\t\t\t// get the response from the api server in json format\n\t\t\t\t$this->request($query_key_value);\n\t\t\t}\n\t\t}", "public function setCallbacks()\n {\n // __AUTH__ must return true or false\n $this->on('__AUTH__', function($auth, $request) {\n if (is_object($auth)) {\n if ($auth->type == 'Basic') {\n if ($auth->user == 'Andrew' && $auth->password == 'foo') {\n return true;\n }\n }\n }\n\n return false;\n });\n\n // dummy callback, just shows how to add return headers to be used\n $this->on('rate.limit.headers', function($remoteAddr) {\n // .. do something with the remoteAddr\n return ['X-RateLimit-Limit' => 5000, 'X-RateLimit-Remaining' => 4999];\n });\n }", "function wp_password_change_notification($user)\n {\n }", "public function comment_flag_threshold() {\n\t\t\t$threshold = (int) get_option( $this->_plugin_prefix . '_threshold' );\n\t\t\t?>\n\t\t\t<label for=\"<?php echo esc_attr( $this->_plugin_prefix ); ?>_threshold\">\n\t\t\t\t<input size=\"2\" name=\"<?php echo esc_attr( $this->_plugin_prefix ); ?>_threshold\" id=\"<?php echo esc_attr( $this->_plugin_prefix ); ?>_threshold\" type=\"text\" value=\"<?php echo esc_attr( $threshold ); ?>\" />\n\t\t\t\t<?php esc_html_e( \"Amount of user reports needed to send a comment to moderation?\" ); ?>\n\t\t\t</label>\n\t\t\t<?php\n\t\t}", "public function __construct(Alert $alert)\n {\n $this->alert = $alert;\n }", "function setAuthTimestamp($AuthTimestamp)\n {\n \t$this->_authTimestamp =$AuthTimestamp;\n }", "static function user_can_set_minimun_score($user_id='') {\r\n\t\t\t// Check for settings: only use if \"Enable Roles Support\" is selected\r\n\t\t\treturn self::user_can(self::SET_MIN_SCORE);\r\n\t\t}", "protected function doTestOuterThresholdSettings() {\n // Test with valid values.\n $thresholds = array(\n 'critical_low' => 5,\n 'warning_low' => 6,\n 'critical_high' => 15,\n 'warning_high' => 14,\n );\n $this->submitThresholdSettings('test_sensor_outer', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor outer')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_outer', $thresholds);\n\n // Make sure that it is possible to save empty outer thresholds.\n $thresholds = array(\n 'critical_low' => '',\n 'warning_low' => '',\n 'critical_high' => '',\n 'warning_high' => '',\n );\n $this->submitThresholdSettings('test_sensor_outer', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor outer')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_outer', $thresholds);\n\n // Test validation.\n $thresholds = array(\n 'critical_low' => 5,\n 'warning_low' => 15,\n 'critical_high' => 10,\n 'warning_high' => 20,\n );\n $this->submitThresholdSettings('test_sensor_outer', $thresholds);\n $this->assertText('Warning high must be lower than critical high or empty.');\n\n $thresholds = array(\n 'critical_low' => 5,\n 'warning_low' => 5,\n 'critical_high' => 5,\n 'warning_high' => 5,\n );\n $this->submitThresholdSettings('test_sensor_outer', $thresholds);\n $this->assertText('Warning low must be lower than warning high or empty.');\n\n $thresholds = array(\n 'critical_low' => 'alphanumeric',\n 'warning_low' => 'alphanumeric',\n 'critical_high' => 'alphanumeric',\n 'warning_high' => 'alphanumeric',\n );\n $this->submitThresholdSettings('test_sensor_outer', $thresholds);\n $this->assertText('Warning low must be a number.');\n $this->assertText('Warning high must be a number.');\n $this->assertText('Critical low must be a number.');\n $this->assertText('Critical high must be a number.');\n\n $thresholds = array(\n 'critical_low' => 45,\n 'warning_low' => 35,\n 'critical_high' => 45,\n 'warning_high' => 35,\n );\n $this->submitThresholdSettings('test_sensor_outer', $thresholds);\n $this->assertText('Warning low must be lower than warning high or empty.');\n\n $thresholds = array(\n 'critical_low' => 50,\n 'warning_low' => 95,\n 'critical_high' => 55,\n 'warning_high' => 100,\n );\n $this->submitThresholdSettings('test_sensor_outer', $thresholds);\n $this->assertText('Warning high must be lower than critical high or empty.');\n }", "public function setAlert($solicitud, $alert){\n\t\t$this->solicitudes_model->setAlert($solicitud, $alert);\n\t}", "public function diviroids_user_level($atts)\n {\n return DiviRoids_Security::get_current_user('user_level');\n }", "public function setLastActionUser(){\n\t\t// nilai authtimeout user\n\t\tYii::$app->user->authTimeout;\n\n\t\t$user = User::findOne(Yii::$app->user->id);\n\t\t$user->last_action = date('Y-m-d H:i:s');\n\t\t$user->update();\n\t}", "function activate_user($userid){\n\t\t$this->stmt = $this->db->update('users');\n \n\t\t// where\n\t\t$this->stmt->where('id','i',$userid);\n\t\t\n\t\t// values\n\t $this->stmt->values( array(\n\t\t \n\t\t // userlevel\n\t\t array(\n\t\t\t 'name' => 'userlevel',\n\t\t\t 'type' => 'i',\n\t\t\t 'value'=> GarageSale\\User::USER_STANDARD\n\t\t )\n\t\t));\n\t\treturn parent::set();\n\t}", "public function initializeSecurityLevel() {\n\t\t// Standart level (GREEN).\n\t\t$this->securityLevel = self::SECURITYLEVEL_GREEN;\n\n\n\t\tif($this->XSSReport !== false) {\n\t\t\t$xssSecurityLevel = $this->XSSReport->getSecurityLevel();\n\t\t\tif($xssSecurityLevel < $this->securityLevel)\n\t\t\t\t$this->securityLevel = $xssSecurityLevel;\n\t\t}\n\t\t\t\n\t\tif($this->SQLInjectionReport !== false) {\n\t\t\t$sqlinjSecurityLevel = $this->SQLInjectionReport->getSecurityLevel();\n\t\t\tif($sqlinjSecurityLevel < $this->securityLevel)\n\t\t\t\t$this->securityLevel = $sqlinjSecurityLevel;\n\t\t}\n\t\t\t\n\t}", "function ll_alert_user( $user_login, $user_email, $key ) { \n\n\t\tif ( is_multisite() )\n\t\t\t$blogname = $GLOBALS['current_site']->site_name;\n\t\telse\n\t\t\t$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);\n\n\t\t$message = sprintf( __('ALERT: The admin of %s requires that you reset the password for the following account:','loginlock'), $blogname ). \"\\r\\n\\r\\n\";\n\t\t$message .= network_site_url() . \"\\r\\n\\r\\n\";\n\t\t$message .= sprintf(__('Username: %s','loginlock'), $user_login) . \"\\r\\n\\r\\n\";\n\t\t$message .= __('You must reset your password before you can log back in. To reset your password, visit the following address:','loginlock') . \"\\r\\n\\r\\n\";\n\t\t$message .= '<' . network_site_url(\"wp-login.php?action=rp&key=$key&login=\" . rawurlencode($user_login), 'login') . \">\\r\\n\";\n\n\t\t$title = sprintf( __('[%s] Emergency Password Reset','loginlock'), $blogname );\n\n\t\t$title = apply_filters('retrieve_password_title', $title);\n\t\t$message = apply_filters('retrieve_password_message', $message, $key);\n\n\t\tif ( $message && !wp_mail($user_email, $title, $message) )\n\t\t\treturn __('The e-mail could not be sent to','loginlock'). $user_login . \"<br />\\n\" . __('Possible reason: your host may have disabled the mail() function.','loginlock');\n\n\t}", "function privOptionDefaultThreshold(&$p_options)\n {\n }", "public function setRegressedUsersCount(?int $value): void {\n $this->getBackingStore()->set('regressedUsersCount', $value);\n }", "public function getAuthLevel() {\n }", "public function setAlertPoint($newAlertPoint) {\n\t\t//verify alert point is valid\n\t\t$newAlertPoint = filter_var($newAlertPoint, FILTER_VALIDATE_FLOAT);\n\t\tif($newAlertPoint === false) {\n\t\t\tthrow(new InvalidArgumentException(\"alert point is not a valid float\"));\n\t\t}\n\t\t//verify alert point is valid\n\t\tif($newAlertPoint <= 0) {\n\t\t\tthrow(new RangeException(\"alert point is not positive\"));\n\t\t}\n\t\t//convert store alert point\n\t\t$this->alertPoint = floatval($newAlertPoint);\n\t}", "function checkuserlevel($params)\r\n{ // verifies user is logged in and returns security level\r\n \r\n return 7;\r\n}", "protected function assertThresholdSettingsUIDefaults($sensor_name, $thresholds) {\n $sensor_config = SensorConfig::load($sensor_name);\n $this->drupalGet('admin/config/system/monitoring/sensors/' . $sensor_name);\n $this->assertTitle(t('@label settings (@category) | Drupal', array('@label' => $sensor_config->getLabel(), '@category' => $sensor_config->getCategory())));\n foreach ($thresholds as $key => $value) {\n $form_field_name = 'thresholds[' . $key . ']';\n $this->assertFieldByName($form_field_name, $value);\n }\n }", "public function authenticateUser($level = false){\n $userAdministration = new UserAdministration();\n $user = $userAdministration->getUser();\n if (!$user || ($user['rights'] < $level)){\n $this->addMessage('Nedostatečné oprávnění', 'warning');\n $this->redirect('prihlaseni');\n }\n }", "public function onUserCheck($event)\n {\n $this->setPermissions($event->user);\n }", "protected function doTestInnerThresholdSettings() {\n // Test with valid values.\n $thresholds = array(\n 'critical_low' => 5,\n 'warning_low' => 1,\n 'critical_high' => 10,\n 'warning_high' => 15,\n );\n $this->submitThresholdSettings('test_sensor_inner', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor inner')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_inner', $thresholds);\n\n // Make sure that it is possible to save empty inner thresholds.\n $thresholds = array(\n 'critical_low' => '',\n 'warning_low' => '',\n 'critical_high' => '',\n 'warning_high' => '',\n );\n $this->submitThresholdSettings('test_sensor_inner', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor inner')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_inner', $thresholds);\n\n // Test validation.\n $thresholds = array(\n 'critical_low' => 5,\n 'warning_low' => 15,\n 'critical_high' => 10,\n 'warning_high' => 20,\n );\n $this->submitThresholdSettings('test_sensor_inner', $thresholds);\n $this->assertText('Warning low must be lower than critical low or empty.');\n\n $thresholds = array(\n 'critical_low' => 5,\n 'warning_low' => 5,\n 'critical_high' => 5,\n 'warning_high' => 5,\n );\n $this->submitThresholdSettings('test_sensor_inner', $thresholds);\n $this->assertText('Warning low must be lower than warning high or empty.');\n\n $thresholds = array(\n 'critical_low' => 50,\n 'warning_low' => 95,\n 'critical_high' => 55,\n 'warning_high' => 100,\n );\n $this->submitThresholdSettings('test_sensor_inner', $thresholds);\n $this->assertText('Warning low must be lower than critical low or empty.');\n\n $thresholds = array(\n 'critical_low' => 'alphanumeric',\n 'warning_low' => 'alphanumeric',\n 'critical_high' => 'alphanumeric',\n 'warning_high' => 'alphanumeric',\n );\n $this->submitThresholdSettings('test_sensor_inner', $thresholds);\n $this->assertText('Warning low must be a number.');\n $this->assertText('Warning high must be a number.');\n $this->assertText('Critical low must be a number.');\n $this->assertText('Critical high must be a number.');\n\n $thresholds = array(\n 'critical_low' => 45,\n 'warning_low' => 35,\n 'critical_high' => 50,\n 'warning_high' => 40,\n );\n $this->submitThresholdSettings('test_sensor_inner', $thresholds);\n $this->assertText('Warning high must be higher than critical high or empty.');\n return $thresholds;\n }", "protected function initOptions()\n {\n Html::addCssClass($this->options, 'uk-alert uk-alert-'.$this->type);\n $this->options['uk-alert'] = true;\n }", "protected function getThreshold()\n {\n return isset($this->threshold) ? $this->threshold : 1;\n }", "public function setPasswordMinutesOfInactivityBeforeScreenTimeout(?int $value): void {\n $this->getBackingStore()->set('passwordMinutesOfInactivityBeforeScreenTimeout', $value);\n }", "public function setUserAccessLevel (int $userAccessLevel) {\n\t\t\n\t\t//make sure user access level= 1 or 0\n\t\tif(($userAccessLevel !== 0) && ($userAccessLevel !== 1)) {\n\t\t\tthrow(new\\RangeException(\"user access level has to be 0 or 1\"));\n\t\t}\n\t\t//convert and store user access level\n\t\t$this->userAccessLevel = $userAccessLevel;\n\t}", "function setHoursLeftWarning($s)\n\t{\n\t\t$this->HoursLeftWarning = $s;\n\t\tupdateTableByUser('DeveloperAlerts', 'HoursLeftWarning', $s, $this->getUsername());\n\t}", "public function alert($message)\r\n {\r\n $this->log($message, SF_LOG_ALERT);\r\n }", "public function setSeverity($value)\n {\n $this->setItemValue('severity', ['id' => (int)$value]);\n }", "private function setRule()\n\t{\n\t\t$this->rule = ( $this->timber->security->isAuth() && $this->timber->security->isClient() ) ? 'client' : $this->rule;\n\t\t$this->rule = ( $this->timber->security->isAuth() && $this->timber->security->isStaff() ) ? 'staff' : $this->rule;\n\t\t$this->rule = ( $this->timber->security->isAuth() && $this->timber->security->isAdmin() ) ? 'admin' : $this->rule;\n\t}", "public function alert($message)\n {\n $this->log($message, self::ALERT);\n }", "protected function authenticated(Request $request, $user)\n {\n SM::update_user_meta($user->id, 'user_online_status', 1);\n }", "public function adminUserConditionMatchesRegularUser() {}", "public function setFailedUserCount(?int $value): void {\n $this->getBackingStore()->set('failedUserCount', $value);\n }", "public function setAppEvnAttempts ($v)\n {\n // Since the native PHP type for this column is integer,\n // we will cast the input value to an int (if it is not).\n if ( $v !== null && !is_int ($v) && is_numeric ($v) )\n {\n $v = (int) $v;\n }\n if ( $this->app_evn_attempts !== $v || $v === 0 )\n {\n $this->app_evn_attempts = $v;\n }\n }", "protected function doTestFallsThresholdSettings() {\n // Test with valid values.\n $thresholds = array(\n 'critical' => 6,\n 'warning' => 11,\n );\n $this->submitThresholdSettings('test_sensor_falls', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor falls')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_falls', $thresholds);\n\n // Make sure that it is possible to save empty thresholds.\n $thresholds = array(\n 'critical' => '',\n 'warning' => '',\n );\n $this->submitThresholdSettings('test_sensor_falls', $thresholds);\n $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'Test sensor falls')));\n $this->assertThresholdSettingsUIDefaults('test_sensor_falls', $thresholds);\n\n // Test validation.\n $thresholds = array(\n 'critical' => 50,\n 'warning' => 45,\n );\n $this->submitThresholdSettings('test_sensor_falls', $thresholds);\n $this->assertText('Warning must be higher than critical or empty.');\n\n $thresholds = array(\n 'critical' => 5,\n 'warning' => 5,\n );\n $this->submitThresholdSettings('test_sensor_falls', $thresholds);\n $this->assertText('Warning must be higher than critical or empty.');\n\n $thresholds = array(\n 'critical' => 'alphanumeric',\n 'warning' => 'alphanumeric',\n );\n $this->submitThresholdSettings('test_sensor_falls', $thresholds);\n $this->assertText('Warning must be a number.');\n $this->assertText('Critical must be a number.');\n return $thresholds;\n }", "private function setIntCondition($uid) {\n\t\t$this->setUid($uid); // just read the record (probably for backend)\n\t\t$this->condition = 'uid = ' . $this->getUid();\n\t}", "public function setBasicAuth()\n {\n $auth = $this->auth;\n\n if (null !== $auth['user']) {\n $this->mink->getSession()->setBasicAuth(\n $auth['user'],\n $auth['password']\n );\n }\n }", "function threadratinglog_activate()\n{\n\tchange_admin_permission('tools', 'ratinglog');\n}", "function bp_lb_check_bp_user_last_activity() {\n\t\tglobal $bp;\n\t\n\t\t//setup variables from settings page - get number of days before reminder\n\t\tif ( get_option( 'lightbox_alerts_days' ) ) {\n\t\n\t\t\t$time_to_check = get_option('lightbox_alerts_days') * 86400;\n\t\n\t\t\t//if lightbox_alerts_days is less than 0, set timer to 10 seconds\n\t\t\tif ( $time_to_check < 0 ) {\n\t\t\t\t$time_to_check = 10;\n\t\t\t}\n\t\n\t\t} else {\n\t\t\t$time_to_check = 8640000; //8640000 seconds = 100 days\n\t\t} \n\t\t//get current BuddyPress user\n\t\t$current_user = bp_loggedin_user_id();\n\t\n\t\t// TODO - document the last activity user meta - was defines last_activity\n\t\t//get last activity date\n\t\t$last_activity = strtotime( bp_get_user_meta( $current_user, 'last_activity', true ) );\n\t\n\t\t//calculate time since last activity\n\t\t$time_since_last_activity = time() - $last_activity;\n\t\t\n\t\t\n\t\t//check if time since last activity is greater than the setting value\n\t\tif ( $time_since_last_activity > $time_to_check ) { \n\t\t\t//echo \"<script type='text/javascript'>alert('HELLO');</script>\";\n\t\t\t//show lightbox \n\t\t\tbp_lb_show_email_still_correct_lightbox();\n\t\t}\n\t\n\t\n\t}", "public function testPatchVoicemailUserpolicy()\n {\n }", "public function setAlert($As_Alert)\n {\n $Lb_Return = true;\n $this->a_Errors = null;\n\n if ($As_Alert == 'select' || $As_Alert == 'lselect')\n {\n $this->a_State['alert'] = $As_Alert;\n } /* if */\n else\n {\n $this->a_Errors[] = Hue::SVNHUE_ERROR_WRONG_PARAMETER;\n $Lb_Return = false;\n } /* else */\n\n return($Lb_Return);\n }", "public function adminUserConditionMatchesAdminUser() {}", "function setAlertTypes($types)\n\t{\n\t\t$this->alertTypes = $types;\n\t}", "function can_access($min_level, $redirect = 'bienvenido'){\n if(! $this->CI->session->userdata('user') || $min_level > $this->CI->session->userdata('user')->level){\n redirect($redirect, 'refresh');\n } \n }", "public function applyAttributes($subject, $user) { \n\t\t$attribs = $subject->attributes;\n\t\t$user->email = $attribs['email'];\n\t\t$user->username = $attribs['username'];\n\t\t$user->locale = $attribs['locale'];\n\t\t$user->tzone = $attribs['tzone'];\n\t\t$user->activeOn = $attribs['active_on'];\n\t\t$user->userId = $attribs['user_login_id'];\n\n\t\t$user->enableAgent = $attribs['enable_agent'] == '1'? TRUE : FALSE;\n\t\tif ($user->enableAgent) {\n\t\t\t$user->agentKey = $attribs['agent_key'];\n\t\t}\n\t\treturn 0; \n\t}", "public function _setAttribute($user) {\n $this->user_id = $user->id;\n $this->auth_key = \\Yii::$app->security->generateRandomString(); \n $this->status = self::STATUS_LOGIN;\n }", "public function settings()\r\n {\r\n if ($this->request->is('post')) {\r\n\r\n $settingsChanged = false;\r\n\r\n $userId = $this->Session->read('Auth.User.id');\r\n\r\n $this->User->id = $userId;\r\n\r\n if ($this->request->data['User']['Clear All']) {\r\n $this->User->Reminder->deleteAll(\r\n array('Reminder.user_id' => $this->Session->read('Auth.User.id'), false)\r\n );\r\n }\r\n\r\n if (!empty($this->request->data['User']['email'])) {\r\n\r\n $this->User->set($this->request->data);\r\n $this->OpauthUser->set($this->request->data);\r\n\r\n $validUser = $this->User->validates(array('fieldList' => array('email')));\r\n $validOpauth = $this->OpauthUser->validates(array('fieldList' => array('email')));\r\n\r\n if ($this->Session->read('User.authType') == 'opauth') {\r\n\r\n $this->OpauthUser->id = $userId;\r\n\r\n if ($validOpauth && $validUser) {\r\n $this->OpauthUser->saveField('email', $this->request->data['User']['email'], false);\r\n $settingsChanged = true;\r\n }\r\n\r\n } else {\r\n\r\n if ($validUser && $validOpauth) {\r\n $this->User->saveField('email', $this->request->data['User']['email'], false);\r\n $settingsChanged = true;\r\n }\r\n }\r\n }\r\n\r\n if (!empty($this->request->data['User']['password'])) {\r\n\r\n if ($this->User->saveField('password', $this->request->data['User']['password'], true)) {\r\n $settingsChanged = true;\r\n }\r\n }\r\n\r\n if ($this->request->data['User']['timezone'] !== \"empty\") {\r\n\r\n if ($this->Session->read('User.authType') == 'opauth') {\r\n\r\n $this->OpauthUser->id = $userId;\r\n\r\n if ($this->OpauthUser->saveField('timezone', $this->request->data['User']['timezone'], false)) {\r\n $this->Session->write('Auth.User.timezone', $this->request->data['User']['timezone']);\r\n $settingsChanged = true;\r\n }\r\n\r\n } else {\r\n if ($this->User->saveField('timezone', $this->request->data['User']['timezone'], true)) {\r\n $this->Session->write('Auth.User.timezone', $this->request->data['User']['timezone']);\r\n $settingsChanged = true;\r\n }\r\n }\r\n }\r\n\r\n if ($this->request->data['User']['Clear All']) {\r\n $settingsChanged = true;\r\n $this->Session->setFlash('Cleared all reminders', 'successFlash');\r\n }\r\n\r\n if ($settingsChanged) {\r\n $this->Session->setFlash('Settings Changed', 'successFlash');\r\n\r\n } else {\r\n $this->Session->setFlash('Nothing to update', 'failureFlash');\r\n }\r\n }\r\n }", "function json_basic_auth_handler( $user ) {\n\treturn 1;\n}", "function setExternalAccessUserAuthorization( $flag = true )\r\n\t{\r\n\t $this->external_access_user_authorization = $flag;\r\n\t}", "public function setPower()\n {\n $this->_role->power = 200;\n }", "function owa_userLoginActionTracker($user_id) {\r\n\r\n\t$owa = owa_getInstance();\r\n\t$label = $user_id;\r\n\t$owa->trackAction('wordpress', 'User Login', $label);\r\n}", "public static function set_message($alert = NULL)\n\t{\n\t\tSession::instance()->set_flash('alert', $alert);\n\t}", "private function alertUsers()\n {\n User::query()->update(['is_sales_unread' => 1]);\n return true;\n }", "function disableAuth($value = true){\n\t\t$GLOBALS['amfphp']['disableAuth'] = $value;\n\t}", "public function isValidThreshold(Result $result): void\n {\n }", "public function alert($value = false) {\n if($value) return $this->alert = $value;\n return $this->alert; \n }", "public function checkUserSettings(){\n $data = $this->db->start()->get('*','user', array(array('id', '=', $_SESSION['_user']['id'])))->first();\n $_SESSION['_user'] = array('id' => $data->id, 'firstname' => $data->firstname, 'lastname' => $data->lastname, 'email' => $data->email, 'userLevel' => $this->getuserLevel($data->id)); \n }", "public function logUser()\n {\n if (!$this->limpid->visitCounterManager->getEntry($_SERVER['REMOTE_ADDR']))\n $this->limpid->visitCounterManager->logUser($_SERVER['REMOTE_ADDR']);\n else\n $this->limpid->visitCounterManager->editEntry($_SERVER['REMOTE_ADDR'], ['last_visit' => date('Y-m-d H:i:s')]);\n }", "public function setRenewalThresholdPercentage($val)\n {\n $this->_propDict[\"renewalThresholdPercentage\"] = intval($val);\n return $this;\n }", "function assignHQFrontAuth() {\n AuthComponent::$sessionKey = 'Auth.hqusers';\n $this->Auth->authenticate = array(\n 'Form' => array(\n 'userModel' => 'User',\n 'fields' => array('username' => 'email', 'password' => 'password', 'store_id'),\n 'scope' => array('User.merchant_id' => $this->Session->read('hq_id'), 'User.role_id' => array('4', '5'), 'User.is_active' => 1, 'User.is_deleted' => 0)\n )\n );\n }", "public function beforeFilter() {\n\t\t$this->Auth->authenticate = array('Hms');\n\t\t$this->Auth->authorize = array('Hms');\n\t}", "public function testRollbarConfigCheckIgnoredPayloadLevelTooLow(): void\n {\n Rollbar::init([\n 'access_token' => $this->getTestAccessToken(),\n 'environment' => 'testing-php',\n 'verbose_logger' => $this->verboseLogger,\n 'minimum_level' => \\Rollbar\\Payload\\Level::ERROR,\n ]);\n\n $config = Rollbar::logger()->getConfig();\n $data = $config->getRollbarData(\\Rollbar\\Payload\\Level::INFO, 'some message', array());\n $payload = new \\Rollbar\\Payload\\Payload($data, $this->getTestAccessToken());\n $config->checkIgnored($payload, 'some message', false);\n\n $this->assertVerboseLogContains('Occurrence\\'s level is too low', LogLevel::DEBUG);\n }", "function owa_userPasswordResetActionTracker($user) {\r\n\t\r\n\t$owa = owa_getInstance();\r\n\t$label = $user->display_name;\r\n\t$owa->trackAction('wordpress', 'User Password Reset', $label);\r\n}", "public function setLastScoringUpdateUser($a_val)\n\t{\n\t\t$this->scoring_update_user = (int)$a_val;\n\t}", "function assignFrontAuth() {\n AuthComponent::$sessionKey = 'Auth.User';\n $this->Auth->authenticate = array(\n 'Form' => array(\n 'userModel' => 'User',\n 'fields' => array('username' => 'email', 'password' => 'password', 'store_id'),\n 'scope' => array('User.merchant_id' => $this->Session->read('merchant_id'), 'User.role_id' => array('4', '5'), 'User.is_active' => 1, 'User.is_deleted' => 0)\n )\n );\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 enableUserAccessCheck($a_status)\n\t{\n\t\t$this->user_access_check = $a_status;\n\t}" ]
[ "0.6097758", "0.58039176", "0.5730992", "0.56513774", "0.5360514", "0.5158001", "0.50475264", "0.49350056", "0.49167612", "0.4905111", "0.49037218", "0.48978367", "0.4874143", "0.48601896", "0.48544258", "0.48509738", "0.48378927", "0.48186943", "0.48150748", "0.48000774", "0.4785695", "0.47722813", "0.47449106", "0.4730404", "0.47199714", "0.47109985", "0.46892372", "0.46748486", "0.46538383", "0.46438092", "0.46289635", "0.46006164", "0.4599857", "0.45881775", "0.4585133", "0.45477578", "0.45377496", "0.45292127", "0.4524278", "0.45030308", "0.44967982", "0.4483152", "0.4475178", "0.44701928", "0.44520015", "0.4436648", "0.44330403", "0.44256505", "0.44252303", "0.4424343", "0.44129467", "0.4401894", "0.43976173", "0.43714508", "0.43623626", "0.4353667", "0.43532452", "0.43445027", "0.43437874", "0.43336332", "0.43333864", "0.43165746", "0.4296477", "0.42917523", "0.42844898", "0.4283452", "0.42780352", "0.4270561", "0.4263952", "0.4259249", "0.42518112", "0.42493045", "0.4247116", "0.424591", "0.42396334", "0.42317697", "0.42274615", "0.42070693", "0.42056268", "0.42024532", "0.4199414", "0.41984633", "0.4197465", "0.41938832", "0.4191739", "0.41896856", "0.41787893", "0.41772258", "0.41736317", "0.41712326", "0.41705465", "0.41675892", "0.41665006", "0.41637766", "0.41593856", "0.41528687", "0.41440833", "0.414071", "0.41271943", "0.41227296" ]
0.6730401
0
Metodos para manejar el CRUD
public function readUsuarios() { $sql = 'SELECT IdRol, Nombre, Apellido, Telefono, Email, u.IdEstado, IdUsuario FROM usuarios u ORDER BY Apellido'; $params = array(null); return Database::getRows($sql, $params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setupCreateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n CRUD::field('key')->type('text')->label('ID key');\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('type')\n ->type('select_from_array')\n ->label('Type de widget')\n ->options([\n 'ckeditor' => 'ckeditor',\n 'textarea' => 'textarea',\n 'text' => 'text',\n ]);\n }", "public function Crud(){\n $pvd = new alumno();\n\n //Se obtienen los datos del alumno a editar.\n if(isset($_REQUEST['persona_id'])){\n $pvd = $this->model->Obtener($_REQUEST['persona_id']);\n }\n\n //Llamado de las vistas.\n require_once '../Vista/Alumno/editar-alumnos.php';\n\t}", "protected function setupUpdateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n $readonly = [];\n if (User::min('id') !== backpack_user()->id) {\n $readonly = ['readonly' => 'readonly'];\n }\n\n CRUD::field('key')->type('text')->label('ID key')->attributes($readonly);\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('value')->type(CRUD::getCurrentEntry()->type)->label('Contenu');\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(CommunicationRequest::class);\n $this->crud->setCreateContentClass('col-md-12');\n // $this->crud->addField([\n // 'label' => 'Case Number',\n // 'type' => 'text',\n // 'name' => 'code',\n // 'wrapper' => [\n // 'class' => 'form-group col-md-6'\n // ]\n // ]);\n $this->crud->addField([\n 'label' => 'Owner',\n 'type' => 'select',\n 'name' => 'user_id',\n 'attribute' =>'name',\n 'entity' => 'user',\n 'model' => 'App\\Models\\user',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n\n 'label' => 'Company',\n 'type' => 'hidden',\n 'name' => 'person_id',\n 'attribute' =>'company_name',\n 'attributes' => [\n 'readonly' => 'readonly',\n ],\n 'default' => request()->input('person_id', ''),\n\n ]);\n $this->crud->addField([\n 'label' => 'Type',\n 'type' => 'select',\n 'name' => 'communication_types_id',\n 'type' => 'select_from_array',\n 'options' => [\n 'Out Of Stock' => 'Out Of Stock',\n 'Out Of List' => 'Out Of List',\n 'Complaint' => 'Complaint',\n 'Price' => 'Price',\n 'Evaluation' => 'Evaluation',\n ],\n 'allows_null' => true,\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Communication',\n 'type' => 'select_from_array',\n 'name' => 'communication_ways_id',\n 'allows_null' => true,\n 'options' => [\n 'Phone' => 'Phone',\n 'Telegram' => 'Telegram',\n 'Physical' => 'Physical',\n 'E-Mail' => 'E-Mail',\n 'Facebook' => 'Facebook',\n ],\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'All Day(If Complaint)',\n 'type' => 'radio',\n 'name' => 'comp_type',\n 'options' => [\n 0 => \"product\",\n 1 => \"Service\",\n ],\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Product',\n 'type' => 'text',\n 'name' => 'product',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Quantity',\n 'type' => 'number',\n 'name' => 'quantity',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Second',\n 'type' => 'number',\n 'name' => 'second',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Remarks',\n 'type' => 'textarea',\n 'name' => 'remarks',\n 'wrapper' => [\n 'class' => 'form-group col-md-12'\n ]\n ]);\n\n }", "public function setup() {\n\t\t/*\n\t\t|--------------------------------------------------------------------------\n\t\t| BASIC CRUD INFORMATION\n\t\t|--------------------------------------------------------------------------\n\t\t*/\n $this->crud->setModel(\"App\\Models\\CoursEnLigne\");\n $this->crud->setRoute(\"admin/coursenligne\");\n $this->crud->setEntityNameStrings('cours en ligne', 'cours en ligne');\n\t\t/*\n\t\t|--------------------------------------------------------------------------\n\t\t| COLUMNS AND FIELDS\n\t\t|--------------------------------------------------------------------------\n\t\t*/\n\t\t// ------ CRUD COLUMNS\n $this->crud->setColumns(['titre', ['label' => \"Nom du formateur\",\n \t\t 'type' => 'select',\n 'name' => 'formateur_id',\n \t\t 'entity' => 'formateur',\n \t\t 'attribute' => 'full_name',\n \t\t 'model' => \"App\\Models\\Formateur\"\n \t\t\t ]\n ]);\n\t\t// ------ CRUD FIELDS\n $this->crud->addField([\n\t\t\t'name' => 'titre',\n\t\t\t'label' => \"Titre*\"\n\t\t]);\n\t\t$this->crud->addField([ // SELECT\n 'label' => \"Formateur*\",\n 'type' => 'select2',\n 'name' => 'formateur_id',\n 'entity' => 'formateur',\n 'attribute' => 'full_name',\n 'model' => \"App\\Models\\Formateur\",\n ]);\n $this->crud->addField([\n\t\t\t'name' => 'texte',\n\t\t\t'label' => \"Texte\",\n\t\t\t'type' => 'wysiwyg'\n\t\t]);\n\t\t$this->crud->addField([ // date_picker\n\t\t 'name' => 'date',\n\t\t 'type' => 'date_picker',\n\t\t 'label' => 'Date',\n\t\t // optional:\n\t\t 'date_picker_options' => [\n\t\t 'todayBtn' => true,\n\t\t 'format' => 'dd-mm-yyyy',\n\t\t 'language' => 'fr'\n\t\t ],\n\t\t]);\n\n\t\t$this->crud->addField([ // Time\n \t\t 'name' => 'heure',\n \t\t'label' => 'Heure',\n \t\t'type' => 'time'\n\t\t]);\n\t\t$this->crud->addField([\n\t\t\t'name' => 'prix',\n\t\t\t'label' => \"Prix*\",\n\t\t\t'type' => 'number'\n\t\t]);\n\t\t$this->crud->addField([\n\t\t\t'name' => 'stock',\n\t\t\t'label' => \"En stock\",\n\t\t\t'type' => 'checkbox'\n\t\t]);\n\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(StudentRequest::class);\n CRUD::addField([\n 'name' => 'candidate_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'father_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'phone',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'address',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'cnic',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'label' => 'School Roll Number',\n 'name' => 'school_rollnumber',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'religion',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n $this->crud->addField([ // select_from_array\n 'name' => 'gender',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'label' => \"Gender\",\n 'type' => 'select_from_array',\n 'options' => ['male' => 'Male', 'female' => 'Female'],\n 'allows_null' => false,\n 'default' => 'male',\n // 'allows_multiple' => true, // OPTIONAL; needs you to cast this to array in your model;\n ]);\n $this->crud->addField(\n [ // date_picker\n 'name' => 'date_of_birth',\n 'type' => 'date_picker',\n 'label' => 'Date',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n // optional:\n 'date_picker_options' => [\n 'todayBtn' => 'linked',\n 'format' => 'dd-mm-yyyy',\n 'language' => 'en'\n ],\n ],\n );\n if (auth()->user()->can('manage_all_student')) {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'relationship',\n 'name' => 'school_id', // the db column for the foreign key\n 'entity' => 'school', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => 'App\\Models\\School',\n\n ]);\n } else {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'hidden',\n 'name' => 'school_id', // the db column for the foreign key\n 'value' => auth()->user()->school->id,\n\n ]);\n }\n\n $this->crud->addField([\n 'label' => \"Student Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'crop' => true, // set to true to allow cropping, false to disable\n 'aspect_ratio' => 0, // ommit or set to 0 to allow any aspect ratio\n // 'disk' => 's3_bucket', // in case you need to show images from a different disk\n // 'prefix' => 'uploads/images/profile_pictures/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user;\n ]);\n $this->crud->addFields(static::getFieldsArrayForLoginTab());\n\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "public function Crud(){\n $pvd = new tutoria();\n\n //Se obtienen los datos del tutoria a editar.\n if(isset($_REQUEST['persona_id'])){\n $pvd = $this->model->Obtener($_REQUEST['persona_id']);\n }\n\n //Llamado de las vistas.\n require_once '../Vista/Tutoria/editar-tutorias.php';\n\t}", "protected function setupCreateOperation()\n {\n abort(404);\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "function InstalacionesCRUD()\n {\n parent::__construct();\n }", "protected function setupUpdateOperation()\n {\n CRUD::setValidation(StudentUpdateRequest::class);\n CRUD::addField([\n 'name' => 'candidate_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'father_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'phone',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'address',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'cnic',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'label' => 'School Roll Number',\n 'name' => 'school_rollnumber',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'religion',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n $this->crud->addField([ // select_from_array\n 'name' => 'gender',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'label' => \"Gender\",\n 'type' => 'select_from_array',\n 'options' => ['male' => 'Male', 'female' => 'Female'],\n 'allows_null' => false,\n 'default' => 'male',\n // 'allows_multiple' => true, // OPTIONAL; needs you to cast this to array in your model;\n ]);\n $this->crud->addField(\n [ // date_picker\n 'name' => 'date_of_birth',\n\n 'type' => 'date_picker',\n 'label' => 'Date',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n // optional:\n 'date_picker_options' => [\n 'todayBtn' => 'linked',\n 'format' => 'dd-mm-yyyy',\n 'language' => 'en'\n ],\n ],\n );\n $this->crud->addField([\n 'label' => \"Student Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'crop' => true, // set to true to allow cropping, false to disable\n 'aspect_ratio' => 0, // ommit or set to 0 to allow any aspect ratio\n // 'disk' => 's3_bucket', // in case you need to show images from a different disk\n // 'prefix' => 'uploads/images/profile_pictures/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user;\n ]);\n if (auth()->user()->can('manage_all_student')) {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'relationship',\n 'name' => 'school_id', // the db column for the foreign key\n 'entity' => 'school', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => 'App\\Models\\School',\n\n ]);\n } else {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'hidden',\n 'name' => 'school_id', // the db column for the foreign key\n 'value' => auth()->user()->school->id,\n\n ]);\n }\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(PenyakitRequest::class);\n\n //CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n $this->crud->addField(\n [\n 'name' => 'nama_penyakit',\n 'type' => 'text',\n 'label' => 'Nama Penyakit'\n\n ]\n );\n\n $this->crud->addField(\n [\n 'name' => 'deskripsi',\n 'label' => 'Deskripsi',\n 'type' => 'summernote',\n 'options' => [\n 'toolbar' => [\n ['style', ['style']],\n ['font', ['bold', 'underline', 'clear']],\n ['color', ['color']],\n ['para', ['ul', 'ol', 'paragraph']],\n ['table', ['table']],\n ['insert', ['link', 'picture', 'video']],\n ['view', ['fullscreen', 'codeview', 'help']]\n ]\n ],\n ],\n );\n\n $this->crud->addField(\n [\n 'name' => 'saran',\n 'label' => 'Saran',\n 'type' => 'summernote',\n 'options' => [\n 'toolbar' => [\n ['style', ['style']],\n ['font', ['bold', 'underline', 'clear']],\n ['color', ['color']],\n ['para', ['ul', 'ol', 'paragraph']],\n ['table', ['table']],\n ['insert', ['link', 'picture', 'video']],\n ['view', ['fullscreen', 'codeview', 'help']]\n ]\n ],\n ],\n );\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(UserRequest::class);\n\n $this->crud->setOperationSetting('contentClass', 'col-md-12 bold-labels');\n $this->crud->addFields([\n [ \n 'name' => 'name',\n 'label' => 'Name',\n 'type' => 'text',\n ],\n [ \n 'name' => 'password',\n 'label' => 'Password',\n 'type' => 'password',\n ],\n [ \n 'name' => 'email',\n 'label' => 'Email',\n 'type' => 'email',\n ],\n [ // radio\n 'name' => 'type_id', // the name of the db column\n 'label' => 'Type', // the input label\n 'type' => 'radio',\n 'options' => [\n // the key will be stored in the db, the value will be shown as label; \n 0 => \"Collector\",\n 1 => \"Administrator\"\n ],\n 'inline' => true, // show the radios all on the same line?\n ],\n ]);\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(CustomerRequest::class);\n\n $this->crud->setOperationSetting('contentClass', 'col-md-12 bold-labels');\n $this->crud->addFields([\n [ \n 'name' => 'name',\n 'label' => 'Name',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n\n\n ],\n [ \n 'name' => 'national_id',\n 'label' => 'National ID',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n\n ],\n [ \n 'name' => 'trademark',\n 'label' => 'Trademark',\n 'type' => 'text',\n\n ],\n [ \n 'name' => 'district',\n 'label' => 'District',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'address',\n 'label' => 'Address',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'mobile_one',\n 'label' => 'Mobile 1',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'mobile_two',\n 'label' => 'Mobile 2',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'target',\n 'label' => 'Target',\n 'type' => 'number',\n ],\n [ // relationship\n 'type' => \"relationship\",\n 'name' => 'user_id', // the method on your model that defines the relationship\n 'label' => \"Collector\",\n 'attribute' => \"name\", // foreign key attribute that is shown to user (identifiable attribute)\n 'placeholder' => \"Select a Collector\", // placeholder for the select2 input\n 'entity' => 'User', // the method that defines the relationship in your Model\n\n // OPTIONALS:\n // 'attribute' => \"name\", // foreign key attribute that is shown to user (identifiable attribute)\n // 'model' => \"App\\Models\\Category\", // foreign key Eloquent model\n ],\n ]);\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(UserRequest::class);\n\n CRUD::field('first_name');\n CRUD::field('last_name');\n CRUD::field('username');\n CRUD::field('email');\n CRUD::field('password');\n CRUD::field('status');\n\n // $password = bcrypt('Password');\n // CRUD::field($password);\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number'])); \n */\n }", "protected function setupShowOperation(): void\n {\n $this->crud->addColumn([\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Наименование',\n ]);\n $this->crud->addColumn([\n 'name' => 'category_id',\n 'type' => 'select',\n 'label' => 'Категория',\n 'entity' => 'category',\n 'attribute' => \"name\",\n 'model' => Category::class,\n ]);\n $this->crud->addColumn([\n 'name' => 'photos',\n 'label' => 'Фотографии',\n 'type' => 'upload_multiple',\n 'disk' => 'public'\n ]);\n $this->crud->addColumn([\n 'name' => 'attributes',\n 'label' => 'Атрибуты',\n 'type' => 'attributes',\n 'entity_singular' => 'атрибут',\n 'columns' => [\n 'name' => 'Название атрибута',\n 'value' => 'Значение',\n ],\n 'min' => 0,\n ]);\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(TaskRequest::class);\n\n // CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number'])); \n */\n CRUD::addField(['label' => \"Name\",\n 'name' => 'name',]\n );\n CRUD::addField([ // Select\n 'label' => \"Project\",\n 'type' => 'select',\n 'name' => 'project_id', // the db column for the foreign key\n \n // optional \n // 'entity' should point to the method that defines the relationship in your Model\n // defining entity will make Backpack guess 'model' and 'attribute'\n 'entity' => 'project', \n \n // optional - manually specify the related model and attribute\n 'model' => \"App\\Models\\Project\", // related model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n \n // optional - force the related options to be a custom query, instead of all();\n ]);\n\n }", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $name = $this->textCol('name', ' Name');\n $email = $this->emailCol('email', 'Email');\n CRUD::addColumns([$name, $email]);\n }", "protected function setupListOperation()\n {\n CRUD::column('key')->label('ID key')->type('text');\n CRUD::column('name')->label('Nom')->type('text')->limit(200);\n }", "public function editAction() {}", "private function _get_crud_for_index() {\t\t\n\t\t$data = array(\n\t\t\t'insert' => array(\n\t\t\t\tarray ('name' => 'name', 'label' => t('Role name'), 'type' => 'input',\n\t\t\t\t\t'rules' => array('unique', 'required', array('max_length' => 30, 'min_length' => 3), 'trim'),),\n\t\t\t),\n\t\t\t'select' => array(\n\t\t\t\tarray('name' => 'id', 'label' => 'ID', 'rules' => array('key', 'hidden', 'trim'),),\n\t\t\t\tarray('name' => 'name',\t'label' => t('Role name'), 'link' => 'example1/acl/screens/{id}', \n\t\t\t\t\t'rules' => array('trim', 'htmlspecialchars'),),\n\t\t\t),\n\t\t\t'update' => array(\n\t\t\t\tarray('name' => 'name',\t'label' => t('Role name'), 'type' => 'input', \n\t\t\t\t\t'rules' => array('unique', 'required', array('max_length' => 30, 'min_length' => 3), 'trim'),),\n\t\t\t),\n\t\t\t'delete' => array(\n\t\t\t\tarray('name' => 'name', 'label' => t('Role name'),),\n\t\t\t),\n 'search' => array('name' => t('Role name')),\n\t\t\t'datasource' => array(\n\t\t\t\t'table' => 'oci_roles',\n\t\t\t),\n\t\t\t'properties' => array(\n\t\t\t\t'name' => 'roles',\n\t\t\t\t'uri' => 'example1/roles/index',\n\t\t\t\t'index_column' => TRUE,\n\t\t\t\t'index_column_start' => 1,\n 'pagination' => TRUE,\n\t\t\t\t'pagination_per_page' => 5,\n\t\t\t\t'insert' => TRUE,\n\t\t\t\t'update' => TRUE,\n\t\t\t\t'delete' => TRUE,\n\t\t\t\t'crud_title' => NULL,\n\t\t\t\t'crud_form_title' => '<h2>'.t('List of Roles').'</h2>',\n\t\t\t\t'insert_form_title' => '<h2>'.t('Insert Data').'</h2>',\n\t\t\t\t'update_form_title' => '<h2>'.t('Update Data').'</h2>',\n\t\t\t\t'delete_form_title' => '<h2>'.t('Delete Data').'</h2>',\n\t\t\t),\n\t\t);\n\t\t$this->crud->set_data($data);\n\t\treturn $this->crud->render();\n\t}", "abstract function get_crud_service();", "protected function setupCreateOperation()\n {\n CRUD::setValidation(LocationRequest::class);\n\n CRUD::field('name');\n CRUD::field('bookinglink')->label('Booking URL');\n CRUD::field('phone')->label('Booking Phone');\n CRUD::field('provider_url')->label('Provider URL');\n CRUD::field('provider_phone');\n CRUD::field('address')\n ->type('textarea');\n CRUD::field('alternate_addresses')\n ->label('Alternate Addresses (first line of additional addresses for matching purposes only; one per line)')\n ->type('textarea');\n //CRUD::field('address2');\n //CRUD::field('city');\n //CRUD::field('state');\n CRUD::field('zip');\n CRUD::field('serves');\n CRUD::field('vaccinesoffered');\n CRUD::field('siteinstructions');\n CRUD::field('daysopen');\n CRUD::field('county');\n CRUD::field('latitude');\n CRUD::field('longitude');\n CRUD::field('system_type');\n CRUD::addField([\n 'name' => 'appointmentTypes',\n 'entity' => 'appointmentTypes',\n 'type' => 'relationship',\n 'attribute' => 'name',\n ]);\n CRUD::addField([\n 'name' => 'location_type_id',\n 'entity' => 'type',\n 'type' => 'relationship',\n 'attribute' => 'name',\n ]);\n CRUD::addField([\n 'name' => 'location_type_id',\n 'entity' => 'type',\n 'type' => 'relationship',\n 'attribute' => 'name',\n ]);\n CRUD::addField([\n 'name' => 'location_source_id',\n 'entity' => 'locationSource',\n 'type' => 'relationship',\n 'attribute' => 'name',\n ]);\n CRUD::addField([\n 'name' => 'data_update_method_id',\n 'entity' => 'dataUpdateMethod',\n 'type' => 'relationship',\n 'attribute' => 'name',\n ]);\n CRUD::addField([\n 'name' => 'collector_user_id',\n 'entity' => 'collectorUser',\n 'type' => 'relationship',\n 'attribute' => 'name',\n ]);\n CRUD::field('tags');\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number'])); \n */\n }", "protected function setupListOperation()\n {\n //CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n $this->crud->addColumn('nama_penyakit');\n //$this->crud->allowAccess('details_row');\n //$this->crud->enableDetailsRow();\n\n\n }", "protected function setupCreateOperation()\n {\n $this->addUserFields();\n $this->crud->setValidation(StoreRequest::class);\n// CRUD::setValidation(UserRequest::class);\n//\n// CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $this->crud->addColumns([\n ['name' => 'name', 'type' => 'text', 'label' => 'Name'],\n ['name' => 'description', 'type' => 'text', 'label' => 'Description'],\n ['name' => 'location' , 'type' => 'text' , 'label' => 'Location'],\n ['name' => 'date' , 'type' => 'date' , 'label' => 'Date'],\n [\n 'label' => \"Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'upload' => true,\n 'crop' => false,\n 'aspect_ratio' => 0,\n ],\n [ // Select\n 'label' => \"Instructor\",\n 'type' => 'select',\n 'name' => 'user_id', // the db column for the foreign key\n 'entity' => 'user', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n ]\n ]);\n // $this->crud->addButton();\n $this->crud->filters();\n }", "protected function setupListOperation()\n {\n $this->crud->addColumns([\n [\n 'name' => 'name',\n 'label' => 'Название',\n ],\n [\n 'name' => 'description',\n 'label' => 'Описание',\n\n ],\n [\n 'name' => 'price',\n 'label' => 'Цена',\n ],\n [\n 'name' => 'time_start',\n 'label' => 'Дата начало',\n 'type' => \"date\",\n ],\n [\n 'name' => 'time_finish',\n 'label' => 'Дата финиша',\n 'type' => \"date\",\n ],\n [\n 'name' => 'car_id',\n 'label' => 'Автомобиль',\n 'type' => 'select',\n 'entity' => 'car',\n 'attribute' => 'register_id',\n 'model' => 'App\\Models\\Car',\n ],\n [\n 'name' => 'employee_id',\n 'label' => 'Сотрудник',\n 'type' => 'select',\n 'entity' => 'employee',\n 'attribute' => 'full_name',\n 'model' => 'App\\Models\\Employee',\n ],\n ]);\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(DeliveryNoteDetailRequest::class);\n\n CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "public function setup()\n {\n CRUD::setModel('App\\Models\\Request');\n CRUD::setRoute(config('backpack.base.route_prefix').'/request');\n CRUD::setEntityNameStrings('demande', 'demandes');\n if (! $this->crud->getRequest()->has('order')) {\n CRUD::orderBy('created_at', 'DESC');\n }\n $this->crud->enableDetailsRow();\n }", "public function crud() {\n\t\t\n\t\t$this->load->model('Produttori_model','produttori');\n\t\t$data=array(\"produttore\" => \"franco\");\n\t\t$this->produttori->create($data);\n\t\t$this->produttori->update(array(),1);\n\t\t$this->produttori->delete(3);\n\t\tvar_dump ($this->produttori->read());\n\t\t$this->load->view('welcome_message');\n\t}", "public function editar()\n {\n\t\tif($this->_Method == \"POST\")\n\t\t{\n\t\t\t$this->editar_post();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->editar_get();\n\t\t}\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(StoreRequest::class);\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupUpdateOperation()\n {\n// $this->setupCreateOperation();\n $this->addUserFields();\n $this->crud->setValidation(UpdateRequest::class);\n }", "protected function setupCreateOperation()\n {\n if (About::count() === 0) {\n $this->createUpdate();\n }\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "public function editAction()\r\n {\r\n }", "protected function setupCreateOperation()\n {\n $this->crud->addField(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addField([\n 'name' => 'school_id',\n 'type' => 'select',\n 'label' => 'School Name',\n 'entity' => 'School', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\School\", // foreign key model\n ]);\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupListOperation()\n {\n\n $this->crud->setColumns([\n [ \n 'name' => 'id',\n 'label' => 'ID',\n 'type' => 'number',\n\n ],\n [\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Customer',\n 'orderable' => false,\n ],\n [\n 'name' => 'target',\n 'type' => 'number',\n 'label' => 'Target',\n 'orderable' => false,\n ],\n [\n // non-relationship count\n 'name' => 'Machines', // name of relationship method in the model\n 'type' => 'relationship_count', \n 'label' => 'Machines', // Table column heading\n // OPTIONAL\n 'suffix' => '', // to show \"123 tags\" instead of \"123 items\"\n ],\n [\n 'name' => 'balance',\n 'type' => 'text',\n 'label' => 'Balance',\n ],\n [ \n // any type of relationship\n 'name' => 'User', // name of relationship method in the model\n 'type' => 'relationship',\n 'label' => 'Collector', // Table column heading\n // OPTIONAL\n // 'entity' => 'tags', // the method that defines the relationship in your Model\n // 'attribute' => 'name', // foreign key attribute that is shown to user\n // 'model' => App\\Models\\Category::class, // foreign key model\n ],\n ]);\n\n }", "public function __construct() {\r\n\t\tif (isset($_GET['edit'])) {\r\n\r\n\t\t\t// se é edição\r\n\t\t\t$this->editCadastro();\r\n\r\n\t\t} elseif (isset($_GET['editCadastro'])) {\r\n\r\n\t\t\t// se é cadastro\r\n\t\t\t$this->insertForm('edit',$_GET['editCadastro']);\r\n\r\n\t\t} elseif (isset($_GET['add'])) {\r\n\r\n\t\t\t// se é cadastro\r\n\t\t\t$this->addCadastro();\r\n\t\t\t$this->formCadastro();\r\n\r\n\t\t} elseif (isset($_GET['addCadastro'])) {\r\n\r\n\t\t\t// se é cadastro\r\n\t\t\t$this->insertForm('add',0);\r\n\r\n\t\t} elseif (isset($_GET['del'])) {\r\n\r\n\t\t\t// se é delete\r\n\t\t\t$this->delCadastro($_GET['del']);\r\n\r\n\t\t} else {\r\n\r\n\t\t\t// senao, é listagem\r\n\t\t\t$this->formCadastro();\r\n\t\t}\r\n\r\n\t}", "public function Crud(){\r\n \r\n // if(isset($_REQUEST['Seq_Registro'])){\r\n // $alm = $this->model->Obtener($_REQUEST['Seq_Registro']);\r\n // }\r\n \r\n // require_once 'view/header.php';\r\n // require_once 'view/Registro/Nuevo_registro.php';\r\n // require_once 'view/footer.php';\r\n require_once 'view/medics/create.php';\r\n }", "public function crudUpdated()\n {\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n $this->crud->setColumns([\n [ \n 'name' => 'id',\n 'label' => 'ID',\n 'type' => 'number',\n\n ],\n [\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Name',\n 'orderable' => false,\n ],\n [\n // non-relationship count\n 'name' => 'Customer', // name of relationship method in the model\n 'type' => 'relationship_count', \n 'label' => 'Customers', // Table column heading\n // OPTIONAL\n 'suffix' => '', // to show \"123 tags\" instead of \"123 items\"\n ],\n [\n 'name' => 'type_id',\n 'label' => 'Permission',\n 'type' => 'boolean',\n 'options' => [0 => 'Collector', 1 => 'Administrator']\n ],\n\n ]);\n\n $this->crud->addButtonFromModelFunction('line', 'open_google', 'openReceive', 'beginning');\n }", "public function editar ()\n {\n try {\n // Define a ação de editar\n $acao = Orcamento_Business_Dados::ACTION_EDITAR;\n \n if ( $this->_requisicao->isGet () ) {\n // Retorna parâmetros informados via get, após validações\n $parametros = $this->trataParametroGet ( 'cod' );\n \n // Busca os dados a exibir, após validações\n $registro = $this->trataRegistro ( $acao, $parametros );\n \n // Cria o formulário populado com os dados\n $formulario = $this->popularFormulario ( $acao, $registro );\n \n // Faz transformações no formulário, se necessário\n $formulario = $this->transformaFormulario ( $formulario, $acao );\n \n // Bloqueia a edição de campos de chave primária (ou composta)\n $this->bloqueiaCamposChave ( $formulario );\n \n // Bloqueia todos os campos\n $this->bloqueiaCamposTodos ( $acao, $formulario, $registro );\n \n // Exibe o formulário\n $this->view->formulario = $formulario;\n } else {\n // Cria o formulário vazio\n $formulario = $this->retornaFormulario ( $acao );\n \n // Grava o novo registro\n $this->gravaDados ( $acao, $formulario );\n }\n } catch ( Exception $e ) {\n // Gera o erro\n throw new Zend_Exception ( $e->getMessage () );\n }\n }", "protected function setupListOperation()\n {\n if (About::count() > 0) {\n $this->crud->denyAccess((array)'create');\n }\n// CRUD::addColumn(['name' => 'text_one', 'label' => 'Текст первый']); // columns\n CRUD::addColumn(['name' => 'image_one', 'type' => 'image', 'label' => 'Изображение первое']); // columns\n// CRUD::addColumn(['name' => 'text_two', 'label' => 'Текст второй']); // columns\n CRUD::addColumn(['name' => 'image_two', 'type' => 'image', 'label' => 'Изображение второе']); // columns\n CRUD::addColumn(['name' => 'image_third', 'type' => 'image', 'label' => 'Изображение второе']); // columns\n CRUD::addColumn(['name' => 'image_four', 'type' => 'image', 'label' => 'Изображение второе']); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(CodeRequest::class);\n\n $this->addFieldDescriptionText();\n $this->addFieldIsVisibleCheckbox();\n }", "protected function setupListOperation()\n {\n $this->crud->removeAllButtons();\n $this->crud->disableResponsiveTable();\n CRUD::column('name');\n CRUD::column('cron_expression');\n CRUD::column('grace_time_in_minutes');\n CRUD::column('last_failed_at');\n CRUD::column('last_finished_at');\n// CRUD::column('last_pinged_at');\n CRUD::column('last_skipped_at');\n CRUD::column('last_started_at');\n// CRUD::column('ping_url');\n// CRUD::column('registered_on_oh_dear_at');\n CRUD::column('timezone');\n CRUD::column('type');\n CRUD::column('updated_at');\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function generate() : CRUD {\n\n if (sizeof($this->_customs) > 0) {\n\n foreach($this->_customs as $route => $endpoint) {\n\n if ($this->_middleware) {\n $endpoint['middleware'] = $this->_middleware;\n }\n\n Router::add($this->route . $route, $endpoint);\n }\n\n }\n\n if ($this->_list || $this->_create) {\n\n $route = [];\n\n if ($this->_list) {\n if ($this->_middleware) {\n $this->_list['middleware'] = $this->_middleware;\n }\n $route['GET'] = $this->_list;\n }\n if ($this->_create) {\n if ($this->_middleware) {\n $this->_create['middleware'] = $this->_middleware;\n }\n $route['POST'] = $this->_create;\n }\n\n Router::add($this->route, $route);\n }\n\n if (\n $this->_get ||\n $this->_edit ||\n $this->_delete\n ) {\n $route = [];\n\n if ($this->_get) {\n if ($this->_middleware) {\n $this->_get['middleware'] = $this->_middleware;\n }\n $route['GET'] = $this->_get;\n }\n if ($this->_edit) {\n if ($this->_middleware) {\n $this->_edit['middleware'] = $this->_middleware;\n }\n $route['PUT'] = $this->_edit;\n }\n if ($this->_delete) {\n if ($this->_middleware) {\n $this->_delete['middleware'] = $this->_middleware;\n }\n $route['DELETE'] = $this->_delete;\n }\n\n Router::add($this->route . '/:id', $route);\n }\n\n return $this;\n\n }", "public function edit() {\n\t\t\t\n\t\t}", "public function __construct() {\n\n\t\t// get Session data\n\t\t$this->session = Session::get();\n\n\t\t// get Response format (json, unless html is explicitly asked for)\n\t\t(strpos($_SERVER['HTTP_ACCEPT'], 'html')) ? $this->format = 'html' : $this->format = 'json';\n\n\t\t// get URI data\n\t\t$this->uri = new URI();\n\n\t\t// get Request method\n\t\t$this->method = $this->crud_map[$_SERVER['REQUEST_METHOD']];\n\n\t\t// get Model\n\t\t$this->model = $this->uri->get('model', 'index');\n\n\t\t// get Request body\n\t\t//\t\t@todo: combine this switch into a simpler statement that uses php://input for all methods\n\t\t//\t\t\t\tand can tell if data is url encoded (parse_str) or json.\n\t\tswitch($this->method) {\n\t\t\tcase 'create':\n\t\t\t\t$this->data = $_POST;\n\t\t\t\tbreak;\n\t\t\tcase 'read':\n\t\t\t\t$this->data = $_GET;\n\t\t\t\tbreak;\n\t\t\tcase 'update':\n\t\t\t\tparse_str(file_get_contents('php://input'), $_put);\n\t\t\t\t$this->data = $_put;\n\t\t\t\tbreak;\n\t\t\tcase 'delete':\n\t\t\t\tparse_str(file_get_contents('php://input'), $_delete);\n\t\t\t\t$this->data = $_delete;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// get User data\n\t\t$this->user = new User(Session::get('user_id',0));\n\t}", "public function listoAction() \n { \n $form = new Formulario(\"form\");\n // valores iniciales formulario (C)\n $id = $this->params()->fromRoute('id', 0);\n \n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter'); \n $d = new AlbumTable($this->dbAdapter);\n $pos = strpos($id, \".\"); \n $idIasp = substr($id, 0 , $pos ); // Id item aspectos \n $idCar = substr($id, $pos+1 , 100 ); // id Cargo\n $form->get(\"id\")->setAttribute(\"value\",$idIasp); \n $form->get(\"id2\")->setAttribute(\"value\",$idCar); \n \n if ($id==0)\n { \n $data = $this->request->getPost();\n $idIasp = $data->id; \n } \n $datos = $d->getGeneral(\"select a.*, b.nombre as nomAsp,c.texto, c.a, c.b, c.c, c.d, c.e, a.tipo \n from t_asp_cargo_i a \n inner join t_asp_cargo b on b.id=a.idAsp \n left join t_cargos_a c on c.idIasp=a.id \n where a.idAsp=\".$idIasp); \n \n // ------------------------ Fin valores del formulario \n if($this->getRequest()->isPost()) // Actulizar datos\n {\n $request = $this->getRequest();\n if ($request->isPost()) { \n \n $u = new CargosA($this->dbAdapter);// ------------------------------------------------- 3 FUNCION DENTRO DEL MODELO (C) \n $data = $this->request->getPost();\n $d->modGeneral(\"Delete from t_cargos_a where idAsp=\".$data->id);\n //print_r($data);\n foreach ($datos as $dato){\n $idLc = $dato['id'];\n $nombre = '';\n if ($dato['tipo'] == 1)// Texto \n {\n $texto = '$data->text'.$idLc;\n eval(\"\\$nombre = $texto;\"); \n } \n $a = 0;$b = 0;$c = 0;$d = 0;$e = 0;\n if ($dato['tipo'] == 2)// Lista de opciones \n {\n $texto = '$data->comenNa'.$idLc;\n eval(\"\\$a = $texto;\"); \n $texto = '$data->comenNb'.$idLc;\n eval(\"\\$b = $texto;\"); \n $texto = '$data->comenNc'.$idLc;\n eval(\"\\$c = $texto;\"); \n $texto = '$data->comenNd'.$idLc;\n eval(\"\\$d = $texto;\"); \n $texto = '$data->comenNe'.$idLc;\n eval(\"\\$e = $texto;\"); \n }\n $u->actRegistro( $data->id2, $data->id, $dato['id'],$nombre, $a, $b, $c, $d, $e);\n }\n $this->flashMessenger()->addMessage('');\n return $this->redirect()->toUrl($this->getRequest()->getBaseUrl().$this->lin.'o/'.$data->id.\".\".$data->id2);\n } \n }else{ \n if ($id > 0) // Cuando ya hay un registro asociado\n {\n $u=new CargosA($this->dbAdapter); // ---------------------------------------------------------- 4 FUNCION DENTRO DEL MODELO (C) \n //$datos = $u->getRegistroId($id);\n } \n } \n $valores=array\n (\n \"titulo\" => $this->tfor,\n \"form\" => $form,\n \"datos\" => $datos, \n 'url' => $this->getRequest()->getBaseUrl(),\n 'id' => $id,\n 'idCar' => $idCar,\n \"ttablas\" => 'Aspecto, Item, Opciones',\n \"lin\" => $this->lin\n ); \n return new ViewModel($valores); \n }", "public function edit()\n {\n //\n }", "protected function setupUpdateOperation()\n {\n $this->crud->setUpdateContentClass('col-md-12');\n $this->setupCreateOperation();\n\n\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(ArticleCategoryRequest::class);\n\n //Tab Main Info\n $this->crud->addFields([\n [\n 'name' => 'status',\n 'label' => _('Publish status'),\n 'type' => 'checkbox',\n 'tab' => _('Main info'),\n ],\n [\n 'name' => 'title',\n 'title' => _('Title'),\n 'type' => 'text',\n 'hint' => _('For admin panel & slug generator'),\n 'tab' => _('Main info'),\n ],\n [\n 'name' => 'slug',\n 'title' => _('Slug'),\n 'type' => 'text',\n 'hint' => _('auto generate'),\n 'tab' => _('Main info'),\n ],\n [\n 'name' => 'thumbnail',\n 'label' => _('Preview'),\n 'type' => 'browse',\n 'mime_types' => ['image'],\n 'tab' => _('Main info'),\n ]\n ]);\n $this->crud->addField([\n 'label' => _(\"Tags\"),\n 'type' => 'select2_multiple',\n 'name' => 'tags', // the method that defines the relationship in your Model\n 'entity' => 'tags', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'pivot' => true, // on create&update, do you need to add/delete pivot table entries?\n 'tab' => _('Main info'),\n ]);\n\n\n\n //Tab Locale Info\n $this->crud->addFields([\n [\n 'name' => 'name',\n 'label' => _('name'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_title',\n 'label' => _('SEO title'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_h1',\n 'label' => _('SEO H1'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_description',\n 'label' => _('SEO description'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_keywords',\n 'label' => _('SEO keywords'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'short_description',\n 'label' => _('Short description'),\n 'type' => 'ckeditor',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'content',\n 'label' => _('Content'),\n 'type' => 'ckeditor',\n 'tab' => _('Localization'),\n ],\n ]);\n\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "public function edit()\r\n {\r\n //\r\n }", "public function edit()\r\n {\r\n //\r\n }", "public function actionCreate()\n\t{\n $this->actionUpdate();\n\t}", "public function action_create()\n {\n $this->action_edit(FALSE);\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n// CRUD::column('title');\n// CRUD::column('image');\n// CRUD::column('content');\n// CRUD::column('slug');\n\n// $this->crud->setColumns([\n// [\n// 'name' => 'name',\n// 'label' => trans('backpack::permissionmanager.name'),\n// 'type' => 'text',\n// ],\n// [\n// 'name' => 'email',\n// 'label' => trans('backpack::permissionmanager.email'),\n// 'type' => 'email',\n// ],\n// [ // n-n relationship (with pivot table)\n// 'label' => trans('backpack::permissionmanager.roles'), // Table column heading\n// 'type' => 'select_multiple',\n// 'name' => 'roles', // the method that defines the relationship in your Model\n// 'entity' => 'roles', // the method that defines the relationship in your Model\n// 'attribute' => 'name', // foreign key attribute that is shown to user\n// 'model' => config('permission.models.role'), // foreign key model\n// ],\n// [ // n-n relationship (with pivot table)\n// 'label' => trans('backpack::permissionmanager.extra_permissions'), // Table column heading\n// 'type' => 'select_multiple',\n// 'name' => 'permissions', // the method that defines the relationship in your Model\n// 'entity' => 'permissions', // the method that defines the relationship in your Model\n// 'attribute' => 'name', // foreign key attribute that is shown to user\n// 'model' => config('permission.models.permission'), // foreign key model\n// ],\n// ]);\n//\n// // Role Filter\n// $this->crud->addFilter(\n// [\n// 'name' => 'role',\n// 'type' => 'dropdown',\n// 'label' => trans('backpack::permissionmanager.role'),\n// ],\n// config('permission.models.role')::all()->pluck('name', 'id')->toArray(),\n// function ($value) { // if the filter is active\n// $this->crud->addClause('whereHas', 'roles', function ($query) use ($value) {\n// $query->where('role_id', '=', $value);\n// });\n// }\n// );\n//\n// // Extra Permission Filter\n// $this->crud->addFilter(\n// [\n// 'name' => 'permissions',\n// 'type' => 'select2',\n// 'label' => trans('backpack::permissionmanager.extra_permissions'),\n// ],\n// config('permission.models.permission')::all()->pluck('name', 'id')->toArray(),\n// function ($value) { // if the filter is active\n// $this->crud->addClause('whereHas', 'permissions', function ($query) use ($value) {\n// $query->where('permission_id', '=', $value);\n// });\n// }\n// );\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function edit() {\n }", "public function annimalEditAction()\n {\n }", "public function edit()\n {\n \n }", "public function __construct(&$attribs) {\n\t\tparent::__construct($attribs);\n\t\t$this->attribs = &$attribs;\n\t\t\n\t\t\n\t\t\n\t\t$this->rgPost = $this->request->getParameters()->post(); // Saves the post data\n\t\t\n if (!method_exists($this, $this->attribs['method'])) {\n // If id == create (that is, no id is set, but create)\n if ($attribs['id'] == \"create\") {\n $this->attribs['method'] = \"create\";\n $this->attribs['id'] = \"\";\n }\n \n // If id == usage (that is, no id is set, but usage)\n if ($attribs['id'] == \"usage\") {\n $this->attribs['method'] = \"usage\";\n $this->attribs['id'] = \"\";\n }\n \n // If we have post data it can either be create, update, delete\n if (count($this->rgPost)) {\n if (empty($attribs['id']) && empty($attribs['method'])) { // if id and method are empty, it must be create\n $this->attribs['method'] = \"create\";\n } else if (empty($attribs['method'])) { // if only methd is empty, we have update\n $this->attribs['method'] = \"update\";\n }\n } else {\n if (empty($attribs['id']) && empty($attribs['method'])) { // if no id and no method are set, and no post data, it must be index\n $this->attribs['method'] = \"index\";\n } else if (empty($attribs['method'])) { // if no method is set but an id, it must be read\n $this->attribs['method'] = \"read\";\n }\n }\n \n \t}\n \t\n \t// Loads the parameters from the called command and the crud stuff\n $this->loadParams();\n \n \tif (($this->cpParams instanceof api_crud_param) && !$this->cpParams->checkParams($attribs['method'])) { // checks return parameters\n \t // TODO: Reflection Magic\n \t $this->data[] = $this->cpParams->getInfo(); // Shows detailed information about the parameters\n\n \t \n \t // Take the usage command\n \t $attribs['method'] = 'usage'; // if parameters are not correct, throw the usage screen as well\n return;\n }\n \n $this->rgParams = $this->cpParams->getParams($attribs['method']); // Saves the parsed parameters for usage by the command\n\t}", "public function edit() {\n\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function edit()\n {\n \n }", "public function edit()\n {\n \n }", "public function edit()\n {\n \n }", "protected function setupListOperation()\n {\n /*$this->crud->setFromDb();*/\n $this->crud->addColumn(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addColumn(['name' => 'sku', 'type' => 'text', 'label' => 'SKU / Product Unique ID']);\n $this->crud->addColumn(['name' => 'price', 'type' => 'text', 'label' => 'Price / €']);\n $this->crud->addColumn(['name' => 'status', 'type' => 'text', 'label' => 'Status']);\n $this->crud->addColumn(['name' => 'user.name', 'type' => 'text', 'label' => 'User Name']);\n $this->crud->addColumn(['name' => 'category.name', 'type' => 'text', 'label' => 'Category']);\n $this->crud->addColumn(['name' => 'publish_date', 'type' => 'text', 'label' => 'Publish Date']);\n $this->crud->addColumn(['name' => 'blocking_date', 'type' => 'text', 'label' => 'Blocking Date']);\n $this->crud->addColumn(['name' => 'created_at', 'type' => 'text', 'label' => 'Created Om']);\n $this->crud->addColumn(['name' => 'updated_at', 'type' => 'text', 'label' => 'Updated On']);\n }", "public function createAction(){\n\n //Mapeia a entradas de dados\n $inputMap = array('descricao', 'quilometragem');\n $data = array();\n $erros = array();\n $value = null;\n\n //Procura os dados informados a partir do mapa de entrada\n foreach ($inputMap as $key) {\n $value = Application::getParam($key);\n\n if($value === null) $erros[] = $key;\n else $data[$key] = $value;\n }\n\n //Retorna um erro para caso um campo tenha faltado\n if(!empty($erros)){\n return json_encode(array(\n 'success' => false,\n 'message' => 'Alguns campos estão vazios ou são inválidos.',\n 'extra' => $erros,\n 'code' => 0\n ));\n }\n\n //Instancia e inicializa uma model\n $model = new Veiculo();\n $model->setDescricao($data['descricao']);\n $model->setQuilometragem($data['quilometragem']);\n\n try{\n //Salva os dados no banco de dados\n $model->save();\n }\n catch(\\Exception $e){\n\n //Caso algo dê errado, retorna uma menssagem de erro\n return json_encode(array(\n 'success' => false,\n 'message' => $e->getMessage(),\n 'code' => $e->getCode()\n ));\n }\n\n //Retorna os dados que foram pessistidos no banco de dados\n return json_encode(array(\n 'success' => true,\n 'data' => $model->toArray()\n ));\n }", "protected function editar()\n {\n }", "public function edit( )\r\n {\r\n //\r\n }", "public function create()\n {\n // I skip using this create function because I use a modal form for inserting data using modal in index view via index function.\n }", "public function editAction()\n {\n $this->createEditParameters = $this->createEditParameters + $this->_editExtraParameters;\n\n parent::editAction();\n }", "public function edit()\n {\n }", "public function edit()\n {\n }", "public function edit()\n {\n }", "public function edit()\n {\n\n }", "public function edit()\n {\n\n }", "public function edit()\n {\n\n }", "public function edit()\n {\n\n }", "protected function setupUpdateOperation()\n {\n $plugin = $this->crud->getEntryWithLocale($this->crud->getCurrentEntryId());\n\n $fields = $plugin->options;\n\n CRUD::addField(['name' => 'fields', 'type' => 'hidden', 'value' => collect($fields)->implode('name', ',')]);\n\n foreach ($fields as $field) {\n CRUD::addField($field);\n }\n }", "function handle_get($indata) {\n// showDebug('form_class GET:');\n// showArray($indata);\n if(array_key_exists('new', $indata)) {\n $this->is_new = 1;\n $this->title = 'New data';\n } \n if(array_key_exists('find', $indata)){\n $this->is_find_form = 1;\n $this->title = 'Find in ' . $this->table_title;\n }\n if(array_key_exists('id', $indata)){\n $this->id = $indata['id'];\n $this->form_data = $this->fetchRecordInfo($this->id);\n }\n }", "public function edit(){\r\n\t\t//$this->auth->set_access('edit');\r\n\t\t//$this->auth->validate();\r\n\r\n\t\t//call save method\r\n\t\t$this->save();\r\n\t}", "abstract public function fields(AdminRequest $request);", "public function run()\n {\n\t\tif(isset($_GET['id'])){\n\t\t\t$id = $_GET['id'];\n\t\t}\n\t\telse{\n\t\t\t$id = '';\n\t\t}\n\t\t\n\t\tif($id != \"\"){\n\t\t\t$catalogo = Catalogos::model()->findByPk($id);\n\t\t}\n\t\telse{\n\t\t\t$catalogo = new Catalogos;\n\t\t}\n\t\t\n\t\tif(isset($_POST['Catalogos'])){\n\t\t\t$catalogo->attributes = $_POST['Catalogos'];\n\t\t\t$catalogo->save();\n\t\t\t$id = $catalogo->id;\n\t\t\t$this->controller->redirect(Yii::app()->createUrl('/administracion/default/formCatalogo/', array('id' => $id)));\n\t\t}\n\t\t\n\t\tif(isset($_GET['producto'])){\n\t\t\t$producto = $_GET['producto'];\n\t\t}\n\t\telse{\n\t\t\t$producto = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['accion'])){\n\t\t\t$accion = $_GET['accion'];\n\t\t}\n\t\telse{\n\t\t\t$accion = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['despues'])){\n\t\t\t$despues = $_GET['despues'];\n\t\t}\n\t\telse{\n\t\t\t$despues = '';\n\t\t}\n\t\n if(isset($_GET['nombre'])){\n\t\t\t$nombre = $_GET['nombre'];\n\t\t}\n\t\telse{\n\t\t\t$nombre = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['minimo'])){\n\t\t\t$minimo = str_replace(\".\", \"\", $_GET['minimo']);\n\t\t\t$minimo_ingresado = $_GET['minimo'];\n\t\t}\n\t\telse{\n\t\t\t$minimo = '';\n\t\t\t$minimo_ingresado = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['maximo'])){\n\t\t\t$maximo = str_replace(\".\", \"\", $_GET['maximo']);\n\t\t\t$maximo_ingresado = $_GET['maximo'];\n\t\t}\n\t\telse{\n\t\t\t$maximo = '';\n\t\t\t$maximo_ingresado = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['estado'])){\n\t\t\t$estado = $_GET['estado'];\n\t\t}\n\t\telse{\n\t\t\t$estado = 1;\n\t\t}\n\t\t\n\t\tif(isset($_GET['tipo'])){\n\t\t\t$tipo = $_GET['tipo'];\n\t\t}\n\t\telse{\n\t\t\t$tipo = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['linea'])){\n\t\t\t$linea = $_GET['linea'];\n\t\t}\n\t\telse{\n\t\t\t$linea = '';\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t$errores = '';\n\t\t//Calculo de errores\n\t\tif($minimo != '' && !is_numeric($minimo)){\n\t\t\t$minimo = '';\n\t\t\t$errores = $errores . \"- Desde debe ser un valor numerico<br>\";\n\t\t}\n\t\tif($maximo != '' && !is_numeric($maximo)){\n\t\t\t$maximo = '';\n\t\t\t$errores = $errores . \"- Hasta debe ser un valor numerico<br>\";\n\t\t}\n\t\t//Fin del calculo de errores\n\t\tif($errores != ''){\n\t\t\t$errores = '<div class=\"alert alert-warning\" role=\"alert\">' . $errores . '</div>';\n\t\t}\n\t\t\n\t\tif($minimo == ''){\n\t\t\t$min = -1;\n\t\t}\n\t\telse{\n\t\t\t$min = $minimo;\n\t\t}\n\t\t\n\t\tif($maximo == ''){\n\t\t\t$max = 1000000000;\n\t\t}\n\t\telse{\n\t\t\t$max = $maximo;\n\t\t}\n\t\t\n\t\tif($producto != ''){\n\t\t\t$this->aplicar($id, $producto, $accion, $despues);\n\t\t\tunset($_GET['producto']);\n\t\t}\n\t\t\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->compare('id_catalogo', $id);\n\t\t$criteria->order = 'posicion ASC';\n\t\t$productos_catalogo_ids = ProductosCatalogo::model()->findAll($criteria); \n\t\t$productos_catalogo = new CActiveDataProvider(new ProductosCatalogo, array('criteria' => $criteria));\n\t\t\n\t\t$ids = array();\n\t\tforeach($productos_catalogo_ids as $i){\n\t\t\t$ids[] = $i['id_producto'];\n\t\t}\n\t\t\n\t\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->addCondition('precio_producto >= ' . $min . ' AND precio_producto <= ' . $max);\n\t\t$criteria->addCondition('nombre_producto LIKE \"%'. $nombre . '%\"');\n\t\t$criteria->addNotInCondition('id', $ids);\n\t\t$criteria->compare('estado_producto', $estado);\n\t\t$criteria->compare('id_tipo_producto', $tipo);\n\t\t$criteria->compare('id_linea_producto', $linea);\n\t\t\n\t\t$reporte = new CActiveDataProvider(new Productos, array('criteria' => $criteria));\n\t\t\n\t\t$tipos = CHtml::listData(TiposProducto::model()->findAll(), 'id', 'nombre_tipo_producto');\n\t\t$tipos[\"\"] = 'Todas los tipos';\n\t\tksort($tipos);\n\t\t\n\t\t$lineas = CHtml::listData(LineasProducto::model()->findAll(), 'id', 'nombre_linea_producto');\n\t\t$lineas[\"\"] = 'Todas las lineas';\n\t\tksort($lineas);\n\t\t\n\t\t\n\n $this->controller->render('formulario_catalogos',array(\n\t\t\t'nombre' => $nombre,\n\t\t\t'minimo' => $minimo,\n\t\t\t'maximo' => $maximo,\n\t\t\t'estado' => $estado,\n\t\t\t'tipo' => $tipo,\n\t\t\t'linea' => $linea,\n\t\t\t'errores' => $errores,\n\t\t\t'id' => $id,\n\t\t\t'producto' => $producto,\n\t\t\t'catalogo' => $catalogo,\n\t\t\t'dataProvider' => $reporte,\n\t\t\t'productos_catalogo' => $productos_catalogo,\n\t\t\t'tipos' => $tipos,\n\t\t\t'lineas' => $lineas,\n ));\n }", "public function hydrateeditquestionformAction()\r\n {\r\n\r\n // Check Post\r\n if (!$this->getRequest()->isPost())\r\n die();\r\n\r\n $params = $this->getRequest()->getParams();\r\n $questionId = $params['questionId'];\r\n\r\n\r\n $question = new Application_Model_DbTable_FicheQuestion();\r\n $question = $question->getOneQuestionById($questionId);\r\n $this->_helper->json($question);\r\n\r\n }", "public function edit()\n {\n \n \n }", "public function actionCreate() {\n $this->actionUpdate();\n }", "protected function setupShowOperation()\n {\n CRUD::addColumn(['name' => 'text_one', 'label' => 'Текст первый.']); // columns\n CRUD::addColumn(['name' => 'image_one', 'type' => 'image', 'label' => 'Изображение первое.']); // columns\n CRUD::addColumn(['name' => 'text_two', 'label' => 'Текст второй.']); // columns\n CRUD::addColumn(['name' => 'image_two', 'type' => 'image', 'label' => 'Изображение второе.']); // columns\n CRUD::addColumn(['name' => 'text_third', 'label' => 'Текст третий.']); // columns\n CRUD::addColumn(['name' => 'image_third', 'type' => 'image', 'label' => 'Изображение третье.']); // columns\n CRUD::addColumn(['name' => 'image_four', 'type' => 'image', 'label' => 'Изображение четвертое.']); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }" ]
[ "0.63046396", "0.6294077", "0.6285278", "0.6268046", "0.62634563", "0.6263165", "0.6240544", "0.6218182", "0.62056446", "0.61937183", "0.6158606", "0.61263114", "0.612479", "0.6118679", "0.6118116", "0.61063164", "0.60828584", "0.6075089", "0.6064989", "0.60171056", "0.5998111", "0.5993502", "0.59934443", "0.59803224", "0.5969202", "0.59443367", "0.5939664", "0.59317595", "0.5882208", "0.58666813", "0.5862961", "0.5854013", "0.5848132", "0.5845445", "0.5843238", "0.58419496", "0.5839467", "0.5839204", "0.581021", "0.5799827", "0.5787425", "0.57867295", "0.57849187", "0.5782398", "0.57803947", "0.5761716", "0.575616", "0.57412857", "0.57222456", "0.57167923", "0.57163733", "0.57090884", "0.57090884", "0.57080734", "0.57080734", "0.5683669", "0.5681037", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.5680905", "0.56780624", "0.5674454", "0.5672146", "0.5667882", "0.5667815", "0.56667995", "0.56659704", "0.5663742", "0.5663742", "0.5663742", "0.5656891", "0.56532496", "0.5649313", "0.5646452", "0.5643177", "0.5642615", "0.5642333", "0.5642333", "0.5642333", "0.5639138", "0.5639138", "0.5639138", "0.5639138", "0.56343454", "0.5626376", "0.56228006", "0.5616835", "0.5615275", "0.5610537", "0.56049067", "0.55999404", "0.5590702" ]
0.0
-1
Lists all Tblalarm models.
public function actionIndex() { $searchModel = new TblalarmSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAgendaAlarmListAction(){\n /** @var Object_Agenda $agenda */\n $this->getDeviceSession()->getUserId();\n $agenda = new Object_Agenda();\n $this->_helper->json($agenda->getClass()->getFieldDefinition('Alarm'));\n }", "public function getAll()\n\t{\n\t\t$args = array('order' => 't.id');\n \t$records = $this->record->findAll($args);\n \treturn $this->model->populateModels($records, 'id');\n\t}", "public static function all() {\n\t\t$classe = get_called_class();\n\t\t$table = str_replace(\"db_\", \"\", $classe);\n\t\t$liste = db::findAll(db::table($table));\n\t\treturn $liste;\n\t}", "public function all()\n {\n return $this->model->get();\n }", "public function listAll()\n\t{\n\t\t$data['auditorias'] = $this->relatorio_model->listaAuditorias(1);\n\n\t\t$data['ncs'] = $this->relatorio_model->listaNCs(1);\n\n\t\t$data['acs'] = $this->relatorio_model->listaACs(1);\n\n\t\t$data['main_content'] = 'relatorio/relatorio_view';\n\t\t\n\t\t// Envia todas as informações para tela //\n\t\t$this->parser->parse('template', $data);\n\t}", "public function listtabelAdmAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('ADMINISTRASI SYSTEM');\n }", "public function fetch_all_models() {\n global $pdo;\n\n $query = $pdo->prepare(\"SELECT * FROM talents\");\n $query -> execute();\n return $query->fetchAll(\\PDO::FETCH_ASSOC);\n }", "public function all() {\n return $this->model->orderBy('created_at', 'ASC')->get();\n }", "public function getList()\n {\n $this->db->order_by(\"id\", 'desc');\n $this->db->where('status', 1);\n return $this->db->get($this->model);\n }", "public static function getAll(){\n\t\t$sql = \"select * from \".self::$tablename;\n\t\t$query = Executor::doit($sql);\n\t\treturn Model::many($query[0],new TemparioData());\n\t}", "public function getAll()\n {\n return $this->model->all();\n }", "public function getAll()\n {\n return $this->model->all();\n }", "public function getAll()\n {\n return $this->model->all();\n }", "public function listAll()\n\t{\n\t\t$sql = new Conexao;\n\n\t\treturn $sql->select(\"SELECT * FROM tb_criarapuracao\");\n\t}", "function get_all_tbladmin()\n {\n $this->db->order_by('id', 'desc');\n return $this->db->get('tbladmin')->result_array();\n }", "public function all()\n {\n return $this->model->get();\n }", "public function getAll()\n {\n return $this->model->orderBy('id', 'DESC')->get();\n }", "public function Allplanlist($model);", "public static function listAll()\n\t{\n\t\t$sql = new Sql();\n\t\treturn $sql->select(\"SELECT * FROM tb_ordersstatus ORDER BY desstatus\");\n\t}", "public function GetAll()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->db->query('SELECT * FROM '.$this->table.' ORDER by created_at DESC')->get();\n }", "function getallrecord()\n\t{\n\t\treturn $this->db->get(\"tblteman\");\n\t\t// fungsi get(\"namatable\") adalah active record ci\n\t}", "public function all()\n {\n return Model::all();\n }", "public function all()\n {\n return Model::all();\n }", "public function index(){\n return $this->model->all();\n }", "public static function getAll(){\n $result = DB::dataQuery(\"SELECT * FROM timeslots\");\n return $result;\n }", "public function getAllRecords();", "public function index()\n {\n return $this->model->all();\n }", "public function all()\n {\n if (!$this->isLogged()) exit;\n $this->oUtil->getModel('Todo');\n $this->oModel = new \\TestProject\\Model\\Todo;\n\n $this->oUtil->oTodos = $this->oModel->getAll();\n\n $this->oUtil->getView('index');\n }", "public function getAll()\n {\n return $this->db->table($this->tableName)->select('*')->findAll();\n }", "public function viewallunitmodelsAction() {\n\n\t\t$model = new Unit_Model_UnitModel();\n\t\t$this->view->records = $model->fetchAll( 'name','ASC' );\n \n\t\tif( $this->view->records ) {\n $attached = $model->getAttachedModels();\n $this->view->attached = $attached;\n\t\t $this->view->paginator = $this->paginate( $this->view->records );\n }\n\t}", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM cntrl_btn';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "public function index()\n {\n $alarms = Alarm::with('sensor', 'sensor.place')->get();\n return view('admin.alarms.index',compact('alarms'))\n ->with('i', 0);\n }", "public function all()\n\t{\n\t\treturn $this->model->all();\n\t}", "public function index()\n {\n return $this->model->getAll();\n }", "public function all()\r\n {\r\n return $this->db->table($this->table)->get();\r\n }", "public function index()\n {\n $transtypeatms = TransTypeAtm::getAllTransTypeAtm();\n return transTypeAtmResource::collection($transtypeatms);\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public static function all()\n {\n $sql = new Sql();\n\n $results = $sql->select(\"SELECT * FROM tbl_status\");\n\n return $results;\n }", "public function getAll()\n {\n $records = $this->getRecordsModel()->getAll();\n \n return $records;\n }", "public function all()\n {\n $sql = \"SELECT * FROM {$this->table()}\";\n return $this->db->query($sql)->fetchAll();\n }", "public static function getAllActivities() {\r\n\t\treturn TodoyuRecordManager::getAllRecords(self::TABLE);\r\n\t}", "public function getAll() {\n $this->db->select('*');\n $this->db->from('lamar');\n $query = $this->db->get();\n return $query->result();\n }", "public function getAll($model)\n {\n $sql = \"SELECT * FROM {$this->table}\";\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_CLASS,get_class($this->model));\n }", "public function modelFetchAll(){\n\t\t\t//lay bien ket noi de thao tac csdl\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//thuc hien truy van, tra ket qua ve mot object\n\t\t\t$query = $conn->query(\"select * from phongban\");\n\t\t\t//tra ve tat ca cac ban ghi\n\t\t\treturn $query->fetchAll();\n\t\t}", "public function find_all() {\n\t\t\t// Return all \n\t\t\treturn $this->all = $this->db->query('SELECT * FROM logs', PDO::FETCH_ASSOC);\n\t\t}", "public function all()\n\t{\n\t\treturn $this->watchlist->orderBy('created_at','desc')->get();\n\t}", "public static function all()\n\t{\n\t\treturn self::new_instance_records()->all();\n\t}", "public function getAll(){\n $query = $this->fpdo->from('view_history_attend')->orderBy('id_demand DESC')->execute();\n $result = null;\n /* 2. encriptar IDs */\n if($query->rowCount()!=0){\n $result = $query->fetchAll(PDO::FETCH_OBJ);\n $status = true;\n $msg = \"Lista atenciones realizadas\";\n }\n else{\n $result = array();\n $status = false;\n $msg = \"No existen registros\";\n }\n /* 3. retornar valores en un array Response */\n return $this->response->send(\n $result,\n $status,\n $msg,\n []\n );\n }", "private function getAllModels()\n {\n return (object)ModelRegistry::getAllObjects();\n }", "public static function list(){\r\n\t\t$app = Aplicacion::getSingleton();\r\n\t\t$conn = $app->conexionBd();\r\n\t\t\r\n\t\t$query= sprintf(\"SELECT * FROM abono\");\r\n\t\t$resultado = $conn->query($query);\r\n\t\twhile($fila = mysqli_fetch_assoc($resultado)){\r\n\t\t\t$abono = new TOAbono();\r\n\t\t\t$abono->setTipoAbono($fila['tipo']);\r\n\t\t \t$abono->setCoste($fila['coste']);\r\n\t\t\t$abono->setDuracion($fila['duracion']);\r\n\t\t\t$abonos[] = $abono;\r\n\t\t}\r\n\t\treturn $abonos;\r\n\t}", "public function listtabelAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('%');\n }", "public function getAll()\n {\n }", "public function getAll(){\n\t\treturn $this->db->get($this->table);\n\t}", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function index()\n {\n return Model::all();\n }", "public static function all()\n {\n self::getAllByTableName();\n return parent::getAllByTableName();\n }", "public function all($model){\n\n if(!class_exists($model)){\n return new $model;\n }\n\n $table = $this->getTableName($model);\n $stmt = $this->pdo->prepare('select * from ' . $table);\n $stmt->execute();\n\n return $stmt->fetchAll(\\PDO::FETCH_CLASS, $model);\n }", "public function all()\n {\n return $this->getModel()->all();\n }", "public function get_all()\n {\n return $this->findAll();\n // return $this->db->table('settings')->get();\n // return $this->builder->get();\n }", "public function getAll()\n {\n return $this->db->get_where($this->_table, [\"status\" => 1])->result();\n }", "public static function listTable() {\n self::init();\n $columns = self::getListTableColumns();\n $columnsData = array();\n\n foreach($columns as $key => $value)\n $columnsData[$key] = $value['label'];\n\n new AdminListTable(\n self::$table,\n array(\n 'singular' => 'Log',\n 'plural' => 'Logs',\n ),\n array(\n 'columns' => $columnsData,\n 'orderby' => 'date_time',\n 'order' => 'desc',\n 'search' => array(\n 'date_time',\n ),\n 'sortable' => array(\n 'date_time' => 'date_time',\n ),\n 'per_page' => 40,\n )\n );\n }", "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM tbl_empleado';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "public static function all()\n {\n $list = [];\n $db = Db::initDB();\n $req = $db->query('SELECT * FROM alcool');\n\n // on créer une list des objets Alcool depuis le résultat de la base de données\n foreach ($req->fetchAll() as $alcools) {\n $list[] = new Alcool($alcools['id'], $alcools['name'], $alcools['degree'], $alcools['dose']);\n }\n\n return $list;\n }", "public static function findAll()\n\t\t{\n\t\t\t$tb = self::get('tabla') ;\n\t\t\t\n\t\t\treturn Database::getInstance()\n\t\t\t\t\t->query(\"SELECT * FROM $tb ;\")\n\t\t\t\t\t->getObjects(get_called_class()) ;\n\t\t}", "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM power_station_warning';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "public function getAll()\n {\n return DB::table('bukus')->all();\n }", "public function getAll()\n {\n return DB::table('product_models')->get()->all();\n }", "protected function all()\n {\n $viewmodel = new TodoModel();\n $this->returnView($viewmodel->all(),true);\n }" ]
[ "0.66029", "0.641655", "0.61701655", "0.61107904", "0.6030622", "0.60243577", "0.6000862", "0.5994744", "0.5987366", "0.59515315", "0.59509313", "0.59509313", "0.59509313", "0.59501433", "0.59499896", "0.59300804", "0.5913527", "0.5898412", "0.58959645", "0.58812064", "0.5878274", "0.5874332", "0.5866919", "0.5866919", "0.58582175", "0.5857703", "0.58559495", "0.5832205", "0.5829502", "0.5822564", "0.5820036", "0.5817277", "0.58157516", "0.58023596", "0.58017236", "0.5778884", "0.57765734", "0.57520896", "0.57520896", "0.57520896", "0.57520896", "0.57520896", "0.57520896", "0.57520896", "0.57520896", "0.57520896", "0.57520896", "0.5745026", "0.57344043", "0.5733237", "0.5727558", "0.57142794", "0.5701507", "0.5697434", "0.5683003", "0.5680613", "0.56631666", "0.56547904", "0.56506634", "0.5648078", "0.56446767", "0.5632549", "0.56324786", "0.56166583", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.560585", "0.55926996", "0.5588208", "0.557922", "0.55767775", "0.556545", "0.5558467", "0.55568105", "0.5556518", "0.55518407", "0.5551689", "0.55478626", "0.5541189", "0.55383587", "0.5535204" ]
0.74779886
0
Displays a single Tblalarm model.
public function actionView($id) { return $this->render('view', [ 'model' => $this->findModel($id), ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndex()\n {\n $searchModel = new TblalarmSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function showTable() {\n\t\t$tableName = $this->request->getVariable('id');\n\t\t$this->smarty->assign('dbTableObject',new $tableName());\n\t\t$this->pageDisplay('tools');\n\t}", "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('EmployeeBundle:Timerecord')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Timerecord entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('EmployeeBundle:Timerecord:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function viewAction()\n {\n $id = $this->_getPrimaryId();\n $row = $this->_getRow($id);\n\n $this->view->row = $row;\n }", "public function show()\n {\n return view('timetable::show');\n }", "public function actionView()\n\t{\n\t\t$model = $this->loadModel();\n\t\t$this->render('view',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionView() {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\n }", "public function viewAction() {\n\t\t$role = new Role_Model_Role();\n\t\t$this->view->record = $role->findById($this->getRequest()->getParam('id'));\n\t}", "public function actionView($id)\n\t{\n\t\tLogin::UserAuth('Bills','View');\t\t\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t));\n\t}", "public function actionView()\n {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\n }", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function show($id)\n\t{\n\t\t// get the fbf_time\n\t\t$fbf_time = FbfTime::find($id);\n\n\t\t// show the view and pass the fbf_time to it\n\t\t$this->layout->content = View::make('fbf_time.show')->with('fbf_time', $fbf_time);\n\t}", "public function actionShow($id){\n\t\t\n\t\t$this->BaseRight(1);\n\t\t\n\t\t$model=$this->loadModel($id);\n\t\t\n\t\tif($model->getattribute('tt_visible')) $model->setattribute('tt_visible',0);\n\t\t\n\t\telse $model->setattribute('tt_visible',1);\n\t\t\n\t\t$model->save(false);\n\n\t\t$this->kermitBase->msg_show('操作成功!');\n\t\t\n\t}", "function show( $id )\n {\n $tema = $this->model_valasztott->getDiakTema($this->logged_in['uid']);\n if ($tema['valasztott_id'] != $id) {\n redirect(base_url().'valasztott');\n }\n\t\t$data = $this->model_valasztott->get( $id );\n\n if (empty($data)) {\n redirect(base_url());\n }\n\n $fields = $this->model_valasztott->fields( TRUE );\n \n $this->template->assign( 'id', $id );\n\t\t$this->template->assign( 'valasztott_fields', $fields );\n\t\t$this->template->assign( 'valasztott_data', $data );\n\t\t$this->template->assign( 'table_name', 'Valasztott' );\n\t\t$this->template->assign( 'template', 'show_valasztott' );\n\t\t$this->template->display( 'frame_admin.tpl' );\n }", "public function show($id = NULL)\n {\n //\n $tlcontent = (is_null($id)) ? new TimeLine() : TimeLine::where('id', base64_decode($id))->first();\n\n $tltypes = TimeLineType::all();\n\n return view('admin2-app.showtlcontent', compact('tlcontent', 'tltypes'));\n }", "public function actionView()\n\t{\n\t\tif (!($model = $this->loadModel()))\n\t\t\treturn;\n\t\t$this->render('view',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionView()\n {\n $id=(int)Yii::$app->request->get('id');\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function actionView($id)\n {\n $dis = (new Query());\n $dis ->select([ 'tf_lunas.status'])\n ->FROM('tf_lunas')\n ->andWhere('tf_lunas.id_tf_lunas=:id_a', array(':id_a'=>$id))\n ->limit(6);\n $command = $dis->createCommand();\n $dis = $command->queryAll();\n return $this->render('view', [\n 'model' => $this->findModel($id),\n 'dis' => $dis,\n ]);\n }", "public function show($id)\n {\n $record = Record::where('id', $id)->with(['tooth'])->first();\n $tooth_record = Tooth_Record::where('record_id', $id)->orderBy('id', 'desc')->get();\n $tooth_activity = Tooth_Activity::where('record_id', $id)->orderBy('id', 'desc')->get();\n\t\treturn view('pages.record.show', compact('record', 'tooth_record', 'tooth_activity'));\n }", "public function showAction()\n {\n $this->setPageTitle(sprintf($this->_('Show %s'), $this->getTopic()));\n\n $model = $this->getModel();\n // NEAR FUTURE:\n // $this->addSnippet('ModelVerticalTableSnippet', 'model', $model, 'class', 'displayer');\n $repeater = $model->loadRepeatable();\n $table = $this->getShowTable();\n $table->setOnEmpty(sprintf($this->_('Unknown %s.'), $this->getTopic(1)));\n $table->setRepeater($repeater);\n $table->tfrow($this->createMenuLinks($this->menuShowIncludeLevel), array('class' => 'centerAlign'));\n\n if ($menuItem = $this->findAllowedMenuItem('edit')) {\n $table->tbody()->onclick = array('location.href=\\'', $menuItem->toHRefAttribute($this->getRequest()), '\\';');\n }\n\n $tableContainer = \\MUtil_Html::create('div', array('class' => 'table-container'), $table);\n $this->html[] = $tableContainer;\n }", "public function actionView($id)\n {\n $model = $this->findModel($id);\n\n $event = Yii::t('app', 'view record {id}', ['id' => $model->permission_id]);\n $bitacora = new Bitacora();\n $bitacora->register($event, 'actionView', MSG_INFO);\n\n return $this->render(ACTION_VIEW, [MODEL => $model]);\n }", "public function actionView($id)\n {\n\t\t$this->titulo = 'Detalhar Contato';\n\t\t$this->subTitulo = '';\n\t\t\t\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function listtabelAdmAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('ADMINISTRASI SYSTEM');\n }", "public function actionView($id) {\n $this->active_menu = \"mcms\";\n $this->open_class = \"category\";\n $this->active_class = \"piadmin\";\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n\t\t$model = $this->loadModel($id);\n\t\t\n\t\t$this->render('view', array(\n\t\t\t'model'\t\t\t\t\t\t\t\t\t\t\t\t\t\t=> $model,\n\t\t));\n\t}", "function display($tpl = null){\n\t\t\t\t\n\t\t\t$this->titolo = $this->get('Titolo'); //Prende Titolo dal model attuale tramite il GET\n\n\t\t\t$this->num_giorno_attuale = $this->modelData->getInfo('NumGiornoAttuale');\t\n\t\t\t$this->num_mese_attuale=$this->modelData->getInfo('NumMeseAttuale');\n\t\t\t$this->num_mese_prossimo=$this->modelData->getInfo('NumMeseProssimo');\n\t\t\t$this->mese_attuale = $this->modelData->getInfo('MeseAttuale');\n\t\t\t$this->mese_prossimo = $this->modelData->getInfo('MeseProssimo');\n\t\t\t$this->anno_attuale = $this->modelData->getInfo('AnnoAttuale');\t\n\t\t\t$this->anno_mese_prossimo = $this->modelData->getInfo('AnnoMeseProssimo');\n\t\t\t\n\t\t\t$this->giorni_mese_attuale = $this->modelData->days_in_month($this->num_mese_attuale, $this->anno_attuale);\n\t\t\t$this->giorni_mese_prossimo = $this->modelData->days_in_month($this->num_mese_prossimo, $this->anno_mese_prossimo);\n\t\t\t\n\t\t\t$this->servizi_mese_attuale=$this->modelFunzioni->servizi($this->num_mese_attuale, $this->anno_attuale);\n\t\t\t$this->servizi_mese_prossimo=$this->modelFunzioni->servizi($this->num_mese_prossimo, $this->anno_mese_prossimo);\n\t\t\t\n\t\t\t$this->presenze_mese_attuale=$this->modelOpDB->presenzeServizi($this->num_mese_attuale, $this->anno_attuale);\n\t\t\t$this->presenze_mese_attuale_formattato=$this->modelFunzioni->formattaPresenze($this->presenze_mese_attuale);\n\t\t\t\n\t\t\t$this->presenze_mese_prossimo=$this->modelOpDB->presenzeServizi($this->num_mese_prossimo, $this->anno_mese_prossimo);\n\t\t\t$this->presenze_mese_prossimo_formattato=$this->modelFunzioni->formattaPresenze($this->presenze_mese_prossimo);\n\t\t\t\n\t\t\t$this->note_mese_attuale=$this->modelOpDB->leggiNote($this->num_mese_attuale, $this->anno_attuale);\n\t\t\t$this->note_mese_prossimo=$this->modelOpDB->leggiNote($this->num_mese_prossimo, $this->anno_mese_prossimo);\n\n\t\t\t$Clowns = $this->modelOpDB->leggiElencoClowns();\n\t\t\t$this->nomi = $Clowns['nomi'];\n\t\t\t$this->cognomi = $Clowns['cognomi'];\n\t\t\t$this->nomiClowns = $Clowns['nomiClowns'];\n\t\t\t$this->mail = $Clowns['nomiClowns'];\n\t\t\t\n\t\t\t\n\t\t\t// Check for errors.\n\t\t\tif (count($errors = $this->get('Errors')))\n\t\t\t{\n\t\t\t\tJError::raiseError(500, implode('<br />', $errors));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// Display the view\n\t\t\tparent::display($tpl);\n\t}", "public function actionView($id) {\n $model = Tariff::find()->joinWith('addition ad')->joinWith('additionQty adq')\n ->where(['tariff.id' => $id])->one();\n\n return $this->render('view', compact('model'));\n }", "public function helpdeskstatusAction(){\n\n $this->view->helpdeskstatus = $this->ModelObj->allheldeskstatus(); \n\n }", "public function show($id)\n\t{\n\t\t//show a Audit type\n\t\t$auditType = AuditType::find($id);\n\t\t//show the view and pass the $auditType to it\n\t\treturn view('audit.show', compact('auditType'));\n\t}", "public function show($id)\n {\n $alarm = Alarm::find($id);\n return response($alarm,200);\n }", "public function show($id)\n {\n $evnmtdtl = Evnmtdtl::find($id);\n\n if (is_null($evnmtdtl)) {\n return $this->sendError('detail non trouve.');\n }\n return $evnmtdtl;\n }", "public function show(Tivy $tivy)\n {\n //\n }", "public function show(Trabalho $trabalho)\n {\n //\n }", "public function showAction(Tblyear $tblyear)\n {\n $deleteForm = $this->createDeleteForm($tblyear);\n\n return $this->render('tblyear/show.html.twig', array(\n 'tblyear' => $tblyear,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function actionView($id)\n {\n $model = Mascota::findOne($id);\n return $this->render('view', [\n 'model' => $model,\n ]);\n }", "public function actionView($id)\n {\n // $this->controls = true;\n $this->render('view',array(\n 'model'=>$this->loadModel($id),\n ));\n }", "public function actionView($id)\n {\n///\n$nombre=Yii::$app->user->identity->username;\n$connection = \\Yii::$app->db;\n$db = $connection->createCommand(\"INSERT INTO auditoria (id, user, modelo, accion, fechahora) VALUES (NULL, '$nombre', 'PropiedadDet', 'View', NOW());\")->execute();\n///\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function actionView($id)\n { \n return $this->findModel($id);\n \n }", "public function actionView($id)\n {\n return $this->render('pengumuman', ['model' => \\app\\models\\TaPengumuman::findOne(['id' => $id])]);\n }", "public function actionView($id)\n\t{\n $this->layout='admin';\n \n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t));\n\t}", "public function actionView($id) {\n\n\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function actionView($id) {\n\t\t$this->render('view', array(\n\t\t\t'model' => $this->loadModel($id),\n\t\t));\n\t}", "public function actionView($id){\n return $this->render('view', ['model' => $this->findModel($id),]);\n }", "public function actionView($id) {\n\t\treturn $this->render ( 'view', [ \n\t\t\t\t'model' => $this->findModel ( $id ) \n\t\t] );\n\t}", "public function actionView($id) {\n\t\treturn $this->render ( 'view', [ \n\t\t\t\t'model' => $this->findModel ( $id ) \n\t\t] );\n\t}", "public function actionView($id) {\n $desarrollo = new Desarrollo;\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n 'desarrollo' => $desarrollo,\n ));\n }", "public function actionView($id) {\n\t\treturn $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\t\n }", "public function actionView($id= null)\n {\n \n \n $request = Yii::$app->request;\n return $this->render('view', [\n 'model' => $this->findModel($id),\n 'const' => $this->const,\n ]);\n \n }", "public function actionView($id) {\r\n\t\treturn $this->render ( 'view', [ \r\n\t\t\t\t'model' => $this->findModel ( $id ) \r\n\t\t] );\r\n\t}", "public function actionView($id)\n\t{\n\t\t$model = $this->loadModel($id);\n\t\t//$model->attributeValues;\n\t\t$this->render('view',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionView($id) {\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t));\n\t}", "public function index()\n {\n $this->load->model('Crud_model');\n $records = $this->Crud_model->getRecords();\n $this->load->view('Crud_view', ['records' => $records]);\n }", "public function actionView($id) {\n\t\t$model = $this->loadModel($id);\n\n\t\t$this->render('view',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionViewByHrdStaf($id){\n return $this->render('viewByHrdStaf',[\n 'model' => $this->findModel($id),\n ]);\n }", "public function show()\n {\n $this->model->load('TacGia');\n $tacgia = $this->model->TacGia->findById($_GET['id']);\n $data = array(\n 'title' => 'show',\n 'tacgia' => $tacgia\n );\n\n // Load view\n $this->view->load('tacgias/show', $data);\n }", "public function actionView($id){\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "function index(){\n $alumnos=$this->model->get();\n $this->view->alumnos=$alumnos;\n $this->view->render('alumno/index');\n }", "public function show($id)\n {\n // return view(\"tender.show\");\n }", "public function mainAction() {\n\t\t$this->setView('include/timer-form.php');\n\t\t$this->view();\n\t}", "public function actionView($id)\n\t{\n\t\t$this->render ( 'view', array (\n\t\t\t\t'model' => $this->loadModel ( $id )\n\t\t) );\n\t}", "public function actionView($id)\n{\n$this->render('view',array(\n'model'=>$this->loadModel($id),\n));\n}", "public function show(Tiempo $tiempo)\n {\n //\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id) {\n $this->render('view', array(\n 'model' => $this->loadModel($id),\n ));\n }", "public function actionView($id)\n\t{ \n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t));\n\t}", "public function actionView($id)\r\n\t{\r\n\t\t$this->render('view',array(\r\n\t\t\t'model'=>$this->loadModel($id),\r\n\t\t));\r\n\t}", "public function actionView($id)\r\n\t{\r\n\t\t$this->render('view',array(\r\n\t\t\t'model'=>$this->loadModel($id),\r\n\t\t));\r\n\t}", "public function actionView($id)\r\n\t{\r\n\t\t$this->render('view',array(\r\n\t\t\t'model'=>$this->loadModel($id),\r\n\t\t));\r\n\t}", "public function actionView($id)\r\n\t{\r\n\t\t$this->render('view',array(\r\n\t\t\t'model'=>$this->loadModel($id),\r\n\t\t));\r\n\t}", "public function actionView($id)\r\n\t{\r\n\t\t$this->render('view',array(\r\n\t\t\t'model'=>$this->loadModel($id),\r\n\t\t));\r\n\t}" ]
[ "0.6863721", "0.5985204", "0.5947652", "0.5907846", "0.58892536", "0.5862244", "0.58569527", "0.58285785", "0.58270204", "0.58188057", "0.5812012", "0.5812012", "0.5812012", "0.5812012", "0.5812012", "0.58057535", "0.57951367", "0.5791603", "0.5782145", "0.57811046", "0.5759095", "0.5751324", "0.5728301", "0.5725461", "0.570596", "0.56811386", "0.5680889", "0.5677936", "0.56642675", "0.56561977", "0.5633566", "0.5603033", "0.5602594", "0.5576131", "0.5571766", "0.55605984", "0.5554272", "0.5549866", "0.554892", "0.5540464", "0.55360824", "0.5531985", "0.5527161", "0.55175716", "0.5512282", "0.55120003", "0.55052614", "0.55036044", "0.5501089", "0.54999477", "0.54999477", "0.5495381", "0.54918575", "0.54905844", "0.54774225", "0.5476473", "0.54616195", "0.54599875", "0.5459172", "0.5454826", "0.5453909", "0.5437462", "0.5430978", "0.54291373", "0.54280645", "0.54276335", "0.54249775", "0.5419496", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.5418776", "0.54185045", "0.54163915", "0.54163915", "0.54163915", "0.54163915", "0.54163915" ]
0.0
-1
Creates a new Tblalarm model. If creation is successful, the browser will be redirected to the 'view' page.
public function actionCreate() { $transaction = Yii::$app->db->beginTransaction(); try { $category = ArrayHelper::map(Tblcategoryi::find()->where(['enable' => 1])->andWhere(['enable_view' => 1])->all(), 'id', 'title'); $model = new Tblalarm(); if ($model->load(Yii::$app->request->post())) { $model->enable_view = 1; if ($model->save()) { $transaction->commit(); $_SESSION['error'] = 'اطلاعات با موفقیت ثبت شد'; return $this->redirect(['view', 'id' => $model->id]); } else { $_SESSION['error'] = 'خطا ! اطلاعات ذخیره نشدند'; return $this->render('create', [ 'model' => $model, 'category' => $category, ]); } }//end if load else { return $this->render('create', [ 'model' => $model, 'category' => $category, ]); }//end else load }//end try catch (Exception $e) { $transaction->rollBack(); $this->refresh(); }//end catch // return $this->render('create', [ // 'model' => $model, // ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Talabalar();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate() {\r\n $model = new Fltr();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionCreate()\n\t{\n\t\t//\n\t\t// if ($model->load(Yii::$app->request->post()) && $model->validate()) {\n\t\t// try {\n\t\t// $model->save();\n\t\t// Yii::$app->session->setFlash('alert', [\n\t\t// 'body' => Yii::$app->params['create-success'],\n\t\t// 'class' => 'bg-success',\n\t\t// ]);\n\t\t// } catch (\\yii\\db\\Exception $exception) {\n\t\tYii::$app->session->setFlash('alert', [\n\t\t\t'body' => Yii::$app->params['create-danger'],\n\t\t\t'class' => 'bg-danger',\n\t\t]);\n\n\t\t// }\n\t\treturn $this->redirect(['index']);\n\t\t// }\n\n\t\t// return $this->render('create', [\n\t\t// 'model' => $model,\n\t\t// ]);\n\t}", "public function actionCreate()\n\t{\n\n\t\t$model=new Templetstandardtask;\n\t\tif(isset($_POST['Templetstandardtask']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Templetstandardtask'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->fTaskNo));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n {\n $model = new TabelAppointment();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_appointment]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Monitoring();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new Poll();\n\n\n if ($model->load(Yii::$app->request->post()) && $model->validate()) {\n $model->startdate = strtotime($model->startdate);\n $model->enddate = strtotime($model->enddate);\n $model->created_by = Yii::$app->user->identity->getEmployeeNo();\n\n //Yii::$app->recruitment->printrr($model); exit;\n $model->save();\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate() {\n $model = new TimeBooks();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Takwim();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_CREATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=new RKPengirimanrmT;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t\n\n\t\tif(isset($_POST['RKPengirimanrmT']))\n\t\t{\n\t\t\t$model->attributes=$_POST['RKPengirimanrmT'];\n\t\t\tif($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('view','id'=>$model->pengirimanrm_id));\n }\n\t\t}\n\n\t\t$this->render($this->path_view.'create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n {\n $model = new Crm();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n \t /** @var ActiveRecord $model */\n \t $modelClass = static::modelClass();\n \t $model = new $modelClass();\n\n\t$viewFolder = '/';\n\t$viewName = 'create';\n\t$viewExtension = '.php';\n\t$viewFile = $this->getViewPath().$viewFolder.$viewName.$viewExtension;\n\t$viewPath = file_exists($viewFile) ? '' : $this->getDefaultViewPath(false);\n\t\n\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t$this->processData($model, 'create');\n\t\treturn $this->redirect(['view', 'id' => $model->getPrimaryKey()]);\n\t} else {\n\t\treturn $this->render($viewPath.$viewName, array_merge($this->commonViewData(), [\n\t\t\t'model' => $model,\n\t]));\n\t}\n }", "public function actionCreate() {\n $model = new TabellePlattform();\n\n if ($model->loadAll(Yii::$app->request->post())) {\n if ($model->saveAll()) {\n// $this->success = 2; // 2->insert erfolgreich\n \n// $model = $this->findModel($model->id);\n// $model->setIsNewRecord(false);\n \n return $this->redirect(['update','id'=>$model->id,'mySuccess' => 2]);\n// return $this->render('update', [\n// 'model' => $model,\n// ]);\n// $this->redirect(\\Yii::$app->urlManager->createUrl(\"test/show\"));\n } else {\n $this->success = -1; // -1->insert Fehler\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Alerts();\n\n $date = Yii::$app->request->post('Alerts');\n\n $date = isset($date['date']) ? strtotime($date['date']) : 0;\n\n //print_r(Yii::$app->request->post());exit;\n if ($model->load(Yii::$app->request->post()) ) {\n $model->doctor_id_from = Yii::$app->user->id;\n $model->date = $date;\n if (!$model->save()) {\n print_r($model->getErrors());\n }\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new TaKegiatan();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'Tahun' => $model->Tahun, 'Kd_Urusan' => $model->Kd_Urusan, 'Kd_Bidang' => $model->Kd_Bidang, 'Kd_Prog' => $model->Kd_Prog, 'Kd_Keg' => $model->Kd_Keg, 'Kd_Unit' => $model->Kd_Unit, 'Kd_Sub' => $model->Kd_Sub]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $this->checkPrivilege();\n $model = new LabKit();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->save();\n $model->kalibrasi_selanjutnya = $this->setSchedule($model->id);\n $model->save();\n return $this->redirect(['index']);\n } else {\n return $this->renderAjax('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Service();\n if($model->load(Yii::$app->request->post()) ){\n $model->created_by=Yii::$app->user->id;\n $model->created_at=time();\n if ( $model->save()) {\n\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n\t{\n\t\t$model=new WuTjuserall;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['WuTjuserall']))\n\t\t{\n\t\t\t$model->attributes=$_POST['WuTjuserall'];\n\t\t\t$model->createtime=time();\n\t\t\t$model->updatetime=time();\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('index'));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n {\n $model = new ActivityDetail();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new Loan();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Status();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new VehicleApply();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Schedule();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new Schedule();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new Actividad();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new MintaData();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Tblofficials();\n\n // $levelbyplace = Tbllevelbyplace::find()->all();\n $querylevelbyposition = Tbllevelbyposition::find()->all();\n $party = Tblparty::find()->all();\n $queryposition = Tblpositions::find()->all();\n $queryregion = Tblregion::find()->all();\n $queryprovince = Tblprovince::find()->all();\n $querycitymun = Tblcitymun::find()->all();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->OFFICIAL_ID]);\n } else {\n\n \n return $this->render('create', [\n 'model' => $model,\n 'arrlevelbyposition'=>ArrayHelper::map($querylevelbyposition,'LEVELPOSIT_ID','LEVELPOSIT_NAME'),\n 'querylevelbyposition' => $querylevelbyposition,\n 'party'=>ArrayHelper::map($party,'PARTY_ID','PARTY_NAME'),\n 'queryposition'=> $queryposition,\n 'queryregion'=> $queryregion,\n 'queryprovince' => $queryprovince,\n 'querycitymun' => $querycitymun,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Tickets();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new TbTeach();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->teach_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Rents();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Amphur();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->amphurId]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Calendar();\n if(!empty($_GET['id'])){\n \t\n \t$modelFix = InformFix::findOne ( $_GET['id'] );\n \t$text='';\n \tif(count($modelFix->informJobs)>0){\n \t\t$i=1;\n \t\tforeach ($modelFix->informJobs as $val){\n \t\t\t$text.=$i.' '.BaseStringHelper::truncate($val->list, 50).'<br/>';\n \t\t\t$i++;\n \t\t}\n \t}\n \t$modelFix->is_calendar=1;\n \t$modelFix->save();\n \tif($modelFix->date_modify!=''){\n \t$model->start_date= date(\"Y-m-d H:i\", $modelFix->date_modify);\n \t}\n \t$model->title= 'เลขที่อนุมัติ '.$modelFix->code;\n \t$model->description= $text;\n \t$model->table_name= 'fix_inform_fix';\n \t$model->table_key= $modelFix->id;\n\n }\n \n if ($model->load(Yii::$app->request->post())&& $model->save() ) {\n \n \tif (Yii::$app->request->isAjax) {\n \t\treturn 1;\n \t\texit();\n \t}else{\n return $this->redirect(['view', 'id' => $model->id]);\n \t}\n }\n if (Yii::$app->request->isAjax) {\n \treturn $this->renderAjax ( 'create', [\n \t\t\t 'model' => $model,\n \t] );\n }else{\n \t return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Bacaditempat;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\tYii::$app->getSession()->setFlash('success', [\n 'type' => 'info',\n 'duration' => 500,\n 'icon' => 'fa fa-info-circle',\n 'message' => Yii::t('app','Success Save'),\n 'title' => 'Info',\n 'positonY' => Yii::$app->params['flashMessagePositionY'],\n 'positonX' => Yii::$app->params['flashMessagePositionX']\n ]);\n return $this->redirect(['view', 'id' => $model->ID]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Data();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->no]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate() {\n $model = new Tblwork();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->Status = 1;\n\n $this->CreateDir($model->ref);\n\n $model->covenant = $this->uploadSingleFile($model);\n\n\n if ($model->save()) {\n //return $this->redirect(['view', 'id' => $model->id]);\n return $this->redirect(['index']);\n } else {\n $model->ref = substr(Yii::$app->getSecurity()->generateRandomString(), 10);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new ArsBooking();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new CategoryTable();\n $model->category_table_create_by = Yii::$app->user->id;\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n echo \"{'status':'success'}\";\n } else {\n echo \"{'status':'fail'}\";\n// return $this->render('create', [\n// 'model' => $model,\n// ]);\n }\n }", "public function actionCreate()\n\t{\n\t\t$model = $this->loadModel();\n\n\t\tif(isset($_POST[get_class($model)]))\n\t\t{\n $model = $this->_prepareModel($model);\n if (Yii::app()->getRequest()->isAjaxRequest) {\n if($model->save())\n echo json_encode($model);\n else\n echo json_encode(array('modelName' => get_class($model),'errors' => $model->getErrors()));\n\n Yii::app()->end();\n }\n\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate() {\n $model = new Surveys();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->validate() == TRUE) {\n // print_r($model);\n $model->save();\n Yii::$app->session->setFlash('success', \"Poll Created Succsesfully\");\n\n return $this->redirect('create');\n } else {\n $sessions = Yii::$app->session->set(\"Error\", \"Error when creating Survey\");\n }\n //print_r($model);\n //return $this->redirect(['view', 'id' => $model->survey_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n\t{\n\t\t$this->layout='//layouts/column2';\n\t\t$model=new RekruitmenMaba;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['RekruitmenMaba']))\n\t\t{\n\t\t\t$model->attributes=$_POST['RekruitmenMaba'];\n\t\t\tif($model->save()){\n\t\t\t\tif($model->lampiran){\n\n\t\t\t\t}\n\t\t\t\t$this->redirect(array('view','id'=>$model->id_rmaba));\n\t\t\t}\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,'manajemen'=>'manajemen',\n\t\t));\n\t}", "public function actionCreate()\n {\n $model = new RefJkel();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n\t{\n $this->layout='admin';\n \n\t\t$model=new Bet;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Bet']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Bet'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n {\n $model = new Admin();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate() {\n $model = new TabelleRelease();\n\n if ($model->loadAll(Yii::$app->request->post())) {\n if ($model->saveAll()) {\n\n return $this->redirect(['update', 'id' => $model->id, 'mySuccess' => 2]);\n } else {\n $this->success = -1; // -1->insert Fehler\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Mylive();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->live_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new SasaranEs4();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save()){\n flash('success','Data Sasaran Eselon IV Berhasil Disimpan');\n return $this->redirect(['index']);\n }\n \n flash('error','Data Sasaran Eselon IV Gagal Disimpan');\n \n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new IhubAbsence();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'idOpr' => $model->idOpr, 'tglabsence' => $model->tglabsence, 'ibadah' => $model->ibadah]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n\t{\n\t\t$model=new eBayTargetAndTrack;\n\n $this->layout='';\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\n $this->layout='//layouts/column2';\n\t}", "public function actionCreate()\r\n {\r\n $model = new HariTidakEfektif();\r\n\r\n if ($model->loadAll(Yii::$app->request->post())) {\r\n\r\n if( $this->checkDate($model->tanggal_awal, $model->tanggal_akhir) ){\r\n if( $this->validDate($model) ){\r\n $model->save();\r\n Yii::$app->session->setFlash('success', \"Hari tidak efektif berhasil ditambahkan.\");\r\n return $this->redirect(['view', 'id' => $model->id_hari_tidak_efektif]);\r\n }else{\r\n Yii::$app->session->setFlash('error', \"Tanggal akhir tidak boleh lebih kecil dari tanggal awal.\");\r\n }\r\n }else{\r\n Yii::$app->session->setFlash('error', 'Tanggal yang anda input telah tersedia, didata lain.');\r\n }\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionCreate()\n {\n $model = new UserFeeMaster();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n //$this->paymentUMoney($model);\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n 'userid' => Yii::$app->user->id,\n ]);\n }", "public function actionCreate()\n {\n $model = new ReportTrackingHistory();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->tbs_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_CREATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=new RKInfoPasienLamaV;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t\n\n\t\tif(isset($_POST['RKInfoPasienLamaV']))\n\t\t{\n\t\t\t$model->attributes=$_POST['RKInfoPasienLamaV'];\n\t\t\tif($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('view','id'=>$model->pendaftaran_id));\n }\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n\t{\n\t\t$model=new Barangmasuk;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Barangmasuk']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Barangmasuk'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n {\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_CREATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n $model=new RJAsuhankeperawatanT;\n\n // Uncomment the following line if AJAX validation is needed\n \n\n if(isset($_POST['RJAsuhankeperawatanT']))\n {\n \n if($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n $this->redirect(array('view','id'=>$model->asuhankeperawatan_id));\n }\n }\n\n $this->render('create',array(\n 'model'=>$model,\n ));\n }", "public function actionCreate()\n {\n // var_dump(1);\n $request = Yii::$app->request;\n $model['tintuc'] = new TinTuc();\n $model['loaitin']= DmLoaitin::find()->orderBy('ten_loai')->all();\n \n if ($request->isPost && $model['tintuc']->load($request->post()) && $model['tintuc']->validate()) {\n // $model['tintuc']->taikhoan_id= Yii::$app->user->id;\n // dd($model['tintuc']);\n $model['tintuc']->save();\n\n return $this->redirect(['view', 'id' => $model['tintuc']->id_tintuc]);\n }\n return $this->render('create', [\n 'model' => $model,\n 'const' => $this->const,\n 'categories' => $this->getCategories(),\n ]);\n \n }", "public function actionCreate()\n {\n $model = new Ora();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ora_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $this->setModelByConditions();\n\n if (Yii::$app->request->isPost &&\n $this->model->load(Yii::$app->request->post()) &&\n $this->setAdditionAttributes() &&\n $this->model->save()) {\n\n if ($this->viewCreated) {\n $redirectParams = [\n $this->urlPrefix.'view',\n 'id' => $this->model->getId(),\n ];\n } else {\n $redirectParams = [\n $this->urlPrefix.'index',\n ];\n }\n\n return $this->redirect($redirectParams);\n }\n\n return $this->render('create',\n ArrayHelper::merge(\n [\n 'model' => $this->model,\n ],\n $this->getAdditionFields()\n )\n );\n }", "public function actionCreate()\n {\n $model = new HorarioEstudiante();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_CREATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n $model=new SAAsuhankeperawatanT;\n\n // Uncomment the following line if AJAX validation is needed\n \n\n if(isset($_POST['SAAsuhankeperawatanT']))\n {\n \n if($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n $this->redirect(array('view','id'=>$model->asuhankeperawatan_id));\n }\n }\n\n $this->render('create',array(\n 'model'=>$model,\n ));\n }", "public function actionCreate()\n {\n $model = new Admin();\n\n /*if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->a_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }*/\n \n if (Yii::$app->request->post() && $model->validate()) {\n return $this->redirect(['view', 'id' => $model->a_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n\n\n }", "public function actionCreate()\n {\n $model = new Keep();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new TaPeriode();\n $pemda = \\common\\models\\TaPemdaUmum::find()->where('ID = (SELECT(MAX(ID)) FROM ta_pemda_umum)')->one();\n $model->ID_Tahun = (\\common\\models\\TaPeriode::find()->select('MAX(ID_Tahun) AS ID_Tahun')->one()['ID_Tahun']) + 1;\n $model->Kd_Prov = $pemda->Kd_Prov;\n $model->Kd_Kab_Kota = $pemda->Kd_Kab_Kota;\n //var_dump($model);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'ID_Tahun' => $model->ID_Tahun, 'Kd_Prov' => $model->Kd_Prov, 'Kd_Kab_Kota' => $model->Kd_Kab_Kota]);\n } else {\n return $this->renderAjax('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Clearanceentries();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect([\n 'view', \n 'Clear By ID' => $model['Clear By ID'], \n 'Clearance Level Code' => $model['Clearance Level Code'], \n 'Department' => $model->Department, \n 'Student ID' => $model['Student ID']\n ]);\n } else {\n return $this->render('create', [ 'model' => $model ]);\n }\n }", "public function actionCreate()\n {\n $model = new ActivityConfig();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\r\n {\r\n $model = new Pelanggaran();\r\n $trans = Yii::$app->db->beginTransaction();\r\n\r\n if ($model->loadAll(Yii::$app->request->post()) && $model->save()) {\r\n $check = $this->checkDetailPoint($model, 'create');\r\n \r\n if( isset($check['failed']) ){\r\n $trans->rollBack();\r\n Yii::$app->session->setFlash('error', $check['failed'] );\r\n return $this->redirect(['index']);\r\n }\r\n\r\n $trans->commit();\r\n Yii::$app->session->setFlash('success','Pelanggaran berhasil ditambahkan.');\r\n return $this->redirect(['index']);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionCreate()\n {\n $model = new Aduan();\n $modelAction = new AduanAction();\n\t\t\n if ($model->load(Yii::$app->request->post())) {\n $model->progress_id = 30;\n $model->created_at = new Expression('NOW()'); \n\t\t\t$model->updated_at = new Expression('NOW()'); \n\t\t\t$random = Yii::$app->security->generateRandomString();\n\t\t\t$model->token = $random;\n\t\t\t$code = rand(1000,9999);\n\t\t\t$model->email_code = $code;\n\t\t\tif($model->save()){\n\t\t\t\tYii::$app->session->addFlash('success', \"Aduan telah berjaya dihantar.\");\n\t\t\t\tif(!$model->upload()){\n\t\t\t\t\tYii::$app->session->addFlash('error', \"Fail lampiran gagal dimuatnaik\");\n\t\t\t\t}\n\t\t\t\treturn $this->redirect(['index']);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t$model->flashError();\n\t\t\t}\n \n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\r\n {\r\n $model = new Tax;\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['index', 'added' => 'yes']);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionCreate() {\n $model = new LoanItemPriority();\n $model->scenario = 'create_update';\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->getSession()->setFlash(\n 'success', 'Data Successfully Created!'\n );\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate() {\n $model = new Test();\n\n if ($model->load(Yii::$app->request->post())) {\n $this->dateformat($model, $_POST['Test']);\n $model->save();\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate() {\n $model = new EbayPriceMonitor;\n\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n\n if (isset($_POST['EbayPriceMonitor'])) {\n $model->attributes = $_POST['EbayPriceMonitor'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "public function actionCreate()\n {\n $model = Yii::$app->getSession()->get(\"loan\");\n if ($model == null) {\n $model = new Loan();\n $model->collection_method = 1;\n\n if (!$model->load(Yii::$app->request->post()) || !isset($model->type)) {\n return $this->render('create', [\n 'model' => $model\n ]);\n }\n }\n\n if (LoanTypes::isVehicleLoan($model->type)) {\n return $this->redirect([\"hp-new-vehicle-loan/create\", 'type' => $model->type]);\n } else if ($model->type == LoanTypes::DAILY_COLLECTION) {\n return $this->redirect([\"daily-collection-loan/create\", 'type' => $model->type]);\n } else if ($model->type == LoanTypes::PERSONAL) {\n return $this->redirect(['personal-loan/create', 'type' => $model->type]);\n } else {\n Yii::$app->getSession()->remove('loan');\n return $this->render('create', [\n 'model' => $model\n ]);\n }\n\n\n// $tx = Yii::$app->getDb()->beginTransaction();\n// $loanCreator = new LoanCreator;\n// $created = $loanCreator->createLoan($model->customer_id,\n// $model->type,\n// $model->amount,\n// $model->interest,\n// $model->penalty,\n// $model->charges,\n// $model->collection_method,\n// $model->period);\n// if ($created) {\n// $tx->commit();\n// return $this->redirect(['view', 'id' => $loanCreator->getLoanId()]);\n// } else {\n// $tx->rollBack();\n// return $this->render('create', [\n// 'model' => $model\n// ]);\n// }\n }", "public function actionCreate()\n\t{\n\t\t$model=new ARTICULOS;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['ARTICULOS']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ARTICULOS'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n {\n\t\t Yii::$app->view->title = Yii::t('app', 'Create').' - '.Yii::t('app', Yii::$app->controller->module->params['title']);\n\t\t \n $model = new InvtCheck();\n\n\t\t/* if enable ajax validate\n\t\tif (Yii::$app->request->isAjax && $model->load(Yii::$app->request->post())) {\n\t\t\tYii::$app->response->format = Response::FORMAT_JSON;\n\t\t\treturn ActiveForm::validate($model);\n\t\t}*/\n\t\t\n if ($model->load(Yii::$app->request->post())) {\n\t\t\tif($model->save()){\n AdzpireComponent::succalert('addflsh', 'เพิ่มรายการเรียบร้อย');\n\t\t\t return $this->redirect(['view', 'id' => $model->id]);\n\t\t\t}else{\n AdzpireComponent::dangalert('addflsh', 'เพิ่มรายการไม่ได้');\n\t\t\t}\n print_r($model->getErrors());exit;\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n \n\n }", "public function actionCreate()\n {\n $model = new SystemAdvert();\n if(Yii::$app->request->isAjax){\n return SystemAdvert::Add(Yii::$app->request->post(),$model);\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new Teacher();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Survey();\n\n Yii::$app->gon->send('saveSurveyUrl', '/survey/save-new');\n Yii::$app->gon->send('afterSaveSurveyRedirectUrl', \\Yii::$app->request->referrer);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n if (!Yii::$app->user->can(\"lentEdc\"))\n throw new ForbiddenHttpException(\"ไม่มีสิทธิ์เข้าถึงข้อมูล\");\n\n $model = new LentSave();\n\n if ($model->load(Yii::$app->request->post())) {\n\n if ($model->save())\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new Ddiet();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n\n {\n\n $model = new Orders();\n\n\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n\t\t\t\n\n\t\t\tYii::$app->session->setFlash('orders', 'Orders has been added successfully');\n\n return $this->redirect(['view', 'id' => $model->id]);\n\n } else {\n\n return $this->render('create', [\n\n 'model' => $model,\n\n ]);\n\n }\n\n }", "public function actionCreate()\n {\n $model = new TbDadosmes();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public\n function actionCreate()\n {\n $model = new Phforum();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Test();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Motor();\n $user = Yii::$app->user->identity->username;\n\n\n if ($model->load(Yii::$app->request->post())) {\n try{\n if($model->save()){\n\n $id_motor = $model->id;\n $no_totok = $model->no_totok;\n $no_mesin = $model->no_mesin;\n $no_rangka= $model->no_rangka;\n\n Yii::$app->db->createCommand('insert into logs (date, logs) VALUES (now(),\"Insert data motor id : '.$id_motor.' - No Mesin : '.$no_mesin.' - No Rangka : '.$no_rangka.' - No Totok : '.$no_totok.'// oleh user : '.$user.'\")')\n ->execute();\n\n Yii::$app->getSession()->setFlash(\n 'success','Data Motor Tersimpan!'\n );\n return $this->redirect(['index']);\n }\n }catch(Exception $e){\n Yii::$app->getSession()->setFlash(\n 'error',\"{$e->getMessage()}\"\n );\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_CREATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=new PPJadwaldokterM;\n $listHari = array( 'Senin'=> 'Senin',\n 'Selasa'=> 'Selasa',\n 'Rabu'=> 'Rabu',\n 'Kamis'=> 'Kamis',\n 'Jumat'=> 'Jumat',\n 'Sabtu'=> 'Sabtu',\n 'Minggu'=> 'Minggu',\n );\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t\n\n\t\tif(isset($_POST['PPJadwaldokterM']))\n\t\t{\n\t\t\t$model->attributes=$_POST['PPJadwaldokterM'];\n\t\t\t$model->jadwaldokter_buka = $model->jadwaldokter_mulai.' S/d '.$model->jadwaldokter_tutup;\n\t\t\tif($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('admin','id'=>$model->jadwaldokter_id,'sukses'=>1));\n }\n\t\t}\n\n\t\t$this->render($this->path_view.'create',array(\n\t\t\t'model'=>$model,\n 'listHari'=>$listHari\n\t\t));\n\t}", "public function actionCreate()\n\t{\n\t\tif (isset($_GET['newModel']) && isset(Yii::app()->session[$this->createBackup.'_Time']) && $_GET['newModel']>Yii::app()->session[$this->createBackup.'_Time']){\n\t\t\t\tunset(Yii::app()->session[$this->createBackup]);\n\t\t\t\tunset(Yii::app()->session[$this->createBackup.'_Time']);\n\t\t\t\tunset($_GET['newModel']);\n\t\t}\n\t\t$this->prepareCreateOrUpdate(null, 'create');\n\t}", "public function actionCreate()\n\t{\n\t $model=new ReportFinancial;\n\t\n\t // Uncomment the following line if AJAX validation is needed\n\t // $this->performAjaxValidation($model);\n\t \n// \t $store = array(91, 104, 105, 106, 112, 115, 120, 121, 122, 124, 147);\n// \t for($i=2; $i <300; $i++){\n// \t $model=new ReportFinancial;\n// \t $model->store_id = $store[array_rand($store)];\n// \t $model->order_id = $i;\n// \t $model->value = rand(100, 10000);\n// \t $model->charge = rand(100, 10000);\n// \t $model->date = date('Y-m-d',rand(time() - 12*30*24*60*60, time()));\n// \t $model->status = rand(0, 1);\n// \t $model->save();\n// \t }\n\t\n\t if(isset($_POST['ReportFinancial']))\n\t {\n\t $model->attributes=$_POST['ReportFinancial'];\n\t if($model->save())\n\t $this->redirect(array('index'));\n\t }\n\t\n\t $this->render('create',array(\n\t 'model'=>$model,\n\t ));\n\t}", "public function actionCreate()\n {\n $model = new NotificationsTemplate();\n\n if ($model->load(\\Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'key' => $model->key]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new Lahan();\n\n if($model->load(Yii::$app->request->post())){\n $request = Yii::$app->request;\n if(empty($request->post('Lahan')['keldes'])) {\n if(empty($request->post('Lahan')['kec'])) {\n if(empty($request->post('Lahan')['kotakab'])) {\n $model->lokasi_kode = $request->post('Lahan')['provinsi'];\n } else {\n $model->lokasi_kode = $request->post('Lahan')['kotakab'];\n }\n } else {\n $model->lokasi_kode = $request->post('Lahan')['kec'];\n }\n if($model->save(false)){\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } else {\n $model->lokasi_kode = $request->post('Lahan')['keldes'];\n if($model->save(false)){\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n\n // if ($model->load(Yii::$app->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'id' => $model->id]);\n // } else {\n // return $this->render('create', [\n // 'model' => $model,\n // ]);\n // }\n }", "public function actionCreate()\n {\n $model = new Gl2010idid();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create() {\n\t\t$model = new $this->model_class;\n\t\t$model->status = 3;\n\t\t$model->author_id = Session::get('wildfire_user_cookie');\n\t\t$model->url = time();\n\t\tif(Request::get(\"title\")) $model->title = Request::get(\"title\");\n\t\telse $model->title = \"Enter Your Title Here\";\n\t\t$this->redirect_to(\"/admin/content/edit/\".$model->save()->id.\"/\");\n\t}", "public function actionCreate()\n\t{\n\t\t$this->actionRegister();\n\t\t/*\n\t\tif (isset($_GET['newModel']) && isset(Yii::app()->session[$this->createBackup.'_Time']) && $_GET['newModel']>Yii::app()->session[$this->createBackup.'_Time']){\n\t\t\t\tunset(Yii::app()->session[$this->createBackup]);\n\t\t\t\tunset(Yii::app()->session[$this->createBackup.'_Time']);\n\t\t\t\tunset($_GET['newModel']);\n\t\t}\n\t\t$this->prepareCreateOrUpdate(null, 'create');\n\t\t*/\n\t}", "public function actionCreate() {\n $model = new TblServer;\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['TblServer'])) {\n $server = TblServer::model()->findByAttributes(array('id' => $model->id));\n $model->attributes = $_POST['TblServer'];\n $server = TblServer::model()->findByAttributes(array('id' => $model->id));\n\n //echo $model->id;\n $model->attributes = $_POST['TblServer'];\n $server = TblServer::model()->findByAttributes(array('id' => $model->id));\n\n //echo $model->id;\n\n if ($server) {\n// echo 'HEY';\n $this->redirect(array('Daftardatabase', 'id' => $model->id));\n } else {\n //echo \"Server tidak ditemukan\";\n $this->redirect(array('Daftardatabase', 'id' => $model->id));\n // $this->render('create',array(\n// 'model'=>$model,\n// ));\n }\n } else {\n //$model=new TblServer;\n $this->render('create', array(\n 'model' => $model,\n ));\n }\n }", "public function actionCreate()\n {\n $model = new Transaction();\n $model->img_url = 'a';\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate() {\n\t\t$model = new Wechats ();\n\t\tif ($model->load( Yii::$app->request->post () )) {\n\t\t\tif(Yii::$app->request->post('isNormal') == 'normal'){\n\t\t\t\t$model->scenario = 'normal';\n\t\t\t\t$model->updataNormal();\n\t\t\t}else{\n\t\t\t\t$model->scenario = 'onekey';\n\t\t\t}\n\t\t\t$model->save();\n\t\t\treturn $this->redirect ( [ \n\t\t\t\t\t'view','id' => $model->weid \n\t\t\t] );\n\t\t} else {\n\t\t\treturn $this->render ( 'create', [ \n\t\t\t\t\t'model' => $model \n\t\t\t] );\n\t\t}\n\t}", "public function actionCreate()\n\t{\n //if (Yii::app()->user->checkAccess('AgendaCitasCedi_SolicitudCitaEntregaMercancia_Crear')) {\n $model=new SolicitudCitaEntregaMercancia;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['SolicitudCitaEntregaMercancia']))\n\t\t{\n\t\t\t$model->attributes=$_POST['SolicitudCitaEntregaMercancia'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->IdNumeroSolicitud));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t)); /*} else {\n $this->render('//site/error', array(\n 'code' => '101',\n 'message' => Yii::app()->params ['accessError']\n ));\n }*/\n\t\t\n\t}", "public function actionCreate()\n\t{\n\t\t$model=new Patient;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Patient']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Patient'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate() {\n $model = new TblServer;\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['TblServer'])) {\n $server = TblServer::model()->findByAttributes(array('id' => $model->id));\n $model->attributes = $_POST['TblServer'];\n $server = TblServer::model()->findByAttributes(array('id' => $model->id));\n\n echo $model->id;\n $model->attributes = $_POST['TblServer'];\n $server = TblServer::model()->findByAttributes(array('id' => $model->id));\n\n echo $model->id;\n\n if ($server) {\n\n $this->redirect(array('daftar_database', 'id' => $model->id));\n } else {\n echo \"Server tidak ditemukan\";\n $this->redirect(array('daftar_database', 'id' => $model->id));\n// $this->render('create',array(\n// 'model'=>$model,\n// ));\n }\n } else {\n //$model=new TblServer;\n $this->render('create', array(\n 'model' => $model,\n ));\n }\n }", "public function actionCreate()\n {\n $model = new Cuenta();\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate(){\n $model = new Category();\n// d($model);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->category_id]);\n } else {\n// d($_POST);\n return $this->render('create', ['model' => $model,]);\n }\n }", "public function actionCreate()\n {\n IF($this->cekakses() !== true){\n Yii::$app->getSession()->setFlash('warning', 'Anda tidak memiliki hak akses');\n return $this->redirect(Yii::$app->request->referrer);\n } \n IF(Yii::$app->session->get('tahun'))\n {\n $tahun = Yii::$app->session->get('tahun');\n }ELSE{\n $tahun = DATE('Y');\n }\n\n $model = new Unit();\n\n if ($model->load(Yii::$app->request->post())) {\n IF($model->save()){\n echo 1;\n }ELSE{\n echo 0;\n }\n } else {\n return $this->renderAjax('create', [\n 'model' => $model,\n ]);\n }\n }" ]
[ "0.7634467", "0.71947604", "0.7154688", "0.7040052", "0.69703335", "0.6967753", "0.69609934", "0.69365865", "0.69061935", "0.6896743", "0.68961936", "0.6879918", "0.6872759", "0.6846145", "0.6824878", "0.6817033", "0.6780959", "0.6775192", "0.6773984", "0.6768338", "0.674973", "0.6746623", "0.6737617", "0.6737617", "0.67132497", "0.67064774", "0.6690211", "0.6682628", "0.6669781", "0.6668941", "0.6668916", "0.6656836", "0.6641959", "0.6630007", "0.66209245", "0.6606821", "0.66015476", "0.65957314", "0.65915763", "0.6589001", "0.6582525", "0.6581981", "0.6575896", "0.6568634", "0.6563853", "0.6563429", "0.6555641", "0.6555345", "0.6543078", "0.6523102", "0.6520066", "0.65021473", "0.65008664", "0.65000224", "0.6499199", "0.64988875", "0.6496746", "0.6495923", "0.649302", "0.6490325", "0.6485635", "0.64838463", "0.6473263", "0.64725745", "0.6472327", "0.6470639", "0.64678127", "0.646463", "0.64564323", "0.6454839", "0.64538723", "0.64426386", "0.64422375", "0.6438394", "0.64356923", "0.6430852", "0.64304644", "0.6413541", "0.6408622", "0.6407606", "0.64069307", "0.6406682", "0.6403551", "0.6402415", "0.639659", "0.6394908", "0.63903964", "0.6386389", "0.6382555", "0.63761574", "0.63757426", "0.63745576", "0.6372488", "0.6370677", "0.6365611", "0.6364828", "0.6362435", "0.6360135", "0.63599366", "0.6359014" ]
0.74163353
1
Updates an existing Tblalarm model. If update is successful, the browser will be redirected to the 'view' page.
public function actionUpdate($id) { $transaction = Yii::$app->db->beginTransaction(); try { $category = ArrayHelper::map(Tblcategoryi::find()->where(['enable' => 1])->andWhere(['enable_view' => 1])->all(), 'id', 'title'); $model = $this->findModel($id); if ($model->load(Yii::$app->request->post())) { if ($model->save()) { $transaction->commit(); $_SESSION['error'] = 'اطلاعات با موفقیت ثبت شد'; return $this->redirect(['view', 'id' => $model->id]); } else { // var_dump($model->getErrors());exit; $_SESSION['error'] = 'خطا ! اطلاعات ذخیره نشدند'; return $this->render('create', [ 'model' => $model, 'category' => $category, ]); } }//enf if load else { return $this->render('update', [ 'model' => $model, 'category' => $category, ]); } }//end try catch (Exception $e) { $transaction->rollBack(); $this->refresh(); }//end catch }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdate()\n {\n\t\t\t$id=7;\n $model = $this->findModel($id);\n $model->slug = \"asuransi\";\n $model->waktu_update = date(\"Y-m-d H:i:s\");\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['WuTjuserall']))\n\t\t{\n\t\t\t$model->attributes=$_POST['WuTjuserall'];\n\t\t\t$model->updatetime=time();\n\t\t\tif($model->save())\n\t\t\t $this->redirect(array('index'));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n $model->saldoactual=0;\n if($model->save()){\n $model::getDb()->createCommand(\"call actualizarSaldoActual();\")->execute();\n return $this->redirect(['view', 'id' => $model->id]);}else{\n return $this->render('update', [\n 'model' => $model,'fecha'=>$model->fecha,'descripcion'=>$model->descripcion,'entra'=>3,\n ]); \n }\n } else {\n return $this->render('update', [\n 'model' => $model,'fecha'=>$model->fecha,'descripcion'=>$model->descripcion,'entra'=>0,\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t\n\n\t\tif(isset($_POST['RKPengirimanrmT']))\n\t\t{\n\t\t\t$model->attributes=$_POST['RKPengirimanrmT'];\n\t\t\tif($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('view','id'=>$model->pengirimanrm_id));\n }\n\t\t}\n\n\t\t$this->render($this->path_view.'update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate()\n {\n if (!$model = $this->findModel()) {\n Yii::$app->session->setFlash(\"error\", Yii::t('modules/user', \"You are not logged in.\"));\n $this->goHome();\n } else if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash(\"success\", Yii::t('modules/user', \"Changes has been saved.\"));\n $this->refresh();\n } else {\n return $this->render('update', ['model' => $model,]);\n }\n }", "public function actionUpdate($id)\n {\n\t\t $model = $this->findModel($id);\n\t\t \n\t\t Yii::$app->view->title = Yii::t('app', 'Update {modelClass}: ', [\n 'modelClass' => 'Invt Check',\n]) . $model->id.' - '.Yii::t('app', Yii::$app->controller->module->params['title']);\n\t\t \n if ($model->load(Yii::$app->request->post())) {\n\t\t\tif($model->save()){\n AdzpireComponent::succalert('edtflsh', 'ปรับปรุงรายการเรียบร้อย');\n\t\t\t return $this->redirect(['view', 'id' => $model->id]);\n\t\t\t}else{\n AdzpireComponent::dangalert('edtflsh', 'ปรับปรุงรายการไม่ได้');\n\t\t\t}\n return $this->redirect(['view', 'id' => $model->id]);\n } \n\n return $this->render('update', [\n 'model' => $model,\n ]);\n \n\n }", "public function actionUpdate($id)\n {\n $user = TollUsers::findIdentity(Yii::$app->user->id);\n if(!empty($user->group_id)){\n $dataTolls = ArrayHelper::map(Tolls::find()->where(['tbl_tolls.group_id' => $user->group_id])->asArray(true)->all(),'toll_id','toll_location');\n }else {\n $dataTolls = ArrayHelper::map(Tolls::find()->where(['tbl_tolls.toll_id' => $user->toll_id])->asArray(true)->all(),'toll_id','toll_location');\n }\n $dataLanguages = ArrayHelper::map(MasterLanguage::find()->asArray(true)->all(), 'lagunage_id', 'laguage_name');\n $dataUsertypes = ArrayHelper::map(MasterTollUserTypes::find()->where(['!=', 'toll_user_type_id', '1'])->all(), 'toll_user_type_id', 'type_name');\n\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->getSession()->setFlash('msg', 'Toll User updated Successfully');\n return $this->redirect(['index']);\n //return $this->redirect(['view', 'id' => $model->toll_user_id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'dataLanguages'=> $dataLanguages,\n 'dataUsertypes'=> $dataUsertypes,\n 'dataTolls' => $dataTolls\n ]);\n }\n }", "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\t\t//print_r(\"update mode\");exit;\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n // return $this->redirect(['view', 'id' => $model->id]);\r\n\t\t return $this->redirect(['index']);\r\n }\r\n\r\n return $this->renderAjax('update', [\r\n 'model' => $model,\r\n ]);\r\n }", "public function actionUpdate($id)\n {\n $this -> layout = 'blankLayout';\n\n $model = $this->findModel($id);\n\n $model->updated_date = date('Y-m-d H:i:s');\n $model->updated_by = Yii::$app->user->getId(); \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash('success', \"Saved successful\");\n return $this->redirect(Yii::$app->request->referrer);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n // if ($model->load(Yii::$app->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'id' => $model->kamar_id]);\n // }\n if ($model->load(Yii::$app->request->post())) {\n // Yii::$app->creator->update($model);\n $model->updated_by = Yii::$app->user->identity->username;\n \t $model->updated_date = date(\"Y-m-d\");\n $model->save();\n return $this->redirect(['view', 'id' => $model->kamar_id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id) {\n $model = $this->loadModel($id);\n\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n\n if (isset($_POST['EbayPriceMonitor'])) {\n $model->attributes = $_POST['EbayPriceMonitor'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function actionUpdate($id) {\n\t\t$model = $this->findModel ( $id );\n\t\t\n\t\tif ($model->load ( Yii::$app->request->post () ) && $model->save ()) {\n\t\t\treturn $this->redirect ( [ \n\t\t\t\t\t'view','id' => $model->weid \n\t\t\t] );\n\t\t} else {\n\t\t\treturn $this->render ( 'update', [ \n\t\t\t\t\t'model' => $model \n\t\t\t] );\n\t\t}\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $model->date_read = Yii::$app->formatter->asDate($model->date_read);\n //$model = new MeterRead();\n $options = array('type' => [\n 'ELECTRICITY' => 'Electricity', \n 'WATER' => 'Water', \n 'SINKINGFUND' => 'Sinking Fund', \n 'SERVICECHARGE' => 'Service Charge', \n 'INTERNET' => ' Internet',\n 'TV' => 'TV'\n ] );\n $options['recur_period'] = [\n 'DAY' => 'Daily', \n 'WEEK' => 'Weekly', \n '2WEEK' => 'Biweekly', \n 'MONTH' => 'Monthly', \n '3MONTH' => 'Every 3 months', \n '6MONTH' => 'Every 6 months', \n 'YEAR' => 'Yearly'\n ];\n $options['meter_unit'] = [\n 'KWH' => 'KWH', \n 'M3' => 'Cubic Meter (m3)', \n 'M2' => 'Square Meter (m2)'\n ];\n\n $options['status'] = [\n 'Normal' => 'Normal',\n 'Anomali' => 'Anomali',\n 'Confirmed' => 'Confirmed'\n\n ];\n \n //var_dump($model);\n\n if ($model->load(Yii::$app->request->post())) {\n\n $model->delta = $model->cur_value - $model->prev_value;\n $model->date_read = strtotime($model->date_read);\n $model->month = date('m', $model->date_read);\n $model->year = date('Y', $model->date_read);\n\n if($model->save()){\n return $this->redirect(['view', 'id' => $model->id]);\n }else{\n return $this->render('update', [\n 'model' => $model,\n 'options' => $options\n ]);\n\n }\n\n \n } else {\n return $this->render('update', [\n 'model' => $model,\n 'options' => $options\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n $this->layout='admin';\n \n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Bet']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Bet'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate($id)\n {\n\n // p($id);die;\n $model = $this->findModel($id);\n // p($model);die;\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id) {\n\t\t$model = $this->findModel ( $id );\n\t\t\n\t\tif ($model->load ( Yii::$app->request->post () ) && $model->save ()) {\n\t\t\treturn $this->redirect ( [ \n\t\t\t\t\t'view',\n\t\t\t\t\t'id' => $model->id \n\t\t\t] );\n\t\t}\n\t\t\n\t\treturn $this->render ( 'update', [ \n\t\t\t\t'model' => $model \n\t\t] );\n\t}", "public function actionUpdate($id)\n {\n date_default_timezone_set('America/Sao_Paulo');\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if($model->status_chegada == 1){\n $model->data_chegada = date('Y-m-d');\n $model->save();\n }\n if ($model->status_entrega == 1){\n $model->data_pronto = date('Y-m-d');\n $model->save();\n }elseif ($model->status_entrega == 2 && !$model->data_pronto) {\n $model->data_entregue = date('Y-m-d');\n $model->data_pronto = date('Y-m-d');\n $model->save();\n }elseif ($model->status_entrega == 2){\n $model->data_entregue = date('Y-m-d');\n $model->save();\n }\n\n return $this->redirect(['index']);\n\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->tbs_id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\n\t{\n\t\t//$this->layout='//layouts/column2';\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['RekruitmenMaba']))\n\t\t{\n\t\t\t$model->attributes=$_POST['RekruitmenMaba'];\n\t\t\tif($model->save()){\n\t\t\t\tif($model->lampiran){\n\n\t\t\t\t}\n\t\t\t\t$this->redirect(array('view','id'=>$model->id_rmaba));\n\t\t\t}\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,'manajemen'=>'manajemen',\n\t\t));\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) ){\n $model->doctor_id_from = Yii::$app->user->id;\n //$date = Yii::$app->request->post('Alerts');\n ///print_r($date); exit;\n //$model->date = strtotime($date['date']);\n if(!$model->save()) print_r($model->getErrors());\n\n return $this->redirect(['index']);\n } else {\n $model->read_status = 1; // прочитано, как только просмотрен\n if(!$model->save()) print_r($model->getErrors());\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate() {\n $model = $this->loadModel();\n $modelAmbienteUso = new Ambiente_Uso;\n $modelUsuario = new Usuario();\n $modelAmbiente = new Ambiente();\n $modelPredio = new Predio();\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Alocacao'])) {\n $model->attributes = $_POST['Alocacao'];\n $a = $model->DT_DIA;\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->ID_ALOCACAO));\n }\n\n $this->render('update', array(\n 'model' => $model,\n 'modelAU' => $modelAmbienteUso,\n 'modelU' => $modelAmbienteUso,\n 'modelA' => $modelAmbiente,\n 'modelP' => $modelPredio\n ));\n }", "public function actionUpdate($id)\n\n {\n \n $model = new Main();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n return $this->redirect(['view', 'id' => $model->id]);\n\n } else {\n\n return $this->render('update', [\n\n 'model' => $model,\n\n ]);\n\n }\n \n \n\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Templetstandardtask']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Templetstandardtask'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->fTaskNo));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t\t'keyid'=>$id\n\t\t));\n\t}", "function update(){\n\t\t$this->model->update();\n\t}", "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->loadAll(Yii::$app->request->post())) {\r\n \r\n if( $this->validDate($model) ){\r\n $model->save();\r\n Yii::$app->session->setFlash('success', \"Hari tidak efektif berhasil diubah.\");\r\n return $this->redirect(['view', 'id' => $model->id_hari_tidak_efektif]);\r\n }else{\r\n Yii::$app->session->setFlash('error', \"Tanggal akhir tidak boleh lebih kecil dari tanggal awal.\");\r\n\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n \r\n } else {\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save())\n {\n return $this->redirect(['index']);\n }\n else\n {\n //var_dump($model);\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n $model->scenario = 'update';\n //$model = new Companyusers;\n $timezone = Yii::$app->db->createCommand(\"select * from timezone\")->queryAll();\n\n $timezone = ArrayHelper::map($timezone, \"id\", \"name\");\n $m = $this->findModel($id);\n $statusList=[\"1\"=>\"Active\",\"0\"=>\"In-active\"];\n $user = new User;\n $userModel = $user::findOne($m->user_id);\n // var_dump($userModel);\n $model->user_name = $userModel->username;\n $model->status = $userModel->status; \n $model->password = \"\";\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save()) {\n $userModel->username = $model->user_name;\n if($model->password!=\"\"){\n $userModel->password = md5($model->password); \n }\n $userModel->email = $model->email;\n $userModel->status = $model->status;\n $userModel->save();\n }\n return $this->redirect(['index']);\n } else {\n \n return $this->render('update', [\n 'model' => $model,\n 'timezone' => $timezone,\n 'id' => $id,\n 'status'=>$statusList\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Alumno']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Alumno'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->al_rut));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate($id)\n {\n///\n$nombre=Yii::$app->user->identity->username;\n$connection = \\Yii::$app->db;\n$db = $connection->createCommand(\"INSERT INTO auditoria (id, user, modelo, accion, fechahora) VALUES (NULL, '$nombre', 'PropiedadDet', 'Actualizar', NOW());\")->execute();\n///\n\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n// return $this->redirect(['view', 'id' => $model->id_propiedad_det]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Recargas']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Recargas'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate($id)\n { \n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->a_id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if ($model->save()){\n flash('success','Data Sasaran Eselon IV Berhasil Diubah');\n return $this->redirect(['index']);\n }\n \n flash('error','Data Sasaran Eselon IV Gagal Diubah');\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate() //update value from default page to DB\n {\n\n\n $model = $this->findModel($_POST['ExamRoomDetail']['rooms_detail_date'],\n $_POST['ExamRoomDetail']['rooms_detail_time'],\n $_POST['ExamRoomDetail']['rooms_id']\n );\n if(isset($_POST)) {\n $model->load(Yii::$app->request->post());\n $update = $model;\n $update->exam_room_status = $_POST['ExamRoomDetail']['exam_room_status'];\n $update->save();\n }\n\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->RA_NUM]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n // Set Menu Collapse\n $session = Yii::$app->session;\n $session->set('collapse', 'sidebar-collapse');\n // \\.Set Menu Collapse\n\n \n \n /*\n * ถ้า Status = closed แก้ได้เฉพาะ admin\n */\n if($model->status == 'closed'){\n if(Yii::$app->session->get('Rules')['rules_id'] != 1){\n // Yii::$app->getSession()->setFlash('alert',[\n // 'body'=>'<i class=\"fa fa-times-circle text-red\"></i> '.Yii::t('common','You do not have permission to edit closed job.').' '.$model->no,\n // 'options'=>['class'=>'bg-danger']\n // ]);\n Yii::$app->session->setFlash('error', Yii::t('common','You do not have permission to edit closed job.').' '.$model->no);\n return $this->redirect(['index']);\n }\n }\n\n\n // Update Only status, From Finance posted button.\n if(isset($_POST['status'])){\n if($_POST['status'] != ''){\n\n $model->status = $_POST['status'];\n $model->balance = $_POST['amount'];\n $model->rc_money = $_POST['pay'];\n $model->rc_change = $_POST['rcchange'];\n $model->update_by = Yii::$app->user->identity->id;\n $model->update_date = date('Y-m-d H:i:s');\n $model->order_date = Yii::$app->session->get('workdate');\n $model->point = Yii::$app->session->get('Machine');\n\n if($model->save()){\n return true;\n }else {\n return json_encode($model->getErrors(),JSON_UNESCAPED_UNICODE);\n }\n\n }\n }\n\n\n if ($model->load(Yii::$app->request->post())) {\n\n\n $model->update_by = Yii::$app->user->identity->id;\n $model->update_date = date('Y-m-d H:i:s');\n $model->order_date = Yii::$app->session->get('workdate');\n $model->point = Yii::$app->session->get('Machine');\n //ถ้าสินค้าไม่มีราคา จะไม่ปิดใบงาน\n if($model->balance<=0){\n $model->status = 'Open';\n }\n $model->save();\n \n return $this->redirect(['index']);\n\n\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ora_id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->validate()) {\n \t$model->updatedBy=Yii::$app->user->id;\n \t$model->updatedDate=date('Y-m-d H:i:s');\n \t$model->save();\n // return $this->redirect(['view', 'id' => $model->planetId]);\n \treturn $this->redirect(['index']);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\n\t{\n\t\t$role = Yii::app()->user->role;\n\t\tif(!in_array($role, array('staff', 'admin'))) {\n\t\t\t$this->redirect(array('site/index'));\n\t\t}\n\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Teacher']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Teacher'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate($id) {\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Plantel'])) {\n $model->attributes = $_POST['Plantel'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash('success', 'Setting berhasil diubah. Anda perlu masuk kembali ke program agar setting teraplikasikan.');\n Yii::$app->user->logout();\n return $this->goHome();\n } else {\n return $this->render('update', ['model' => $model]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $model->status = Status::STATUS_ACTIVE;\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n\n ]);\n }\n }", "public function _actionUpdate($id) {\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['EpcModelTemp'])) {\n $model->attributes = $_POST['EpcModelTemp'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n //return $this->redirect(['view', 'id' => $model->id]);\n\t return $this->redirect(['index']);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\n\t{\n\t $model=$this->loadModel('ReportFinancial',$id);\n\t\n\t // Uncomment the following line if AJAX validation is needed\n\t // $this->performAjaxValidation($model);\n\t\n\t if(isset($_POST['ReportFinancial']))\n\t {\n\t $model->attributes=$_POST['ReportFinancial'];\n\t if($model->save())\n\t $this->redirect(array('index'));\n\t }\n\t\n\t $this->render('update',array(\n\t 'model'=>$model,\n\t ));\n\t}", "public function actionUpdate($id)\n {\n $this->checkPrivilege();\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n $mulai = $model->tanggal_mulai;\n $jangka = $model->jangka_kalibrasi;\n $model->kalibrasi_selanjutnya = date('Y-m-d', strtotime(\"+\".$jangka.\" Weeks\", strtotime($mulai)));\n $model->save();\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->renderAjax('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id){\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n $model->date_submitted=NULL;\n $model->save();\n $applicationid=$model->application_id;\n $application = MgfApplication::findOne($applicationid);\n $application->application_status='Updated';\n $application->is_active=1;\n $application->date_submitted=NULL;\n if ($application->save()) {\n Yii::$app->session->setFlash('success', 'Saved successfully.');\n MgfApplication::updateAll(['is_active' => 0], 'id!='.$applicationid);\n return $this->redirect(['view', 'id' => $model->id]);\n }else{\n Yii::$app->session->setFlash('error', 'NOT Saved.');\n return $this->render('update', ['model' => $model,]);\n }\n }\n\n return $this->render('update', ['model' => $model,]);\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n \n $model->updated_at = date('Y-m-d H:i:s');\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Respuestas']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Respuestas'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id_con));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t\t));\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $model->scenario = 'update';\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->validate() ){ \n \n $connection = \\Yii::$app->db;\n $transaction = $connection->beginTransaction();\n\n try {\n //Se guarda encabezado Vale deposito_central\n if ($model->save()){\n $this->deshacer_renglones($model);\n $this->guardar_renglones($model);\n }\n $transaction->commit();\n return $this->redirect(['view', 'id' => $model->PE_NROREM]);\n }\n catch (\\Exception $e) {\n $transaction->rollBack();\n throw $e;\n }\n }\n else{\n return $this->render('update', [\n 'model' => $model,\n \n ]);\n }\n \n } else {\n \n\n $renglones = $this->agrupar_medicamentos($model->renglones);\n \n foreach ($renglones as $key => $renglon) {\n $renglones[$key]->descripcion = $renglon->articulo->AG_NOMBRE;\n $renglon->PR_FECVTO = Yii::$app->formatter->asDate($renglon->PR_FECVTO,'php:d-m-Y');\n }\n\n $model->renglones = $renglones;\n\n \n return $this->render('update', [\n 'model' => $model,\n \n ]);\n \n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n $this->layout=\"main\";\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\n {\n \t\n $model = $this->findModel($id);\n $model->start_date = date ( \"d-m-Y H:i\", $model->start_date );\n if($model->end_date!=''){\n $model->end_date = date ( \"d-m-Y H:i\", $model->end_date );\n }\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \t\n \tif (Yii::$app->request->isAjax) {\n \t\treturn 1;\n \t\texit();\n \t}else{\n return $this->redirect(['view', 'id' => $model->id]);\n \t}\n } \n if (Yii::$app->request->isAjax) {\n \treturn $this->renderAjax ( 'update', [\n \t\t\t'model' => $model,\n \t] );\n }else{\n \n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n\n {\n\n $model = $this->findModel($id);\n\n\t\t\t\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n\t\t\t\n\n\t\t\tYii::$app->session->setFlash('orders', 'Orders has been updated successfully');\n\n return $this->redirect(['view', 'id' => $model->id]);\n\n } else {\n\n return $this->render('update', [\n\n 'model' => $model,\n\n ]);\n\n }\n\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index' ,'id' => $model->inmueble_id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate()\n {\n $model = $this->findModel(Yii::$app->request->post('id'));\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $model;\n }\n return $model->errors;\n }", "public function actionUpdate($id)\n {\n \n $request = Yii::$app->request; \n $model['tintuc'] = $this->findModel($id);\n \n $model['loaitin']=DmLoaitin::find()->orderBy('ten_loai')->all();\n if ($request->isPost && $model['tintuc']->load($request->post()) && $model['tintuc']->validate()) {\n // $model['tintuc']->taikhoan_id= Yii::$app->user->id;\n $model['tintuc']->save();\n return $this->redirect(['view', 'id' => $model['tintuc']->id_tintuc]);\n }\n return $this->render('update', [\n 'model' => $model,\n 'const' => $this->const,\n 'categories' => $this->getCategories()\n ]);\n \n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n //$locationModel = Location::find()->where(['location_id' => $this->location->id])->one();\n $locationModel = $model->location ? $model->location : new Location;\n //TODO: проверить, рефакторинг\n $locationModel->save();\n //$locationModel->link('debtor', $model);\n $model->link('location', $locationModel);\n $locationModel->load(Yii::$app->request->post());\n $locationModel->save();\n\n //$nameModel = Name::find()->where(['name_id' => $this->name->id])->one();\n $nameModel = $model->name ? $model->name : new Name;\n //TODO: проверить, рефакторинг\n $nameModel->save();\n $nameModel->link('debtor', $model);\n $nameModel->load(Yii::$app->request->post());\n $nameModel->save();\n\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n if (Yii::$app->request->isAjax) {\n return $this->renderAjax('update', [\n 'model' => $model,\n ]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }\n }", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()))\n {\n if($model->save())\n return $this->redirect(['view', 'id' => $model->id]);\n else\n var_dump($model->errors); die;\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) \r\n {\r\n return $this->redirect(['view', 'id' => $model->idapresentacao]);\r\n } else {\r\n return $this->render('update', [\r\n 'model' => $model,\r\n\r\n ]);\r\n }\r\n }", "public function actionUpdate($id)\n\t{\n\t\t$model = $this->loadModel($id);\n\t\tif($model->tags)\n\t\t\tforeach($model->tags as $tag)\n\t\t\t\tarray_push($model->formTags, $tag->title);\n//var_dump($model->teacherModels);exit;\n\t\tif($model->teacherModels)\n\t\t\tforeach($model->teacherModels as $teacher)\n\t\t\t\tarray_push($model->teachers, $teacher->id);\n\t\t\n\t\t$model->classDays = $model->classDays ? explode(',', $model->classDays) : null;\n\t\tif(isset($_POST['Classes'])) {\n\t\t\t$model->attributes = $_POST['Classes'];\n\t\t\t$model->formTags = isset($_POST['Classes']['formTags']) ? explode(',', $_POST['Classes']['formTags']) : null;\n $model->teachers = isset($_POST['Classes']['teachers']) ? $_POST['Classes']['teachers']: null;\n\t\t\t$model->classDays = isset($_POST['Classes']['classDays']) ? explode(',', $_POST['Classes']['classDays']) : null;\n\t\t\t$model->price = isset($_POST['Classes']['price']) ? $_POST['Classes']['price'] : 0;\n\n\t\t\tif($model->save()) {\n\t\t\t\tYii::app()->user->setFlash('success', '<span class=\"icon-check\"></span>&nbsp;&nbsp;اطلاعات با موفقیت ذخیره شد.');\n\t\t\t\t$this->redirect(array('admin'));\n\t\t\t} else\n\t\t\t\tYii::app()->user->setFlash('failed', 'در ثبت اطلاعات خطایی رخ داده است! لطفا مجددا تلاش کنید.');\n\t\t}\n\n\t\t$this->render('update', array(\n\t\t\t\t'model' => $model,\n\t\t));\n\t}", "public function actionUpdate($id)\n {\n $model = $this->loadModel($id);\n\n $this->performAjaxValidation($model, 'ahorro-form');\n\n if (isset($_POST['Ahorro'])) {\n $model->attributes = $_POST['Ahorro'];\n// $model->fecha = Yii::app()->dateFormatter->format(\"yyyy-MM-dd hh:mm:ss\", $model->fecha);\n $model->fecha = Util::FormatDate($model->fecha, 'Y-m-d');\n if ($model->save()) {\n $this->redirect(array('admin'));\n }\n }\n $model->fecha = Util::FormatDate($model->fecha, 'd/m/Y');\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n $model->updated_at = date('Y-m-d H:i:s');\n if($model->save())\n {\n echo 1;\n }\n else\n {\n echo 0;\n }\n return $this->redirect(['index', 'id' => $model->shop_id]);\n } \n else {\n $hours = [1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 16 => 16, 17 => 17, 18 => 18, 19 => 19, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24];\n return $this->renderAjax('update', [\n 'model' => $model,\n 'hours' => $hours,\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\t\t\n\t\tif(isset($_POST['name']))\n\t\t{\n\t\t\t$model->fCatalogueName=$_POST['name'];\n\t\t\t$model->fStatus=$_POST['statu'];\n\t\t\t$model->fIsDownLoad=$_POST['down'];\n\t\t\t$model->fUpdateUser=Yii::app()->params->loginuser->fUserName;\n\t\t\t$model->fUpdateDate=time();\n\t\t\tif($model->save())\n\t\t\t{\n\t\t\t\t$this->renderPartial('update',array(\n\t\t\t\t\t\t'data'=>UFSBaseUtil::printJson(array(\n\t\t\t\t\t\t\t\t'fCatalogueName'=>CHtml::encode($model->fCatalogueName),\n\t\t\t\t\t\t\t\t'fIsDownLoad'=>CHtml::encode($model->fIsDownLoad),\n\t\t\t\t\t\t\t\t'fStatus'=>CHtml::encode($model->fStatus),\n\t\t\t\t\t\t\t\t'fUpdateDate'=>CHtml::encode(empty($model->fUpdateDate)?'':date('Y-m-d',$model->fUpdateDate)),\n\t\t\t\t\t\t\t\t'fUpdateUser'=>CHtml::encode($model->fUpdateUser),\n\t\t\t\t\t\t\t\t'msg'=>$this->FrameInfo(Yii::app()->params['layouttype']['top'],Yii::t('message','Update Success'),Yii::app()->params['notytype']['success']),\n\t\t\t\t\t\t))\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->No_]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate()\r\n {\r\n $model=Settings::findOne(1);\r\n\r\n \r\n if ($model->load(Yii::$app->request->post())) \r\n {\r\n $model->code=strtolower($model->code);\r\n if($model->save())\r\n {\r\n Yii::$app->session->setFlash('success','Account Updated');\r\n return $this->redirect(['/site/index']);\r\n }\r\n else\r\n {\r\n print_r($model->errors); exit;\r\n }\r\n } \r\n else \r\n {\r\n Yii::$app->view->title=\"Update Account Info\";\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n \r\n\r\n }", "public function actionUpdate($id)\n {\n if(\\Yii::$app->user->isGuest) {\n \treturn $this->redirect(Yii::$app->params['default']);\n }\n\t\t\n\t\tif(\\Yii::$app->user->identity->jabatan !== \"Administrator\")\t {\n\t\t\t\\Yii::$app->getSession()->setFlash('warning', \"You have no privilege to update an announcement.\");\n\t\t\treturn $this->redirect(Yii::$app->params['default'].'index.php/home');\t\n\t\t}\n\t\t\n //$model = $this->findModel($id);\n\t\t$model=Pengumuman::findOne(['id'=>$id]);\n\t\t$model->tanggal=null;\n\t\tif(\\Yii::$app->user->identity->nik == $model->creator) {\n\n\t\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\t\t\\Yii::$app->getSession()->setFlash('success', \"Announcement is successfully updated.\");\n \treturn $this->redirect(['view', 'id' => $model->id]);\n \t} else {\n \treturn $this->render('update', [\n \t'model' => $model,\n \t]);\n \t}\n\t\t// }\n\t\t// else{\n\t\t\t// \\Yii::$app->getSession()->setFlash('danger', \"You have no privilege to update this announcement.\");\n\t\t\t// return $this->redirect('/propensi/web/index.php/pengumuman');\t\n\t\t}\n \n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \tYii::$app->getSession()->setFlash('success', $model->fkt_form_name.' '.$model->fkt_list_name.' 已经修改成功!');\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n if($this->isAuthenticate())\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) \n {\n return $this->redirect(['index','type' => $model->IdEntityType]);\n } else \n {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \tYii::$app->getSession()->setFlash('success', $model->cname.' 已经修改成功!');\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n// return $this->redirect(['view', 'id' => $model->id]);\n return $this->redirect('/content-menu');\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n if(isset(Yii::$app->user->identity->id)){\n if(SiteController::findCom(17)){\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ADepId]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n else {\n $this->redirect(['site/error']);\n }\n }else {\n $this->redirect(['site/login']);\n }\n}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $db = Yii::$app->db->beginTransaction();\n if ($model->load(Yii::$app->request->post())) {\n try {\n if(!$model->save()){\n throw new \\Exception(current($model->getFirstErrors()));\n }\n $db->commit(); \n }catch(\\Exception $e) {\n $db->rollback();\n echo $e->getMessage();\n }\n \n Yii::$app->getSession()->setFlash('success', 'Update Submmited Successfully');\n return $this->redirect(['view', 'id' => $model->id]);\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate()\n\t{\n $id_livro = $_REQUEST['id_livro'];\n\n $model = emprestimo::model()->find('id_livro = :idLivro AND data_devolucao_efetiva is null', Array (':idLivro'=>$id_livro));\n\n\t\tif(isset($_POST['emprestimo']))\n\t\t{\n $emprestimo = $_POST['emprestimo'];\n $emprestimo['data_retirada'] = date('Y-m-d',strtotime(str_replace('/', '-', $emprestimo['data_retirada'])));\n $emprestimo['data_devolucao'] = date('Y-m-d',strtotime(str_replace('/', '-', $emprestimo['data_devolucao'])));\n\n $model->attributes=$emprestimo;\n \n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('/bibliotecas/livro/view','id'=>$model->id_livro));\n\t\t}\n\n $aluno = aluno::model()->findByPk($model->id_aluno);\n $livro = livro::model()->findByPk($model->id_livro);\n $biblioteca = biblioteca::model()->findByPk($livro->id_biblioteca);\n\n if(isset($model->data_devolucao_efetiva))\n $status = \"Finalizado\";\n elseif(!isset($model->data_devolucao_efetiva) && strtotime($model->data_devolucao) < strtotime(date('Y-m-d')))\n $status = \"Em Atraso\";\n else\n $status = \"Ativo\";\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model, 'aluno'=>$aluno,'livro'=>$livro,'biblioteca'=>$biblioteca,'status'=>$status,\n\t\t));\n\t}", "public function actionUpdate()\n {\n $model = $this->loadModel();\n\n if (isset($_POST['User']))\n {\n $model->attributes = $_POST['User'];\n\n if ($model->save())\n {\n Yii::app()->user->setFlash(YFlashMessages::NOTICE_MESSAGE, Yii::t('user', 'Данные обновлены!'));\n\n $this->redirect(array('view', 'id' => $model->id));\n }\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function actionUpdate($id)\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=$this->loadModel($id);\n $listHari = array( 'Senin'=> 'Senin',\n 'Selasa'=> 'Selasa',\n 'Rabu'=> 'Rabu',\n 'Kamis'=> 'Kamis',\n 'Jumat'=> 'Jumat',\n 'Sabtu'=> 'Sabtu',\n 'Minggu'=> 'Minggu',\n );\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t\n\n\t\tif(isset($_POST['PPJadwaldokterM']))\n\t\t{\n\t\t\t$model->attributes=$_POST['PPJadwaldokterM'];\n $model->jadwaldokter_buka = $model->jadwaldokter_mulai.' S/d '.$model->jadwaldokter_tutup;\n\t\t\tif($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('admin','id'=>$model->jadwaldokter_id,'sukses'=>1));\n }\n\t\t}\n\n\t\t$this->render($this->path_view.'update',array(\n\t\t\t'model'=>$model,\n 'listHari'=>$listHari\n\t\t));\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n if($model->creator_id==Yii::$app->user->identity->id){\n \n if ($model->load(Yii::$app->request->post()) && $model->save()){\n return $this->redirect(['view', 'id' => $model->id]);\n }\n return $this->render('update', ['model' => $model,]);\n }\n\n else{\n return $this->redirect(['index']); \n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n if($model->creator_id==Yii::$app->user->identity->id){\n \n if ($model->load(Yii::$app->request->post()) && $model->save()){\n return $this->redirect(['view', 'id' => $model->id]);\n }\n return $this->render('update', ['model' => $model,]);\n }\n\n else{\n return $this->redirect(['index']); \n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\t Yii::$app->getSession()->setFlash('success', [\n 'type' => 'info',\n 'duration' => 500,\n 'icon' => 'fa fa-info-circle',\n 'message' => Yii::t('app','Success Edit'),\n 'title' => 'Info',\n 'positonY' => Yii::$app->params['flashMessagePositionY'],\n 'positonX' => Yii::$app->params['flashMessagePositionX']\n ]);\n return $this->redirect(['view', 'id' => $model->ID]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\t Yii::$app->getSession()->setFlash('success', [\n 'type' => 'info',\n 'duration' => 500,\n 'icon' => 'fa fa-info-circle',\n 'message' => Yii::t('app','Success Edit'),\n 'title' => 'Info',\n 'positonY' => Yii::$app->params['flashMessagePositionY'],\n 'positonX' => Yii::$app->params['flashMessagePositionX']\n ]);\n return $this->redirect(['view', 'id' => $model->ID]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n //check access\n if($model->user_id == Yii::$app->user->identity->id){\n\n /* explode the string in array to show selected values in form */\n\n if($model->ban_country)\n {\n $model->ban_country = explode(',', $model->ban_country);\n }\n\n if($model->OS)\n {\n $model->OS = explode(',', $model->OS);\n }\n\n if($model->device)\n {\n $model->device = explode(',', $model->device);\n }\n\n if($model->ban_hour)\n {\n $model->ban_hour = explode(',', $model->ban_hour);\n }\n\n if($model->ban_week_day)\n {\n $model->ban_week_day = explode(',', $model->ban_week_day);\n }\n\n\n if ($model->load(Yii::$app->request->post()) ) {\n\n\n\n /* implode array to string to store in db */\n if($model->ban_country)\n {\n $model->ban_country = implode(',', $model->ban_country);\n }\n\n if($model->OS)\n {\n $model->OS = implode(',', $model->OS);\n }\n\n if($model->device)\n {\n $model->device = implode(',', $model->device);\n }\n\n if($model->ban_hour)\n {\n $model->ban_hour = implode(',', $model->ban_hour);\n }\n\n if($model->ban_week_day)\n {\n $model->ban_week_day = implode(',', $model->ban_week_day);\n }\n\n $model->save();\n\n Yii::$app->session->setFlash('savedSuccess');\n\n return $this->redirect(['index']); \n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }else{\n\n // if he is not creater then go back to index page\n\n return $this->redirect(['index']); \n }\n }", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->RowID]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n $model->scenario = 'create_update';\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->getSession()->setFlash(\n 'success', 'Data Successfully Updated!'\n );\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Apply']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Apply'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate($id) {\n Login::UserAuth('Customers', 'Update');\n $model = $this->loadModel($id);\n\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n\n if (isset($_POST['Customers'])) {\n $_POST['Customers'] = CI_Security::ChkPost($_POST['Customers']);\n $model->attributes = $_POST['Customers'];\n $model->password = md5($model->password);\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->cid));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function actionUpdate($id) {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionUpdate($id)\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t\n\n\t\tif(isset($_POST['RKInfoPasienLamaV']))\n\t\t{\n\t\t\t$model->attributes=$_POST['RKInfoPasienLamaV'];\n\t\t\tif($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('view','id'=>$model->pendaftaran_id));\n }\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_appointment]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function updateAction() {\n $model = new Application_Model_Compromisso();\n //passo para a model os dados a serem upados\n $model->update($this->_getAllParams());\n //redireciono para a view\n $this->_redirect('compromisso/index');\n }", "public function actionUpdate($id)\n {\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n $model=$this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n \n\n if(isset($_POST['RJAsuhankeperawatanT']))\n {\n $model->attributes=$_POST['RJAsuhankeperawatanT'];\n if($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n $this->redirect(array('view','id'=>$model->asuhankeperawatan_id));\n }\n }\n\n $this->render('update',array(\n 'model'=>$model,\n ));\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\t\t$empmodel = $this->findSupperAdmin($id);\n\t\t$empmodel->scenario = 'updateCompany';\n\t\t$password=$empmodel->Password;\n\t\t\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\t\n\t\t\t$empmodel->load(Yii::$app->request->post());\n $empmodel->CreditBalance=0;\n $empmodel->CreditLimit=0;\n $empmodel->CreditOnHold=0;\n\t\t\t\t\t\t\n\t\t\tif(Yii::$app->request->post()['Employee']['Password']!=\"\"){\n\t\t\t\t$empmodel->setPassword(Yii::$app->request->post()['Employee']['Password']);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$empmodel->Password=$password;\n\t\t\t\t$empmodel->password_repeat=$password;\n\t\t\t}\n\t\t\t\t\t\t\n \t\n\t\t\tif($empmodel->save())\n\t\t\t{\n\t\t\t\tYii::$app->session->setFlash('success', \"Company Updated Successfully\");\n\t\t\t\treturn $this->redirect(['view', 'id' => $model->CompanyId]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\t$error=[];\n\t\t\t\t\n\t\t\t\tforeach($empmodel->getErrors() as $attribute => $message){\n\t\t\t\t\t$errorMesage=\"\";\n\t\t\t\t\t$errorMesage.=\"<strong>\".$empmodel->getAttributeLabel($attribute).\"</strong> :\";\n\t\t\t\t\t$errorMesage.=implode(\". \",$message);\n\t\t\t\t\t$error[]=$errorMesage;\n\t\t\t\t}\n\t\t\t\tYii::$app->session->setFlash('error',Yii::t('company', implode(\"<br>\",$error)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn $this->render('upadte', [\n\t\t\t\t\t'model' => $model,\n\t\t\t\t\t'empmodel'=>$empmodel\n\t\t\t\t]);\n\t\t\t}\n\t\t\t\n \n } else {\n\t\t\t$error=[];\n\t\t\t\n\t\t\tforeach($model->getErrors() as $attribute => $message){\n\t\t\t\t$errorMesage=\"\";\n\t\t\t\t$errorMesage.=\"<strong>\".$model->getAttributeLabel($attribute).\"</strong> :\";\n\t\t\t\t$errorMesage.=implode(\". \",$message);\n\t\t\t\t$error[]=$errorMesage;\n\t\t\t}\n\t\t\tif($error)\n\t\t\tYii::$app->session->setFlash('error',Yii::t('company', implode(\"<br>\",$error)));\n\t\t\n\t\t\t$empmodel->Password='';\n\t\t\t$empmodel->password_repeat='';\n return $this->render('update', [\n 'model' => $model,\n\t\t\t\t'empmodel'=>$empmodel\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save()) {\n $this->success(Yii::t('flash', 'major.update_success'));\n } else {\n $this->error(Yii::t('flash', 'major.update_error'));\n }\n return $this->redirect(['index']);\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n \n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->no]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $modelDays= Days::find()->all();\n $modelClasses= Classes::find()->all();\n $schedule= new Schedule();\n $model = $schedule->getScheduleByDepartmentId($id);\n $department_name = $schedule->getDepartmentFullName($id);\n // if ($model->load(Yii::$app->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'id' => $model->id]);\n // }\n return $this->render('update', [\n 'model' => $model,\n 'modelDays'=>$modelDays,\n 'modelClasses'=>$modelClasses,\n 'department_name'=>$department_name,\n ]);\n }", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post())) {\n $this->dateformat($model);\n\n $model->save();\n $model = $this->dateformat($model);\n\n return $this->redirect(['update', 'id' => $model->id]);\n } else {\n $model = $this->dateformat($model);\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('up-date', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionUpdate($id)\n {\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n $model=$this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n \n\n if(isset($_POST['SAAsuhankeperawatanT']))\n {\n $model->attributes=$_POST['SAAsuhankeperawatanT'];\n if($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n $this->redirect(array('view','id'=>$model->asuhankeperawatan_id));\n }\n }\n\n $this->render('update',array(\n 'model'=>$model,\n ));\n }", "public function actionUpdate($id)\n\t{\n\t\t$model = $this->findModel($id);\n\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t} else {\n\t\t\treturn $this->render('update', [\n\t\t\t\t\t'model' => $model,\n\t\t\t]);\n\t\t}\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->validate()) {\n if($this->roleService->save($model)){\n Yii::$app->session->setFlash('success', Yii::t('t2cms', \"Success save\"));\n } else {\n Yii::$app->session->setFlash('error', Yii::t('t2cms/error', \"Error save\"));\n }\n \n return $this->refresh();\n \n } else if(Yii::$app->request->post()){\n Yii::$app->session->setFlash('error', Yii::t('t2cms/error', \"Error validate form\"));\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n //var_dump(Yii::$app->request->post());\n //exit();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash('success', '事件<'. $model->title .'>更新成功! ');\n return $this->redirect(['index']);\n } else {\n return $this->renderAjax('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->showFlash('修改数据成功','success');\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n\t{\n\t\t$model = $this->findModel($id);\n\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t} else {\n\t\t\treturn $this->render('update', [\n\t\t\t\t'model' => $model,\n\t\t\t]);\n\t\t}\n\t}" ]
[ "0.71310127", "0.6913757", "0.6717773", "0.6705382", "0.6693328", "0.66874576", "0.66774994", "0.6676186", "0.6652464", "0.6648165", "0.66164047", "0.66154885", "0.66072947", "0.6599231", "0.659806", "0.6588655", "0.65840274", "0.6564795", "0.65615803", "0.65595883", "0.6558451", "0.65431446", "0.6542839", "0.65301454", "0.65080297", "0.6498477", "0.64964783", "0.6491054", "0.64738584", "0.6467443", "0.64615405", "0.645874", "0.6458539", "0.64557904", "0.64441854", "0.6443502", "0.64428324", "0.64385426", "0.643601", "0.64340097", "0.6426197", "0.64172125", "0.6416217", "0.64151907", "0.6414856", "0.6414651", "0.6412941", "0.64090025", "0.6408483", "0.6407546", "0.6404407", "0.6399452", "0.6395836", "0.6393856", "0.6392571", "0.63922864", "0.6387313", "0.638597", "0.63834107", "0.63833445", "0.6383133", "0.6376415", "0.6368116", "0.636614", "0.6364851", "0.6355017", "0.6349299", "0.63475347", "0.63461757", "0.6345963", "0.6340028", "0.6339411", "0.63392603", "0.6330682", "0.6328161", "0.6324988", "0.6324988", "0.63241214", "0.63241214", "0.6322764", "0.6322461", "0.6320668", "0.6320434", "0.63107336", "0.6310489", "0.6308893", "0.63046694", "0.63024914", "0.6300647", "0.62963414", "0.6295092", "0.6291282", "0.628874", "0.62789947", "0.6273183", "0.62714833", "0.6268784", "0.62659866", "0.6263034", "0.6262766", "0.62617874" ]
0.0
-1
Deletes an existing Tblalarm model. If deletion is successful, the browser will be redirected to the 'index' page.
public function actionDelete($id) { $transaction = Yii::$app->db->beginTransaction(); try { $model = $this->findModel($id); $todayDate = date('Y/m/d'); $model = $this->findModel($id); $advertiseCount = Advertise::find()->where(['enable' => 1])->andWhere(['idAlarm' => $model->id])->count(); if ($advertiseCount > 0) { $count = 0; for ($i = 0; $i < $advertiseCount; $i++) { $advertise = Advertise::find()->where(['enable' => 1])->andWhere(['idAlarm' => $model->id])->all(); if ($advertise) { foreach ($advertise as $a) { $advertiseDate = $a->endDate; if ($todayDate < $advertiseDate || $todayDate == $advertiseDate) { $_SESSION['error'] = 'شما مجاز به حذف نمیباشید'; return $this->redirect(['index']); }//end if $advertiseDate else { $model->enable_view = 0; if ($model->save()) { $transaction->commit(); return $this->redirect(['index']); }//end if save else { $_SESSION['error'] = 'خطا در خدف رکورد'; return $this->redirect(['index']); }//end else save }//end else $advertiseDate } }//end if $advertise else { $model = $this->findModel($id); $model->enable_view = 0; return $this->redirect(['index']); }//end else $advertise $count = $count + 1; }//end for // foreach ($advertise as $advert){ // $advertiseDate=$advert->endDate; // if ($todayDate==$advertiseDate ||$todayDate<$advertiseDate){}//end if $advertiseDate // else{}//end else $advertiseDate // }//end foreach }//end if $advertiseCount>0 else { $model = $this->findModel($id); $model->enable_view = 0; return $this->redirect(['index']); }//end if $advertiseCount>0 }//end try catch (Exception $e) { $transaction->rollBack(); $this->refresh(); }//end catch return $this->redirect(['index']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionDelete()\n {\n if ($post = Template::validateDeleteForm()) {\n $id = $post['id'];\n $this->findModel($id)->delete();\n }\n return $this->redirect(['index']);\n }", "public function actionDelete()\n\t{\n\t parent::actionDelete();\n\t\t$model=$this->loadModel($_POST['id']);\n\t\t $model->delete();\n\t\techo CJSON::encode(array(\n 'status'=>'success',\n 'div'=>'Data deleted'\n\t\t\t\t));\n Yii::app()->end();\n\t}", "public function actionDelete()\n {\n $id= @$_POST['id'];\n if($this->findModel($id)->delete()){\n echo 1;\n }\n else{\n echo 0;\n }\n\n return $this->redirect(['index']);\n }", "public function actionDelete()\n {\n if(isset($_POST['id'])){\n $id = $_POST['id'];\n $this->findModel($id)->delete();\n echo \"success\";\n }\n }", "public function actionDelete($id)\n { \n\t\t$model = $this->findModel($id); \n $model->isdel = 1;\n $model->save();\n //$model->delete(); //this will true delete\n \n return $this->redirect(['index']);\n }", "public function deleteAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif ($item) {\n\t\t\t$item->delete();\n\t\t}\n\t\t$this->_helper->redirector('list', null, null, array('model' => $modelName));\n\t}", "public function actionDelete($id)\n {\n\t\t\n\t\t$model = $this->findModel($id);\n\t\t$model->dte_exclusao = 'NOW()';\n\t\t\n\t\tif ($model->save())\n\t\t{\n\t\t\t\n\t\t\t$this->session->setFlashProjeto( 'success', 'delete' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\t$this->session->setFlashProjeto( 'danger', 'delete' );\n\t\t}\n\n return $this->redirect(['index']);\n }", "public function actionDelete()\n\t{\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t\n\t\t\n\t\t$this->checkUser();\n\t\t$this->checkActivation();\n\t//\t$model = new Estate;\n\t\t\n\t\tif($model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$model=Estate::model()->findbyPk($_GET['id']);\n\t\t\tif($model===null)\n\t\t\t\tthrow new CHttpException(404, Yii::t('app', 'The requested page does not exist.'));\n\t\t}\n\t\t\n\t\tEstateImage::deleteAllImages($model->id);\t\n\t\t@unlink(dirname(Yii::app()->request->scriptFile).$model->tour);\n\t\t@unlink(dirname(Yii::app()->request->scriptFile).$model->image);\n\t\t\n\t\t$model->delete();\n\t\t\n\t\t\n\t\tModeratorLogHelper::AddToLog('deleted-estate-'.$model->id,'Удален объект #'.$model->id.' '.$model->title,null,$model->user_id);\n\t\t$this->redirect('/cabinet/index');\n\t\t\n\t}", "public function delete_record()\n {\n $id = $this->input->get('tpid');\n\n $result = $this->PumpModel->delete_data(array('tpid'=>$id));\n // print_r($result);die;\n redirect(base_url(). 'Pump');\n }", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']); \n }", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']); \n }", "public function actionDelete()\n {\n if (!$this->isAdmin()) {\n $this->getApp()->action403();\n }\n\n $request = $this->getApp()->getRequest();\n $id = $request->paramsNamed()->get('id');\n $model = $this->findModel($id);\n if (!$model) {\n $this->getApp()->action404();\n }\n\n $model->delete();\n\n return $this->back();\n }", "public function actionDelete($id)\n {\n $model=$this->findModel($id);\n $model->IsDelete=1;\n $model->save();\n Yii::$app->session->setFlash('success', \"Your message to display.\");\n return $this->redirect(['index']);\n }", "public function delete() {\n $flg = $this->Seatmodel->delete();\n\n if (!empty($flg)) {\n $this->session->set_flashdata('successmessage', 'Data deleted successfully');\n } else {\n $this->session->set_flashdata('errormessage', 'Oops! Something went wrong');\n }\n\n redirect(base_url('admin-seat-list'));\n }", "public function actionDelete($id)\n {\n\t\t$model = $this->findModel($id);\n\n\t\t$model->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n #$this->findModel($id)->delete();\n $model = $this->findModel($id);\n $model->status=0;\n $model->save();\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model=$this->findModel ( $id );\n\t\t$model->is_delete=1;\n\t\t$model->save ();\n\n return $this->redirect(['index']);\n }", "public function actionDelete()\n {\n $id = Yii::$app->request->post('id');\n try {\n $this->findModel($id)->delete();\n } catch (StaleObjectException $e) {\n } catch (NotFoundHttpException $e) {\n } catch (\\Throwable $e) {\n }\n\n return $this->redirect(['index']);\n }", "public function actionDelete()\r\n {\r\n $this->_userAutehntication();\r\n\r\n switch($_GET['model'])\r\n {\r\n /* Load the respective model */\r\n case 'posts': \r\n $model = Post::model()->findByPk($_GET['id']); \r\n break; \r\n default: \r\n $this->_sendResponse(501, sprintf('Error: Mode <b>delete</b> is not implemented for model <b>%s</b>',$_GET['model']) );\r\n exit; \r\n }\r\n /* Find the model */\r\n if(is_null($model)) {\r\n // Error : model not found\r\n $this->_sendResponse(400, sprintf(\"Error: Didn't find any model <b>%s</b> with ID <b>%s</b>.\",$_GET['model'], $_GET['id']) );\r\n }\r\n\r\n /* Delete the model */\r\n $response = $model->delete();\r\n if($response>0)\r\n $this->_sendResponse(200, sprintf(\"Model <b>%s</b> with ID <b>%s</b> has been deleted.\",$_GET['model'], $_GET['id']) );\r\n else\r\n $this->_sendResponse(500, sprintf(\"Error: Couldn't delete model <b>%s</b> with ID <b>%s</b>.\",$_GET['model'], $_GET['id']) );\r\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\t\t\\Yii::$app->session->setFlash('updated',\\Yii::t('admin', 'Данные успешно удалены'));\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id) {\n\n $model = $this->findModel($id);\n $model->dte_exclusao = 'NOW()';\n\n if ($model->save()) {\n\n $this->session->setFlashProjeto('success', 'delete');\n } else {\n\n $this->session->setFlashProjeto('danger', 'delete');\n }\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n { \n $connection = \\Yii::$app->db;\n $transaction = $connection->beginTransaction();\n \n try {\n $model = $this->findModel($id);\n \n $this->deshacer_renglones($model);\n\n $model->delete();\n \n $transaction->commit();\n \n return $this->redirect(['index']);\n\n }\n catch (\\Exception $e) {\n $transaction->rollBack();\n throw $e;\n }\n\n }", "public function actionDelete($id)\n {\n\t$model = static::findModel($id);\n\n\t$this->processData($model, 'delete');\n\n\t$model->delete();\n\n \treturn $this->redirect(['index']);\n }", "public function actionDelete()\n {\n $id = Yii::$app->request->post('id');\n $this->findModel($id)->delete();\n }", "function delete()\n{\n\t$model = $this->getModel('logs');\n\t$read = $model->delete();\n\t$this->view_logs();\n}", "public function actionDelete($id){\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $model=$this->findModel($id);\n\t\t$id_operacion=$model->id_operacion;\n\t\t$model->delete();\n\t\t\n\t\treturn $this->redirect(['index', 'id_operacion' => $id_operacion]);\n //return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n DmquerylogController::actionCreateLog('DELETE',get_class($model),$model->oldAttributes,null);\n\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n\t{\n\t\t$model = $this->loadModel($id);\n\t\t\n\t\tif ($model) {\n\t\t\t$model->delete();\n\t\t}\n\n // if AJAX request (triggered by deletion via list grid view), we should not redirect the browser\n if (!isset($_GET['ajax']))\n $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('index'));\n\t}", "public function actionDelete($id) {\n\t\t$this->findModel($id)->delete();\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n {\n if(isset($_REQUEST['id']))\n {\n $model = $this->findModel($_REQUEST['id']);\n $model->is_deleted = \"Y\";\n $model->u_by = Yii::$app->user->id;\n $model->u_date = time();\n $model->save(false);\n }\n //$this->findModel($id)->delete();\n\n //return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n // $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\r\n {\r\n // $this->findModel($id)->delete();\r\n echo 'Not Allowed';\r\n exit();\r\n return $this->redirect(['index']);\r\n\r\n }", "public function actionDelete($id)\n {\n //$this->findModel($id)->delete();\n $tmp = $this->findModel($id);\n $tmp_id = $tmp->counter_id;\n $tmp->delete();\n return $this->redirect(['/indication/index', 'id' => $tmp_id]);\n }", "public function actionDelete($id)\n {\n $model=$this->findModel($id);\n $model->status=0;\n $model->save();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete()\n\t{\n\t parent::actionDelete();\n\t $id=$_POST['id'];\n\t foreach($id as $ids)\n\t {\n\t\t$model=$this->loadModel($ids);\n\t\t$model->recordstatus=0;\n\t\t$model->save();\n\t }\n\t echo CJSON::encode(array(\n\t\t\t 'status'=>'success',\n\t\t\t 'div'=>'Data deleted'\n\t\t\t ));\n\t Yii::app()->end();\n\t}", "public function actionDelete()\n\t{\n\t\t$id = intval($_GET['iId']);\n\t\t$this->loadModel($id)->delete();\n\t\t$this->redirect('/app/DayPush/index');\n\t}", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n\t\tMsgUtils::success();\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n\t\t$this->findModel ( $id )->delete ();\n\t\t\n\t\treturn $this->redirect ( [ \n\t\t\t\t'index' \n\t\t] );\n\t}", "public function actionDelete($id) {\n\t\t$this->findModel ( $id )->delete ();\n\t\t\n\t\treturn $this->redirect ( [ \n\t\t\t\t'index' \n\t\t] );\n\t}", "public function actionDelete()\n\t{\n\t parent::actionDelete();\n\t\t$id=$_POST['id'];\n\t\tforeach($id as $ids)\n\t\t{\n\t\t $model=$this->loadModel($ids);\n\t\t $model->recordstatus=0;\n\t\t $model->save();\n\t\t}\n\t\techo CJSON::encode(array(\n 'status'=>'success',\n 'div'=>'Data deleted'\n\t\t\t\t));\n Yii::app()->end();\n\t}", "public function actionDelete($id) {\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id) {\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function delete($id){\n $this->m_sekolah->delete($id); \n redirect('Welcome/index');\n\n }", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n Yii::$app->session->setFlash('success', '记录已删除! ');\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id) {\r\n\t\t$this->findModel ( $id )->delete ();\r\n\t\t\r\n\t\treturn $this->redirect ( [ \r\n\t\t\t\t'index' \r\n\t\t] );\r\n\t}", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n\n $model->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n\n $model->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n\t\t$model = $this->loadModel($id);\n\t\t$model->is_deleted = 1;\n\t\t$model->save();\n\t\t\n\t\t$this->redirect(array(\"/\".$model->type));\n\t}", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->isDelete = 1;\n $model->save();\n return $this->redirect(['index']);\n }", "public function deleteAction()\n {\n if ($this->isConfirmedItem($this->_('Delete %s'))) {\n $model = $this->getModel();\n $deleted = $model->delete();\n\n $this->addMessage(sprintf($this->_('%2$u %1$s deleted'), $this->getTopic($deleted), $deleted), 'success');\n $this->_reroute(array('action' => 'index'), true);\n }\n }", "public function actionDelete($id)\n\t\t{\n\t\t\t\t$model = $this->findModel($id);\n\t\t\t\t$model->status = Order::STATUS_DELETED;\n\n\t\t\t\tif($model->save()) {\n\t\t\t\t\t\tYii::$app->session->setFlash('success', 'The record was deleted.');\n\t\t\t\t} else {\n\t\t\t\t\t\tYii::$app->session->setFlash('error', 'The record was not deleted. Something going wrong');\n\t\t\t\t}\n\n\t\t\t\treturn $this->redirect(['index']);\n\t\t}", "public function actionDelete($id)\n {\n\t $model = $this->findModel($id);\n\t $exercise_rule_id=$model->exercise_rule_id;\n\t $model->delete();\n return $this->redirect(['index','exercise_rule_id' => $exercise_rule_id]);\n }", "public function actionDelete($id)\n\t{\n\t\t$model = $this->loadModel($id);\n\t\t$model->state = -1;\n\t\t$model->updated = date('Y-m-d H:i:s');\n\t\t\t$model->updater = Yii::app()->user->getState('id',NULL);\n\n\t\t// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser\n\t\tif(!isset($_GET['ajax']) && $model->save()){\n\t\t\tYii::app()->user->setFlash('mss','<div class=\"alert alert-success\"><h4>Thành công!</h4>Hủy thành công.</div>');\n\t\t}\n\t\telse{\n\t\t\tYii::app()->user->setFlash('mss','<div class=\"alert alert-error\"><h4>Error!</h4>Quá trình lưu bị lỗi. Xin vui lòng thử lại</div>');\n\t\t}\n\t\t$this->redirect(Yii::app()->request->urlReferrer);\n\t}", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->status = '0';\n $model->save();\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n///\n$nombre=Yii::$app->user->identity->username;\n$connection = \\Yii::$app->db;\n$db = $connection->createCommand(\"INSERT INTO auditoria (id, user, modelo, accion, fechahora) VALUES (NULL, '$nombre', 'PropiedadDet', 'Borrar', NOW());\")->execute();\n///\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $this->_findModel($id)->delete();\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id)\n\t{\n\t\t//$this->loadModel($id)->delete();\n $model=$this->loadModel($id);\n $model->IdEstadoSolicitudCita = 3;\n $model->save();\n\n\t\t// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser\n\t\tif(!isset($_GET['ajax']))\n\t\t\t$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));\n\t}", "public function actionDelete() {\n $model = new \\UsersModel();\n $login = $this->getParam('login');\n\n if ( $model->delete($login) ) {\n $this->flashMessage('Odstraněno', self::FLASH_GREEN);\n } else {\n $this->flashMessage('Záznam nelze odstranit', self::FLASH_RED);\n }\n\n $this->redirect('default');\n }", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n\n AdzpireComponent::succalert('edtflsh', 'ลบรายการเรียบร้อย');\n\n return $this->redirect(['index']);\n }", "public function actionDelete()\n {\n return $this->findModel(Yii::$app->request->post('id'))->delete(false);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }" ]
[ "0.69846034", "0.68467", "0.6841764", "0.6833891", "0.6808618", "0.6769294", "0.6736195", "0.67261827", "0.6717854", "0.6662536", "0.6662536", "0.6660928", "0.66538006", "0.665326", "0.6650747", "0.66446424", "0.6642207", "0.66253215", "0.6624074", "0.6622085", "0.66208607", "0.66160685", "0.66143715", "0.6612791", "0.66008276", "0.6599609", "0.65947723", "0.6580789", "0.657436", "0.6563284", "0.6563284", "0.65533584", "0.6550458", "0.6539255", "0.6535858", "0.6523127", "0.6518843", "0.6516752", "0.6505544", "0.6505544", "0.65049094", "0.6503418", "0.6484258", "0.6464717", "0.64633065", "0.6460536", "0.64597356", "0.64597356", "0.6448825", "0.6432719", "0.6432719", "0.64259154", "0.6414685", "0.6411345", "0.6411345", "0.6411345", "0.6411345", "0.64105535", "0.6403299", "0.6403299", "0.64012766", "0.6397269", "0.63916546", "0.6391044", "0.6386721", "0.6385844", "0.63852674", "0.63848084", "0.63772887", "0.6374988", "0.6374988", "0.6374988", "0.6374988", "0.6374988", "0.6374988", "0.6374988", "0.63725895", "0.63717705", "0.6371593", "0.6361783", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736", "0.63595736" ]
0.0
-1
Finds the Tblalarm model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
protected function findModel($id) { if (($model = Tblalarm::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find($id){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Create a select query\n\t\t$query = \"SELECT \" . implode(\",\" , static::$columns).\" FROM \" . static::$tableName . \" WHERE id = :id\";\n\t\t//prepare the query\n\t\t$statement = $db->prepare($query);\n\t\t//bind the column id with :id\n\t\t$statement->bindValue(\":id\", $id);\n\t\t//Run the query\n\t\t$statement->execute();\n\n\t\t//Put the associated row into a variable\n\t\t$record = $statement->fetch(PDO::FETCH_ASSOC);\n\n\t\t//If there is not a row in the database with that id\n\t\tif(! $record){\n\t\t\tthrow new ModelNotFoundException();\n\t\t}\n\n\t\t//put the record into the data variable\n\t\t$this->data = $record;\n\t}", "public abstract function find($primary_key, $model);", "public static function find( $primaryKey )\n\t{\n\t\tself::init();\n\t\t\n\t\t// Select one item by primary key in Database\n\t\t$result = Database::selectOne(\"SELECT * FROM `\" . static::$table . \"` WHERE `\" . static::$primaryKey . \"` = ?\", $primaryKey);\t\t\n\t\tif( $result == null )\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Create & return new object of Model\n\t\treturn self::newItem($result);\n\t}", "protected function findModel($id)\n {\n if (($model = Menu::findOne([ 'id' => $id ])) !== null)\n {\n return $model;\n }\n else\n {\n throw new HttpException(404, Yii::t('backend', 'The requested page does not exist.'));\n }\n }", "public function loadModel($id) {\n $model = Schedule::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function findById() {\n // TODO: Implement findById() method.\n }", "public function find($id):Default_Model_Model{\n\n\n\t\t$result=$this->getDbTable()->find($id);\n\n\t\t//echo \"id=>$id\";\n\n\t\tif(0 == count($result)) return false;\n\n\t\t$row = $result->current();\n\t\t$object = $this->getModel($row->toArray ());\n\n\t\treturn $object;\n\n\t}", "public function find($id){\n return $this->model->query()->findOrFail($id);\n }", "protected function findModel($id) {\n\t\tif(($model = Alert::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t\t}\n\t}", "public function find($id)\n\t{\n\t\treturn $this->model->where(\"id\", \"=\", $id)->first();\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=CActiveRecord::model($this->logModelClass)->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=TimePeriod::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Recargas::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "function find($id)\n{\n\t$model = $this->newModel(null);\n\treturn $model->find($id);\n}", "public function loadModel($id)\n {\n $model = FccTimetable::model()->findByPk($id);\n if ($model === null) {\n throw new CHttpException(404, 'The requested page does not exist.');\n }\n\n return $model;\n }", "public function loadModel($id)\r\n\t{\r\n\t\t$model=Tshirt::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\r\n\t\treturn $model;\r\n\t}", "public static function findModel($id='')\n {\n $model = static::find()->where(['id' => $id])->one();\n if ($model == null) {\n throw new \\yii\\web\\NotFoundHttpException(Yii::t('app',\"Page not found!\"));\n }\n return $model;\n }", "public function find($model, $id);", "protected function findModel($id)\n {\n if (($model = Timetable::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function loadModel($id) {\n $model = BeneficiarioTemporal::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function find($id)\n\t{\n\t\treturn Model::where('id', $id)->first();\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=RKPengirimanrmT::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=RequestFuel::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,Yii::t('rdt','The requested page does not exist.'));\n\t\treturn $model;\n\t}", "public function findByID($id){\n return $this->Find(self::TABLE,$id);\n }", "public function loadModel($id) {\n $model = Workdays::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\n {\n $model=Seat::model()->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=Report::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id) {\n $model = UnidadRespTicket::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "protected function findModel($id)\n {\n$model = Reports::findOne($id);\n\t\tif ((isset(Yii::$app->params['ADMIN_CLIENT_ID']) and Yii::$app->user->identity->clientID == Yii::$app->params['ADMIN_CLIENT_ID']))\n\t\t{\n return $model;\n }\n\t\telse\n\t\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t\t\n }", "protected function findModel($masterlist_id)\n\t{\n\t\tif (($model = WiMasterlist::findOne($masterlist_id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new HttpException(404, 'The requested page does not exist.');\n\t\t}\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Talonario::model()->findByPk((int)$id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Log::model()->findByPk((int)$id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Docingresados::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'El enlace o direccion solicitado no existe');\n\t\treturn $model;\n\t}", "public function loadModel($id) {\n $model = MissionCarers::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, Yii::t('texts', 'FLASH_ERROR_404_THE_REQUESTED_PAGE_DOES_NOT_EXIST'));\n return $model;\n }", "protected function findModel($id) {\n if (($model = Menu::findOne($id)) !== NULL) {\n return $model;\n } else {\n \\Yii::error(\\Yii::t('akhdanihr', 'Data dengan kriteria yang anda cari tidak ditemukan!'));\n throw new \\Exception(\\Yii::t('akhdanihr', 'Data dengan kriteria yang anda cari tidak ditemukan!'));\n }\n }", "public function loadModel($id) {\n $model = TblServer::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id) {\n $model = TblServer::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\r\n\t{\r\n\t\t$model=MoneyTransfer::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\r\n\t\treturn $model;\r\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=MasterTransaksi::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function find(int $id): ?Model;", "public function find(int $id): ?Model;", "public function find($id)\n {\n return $this->model->findOrFail($id);\n }", "public function find($id)\n {\n return $this->model->findOrFail($id);\n }", "public function loadModel($id) {\n $model = Task::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, Yii::t('app', 'Http.404'));\n return $model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=Korzet::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'A keresett tartalom nem található.');\n\t\treturn $model;\n\t}", "public function returnDetailFindByPK($id);", "public function loadModel($id)\n\t{\n\t\t$model=ConfFa::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id) {\n $model = Consultor::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=Column::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\r\n\t{\r\n\t\t$model=KqxsBac::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\r\n\t\treturn $model;\r\n\t}", "protected function findModel($id)\n\t{\n if (($model = CoreSettings::findOne($id)) !== null) {\n return $model;\n }\n\n\t\tthrow new \\yii\\web\\NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Patient::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Clap::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Account::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\r\n\t{\r\n\t\t$model=Klient::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\r\n\t\treturn $model;\r\n\t}", "public function loadModel($id) {\n $model = EbayPriceMonitor::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id){\n\t\t$model=Contact::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "function get_record_by_id($modelName, $recordId)\n{\n return get_db()->getTable(Inflector::camelize($modelName))->find($recordId);\n}", "public function find($pk)\r\n {\r\n $row = $this->getTable()->find($pk);\r\n if(!$row){\r\n return false;\r\n }\r\n $sampleModel = new SampleModel();\r\n $this->_map($sampleModel, $row);\r\n return $sampleModel;\r\n }", "public static function find($id)\n {\n Model::getMethod();\n\n }", "public function loadModel($id)\n\t{\n\t\t$model=Transaction::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id) {\n $model = Fddemandreceipt::model()->findByPk((int) $id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=eBayTargetAndTrack::model()->findByPk($id, \"company_id=:company_id\" ,array(':company_id' => Yii::app()->session['user']->company_id));\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id){\r\r\n\r\r\n\t $model=OrdenConsumo::model()->findByPk($id);\r\r\n\r\r\n\t if($model===null)\r\r\n\t throw new CHttpException(404,'The requested page does not exist.');\r\r\n\t return $model;\r\r\n\r\r\n\t}", "public function findModel($class, $id)\n {\n $model = call_user_func([$class, 'findOne'], $id);\n if (!$model) {\n $this->raise404();\n }\n return $model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=Alumno::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id) \r\n\t{\r\n\t\t$model = SmsGroupPhonebook::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404, Yii::t('phrase', 'The requested page does not exist.'));\r\n\t\treturn $model;\r\n\t}", "public static function find($id, $columns = ['*'])\n {\n $keyName = (new static)->getKeyName();\n if (is_array($keyName)) {\n $row = static::where($id)->first($columns);\n } else {\n $row = static::where($keyName, '=', $id)->first($columns);\n }\n\n// if (!$row) {\n// throw new NotFound('Cannot found model '.static::class);\n// }\n return $row;\n }", "public function loadModel($id)\n\t{\n\t\t$model=GZTerimabahanmakan::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Templetstandardtask::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function returnFindByPK($id);", "public function loadModel($id)\n\t{\n\t\t$model=Respuestas::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=TBantuanData::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public static function findById($id){\n \t$data = self::find($id);\n \tif (!$data) {\n \t\tabort(404);\n \t}\n \treturn $data;\n }", "public static function findById($id){\n \t$data = self::find($id);\n \tif (!$data) {\n \t\tabort(404);\n \t}\n \treturn $data;\n }", "public static function findById($id){\n \t$data = self::find($id);\n \tif (!$data) {\n \t\tabort(404);\n \t}\n \treturn $data;\n }", "public function loadModel($id)\n\t{\n\t\t$model=TDespachoCabecera::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function find($id){\n return parent::find($this->table, $id);\n }", "protected function findModel($id)\n\t\t{\n\t\t\tif (($model = PhoneRecord::findOne($id)) !== null) {\n\t\t\t\treturn $model;\n\t\t\t}\n\t\t\t\n\t\t\tthrow new NotFoundHttpException(Yii::t('app', 'Запрашиваемая страница не существует.'));\n\t\t}", "public function loadModel($id)\n\t{\n\t\t$model=Apply::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Knowledgecatalogue::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Kzone::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\r\n\t{\r\n\t\t$model=ApplyLeaves::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,Yii::t('app','The requested page does not exist.'));\r\n\t\treturn $model;\r\n\t}", "protected function findModel($id)\n\t{\n\t\tif (($model = Trailer::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new HttpException(404, 'The requested page does not exist.');\n\t\t}\n\t}", "public function loadModel($id)\n {\n $model=ArticleTargetRecord::model()->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }", "protected function findModel($id)\n\t{\n if (($model = UserLevel::findOne($id)) !== null) {\n return $model;\n }\n\n\t\tthrow new \\yii\\web\\NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Admin::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function find($id)\n {\n $params = [\n 'index' => $this->model->_index,\n 'type' => $this->model->_type\n ];\n if ($id) {\n $params['id'] = $id;\n return $this->generateModel($this->client->get($params));\n }\n return null;\n }", "public function loadModel($id)\n\t{\n\t\t$model=CitasReservada::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id) {\n $model = EpcModelTemp::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\n {\n $model=SAAsuhankeperawatanT::model()->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=Topik::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Employe::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Vacancies::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Quotes::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The Requested Page Does Not Exist.');\n\t\treturn $model;\n\t}", "protected function findModel($id)\n {\n if (($model = TabelAppointment::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function loadModel($id)\n\t{\n\t\t$model=Ncr::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n {\n $model=RJAsuhankeperawatanT::model()->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=PPJadwaldokterM::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "protected function findModel($id) {\n if (($model = TimeBooks::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }" ]
[ "0.68105197", "0.6678467", "0.6621848", "0.64031523", "0.63892", "0.63603026", "0.6339538", "0.6337232", "0.6317563", "0.6293772", "0.6288979", "0.62596446", "0.62428635", "0.6237229", "0.6228757", "0.62198466", "0.6206546", "0.6176235", "0.6170245", "0.6156178", "0.6146553", "0.61406034", "0.6138265", "0.6135758", "0.6131079", "0.61281115", "0.6126311", "0.61194336", "0.6119313", "0.6118965", "0.6118441", "0.6117516", "0.61144626", "0.6113944", "0.6107778", "0.61016893", "0.61016893", "0.61016655", "0.6090392", "0.6090106", "0.6090106", "0.60787785", "0.60787785", "0.60762244", "0.6069874", "0.60693973", "0.6068076", "0.60675025", "0.60611564", "0.60599905", "0.60592353", "0.60585064", "0.6057458", "0.6057354", "0.6052795", "0.6038418", "0.6036561", "0.6036444", "0.6035434", "0.6026475", "0.6024003", "0.60226226", "0.60217714", "0.6019991", "0.601359", "0.60135776", "0.601323", "0.6010246", "0.6009671", "0.6008303", "0.6007957", "0.6006942", "0.6000119", "0.59934324", "0.59934324", "0.59934324", "0.59926885", "0.59861076", "0.59853494", "0.59758985", "0.5973031", "0.59707946", "0.5970723", "0.59704846", "0.5964607", "0.59589523", "0.595815", "0.5957541", "0.5944505", "0.594438", "0.5939595", "0.59377104", "0.59347516", "0.59329385", "0.59316766", "0.5931008", "0.5927346", "0.59251994", "0.59250194", "0.5923973" ]
0.6900044
0
Used to dynamically call on Part class methods.
public function __call($method, $params) { return call_user_func_array([$this->part, $method], $params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "abstract public function processMethod (ReflectionMethod $met, $className);", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function __invoke()\n {\n }", "public function __invoke()\n {\n\n }", "public function methods();", "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}", "abstract protected function setMethod();", "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 processApi(){\n\t$func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['x'])));\n\tif((int)method_exists($this,$func) > 0)\n\t\t$this->$func();\n\telse\n\t\t$this->response('',404); // If the method not exist with in this class \"Page not found\".\n}", "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}", "protected abstract function performImpl();", "abstract public function __get($part);", "abstract public function __invoke(): void;", "public function processApi() {\n if (isset($_REQUEST['x']) && $_REQUEST['x'] != \"\") {\n $func = strtolower(trim(str_replace(\"/\", \"\", $_REQUEST['x'])));\n if ((int)method_exists($this, $func) > 0) {\n $this->$func();\n } else {\n echo 'method not exist';\n exit;\n }\n } else {\n echo 'method not exist';\n exit;\n }\n }", "public function GetMethod ();", "private function _callToDefault()\n {\n foreach (get_class_methods($this) as $method) {\n try {\n $that = new ReflectionMethod($this, $method);\n } catch (ReflectionException $exception) {\n break;\n }\n if (\n $that->isProtected()\n && !array_key_exists($method, $this->query())\n ) {\n $this->{$method}($this->builder);\n }\n }\n }", "function getMethod()\r\n {\r\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 get_method()\n {\n }", "private function initializeMethod()\n {\n //something like initializeScaffold\n return 'initialize' . $this->type;\n }", "public function __call($method, $parameters);", "public function processApi(){\n\t\t\t$piece = explode(\"/\", $_SERVER['REQUEST_URI']); \n\t\t\t$func = end($piece);\n\t\t\tif((int)method_exists($this,$func) > 0){\n\t\t\t\t$con = mysqli_connect(\"localhost\",\"root\",\"\",\"playlist\"); \n\t\t\t\t// Check connection\n\t\t\t\tif (mysqli_connect_errno()){\n\t\t\t\t echo \"Failed to connect to MySQL: \" . mysqli_connect_error();\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t$this->$func($con); \n\t\t\t}else\n\t\t\t\t$this->response('',404);// If the method not exist with in this class, response would be \"Page not found\".\n\t\t}", "protected function callCommandMethod() {}", "public function processApi() {\n $func = strtolower(trim(str_replace(\"/\", \"\", $_REQUEST['request'])));\n if ((int) method_exists($this, $func) > 0)\n $this->$func();\n else\n $this->response('', 404); // If the method not exist with in this class, response would be \"Page not found\".\n }", "public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}", "public function part_task()\n {\n $input = JFactory::getApplication()->input;\n\n $group = $input->get('group');\n $part = $input->get('part');\n $element = $input->get('element');\n $scope = $input->get('scope');\n\n $partTask = $input->get('part_task');\n\n if( ! $ecrPart = EcrProjectHelper::getPart($group, $part, $element, $scope))\n {\n EcrHtml::message(array(jgettext('Unable to load part').' [group, part]', $group, $part), 'error');\n\n return;\n }\n\n if( ! method_exists($ecrPart, $partTask))\n {\n EcrHtml::message(array(jgettext('Function not found'), $partTask), 'error');\n\n return;\n }\n\n //-- Execute the task\n return $ecrPart->$partTask($element);\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 call($class){\n\t\t$this->plow( new $class );\n }", "public function get_method();", "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 }", "function clientCode(AbstractClass $class)\n{\n // ...\n $class->templateMethod();\n // ...\n}", "public function __callIntern($methodName);", "public function abc(){\r\n\t\techo 'abc method from child class';\r\n\t}", "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 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}", "public function methods()\n\t{\n\t\techo \"->ProcessTransaction(\\$data[]);<br>\\n\";\n\t\techo \"->ProcessVaultTransaction(\\$data[]);<br>\\n\";\n\t\techo \"->UpdateTransaction(\\$data[]);<br>\\n\";\n\t\techo \"->ProcessAccount(\\$data[]);<br>\\n\";\n\t\techo \"->ProcessCustomer(\\$data[]);<br>\\n\";\n\t\techo \"->ProcessCustomerAndAccount(\\$data[]);<br>\\n\";\n\t\techo \"->AddABAccount(\\$data[]);<br>\\n\";\n\t\techo \"->UpdateABAccount(\\$data[]);<br>\\n\";\n\t\techo \"->UpdateABSchedule(\\$data[]);<br>\\n\";\n\t}", "private function callClassMethod(array $classFromCollection, array $args) {\n if(class_exists($classFromCollection[\"controller\"])) {\n $controller = new $classFromCollection[\"controller\"];\n $method = $classFromCollection[\"method\"];\n\n call_user_func_array(array($controller,$method), $args);\n }\n }", "public function getMethod() {}", "public function getMethod() {}", "public function getMethod() {}", "public function getMethod() {}", "function __call($method ,$params)\n {\n return self::handleCall($method ,$params);\n }", "public function processApi(){\n\t\tif(isset($_REQUEST['x']) && $_REQUEST['x']!=\"\"){\n\t\t\t$func = strtolower(trim(str_replace(\"/\",\"\", $_REQUEST['x'])));\n\t\t\tif((int)method_exists($this,$func) > 0) {\n\t\t\t\t$this->$func();\n\t\t\t} else {\n\t\t\t\techo 'processApi - method not exist';\n\t\t\t\texit;\n\t\t\t}\n\t\t} else {\n\t\t\techo 'processApi - method not exist';\n\t\t\texit;\n\t\t}\n\t}", "function __call($method, $args)//call adodb methods\n\t{\n\t\treturn call_user_func_array(array(self::$instance, $method),$args);\n\t}", "public function call()\n {\n foreach (config('lucy.crud') as $type) {\n if ($this->builder->getAttribute($type)) {\n $method = 'call'.ucfirst(strtolower($type));\n\n $this->{$method}();\n }\n }\n }", "public function __call($method, $args);", "function customs()\n\t{\n\t\t$custom = $this->ipsclass->load_class( ROOT_PATH.'mod_install/'.$this->xml_array['customs_group']['custom'][0]['script_name']['VALUE'].'.php', $this->xml_array['customs_group']['custom'][0]['script_name']['VALUE'] );\n\t\t$custom->xml_array =& $this->xml_array;\n\t\t\n\t\tif ( $this->ipsclass->input['un'] )\n\t\t{\n\t\t\t$custom->uninstall();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$custom->install();\n\t\t}\n\t}", "public function getMethod()\n {\n }", "public function __call($method, $parameters)\n\t{\n\t return call_user_func_array(array($this->drive(), $method), $parameters);\n\t}", "public function method() {\n\t}", "public function invoke();", "protected function processPart($step) {\n $curWorkPackageDef = $this->workPackages[$step-1];\n $request = $this->getRequest();\n $response = $this->getResponse();\n if (strlen($curWorkPackageDef['callback']) == 0) {\n throw new ApplicationException($request, $response, ApplicationError::getGeneral(\"Empty callback name.\"));\n }\n if (!method_exists($this, $curWorkPackageDef['callback'])) {\n throw new ApplicationException($request, $response,\n ApplicationError::getGeneral(\"Method '\".$curWorkPackageDef['callback'].\"' must be implemented by \".get_class($this)));\n }\n\n // unserialize oids\n $oids = array_map(function($oidStr) {\n $oid = ObjectId::parse($oidStr);\n return $oid != null ? $oid : $oidStr;\n }, $curWorkPackageDef['oids']);\n call_user_func([$this, $curWorkPackageDef['callback']], $oids, $curWorkPackageDef['args']);\n }", "public function plugin(){\r\n\t$args=func_get_args();\r\n\t$plugin_name=$args[0];\r\n\t$plugin_method=$args[1];\r\n\t$plugin_method_args = array_slice($args, 2);\r\n\tPlugins::instance()->Base=$this;\r\n\t$response=Plugins::instance()->call_method($plugin_name, $plugin_method, $plugin_method_args);\r\n\t$this->response($response);\r\n }", "protected function callActionMethod() {}", "function __call($method, $args=[])\n {\n \tcall_user_func_array($this->container[$method], $args);\n }", "public function __invoke(): void;", "private function _callControllerMethod()\n\t{\n\t\t$length=count($this->_url);\n\t\t//Make sure the method we are calling exists\n\t\tif($length>1){\n\t\t\tif (!method_exists($this->_controller, $this->_url[1])) {\n\t\t\t\t$this->_error();\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t//Determine what to load\n\t\tswitch($length){\n\t\t\tcase 5:\n\t\t\t\t//Controoller->Method(param1,param2,param3)\n\t\t\t\t$this->_controller->{$this->_url[1]}($this->_url[2],$this->_url[3],$this->_url[4]);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t//Controoller->Method(param1,param2)\n\t\t\t\t$this->_controller->{$this->_url[1]}($this->_url[2],$this->_url[3]);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t//Controoller->Method(param1)\n\t\t\t\t$this->_controller->{$this->_url[1]}($this->_url[2]);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t//Controoller->Method()\n\t\t\t\t$this->_controller->{$this->_url[1]}();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->_controller->index();\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t\n\t\t}\t\t\n\t\t// calling methods\n\t\t\n\t\t\n\t\t\t\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 }", "public static function __callStatic($method, $parameters){\n if (method_exists(__CLASS__, $method)) {\n self::discoverEntity();\n forward_static_call_array(array(__CLASS__,$method),$parameters);\n }\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);\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 __call(string $method, array $parameters);", "private function _callControllerMethod()\n {\n $length = count($this->_url);\n\n // Make sure the method we are calling exists\n if ($length > 1) {\n if (!method_exists($this->_controller, $this->_url[1])) {\n //! error\n }\n }\n //var_dump($this->_controller);\n // Determine what to load\n switch ($length) {\n /*case 3:\n //Controller->Method(Param1, Param2)\n $this->_controller->{$this->_url[1]}($this->_url[2]);\n break;\n*/\n case 2:\n //Controller->Method(Param1, Param2)\n //$this->_controller->{$this->_url[1]}();\n $this->_controller->index($this->_url[1]);\n break;\n\n default:\n $this->_controller->index();\n break;\n }\n }", "public function __invoke($param);", "abstract public function processClass (ReflectionClass $class);", "public function __call($method, $arguments) {}", "public function __call($method, $arguments) {}", "function runkit_class_emancipate($classname)\n{\n}", "public function method();", "public function method();", "public function method();", "public function method();", "function __call($name, $arguments) {\r\n\t\t// Not found in our collection\r\n\t\tif (empty($this->methodCollection[$name])) {\r\n\t\t\treturn parent::__call($name, $arguments);\r\n\t\t}\r\n\t\t// We call the method found in one of the helpers\r\n\t\treturn call_user_func_array(array(&$this->{$this->methodCollection[$name]}, $name), $arguments);\r\n\t}", "public function any(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }", "function processMethods( &$method, $key )\r\n{\r\n $method = $method->name;\r\n}", "public function __call($method, $args) {\n\t\t$method = '_' . $method;\n\t\treturn $this->$method();\n\t}", "public function addMagicMethod(\\ReflectionClass $class, array $properties);", "public function getMethods($class);", "public function processApi()\n {\n\n $func = strtolower(trim(str_replace(\"/\", \"\", $_REQUEST['x'])));\n if ((int) method_exists($this, $func) > 0) {\n $this->$func();\n }\n else {\n $this->response('', 404);\n }\n }", "private static function callMethod($calledMethod)\n {\n $classMethodArray = explode(\"@\",$calledMethod);\n $class = $classMethodArray[0];\n $method = $classMethodArray[1];\n $controller = new $class;\n if(self::$parameters) {\n $controller->$method(self::$parameters);\n } else {\n $controller->$method(); \n }\n }", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function __call($method, array $arguments) {}", "public function handledClass();", "private function _callControllerMethod()\r\n {\r\n \r\n \r\n $length = count($this->_url);\r\n if($length > 1)\r\n {\r\n if(!method_exists($this->_controller, $this->_url[1]))\r\n {\r\n $this->_error();\r\n }\r\n }\r\n switch ($length) {\r\n case 5:\r\n //controller->method(param1,param2,param3)\r\n $this->_controller->{$this->_url[1]}($this->_url[2],$this->_url[3],$this->_url[4]);\r\n break;\r\n case 4:\r\n //controller->method(param1,param2)\r\n $this->_controller->{$this->_url[1]}($this->_url[2],$this->_url[3]);\r\n\r\n break;\r\n case 3:\r\n //controller->method(param1)\r\n $this->_controller->{$this->_url[1]}($this->_url[2]);\r\n\r\n break;\r\n case 2:\r\n\r\n //controller->method(param1,param2,param3)\r\n $this->_controller->{$this->_url[1]}();\r\n break;\r\n \r\n default:\r\n $this->_controller->index();\r\n break;\r\n }\r\n\r\n }", "public function __call($_func,array $_args) {\n\t\tF3::$global['CONTEXT']=$_func;\n\t\ttrigger_error(F3::TEXT_Method);\n\t}", "public function plugin_construction() {\t\r\n\t\r\n\t}", "function call_method($controller, $action, $segments, $slice)\n {\n $obj = new $controller;\n die(call_user_func_array(array($obj, $action), array_slice($segments, $slice)));\n }", "function __call($name,$args){\n\t\tcall_user_func_array(array(&$this->__childWidget,$name),$args);\n\t}", "private function use_by_class($classname)\n {\n $reflection = new ReflectionClass($classname);\n\n //get all methods inside of the new module object\n $methods = $reflection->getMethods();\n\n //for each method in module class\n foreach($methods as $method)\n {\n //if the method isn't public/static, ignore it\n if(!$method->isPublic())\n continue;\n\n //get the minimum and maximum amount of parameters for the method\n $min_args = $method->getNumberOfRequiredParameters();\n $max_args = $method->getNumberOfParameters();\n\n //and get the method's name\n $function_name = $method->getName();\n\n //if the function takes no arguments, assume it's variadic\n if($max_args === 0 && $min_args === 0)\n {\n $num_args = array(-1);\n $positions_by_reference = array();\n } \n else\n {\n //otherwise, assume it may have any amount of arguments between the minimum and maximum, plus the first argument, $self\n $num_args = range($min_args - 1, $max_args - 1);\n\n //Parse each of the arguments for the function; this will allow us to use PHP decorations (like by-reference)\n //to more easily construct mathscript modules.\n //\n //This isn't the cleanest way to do this, but as PHP lacks decorators... this is probably the easiest on the developer.\n $params = $method->getParameters();\n\n //Positions which are marked as \"pass by reference\" are noted specially, as this has a special meaning in mathscript.\n //(\"Pass by name.\")\n $positions_by_reference = array();\n\n //Find any positional argument which is passed by reference.\n //Note that we subtract one; as the first argument should always be $self.\n foreach($params as $position => $param)\n if($param->isPassedByReference()) \n $positions_by_reference[$position - 1] = true;\n\n }\n\n //add the function to our function cache\n $this->function_cache[$function_name] = array\n (\n 'argcount' => $num_args,\n 'signature' => array($classname, $function_name),\n 'reference_positions' => $positions_by_reference,\n 'returns_by_reference' => $method->returnsReference()\n );\n }\n }", "#[Pure]\n public function getMethod() {}" ]
[ "0.6112382", "0.5887222", "0.58145136", "0.58145136", "0.58145136", "0.58145136", "0.58068943", "0.5806176", "0.5750365", "0.5714113", "0.56220037", "0.5616709", "0.5608531", "0.5606833", "0.55685174", "0.552679", "0.5520472", "0.54972595", "0.5464452", "0.54644144", "0.5421525", "0.54179364", "0.5415162", "0.5410704", "0.5384753", "0.5365323", "0.5362918", "0.5350942", "0.53397226", "0.53343374", "0.533405", "0.5309162", "0.52883977", "0.5285749", "0.52726763", "0.52691656", "0.5258666", "0.5258358", "0.5256555", "0.5250447", "0.52463657", "0.52343404", "0.52343404", "0.52343404", "0.52343404", "0.52329683", "0.5226337", "0.52261597", "0.52244246", "0.5218987", "0.5217793", "0.52161515", "0.5214419", "0.52122", "0.5211204", "0.5209539", "0.52002984", "0.51958257", "0.51955384", "0.51910055", "0.5186487", "0.5184992", "0.5167947", "0.5159936", "0.5159936", "0.51527816", "0.5145872", "0.5112624", "0.5109325", "0.50975096", "0.50975096", "0.5095752", "0.50873727", "0.50873727", "0.50873727", "0.50873727", "0.5086657", "0.5082817", "0.5063686", "0.50374", "0.49960658", "0.49882308", "0.498761", "0.49864167", "0.49853987", "0.49853987", "0.49853987", "0.49853987", "0.49853987", "0.49853987", "0.49853987", "0.4984977", "0.4984142", "0.4979931", "0.49790928", "0.49759078", "0.49658364", "0.49531513", "0.49367636", "0.4936759" ]
0.53943086
24
Used to dynamically call on Part class properties.
public function __get($property) { try { return $this->part->{$property}; } catch (\Exception $ex) { return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function properties();", "abstract protected function get_properties();", "function setProperty() {\n $instance = $this->CI->ciwy->current_instance[$this->component_name];\n $properties = func_get_arg(0);\n if (is_array($properties)) {\n foreach($properties as $key => $val) {\n if ( ! isset($this->component_property[$key])) {\n $message = '[' . $this->CI->ciwy->library_name . '] '. $key . ' is not a '.$this->component_name .' Property.';\n log_message('error', $message);\n show_error($message);\n } else {\n $this->CI->ciwy->component_config[$instance]['Config'][$key] = $val;\n }\n }\n }\n }", "abstract protected function getProperties();", "function properties()\n {\n }", "public function __get($prop) {}", "abstract public function __get($part);", "abstract public function property($propertyIdent);", "abstract public function getProperties();", "private function _getSettings()\n {\n $properties = $this->_class->getProperties();\n foreach ($properties as $property) {\n $prop = new Property($property);\n $prop->fillSettings($this->_reflect);\n }\n if (empty($this->_reflect->listField)) {\n $keys = array_keys($this->_reflect->fields);\n $this->_reflect->listField = array_shift($keys);\n }\n $this->_reflect->fieldNames = array_keys($this->_reflect->fields);\n }", "public function __get($propertyName){\n if(array_key_exists($propertyName, $this->properties)){\n\n return $this->properties[$propertyName];\n }\n \n }", "public function setProperties() {\n\t\t$this->public_prop = 'public';\n\t\t$this->protected_prop = 100;\n\t\t$this->private_prop = true;\n\n\t\t// Set a non-predefined property.\n\t\t$this->dynamic = new self();\n\t}", "public function properties() { }", "function set_property(){\n }", "abstract protected function propertyGet($name);", "public function getProperty();", "abstract public function field_props();", "function _getProperties() ;", "function prop($prop)\n {\n \treturn $this->get_property($prop);\n }", "private function getProperties(){\n\n\n\t\t$props = get_post_meta(\n\t\t\t$this->post_id,\n\t\t\t'_column_props_'.$this->fullId,\n\t\t\ttrue\n\t\t);\n\n\n\n\t\t$defaults = $this->getDefaultColumnArgs();\n\t\t$props = wp_parse_args( $props, $defaults );\n\n\t\t$this->properties = $props;\n\n\t}", "protected function SetProperties() {\r\n parent::SetProperties();\r\n\r\n $ref = new ReflectionClass(get_called_class());\r\n $this->config = new EntityConfig();\r\n $doc = new \\phpDocumentor\\Reflection\\DocBlock($ref);\r\n foreach($this->config as $key => $value) {\r\n if (!$doc->hasTag($key)) continue;\r\n /** @var \\phpDocumentor\\Reflection\\DocBlock\\Tag $tag */\r\n $tags = $doc->getTagsByName($key);\r\n $tag = array_shift($tags);\r\n $this->config->$key = $tag->getContent();\r\n if (fnmatch('fn:*', $this->config->$key)) {\r\n $fn = substr($this->config->$key, 3);\r\n if (is_callable([$this, $fn])) {\r\n $this->config->$key = call_user_func([$this, $fn]);\r\n }\r\n }\r\n switch($key) {\r\n case 'active':\r\n case 'menu':\r\n case 'title':\r\n $this->config->$key = cms_to_bool($this->config->$key);\r\n break;\r\n }\r\n }\r\n\r\n foreach($ref->getProperties(ReflectionProperty::IS_PUBLIC) as $property) {\r\n $doc = new \\phpDocumentor\\Reflection\\DocBlock($property);\r\n $property = $property->getName();\r\n if (!$doc->hasTag('var')) continue;\r\n $tags = $doc->getTagsByName('var');\r\n if (empty($tags)) continue;\r\n /** @var \\phpDocumentor\\Reflection\\DocBlock\\Tag\\VarTag $tag */\r\n $tag = array_shift($tags);\r\n /** @var EntityEditor $class */\r\n $type = $tag->getType();\r\n $array = false;\r\n if (fnmatch('*[]', $type)) {\r\n $array = true;\r\n $type = substr($type, 0, -2);\r\n }\r\n $class = sprintf('\\\\EntityManager\\\\Editors\\\\EntityEditor%s', ucfirst($type));\r\n if (!is_a($class, '\\\\EntityManager\\\\EntityEditor', true)) continue;\r\n $config = sprintf('\\\\EntityManager\\\\Editors\\\\Config\\\\EntityEditor%sConfig', ucfirst($type));\r\n /** @var EntityEditorConfig $config */\r\n $config = new $config($property);\r\n foreach($config as $key => $value) {\r\n if (!$doc->hasTag($key)) continue;\r\n /** @var \\phpDocumentor\\Reflection\\DocBlock\\Tag $tag */\r\n $tags = $doc->getTagsByName($key);\r\n $tag = array_shift($tags);\r\n $config->$key = $tag->getContent();\r\n if (fnmatch('fn:*', $config->$key)) {\r\n $fn = substr($config->$key, 3);\r\n if (is_callable([$this, $fn])) {\r\n $config->$key = call_user_func([$this, $fn]);\r\n }\r\n }\r\n }\r\n $config->cast();\r\n $this->AddEntityProperty($property, $class, $config, isset($config->required) ? cms_to_bool($config->required) : false);\r\n unset($this->$property);\r\n }\r\n\r\n if (static::IsExtentedContent()) return;\r\n $this->RemoveProperty('template','-1');\r\n $this->RemoveProperty('target','');\r\n $this->RemoveProperty('accesskey','');\r\n $this->RemoveProperty('titleattribute','');\r\n $this->RemoveProperty('cachable',true);\r\n $this->RemoveProperty('tabindex','');\r\n $this->RemoveProperty('thumbnail','');\r\n $this->RemoveProperty('image', '');\r\n $this->RemoveProperty('extra1', '');\r\n $this->RemoveProperty('extra2', '');\r\n $this->RemoveProperty('extra3', '');\r\n if ($this->config->menu !== true) {\r\n $this->RemoveProperty('showinmenu', '');\r\n $this->RemoveProperty('menutext', '');\r\n }\r\n if ($this->config->title !== true) {\r\n $this->RemoveProperty('title', '');\r\n }\r\n if (!empty($this->config->alias)) {\r\n $this->RemoveProperty('alias', '');\r\n }\r\n $co = ContentOperations::get_instance();\r\n if (!is_null($this->config->parent)) {\r\n if (is_numeric($this->config->parent)) {\r\n $this->RemoveProperty('parent', $this->config->parent);\r\n } else {\r\n $parent = $co->LoadContentFromAlias($this->config->parent);\r\n if ($parent instanceof ContentBase) $this->RemoveProperty('parent', $parent->Id());\r\n }\r\n }\r\n\r\n }", "protected function setProperties()\n {\n foreach ($this->data as $key => $value) {\n $this->$key = $value;\n }\n }", "public function inheritTypeProperties($inheritedProperty)\n {\n// name = getattr(param, \"name\", getattr(param, \"code\", None))\n// if name == self.name:\n// for n in NAMED_PARAMS:\n// attr = getattr(self, n, None)\n// if attr is None:\n// attr = getattr(param, n, None)\n\n foreach ($inheritedProperty as $param) {\n $name = null;\n if (property_exists($param, 'name')) {\n $functionGetName = 'getName';\n $functionGetCode = 'getCode';\n $name = $param->$functionGetName();\n $code = $param->$functionGetCode();\n\n $name = !is_null($name) ? $name : !is_null($code) ? $code : null;\n }\n\n if ($name === $this->name) {\n foreach ($this->namedParameters as $namedParameter) {\n if (is_null($this->$namedParameter)) {\n $functionSet = 'set' . ucfirst($namedParameter);\n $functionGet = 'get' . ucfirst($namedParameter);\n\n $this->$functionSet($param->$functionGet());\n }\n }\n }\n }\n }", "public function getProperty1Name() {}", "abstract public function getObjectDefinitionProperty();", "public function __construct()\n {\n foreach (GeneralUtility::makeInstance(\\ReflectionClass::class, static::class)->getProperties() ?? [] as $reflection) {\n if (!$reflection->isProtected()) {\n $name = $reflection->getName();\n $value = $this->{$name};\n\n // Define parameter name of property\n $this->parameterMapping[$name] = GeneralUtility::camelCaseToLowerCaseUnderscored($name);\n\n // Map the type of properties\n $this->typeMapping[$name] = is_int($value) ? 'int' : (is_array($value) ? 'array' : (is_bool($value) ? 'bool' : (is_string($value) ? 'string' : null)));\n }\n }\n }", "public function property($propertyIdent);", "static function onSmwInitProperties () {\n\n\t\t// id, typeid, label, show\n\t\t// \\SMW\\DIProperty::registerProperty(\n\t\t\t// '___somenewproperty',\n\t\t\t// 2,\n\t\t\t// 'meetingminutes-some-property',\n\t\t\t// true\n\t\t// );\n\t\t\n\t\t\n\t\t/**\n\t\t * @note Property data types as follows (this needs to go somewhere else)\n\t\t * From SMWDataItem:\n\t\t * 0 = No data item class (not sure if this can be used)\n\t\t * 1 = Number\n\t\t * 2 = String/Text\n\t\t * 3 = Blob\n\t\t * 4 = Boolean\n\t\t * 5 = URI\n\t\t * 6 = Time (This must mean Date)\n\t\t * 7 = Geo\n\t\t * 8 = Container\n\t\t * 9 = WikiPage\n\t\t * 10 = Concept\n\t\t * 11 = Property\n\t\t * 12 = Error\n\t\t */\n\t\treturn MeetingPropertyRegistry::getInstance()->registerPropertiesAndAliases();\n\t\t\n\t}", "public function init()\n {\n parent::init();\n\n static::$tcCommon = $this->tcModule;\n\n $properties = array_keys(Yii::getObjectVars($this));\n $params = $this->module->params;\n foreach ($params as $property => $value) {\n if (in_array($property, $properties)) {\n $this->$property = $value;\n }\n }\n }", "public function propertyObject($propertyIdent);", "public function set_plugin_properties() {\n $this->plugin\t= get_plugin_data( SALESFORCE__PLUGIN_FILE );\n $this->basename = plugin_basename( SALESFORCE__PLUGIN_FILE );\n $this->active\t= is_plugin_active( $this->basename );\n }", "public function __construct($productParams = array()){\n foreach ($productParams as $var=>$param){\n if (property_exists($this, $var)) {\n $this->$var = $param;\n }\n }\n }", "public function __get($prop){\n\t\treturn $this->$prop;\n\t}", "protected function buildPropertyInfo() {\n }", "protected function getPropertyValue() {}", "public function getProperties() {}", "public function getProperties() {}", "public function getProperties() {}", "public function getProperties() {}", "function entity_type_inherited_properties($entity_type) {\n}", "function createProperty();", "public function GetClassSCPropertiesInArray_Advance(DataSource $DS)\n {\n $rtnval = array();\n $propref = new \\ReflectionProperty(get_class($this), 'id');\n $propref->setAccessible(true);\n $PropValue = $propref->getValue($this);\n $rtnval['id'] = $PropValue;\n\n foreach ($DS->getFields() as $f) {\n\n if ($f == 'id') continue;\n $fieldName = $f->getFieldName();\n /*$fieldName=str_replace('_', '\\\\', $fieldName);\n $fieldName=urldecode($fieldName);\n if(strpos($fieldName, '\\\\')>-1) $fieldName=substr($fieldName, strpos($fieldName, '.')+1);\n */\n /*$fieldName=str_replace('.', '->', $fieldName);\n $fieldName='$this->'.$fieldName;\n print_r($fieldName.' TO EVAL . ');\n print_r($this->Title);\n $ap='';\n $b='$this->Title';\n $a=eval($b);\n print_r('eval1='.$a);\n print_r('eval1='.$ap);\n */\n try {\n $fieldName = \\ApplicationHelpers::TranslateFieldName_From_Client2Server($fieldName);\n $parts = explode('.', $fieldName);\n $PropValue = $this;\n $propref = null;\n //print_r($fieldName.':');\n //print_r($parts);\n try {\n for ($i = 0; $i < count($parts); $i++) {\n $_clsname = get_class($PropValue);\n if (\\ApplicationHelpers::IsORMProxyClass($_clsname)) $PropValue->DoctrineLoad();\n $propref = new \\ReflectionProperty(get_class($PropValue), $parts[$i]);\n\n\n //print_r(' | Class:'.$propref->class.' prop:'. $propref->name.' | ');\n $propref->setAccessible(true);\n if (isset($PropValue))\n $PropValue = $propref->getValue($PropValue);\n else {\n $PropValue = NULL;\n //print_r('Break at '.$parts[$i]);\n break;\n }\n /*echo gettype($PropValue);\n if(gettype($PropValue)=='object') echo 'Class:'.get_class($PropValue);\n echo '***';*/\n\n }\n } catch (\\Exception $e) {\n //print_r($e);\n $PropValue = NULL;\n } catch (\\ReflectionException $ec) {\n //print_r($e);\n $PropValue = NULL;\n }\n //print_r($PropValue);\n $rtnval[$f->getFieldName()] = $PropValue;\n } catch (Exception $e) {\n $rtnval[$f->getFieldName()] = null;\n }\n }\n return $rtnval;\n }", "public function __get($name)\n {\n return call_user_func('PHPSci\\\\Kernel\\\\PropertiesProcessor\\\\'.$name.'::run', $this);\n }", "public function _setProps() {\n $dataController = get_called_class();\n $dataController::_getMapper();\n $dataController::_getModel();\n }", "public function __get($prop)\r\n {\r\n return $this->$prop;\r\n }", "public function property($key) { }", "abstract public function getJsProperties();", "abstract public function getPropertyShort();", "function __get($prop)\n {\n if (isset($this->$prop)){\n return $this->$prop;\n }\n if (isset($this->_data[$prop])) {\n return $this->_data[$prop];\n }\n else try {\n return $this->__call($prop, array());\n } catch (Exception $e) {\n throw new Exception(sprintf('Property \"%s\" not available', $prop));\n }\n }", "protected function buildPropertyInfoAlter() {\n }", "private function parseProperties(): void\n {\n $properties = $this->extractProperties();\n\n foreach ($properties as $property)\n {\n if ($property['docblock']===null)\n {\n $docId = null;\n }\n else\n {\n $docId = PhpAutoDoc::$dl->padDocblockInsertDocblock($property['docblock']['doc_line_start'],\n $property['docblock']['doc_line_end'],\n $property['docblock']['doc_docblock']);\n }\n\n PhpAutoDoc::$dl->padClassInsertProperty($this->clsId,\n $docId,\n $property['name'],\n Cast::toManInt($property['is_static']),\n $property['visibility'],\n $property['value'],\n $property['start'],\n $property['end']);\n }\n }", "public function getProperty2Name() {}", "protected function _fillAvailableProperties()\n {\n $properties = array(\n __(\"Special Properties\") => array(\n 0 => __(\"<Unmapped>\"),\n -1 => __(\"Tags\"),\n -2 => __(\"File\"),\n -3 => __(\"Item Type\"),\n -4 => __(\"Collection\"),\n -5 => __(\"Public\"),\n -6 => __(\"Featured\"),\n )\n );\n $elementSets = $this->_helper->db->getTable('ElementSet')->findAll();\n foreach ($elementSets as $elementSet)\n {\n $idNamePairs = array();\n $elementTexts = $elementSet->getElements();\n foreach ($elementTexts as $elementText)\n {\n $idNamePairs[$elementText->id] = $elementText->name;\n }\n $properties[$elementSet->name] = $idNamePairs;\n }\n $this->view->available_properties = $properties;\n }", "public function __get($prop)\n {\n // verifica se existe mtodo get_<propriedade>\n $metodo = 'get' . ucwords($prop);\n if (method_exists($this, $metodo)) {\n return call_user_func(array($this, $metodo));\n } else {\n /* Se o método não existir tentar localizar uma propriedade público */\n if (isset($this->data[$prop])) {\n return $this->data[$prop];\n }\n }\n }", "private function __get($name)\n {\n// \tprint(\"Property get for [$name]<br/>\");\n if (method_exists($this, ($method = 'get_'.$name)))\n {\n return $this->$method();\n }\n else return;\n }", "function set_properties_by_id () {\n\t\t$stm = DB::$pdo->prepare(\"select * from `generated_object` where `id`=:id\");\n\t\t$stm->bindParam(':id', $this->id);\n\t\t$stm->execute();\n\t\t$res = $stm->fetch();\n\n\t\t$this->set_properties_by_array($res);\n\t}", "public function _getProperties() {}", "private function readLoaderProperties()\n {\n // Read all properties of the loader.\n foreach ((new \\ReflectionClass($this->loader))->getProperties(\\ReflectionProperty::IS_PRIVATE) as $property) {\n $this->properties[$property->name] = static::getObjectAttribute($this->loader, $property->name);\n }\n }", "public function property(&$class, $property);", "public function getProperty(): string;", "function __construct( $props = [] ) {\n $this->studiesToRamRatio = 1000;\n $this->ramToStudiesRatioMB = 500;\n $this->ram1GbPerHourCost = 0.00553;\n $this->storageUsePerStudyInMb = 10;\n $this->storage1GbPerMonthCost = 0.10;\n\n // Set property value if given\n foreach( $props as $name => $value ) :\n if( property_exists ( $this, $name) ) :\n $this->$name = $value;\n endif;\n endforeach;\n\n $this->ramPerStudyCostIn1Day = $this->computeRamPerStudyCostIn1Day();\n \n }", "function getProperties($properties);", "public function loadParams()\r\n\t{\r\n\t\tforeach ($this->param_names as $param_name)\r\n\t\t{\r\n\t\t\t$funcname = 'set'.$param_name;\r\n\t\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name)));\r\n\t\t\telse\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name), null, null, $this->getIdshop()));\r\n\t\t}\r\n\t}", "function getProperty($what)\n {\n $that = null;\n if (isset($this->$what)) {\n $that = $this->$what;\n }\n return $that;\n }", "public function setProperties($properties)\n {\n\n }", "public function getProperty($propertyName);", "public function __get($property) {}", "public function __get($property){\n /*if(method_exists($this,'get'.ucfirst($property))){\n\n }*/\n return $this->$property;\n }", "public function __get($property) \n {\n echo '<br>';\n echo \"Ban vua truy cap vao thuoc tinh {$property} khong ton tai trong class - AAAAAAA\";\n echo '<br>';\n }", "private function loadParams() {\r\n foreach ($this->_param_names as $param_name)\r\n\t{\r\n\t\t$funcname = 'set'.$param_name;\r\n\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t$this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name)));\r\n\t\telse\r\n\t\t\t$this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name), null, null, $this->getIdshop()));\r\n\t}\r\n }", "private function set_properties($properties=array()){\n\n if ((!isset($properties)) || (!is_array($properties))){\n $properties=$this->$properties;\n return $properties;\n }\n else\n {\n $this->$properties=$properties; //set object properties\n }\n\n }", "function entity_type_inheritable_properties($entity_type) {\n}", "public function __construct()\n {\n foreach ($this as $key => $property)\n if (is_array($property) && isset($property['path']))\n $this->{$key}['path'] = VPATH . $property['path'] . EXT;\n }", "public function setUp()\n {\n $this->faker = Factory::create();\n\n $reader = new PhpDocReader();\n\n foreach (array_keys(get_object_vars($this)) as $propertyName) {\n if (self::MOCK_SUFFIX !== substr($propertyName, -strlen(self::MOCK_SUFFIX))) {\n continue;\n }\n\n $property = new \\ReflectionProperty(static::class, $propertyName);\n $propertyClass = $reader->getPropertyClass($property);\n\n $this->$propertyName = $this->prophesize($propertyClass);\n }\n }", "abstract public function get_property( $slug, $child_slug = '' );", "public function getProperties();", "public function getProperties();", "public function getProperties();", "public function getProperties();", "public function __construct()\n {\n // get global configuration\n $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['roadworks']);\n if (is_array($extConf) && count($extConf)) {\n // call setter method foreach configuration entry\n foreach($extConf as $key => $value) {\n $methodName = 'set' . ucfirst($key);\n if (method_exists($this, $methodName)) {\n $this->$methodName($value);\n }\n }\n }\n }", "public function set_properties( $args ) {\n\n\t\t// Reset default property values\n\t\t$reset = array(\n\t\t\t'debug_mode' => false,\n\t\t\t'parant_plugin_slug' => '',\n\t\t\t'view' => plugin_dir_path( __FILE__ ) . 'wpaddons-io-sdk/view/wordpress-plugins.php',\n\t\t);\n\n\t\t// Define properties\n\t\tforeach ( $reset as $name => $default ) {\n\n\t\t\tif ( array_key_exists( $name, $args ) ) {\n\t\t\t\t// If set, use defined values\n\t\t\t\t$this->{$name} = $args[$name];\n\t\t\t} else {\n\t\t\t\t// If not set, use default values\n\t\t\t\t$this->{$name} = $default;\n\t\t\t}\n\n\t\t}\n\n\t}", "public function __get($key) {\n if (method_exists($this, 'get_'.$key)) {\n return $this->{'get_'.$key}();\n }\n return $this->properties->{$key};\n }", "public function __get($propertyName){\n\t\tif(array_key_exists($propertyName,$properties)){\n\t\t\treturn $this->properties[$propertyName];\n\t\t}\n\t}", "public function before()\n {\n if ($this->_config === null) {\n return;\n }\n foreach ($this->_config as $property => $value) {\n if (property_exists($this, $property)) {\n $this->{$property} = $value;\n }\n }\n }", "protected function fillProperties()\n {\n foreach ($this as $key => $value) {\n if ($this->isPrivate($key)) {\n continue;\n }\n $this->currentProperties[\"{$key}\"] = $value;\n $this->newProperties[\"{$key}\"] = $value;\n }\n }", "public function initMutateProperty()\n {\n foreach ( $this->initMutateProperties as $property ) {\n $this->mutateProperties[ $property ] = $this->{$property};\n }\n $this->view->addParams( [\n 'mutateProperties' => $this->mutateProperties\n ] );\n }", "public function getProperty($field);", "abstract protected function propertyExists($name);", "function acf_get_field_type_prop($name = '', $prop = '')\n{\n}", "public function __construct($config) {\n foreach (['id', 'title', 'description', 'css'] as $propname) {\n $this->$propname = property_exists($config, $propname) ? $config->$propname : \"\";\n }\n }", "public function __construct($config) {\n foreach (['id', 'title', 'description', 'css'] as $propname) {\n $this->$propname = property_exists($config, $propname) ? $config->$propname : \"\";\n }\n }", "public function getProperty($key);", "public function __set($prop, $valor){\n\t\tif( !property_exists($this, $prop))\t{\n\t\t\tthrow new exception(\"la propiedad $prop no existe\"); \t\t\t\n\t\t}\t\t\n\t\t$this->$prop = $valor;\n\t\t//$this->(\"set\".ucfirst($prop))($valor);\n\t\t\n\t}", "public function test_papi_get_property_type_custom() {\n\t\tadd_action('papi_include_properties', function() {\n\t\t\trequire_once(dirname(__FILE__) . '/../data/properties/class-papi-property-kvack.php');\n\t\t});\n\n\t\tdo_action('papi_include_properties');\n\n\t\t$this->assertTrue( _papi_get_property_type( 'kvack' ) instanceof Papi_Property_Kvack );\n\t}", "public function loadPropierties($values)\n {\n foreach ($values as $key => $value) {\n if (property_exists($this, $key)) {\n $this->$key = $value;\n }\n }\n }", "public function __get($prop)\r\n {\r\n return $this->wrappedObj->$prop;\r\n }", "function get_properties()\r\n {\r\n return $this->properties;\r\n }", "public function getp($property){\n if(property_exists($this, $property)){\n return $this->$property;\n }\n }", "public function create_property($name,$params){\n\t\t$endpoint = 'properties/'.$name;\n\n\t\ttry{\n\t\t\treturn json_decode($this->execute_put_request($this->get_request_url($endpoint,null),json_encode($params)));\n\t\t}\n\t\tcatch(HubSpot_Exception $e){\n\t\t\tprint_r('Unable to create property: '.$e);\n\t\t}\n\t}", "public function load_wp_dependent_properties() {\n\t\t\tdefine( 'BITLIVECC_PLUGIN_URL', untrailingslashit( plugin_dir_url( BITLIVECC_PLUGIN_FILE ) ) );\n\t\t\tdefine( 'BITLIVECC_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );\n\t\t}", "abstract protected function splitPropertyParts(string $property, string $resourceClass): array;" ]
[ "0.6687674", "0.63692695", "0.61895967", "0.6180883", "0.6150944", "0.6100913", "0.60526323", "0.6030412", "0.59998614", "0.58740646", "0.58621734", "0.57979953", "0.57975036", "0.57839894", "0.57376176", "0.57233965", "0.5705074", "0.564697", "0.5631568", "0.5630086", "0.5588075", "0.5574863", "0.5571643", "0.55402434", "0.5539421", "0.55278385", "0.5521607", "0.5518139", "0.5500937", "0.5488739", "0.54882336", "0.54840434", "0.54667217", "0.54586643", "0.5415822", "0.53924596", "0.53924596", "0.53924596", "0.5392081", "0.5384331", "0.5359061", "0.53588974", "0.5352456", "0.5345856", "0.53414613", "0.53379536", "0.5336733", "0.5335348", "0.53295845", "0.53172934", "0.5266936", "0.52665895", "0.5264586", "0.52569693", "0.5246728", "0.52436113", "0.5242082", "0.5228566", "0.5228127", "0.521701", "0.52118975", "0.5207444", "0.5202024", "0.5196465", "0.5194403", "0.5193716", "0.5191146", "0.51886004", "0.5187625", "0.5182696", "0.51779145", "0.51641005", "0.5160171", "0.5157195", "0.51544243", "0.5137443", "0.5137443", "0.5137443", "0.5137443", "0.5130849", "0.5120394", "0.5119244", "0.51119417", "0.5099335", "0.50923693", "0.5086105", "0.50797004", "0.5043067", "0.5038925", "0.5033853", "0.5033853", "0.50260466", "0.50234205", "0.50204617", "0.50161237", "0.50060123", "0.5000371", "0.49868387", "0.49793282", "0.49709713", "0.49706718" ]
0.0
-1
/ This is the method of the Bingo controller which displays the Quotes object's data with the id of 5 in the justone view.
function index() { $this->data['pagebody'] = 'justone'; $source = $this->quotes->get(5); $this->data = array_merge($this->data, $source); $this->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index() {\n $this->data['pagebody'] = 'justone';\n // build the list of authors, to pass on to our view\n $full = $this->quotes->all();\n $authorNum = count($full);\n $source = $this->quotes->get($authorNum);\n\n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n $this->render();\n }", "function index()\n {\n $this->data['pagebody'] = 'justone'; // this is the view we want shown\n // build the list of authors, to pass on to our view\n $record = $this->quotes->get(5);\n $this->data['who'] = $record['who'];\n $this->data['mug'] = $record['mug'];\n $this->data['where'] = $record['where'];\n $this->data['what'] = $record['what'];\n\n $this->render();\n }", "public function show($id)\n {\n if (@$id) {\n $record = Quotes::where('id', $id)->get();\n\n if (@$record) {\n $name = $record[0]->product_name;\n if ($record[0]->status == NULL || $record[0]->status == 1) {\n $record[0]->status = 2;\n $record[0]->update();\n\n return redirect()->route('quotes.index')->with('flash', 'The Quote: \"'.$name.'\" has been approved.');\n }else{\n $record[0]->status = 1;\n $record[0]->update();\n\n return redirect()->route('quotes.index')->with('flash', 'The Quote: \"'.$name.'\" has been reviewed.');\n }\n }else{\n return back();\n }\n \n }else{\n return back();\n }\n }", "public function index()\n {\n $data['quotes'] = Quotes::all();\n return view('admin.quotes.index')->with($data);\n }", "public function show($id)\n\t{\n $beside = Beside::find($id);\n\t\t$beside->browse = $beside->browse + 1;\n\t\t$beside->save();\n//\t\t$besides = Beside::all();\n $data = compact('beside');\n \n\t\treturn View::make('detail.index', $data);\n\t}", "function view_one()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['bid'] = $this->_bid->details(array('bid_id'=>$data['d']));\n\t\tif(empty($data['bid'])) $data['msg'] = \"ERROR: No bid information could be resolved.\";\n\t\t\n\t\t$this->load->view('bids/bid_details', $data);\n\t}", "public function show(Quze $quze)\n {\n //\n }", "public function view($id) {\n \t$this->layout = false;\n $bowler = $this->Bowler->findById($id);\n\n $bowlerData['bowlers']['bowler'][] = $bowler['Bowler'];\n\n $this->set('bowlerData', $bowlerData);\n }", "public function show($id){\n \t// return response()->json(\"get question with id = \".$id);\n \t$question = DB::table('question')\n \t\t->where('id', $id)\n \t\t->first();\n \treturn response()->json($question);\n }", "public function index()\n {\n return $this->render('quotes.index');\n }", "function wisdom() {\n $this->data['pagebody'] = 'justone';\n $source = $this->quotes->get(6);\n \n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n\n $this->render();\n }", "function show_question($id, $slug)\n\t{\n\t\t$this->form_validation->set_rules('id_questions', 'Id_Questions', 'required');\n\t\t$this->form_validation->set_rules('body', 'Body', 'required');\n\t\tif ($this->form_validation->run() == false) {\n\n\t\t\t$this->model_module->_set_viewers($id);\n\t\t\t$data['question'] = $this->model_module->questions_id('uuid_question', $id);\n\t\t\t$questions_id = $data['question']['id'];\n\t\t\t$data['module'] = $this->model_module->get_module($questions_id, $id);\n\t\t\t$queryGetquestion = \"SELECT `tb_questions` .*, `tbl_users`.`name`,`tbl_users`.`user_email`\n\t\t\t\t\tFROM `tb_questions` JOIN `tbl_users` \n\t\t\t\t\tON `tb_questions`.`id_user` = `tbl_users`. `user_id`\n\t\t\t\t\tlEFT JOIN `tb_sub_module` \n\t\t\t\t\tON `tb_questions`.`id_sub_module` = `tb_sub_module`.`id`\n\t\t\t\t\tWHERE `tb_questions`.`id` = $questions_id\n\t\t\t\";\n\t\t\t$query = $this->db->query($queryGetquestion)->row_array();\n\t\t\t$data['get_question'] = $query;\n\t\t\t$answerQuery = \"SELECT `tb_answers` .*, `tbl_users`.`name`,`tbl_users`.`user_email`\n\t\t\t\tFROM `tb_answers`\n\t\t\t\tJOIN `tb_questions` \n\t\t\t\tON `tb_answers`.`id_questions` = `tb_questions`.`id`\n\t\t\t\tJOIN `tbl_users`\n\t\t\t\tON `tb_answers`.`id_user` = `tbl_users`.`user_id`\n\t\t\t\tWHERE `tb_answers`.`id_questions` = $questions_id\n\t\t\t\tORDER BY `tb_answers`.`created_at` DESC\";\n\t\t\t$answer = $this->db->query($answerQuery)->result_array();\n\t\t\t$data['get_answer'] = $answer;\n\n\t\t\t// response_json($data);\n\t\t\t$this->load->view('layouts/header');\n\t\t\t$this->load->view('_partalis/navigation');\n\t\t\t$this->load->view('modules/show_questions', $data);\n\t\t\t$this->load->view('layouts/footer');\n\t\t} else {\n\t\t\t$this->model_module->addAnswers();\n\t\t\tredirect('user/module/show_question/' . $id . '/' . $slug);\n\t\t}\n\t}", "public function show($id)\n {\n $quote = Quote::findOrFail($id);\n\n return view('backend.quotes.show', compact('quote'));\n }", "public function show($id)\n {\n $quest = Quest::findOrFail($id);\n $field = [];\n\n if (isset($quest->field)) {\n\n switch ($quest->field->fieldName->name) {\n case('itemID'):\n\n $field['name'] = $quest->field->item->Name;\n $field['count'] = $quest->countToDo;\n break;\n\n case('technologyID'):\n $field['name'] = $quest->field->technology->name;\n $field['count'] = $quest->countToDo;\n break;\n\n case('enemy'):\n\n $field['name'] = $quest->field->enemy->name;\n $field['count'] = $quest->countToDo;\n break;\n\n case('noteID'):\n\n $field['name'] = $quest->field->note->noteSubject;\n $field['count'] = $quest->countToDo;\n break;\n }\n }\n\n return view('admin.quests.show', compact('quest', 'field'));\n }", "public function viewQuotation($id)\n {\n // dd($id);\n\n $quotes = Rfqresponse::where('user_id', $id)->count();\n \n // dd($quotes);\n\n return view('admin.rfqresponse.quotation', compact('quotes'));\n }", "protected function detail($id)\n {\n return Show::make($id, new EmsQuestion(), function (Show $show) {\n// $show->field('id');\n// $show->field('questype_id');\n// $show->field('que_index');\n// $show->field('que_create_byid');\n// $show->field('que_create_byname');\n// $show->field('que_last_byid');\n// $show->field('que_last_byname');\n// $show->field('que_select');\n// $show->field('que_selectnum');\n// $show->field('que_answer');\n// $show->field('que_describe');\n// $show->field('que_status');\n// $show->field('que_level');\n// $show->field('que_sequence');\n// $show->field('declaration_id');\n// $show->field('major_id');\n// $show->field('que_head_id');\n// $show->field('que_head_satuts');\n// $show->field('que_son_num');\n// $show->field('que_son_value');\n// $show->field('que_sure_count');\n// $show->field('que_error_count');\n// $show->field('created_at');\n// $show->field('updated_at');\n $show->html(function () {\n // 获取字段信息\n $id = $this->id;\n $que_index = $this->que_index;\n $que_select = $this->que_select;\n $que_answer = $this->que_answer;\n return \"<div class=\\\"card\\\">\n <div class=\\\"card-header\\\"><h5>$que_index</h5></div>\n <div class=\\\"card-body\\\">\n <div style='padding-left: 20px'>$que_select</div>\n </div>\n <div class=\\\"card-footer\\\">正确答案:$que_answer</div>\n </div>\";\n });\n });\n }", "public function getAction()\n {\n \t$id = $this->getRequest()->getParam('id');\n\t\t$this->_objectMapper->find($id, $this->_object);\n $this->view->question = $this->_object;\n\t\t$this->view->isMarked = $this->_objectMapper->isMarked($id);\n }", "public function show($id)\n {\n //$photes = Phote::paginate(10);\n //搜尋\n $photealbum = Photealbum::find($id);\n $photes = Phote::where('belong', '=', $photealbum->title)->paginate(10);\n return view('photes.index', compact('photes','photealbum'));\n }", "public function show($id, $q)\n {\n $id = str_replace(config('app.salt'), '', base64_decode($id));\n $bahan = BahanBerbahaya::where('id', '=', $id)->orWhere('nama', 'like', str_replace('-', ' ', $q))->first();\n return view('pages.frontend.bahan-berbahaya.show', compact('bahan'));\n }", "public function index()\n\t{\n\t\t$data['daftar_qasidah'] = $this->QasidahModel->getAllQasidah();\n\t\t$this->load->view('back/data_qasidah', $data);\n\t}", "public function quotes()\n {\n $user = auth()->user();\n $quotes = DB::table('quotes')\n ->select('quotes.account_id', 'quotes.created_by_id', 'quotes.id as quoteId', 'quotes.quote_date',\n 'accounts.name as accountName','users.name as userName','stages.name as stageName',\n 'locations.city','locations.address','quotes.stage_id',\n DB::raw(\"upper(quotes.quote_number) AS quote_number\"),\n 'accounts.document_number','document_types.name as documenttype')\n ->join('accounts', 'accounts.id', '=', 'quotes.account_id')\n ->join('document_types', 'document_types.id', '=', 'accounts.document_type_id')\n ->join('locations', 'locations.id', '=', 'quotes.location_id')\n ->join('stages', 'stages.id', '=', 'quotes.stage_id')\n ->join('users', 'users.id', '=', 'quotes.created_by_id')\n ->orderByRaw('quotes.updated_at DESC')\n ->where('users.organization_id', $user->organization_id)\n ->paginate(10);\n return view('quote.quotes',compact('quotes'));\n }", "public function show($id)\n {\n return $this->quotes->with('products')->findOrFail($id);\n }", "public function show($id)\n {\n //\n $pieces = 5;\n \t$input = Input::all();\n $post = Post::where('id', $id) -> first();\n $section = Section::where('id', $post -> sid) -> first();\n if(Input::has('uid')){\n \t$replies = Reply::where('pid', $id) -> where('rid', '<>', '1') -> where('uid', $input['uid']) -> paginate($pieces);\n \t\t$uid = $input['uid'];\n }else {\n \t$replies = Reply::where('pid', $id) -> where('rid', '<>', '1') -> paginate($pieces);\n \t$uid = '';\n }\n\n $i = 0;\n $page = Input::has('page') ? $input['page'] : 1; \n foreach($replies as $reply) {\n \t$reply['user'] = Reply::find($reply['id']) -> user;\n// \tdump($reply);\n \t$reply['user']['detail'] = User::find($reply['uid']) -> userdetail;\n \t$reply['user']['operate'] = User::find($reply['uid']) -> userOperate;\n \t$reply['user']['replies'] = User::find($reply['uid']) -> replies -> count();\n \t$reply['count'] = ++$i + ($page - 1) * 3;\n \t$reply['sons'] = $this -> getSons($reply, $reply['id']);\n }\n// die;\n // 获取广告\n $adverts = $this -> getAdverts();\n // 获取友情链接\n $links = $this -> getLinks();\n // 获取网站信息\n $website = $this -> getWeb();\n $data = [\n \t'section' => $section,\n \t'post' => $post,\n \t'replies' => $replies,\n \t'uid' => $uid,\n \t'adverts' => $adverts,\n \t'links' => $links,\n \t'website' => $website,\n ];\n Post::where('id', $id) -> increment('pvs');\n Section::where('id', $post['sid']) -> increment('pvs');\n return view('home.post.index', $data);\n }", "public function show($id)\n {\n $question = QuestionBank::find($id);\n $question_details = QuestionBankDetails::where('question_bank_id',$id)->get();\n return view('admin.single_question.show',compact('question','question_details'));\n }", "public function show($id){\n \n // DB query here\n $question = Question::findOrFail($id);\n $answers = Answer::where('question_id', $id)->orderBy('upvotes', 'DESC')->get();\n\n // returning view and results\n return view('show', ['question' => $question, 'answers' => $answers]);\n }", "function wisdom() {\r\n $this->data['pagebody'] = 'justone';\r\n \r\n $source = $this->quotes->get(6);\r\n \r\n $this->data = array_merge($this->data, $source);\r\n \r\n $this->render();\r\n }", "public function show($id)\n {\n // $questions = Question::findOrFail($id);\n // return view('question.show', compact(['questions','replies']));\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function index()\n {\n return Quote::orderBy('id', 'desc')->get();\n }", "public function show($id)\n {\n //\n $quotation = \\DB::table('quotations')\n ->where('id', $id)\n ->first();\n //$product = Product::find($id);\n\n return view('Finance/quotations/show', ['quotation' => $quotation]);\n\n }", "public function show($id)\n {\n // created an empty array named data \n $data =array();\n \n // added the key and value 'id' to array\n //$data ['id'] =$id;\n\n // find question object with this id \n $recipe = Recipe::findOrFail($id);\n $data['object'] = $recipe;\n\n\n\n return view('recipes/show', $data);\n }", "public function show($id)\n\t{\n\t\t$question = Question::with('tags')->findOrFail($id);\n\n\t\t$question->readtimes += 1;\n\n\t\t$userAvatar = DB::table('users')->where('name',$question->username)->value('avatar');\n\n\t\t$answer = Answer::all()->where('question_id',$id)->sortByDesc('isadopt');\n\n\t\t$question->save();\n\n\t\t$question->content = Markdown::convertToHtml($question->content);\n\n\t\t$popularQuestions = $question->orderBy('answertimes','desc')->where('answertimes','>',0)->limit(5)->get();\n\t\treturn view('questions.show', compact('question','userAvatar','answer','popularQuestions'));\n\t}", "public function show($id)\n { \n $quiz = Quiz::with('topTen.user','results.user')->withCount('questions')->find($id)?? abort(404,'Quiz Bulunamadı');\n return view('admin.quizzes.show',compact('quiz'));\n }", "public function show($id)\n\t{\n \n\t}", "public function show($id)\n {\n //\n $question = Question::find($id);\n// $answers = $question->answers;\n// return compact('question');\n return view('Q&A.show', compact('question'));\n }", "public function actionView($id)\r\n {\r\n $model=$this->findModel($id);\r\n $question=Question::findOne(['task_guid'=>$model->task_guid]);\r\n if(!empty($question)&&empty($question->code)){\r\n $questionArr=Question::find()->andWhere(['task_guid'=>$model->task_guid])->all();\r\n foreach ($questionArr as $k=> $v){\r\n Question::updateAll(['code'=>$k+1],['question_guid'=>$v['question_guid']]);\r\n }\r\n }\r\n $dataProvider=new ActiveDataProvider([\r\n 'query'=>Question::find()->andWhere(['task_guid'=>$model->task_guid])->orderBy('code asc'),\r\n ]);\r\n return $this->render('view', [\r\n 'model' => $model,\r\n 'dataProvider'=>$dataProvider\r\n ]);\r\n }", "public function index()\n {\n $quotes = Quotes::all();\n\n $tt = array();\n if (@$quotes) {\n foreach ($quotes as $quote) {\n $id = $quote->request_id;\n $tt[$id][] = $quote;\n }\n }\n\n $total = array_reverse($tt);\n\n $user = User::all();\n \n return view('admin.quotes.index', compact('total', 'user', 'quotes'));\n }", "public function show($id)\n {\n\n \n \n \n }", "public function show($id) {\n \n }", "public function show($id) {\r\n //\r\n }", "public function show($id) {\r\n //\r\n }", "public function show( $id)\n { \n $item = Item::find((((((($id/124)-6)/13)-7)/3)-6)/3);\n return view(\"item.show\",['item'=>$item]);\n }", "public function show($id)\n {\n //$getComment = PostComment::postIdWiseComment($id,5);\n }", "public function viewQuestionsAction() {\n\n $all = $this->comments->findAll();\n\n $res = [];\n foreach ($all as $value) {\n if ($this->commentanswer->isAnswer($value->id) == null) {\n $res[] = $value;\n }\n }\n\n /**\n * Alter object by connecting comment tags, adding user information from the database and filtering markdown on the comment object.\n */\n $res = $this->doAll($res);\n\n /**\n * Prepare the view.\n */\n $this->views->add('comment/commentsdb', [\n 'comments' => $res,\n 'title' => 'Browse Discussions',\n 'content' => \"\",\n ]);\n }", "public function index()\n {\n $quote = Quote::paginate(20);\n\n return view('admin.pages.quote.index')\n ->with('quotes', $quote)\n ->with('person', Auth::user());\n }", "public function show($id)\n {\n \n \n }", "public function show($id) {\n\t //\n }", "public function show($id)\n {\n $quizz = Quizz::find($id);\n $questions = Question::where('quizz', $quizz->id)->get();\n $cat = QuizzCategory::where('quizz_id', $quizz->id)->get();\n foreach($questions as $q) {\n $quizz->questions = Word::where('id', $q->word)->get();\n $quizz->reponses = Response::where('question', $q->id)->get();\n }\n foreach($cat as $c) {\n $quizz->categories = Category::where('category_id', $c->id);\n }\n json($quizz);\n }", "public function show($id)\n {\n //\n \n \n }", "public function show($id)\n\t{\t\n\n\t}", "public function show($id)\n {\n \n \n }", "public function show($id)\n {\n //\n \n \n }", "function get($id)\n\t{\n\t\t$data['module'] = $this->model_module->get_module('id', $id);\n\t\t$data['data_questions'] = $this->model_module->question_query($id);\n\t\t// response_json($data);\n\t\t$this->load->view('layouts/header');\n\t\t$this->load->view('_partalis/navigation');\n\t\t$this->load->view('modules/index', $data);\n\t\t$this->load->view('layouts/footer');\n\t}", "public function show($id)\n {\n $mytime=Carbon::now();\n $salesquotes = Salesquote::find($id);\n // $salesquotes->customer;\n $cal = $salesquotes->total+5+($salesquotes->total*(10/100));\n $salesquotes = Salesquote::find($id);\n return view('salesquotes.order', compact('salesquotes','mytime','cal'));\n }", "public function show($id)\n {\n \t//\n }", "public function show($id)\n {\n \t//\n }", "public function show($id){\n\t\t//\n\t}", "public function show($id){\n\t\t//\n\t}", "public function show($id)\n {\n \n \n }", "public function show($id)\n\t{\n\n\t\t\n\t}", "public function show($id)\n\t{\n\n\t\t\n\t}", "public function show($id)\n\t{\n\t\t\n\t}", "public function show($id)\n\t{\n\t\t\n\t}", "public function show($id)\n\t{\n\t\t\n\t}", "public function show($id)\r\n {\r\n \r\n }", "public function show($id)\n {\n \n \n }", "function showquestionAction() {\n\t\t\n\t\t// $questionId = $this->getRequest()->getParam('questionid');\n\t\t// echo $questionId;\n\t\t$em = Zend_Registry::get('em');\n\t\t\n\t\t$questionId = $this->getRequest()->getParam('questionid');\n $questionName = '';\n if(isset($questionId) && $questionId > 0 ) {\n $res = $em->createQueryBuilder()->select('q.QUE_Data')\n ->from('Testcreator_Model_Question', 'q')\n ->where('q.QuestionId='.$questionId)->getQuery();\n\n $question = $res->getResult();\n if(is_array($question) && count($question) >0) {\n $questionName = $question[0]['QUE_Data'];\n } else {\n $questionName = \"Data has been deleted from master \";\n }\n }\n echo $questionName;\n\t\texit;\n\t}", "public function show($id)\n {\n //\n \n }", "public function show($id)\n {\n //\n \n }", "public function show($id)\n {\n //\n \n }", "public function show($id)\n {\n //\n \n }", "public function show($id)\n {\n //\n \n }", "public function show($id)\n {\n //\n \n }", "public function show($id) {\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function index()\n {\n $quotes = Quote::paginate(10);\n \n if (! $quotes) {\n return responder()\n ->error()\n ->respond();\n }\n \n return responder()\n ->success($quotes)\n ->respond(); \n }", "public function actionQuestions($id) {\n\n $questions = new Questions();\n\n\n\n return $this->render('questions', [\n 'questions' => $questions,\n ]);\n }", "public function show() \r\n {\r\n \r\n $id = $this->route_params['id'];\r\n $post = Post::getbyID($id);\r\n $comments = Comment::getCommentById($id);\r\n \r\n View::render('Home/show.php', ['post' => $post , 'comments'=>$comments]);\r\n\r\n }", "public function show($id)\n {\n //\n\n \n \n }", "public function show($id)\r\n {\r\n \r\n }", "public function show($id)\n {\n \n }", "public function show($id)\n {\n //\n \n }", "public function show($id)\n {\n \n }", "public function show($id) {\n //\n }", "public function show($id) {\n //\n }", "public function show($id) {\n //\n }", "public function show($id) {\n //\n }", "public function show($id) {\n //\n }" ]
[ "0.62914866", "0.62556475", "0.6160483", "0.61188173", "0.60503674", "0.6047461", "0.6003673", "0.59912694", "0.59705144", "0.5957686", "0.5936266", "0.59302026", "0.5908237", "0.59081936", "0.59057647", "0.58989197", "0.5897175", "0.5857955", "0.5845832", "0.58439136", "0.5839218", "0.58264923", "0.58233994", "0.58231646", "0.5819869", "0.57977885", "0.5780514", "0.5776067", "0.5776067", "0.5776067", "0.5776067", "0.5768714", "0.576654", "0.57595193", "0.57432276", "0.57376426", "0.57362586", "0.5729958", "0.57279754", "0.5727612", "0.5721844", "0.5721165", "0.5719378", "0.5719378", "0.57106704", "0.57094234", "0.5705869", "0.57013696", "0.56992006", "0.5697494", "0.56965643", "0.5694363", "0.5693253", "0.56921965", "0.56904334", "0.5689566", "0.5684819", "0.567956", "0.567956", "0.56774515", "0.56774515", "0.5674537", "0.56714004", "0.56714004", "0.56708705", "0.56708705", "0.56708705", "0.5668825", "0.56662", "0.56638646", "0.5662181", "0.5662181", "0.5662181", "0.5662181", "0.5662181", "0.5662181", "0.56551325", "0.5652483", "0.5652483", "0.5652483", "0.5652483", "0.5652483", "0.5652483", "0.5652483", "0.5652483", "0.5652483", "0.5652483", "0.5649559", "0.56493676", "0.56479824", "0.5644053", "0.5643289", "0.5642473", "0.56395733", "0.56393826", "0.56391853", "0.56391853", "0.56391853", "0.56391853", "0.56391853" ]
0.67703867
0
/ This is the method of the Bingo controller which displays the Quotes object's data with the id of 6 in the justone view.
function wisdom() { $this->data['pagebody'] = 'justone'; $source = $this->quotes->get(6); $this->data = array_merge($this->data, $source); $this->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function index() {\r\n $this->data['pagebody'] = 'justone';\r\n \r\n $source = $this->quotes->get(5);\r\n \r\n $this->data = array_merge($this->data, $source);\r\n \r\n $this->render();\r\n }", "public function index() {\n $this->data['pagebody'] = 'justone';\n // build the list of authors, to pass on to our view\n $full = $this->quotes->all();\n $authorNum = count($full);\n $source = $this->quotes->get($authorNum);\n\n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n $this->render();\n }", "function index()\n {\n $this->data['pagebody'] = 'justone'; // this is the view we want shown\n // build the list of authors, to pass on to our view\n $record = $this->quotes->get(5);\n $this->data['who'] = $record['who'];\n $this->data['mug'] = $record['mug'];\n $this->data['where'] = $record['where'];\n $this->data['what'] = $record['what'];\n\n $this->render();\n }", "public function show($id)\n {\n if (@$id) {\n $record = Quotes::where('id', $id)->get();\n\n if (@$record) {\n $name = $record[0]->product_name;\n if ($record[0]->status == NULL || $record[0]->status == 1) {\n $record[0]->status = 2;\n $record[0]->update();\n\n return redirect()->route('quotes.index')->with('flash', 'The Quote: \"'.$name.'\" has been approved.');\n }else{\n $record[0]->status = 1;\n $record[0]->update();\n\n return redirect()->route('quotes.index')->with('flash', 'The Quote: \"'.$name.'\" has been reviewed.');\n }\n }else{\n return back();\n }\n \n }else{\n return back();\n }\n }", "function wisdom() {\n $this->data['pagebody'] = 'justone';\n $source = $this->quotes->get(6);\n \n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n\n $this->render();\n }", "public function index()\n {\n $data['quotes'] = Quotes::all();\n return view('admin.quotes.index')->with($data);\n }", "public function show(Quze $quze)\n {\n //\n }", "function view_one()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['bid'] = $this->_bid->details(array('bid_id'=>$data['d']));\n\t\tif(empty($data['bid'])) $data['msg'] = \"ERROR: No bid information could be resolved.\";\n\t\t\n\t\t$this->load->view('bids/bid_details', $data);\n\t}", "public function show($id)\n\t{\n $beside = Beside::find($id);\n\t\t$beside->browse = $beside->browse + 1;\n\t\t$beside->save();\n//\t\t$besides = Beside::all();\n $data = compact('beside');\n \n\t\treturn View::make('detail.index', $data);\n\t}", "function show_question($id, $slug)\n\t{\n\t\t$this->form_validation->set_rules('id_questions', 'Id_Questions', 'required');\n\t\t$this->form_validation->set_rules('body', 'Body', 'required');\n\t\tif ($this->form_validation->run() == false) {\n\n\t\t\t$this->model_module->_set_viewers($id);\n\t\t\t$data['question'] = $this->model_module->questions_id('uuid_question', $id);\n\t\t\t$questions_id = $data['question']['id'];\n\t\t\t$data['module'] = $this->model_module->get_module($questions_id, $id);\n\t\t\t$queryGetquestion = \"SELECT `tb_questions` .*, `tbl_users`.`name`,`tbl_users`.`user_email`\n\t\t\t\t\tFROM `tb_questions` JOIN `tbl_users` \n\t\t\t\t\tON `tb_questions`.`id_user` = `tbl_users`. `user_id`\n\t\t\t\t\tlEFT JOIN `tb_sub_module` \n\t\t\t\t\tON `tb_questions`.`id_sub_module` = `tb_sub_module`.`id`\n\t\t\t\t\tWHERE `tb_questions`.`id` = $questions_id\n\t\t\t\";\n\t\t\t$query = $this->db->query($queryGetquestion)->row_array();\n\t\t\t$data['get_question'] = $query;\n\t\t\t$answerQuery = \"SELECT `tb_answers` .*, `tbl_users`.`name`,`tbl_users`.`user_email`\n\t\t\t\tFROM `tb_answers`\n\t\t\t\tJOIN `tb_questions` \n\t\t\t\tON `tb_answers`.`id_questions` = `tb_questions`.`id`\n\t\t\t\tJOIN `tbl_users`\n\t\t\t\tON `tb_answers`.`id_user` = `tbl_users`.`user_id`\n\t\t\t\tWHERE `tb_answers`.`id_questions` = $questions_id\n\t\t\t\tORDER BY `tb_answers`.`created_at` DESC\";\n\t\t\t$answer = $this->db->query($answerQuery)->result_array();\n\t\t\t$data['get_answer'] = $answer;\n\n\t\t\t// response_json($data);\n\t\t\t$this->load->view('layouts/header');\n\t\t\t$this->load->view('_partalis/navigation');\n\t\t\t$this->load->view('modules/show_questions', $data);\n\t\t\t$this->load->view('layouts/footer');\n\t\t} else {\n\t\t\t$this->model_module->addAnswers();\n\t\t\tredirect('user/module/show_question/' . $id . '/' . $slug);\n\t\t}\n\t}", "public function viewQuotation($id)\n {\n // dd($id);\n\n $quotes = Rfqresponse::where('user_id', $id)->count();\n \n // dd($quotes);\n\n return view('admin.rfqresponse.quotation', compact('quotes'));\n }", "public function index()\n {\n return $this->render('quotes.index');\n }", "public function view($id) {\n \t$this->layout = false;\n $bowler = $this->Bowler->findById($id);\n\n $bowlerData['bowlers']['bowler'][] = $bowler['Bowler'];\n\n $this->set('bowlerData', $bowlerData);\n }", "public function index()\n\t{\n\t\t$data['daftar_qasidah'] = $this->QasidahModel->getAllQasidah();\n\t\t$this->load->view('back/data_qasidah', $data);\n\t}", "protected function detail($id)\n {\n return Show::make($id, new EmsQuestion(), function (Show $show) {\n// $show->field('id');\n// $show->field('questype_id');\n// $show->field('que_index');\n// $show->field('que_create_byid');\n// $show->field('que_create_byname');\n// $show->field('que_last_byid');\n// $show->field('que_last_byname');\n// $show->field('que_select');\n// $show->field('que_selectnum');\n// $show->field('que_answer');\n// $show->field('que_describe');\n// $show->field('que_status');\n// $show->field('que_level');\n// $show->field('que_sequence');\n// $show->field('declaration_id');\n// $show->field('major_id');\n// $show->field('que_head_id');\n// $show->field('que_head_satuts');\n// $show->field('que_son_num');\n// $show->field('que_son_value');\n// $show->field('que_sure_count');\n// $show->field('que_error_count');\n// $show->field('created_at');\n// $show->field('updated_at');\n $show->html(function () {\n // 获取字段信息\n $id = $this->id;\n $que_index = $this->que_index;\n $que_select = $this->que_select;\n $que_answer = $this->que_answer;\n return \"<div class=\\\"card\\\">\n <div class=\\\"card-header\\\"><h5>$que_index</h5></div>\n <div class=\\\"card-body\\\">\n <div style='padding-left: 20px'>$que_select</div>\n </div>\n <div class=\\\"card-footer\\\">正确答案:$que_answer</div>\n </div>\";\n });\n });\n }", "public function show($id){\n \t// return response()->json(\"get question with id = \".$id);\n \t$question = DB::table('question')\n \t\t->where('id', $id)\n \t\t->first();\n \treturn response()->json($question);\n }", "public function show($id)\n {\n $quest = Quest::findOrFail($id);\n $field = [];\n\n if (isset($quest->field)) {\n\n switch ($quest->field->fieldName->name) {\n case('itemID'):\n\n $field['name'] = $quest->field->item->Name;\n $field['count'] = $quest->countToDo;\n break;\n\n case('technologyID'):\n $field['name'] = $quest->field->technology->name;\n $field['count'] = $quest->countToDo;\n break;\n\n case('enemy'):\n\n $field['name'] = $quest->field->enemy->name;\n $field['count'] = $quest->countToDo;\n break;\n\n case('noteID'):\n\n $field['name'] = $quest->field->note->noteSubject;\n $field['count'] = $quest->countToDo;\n break;\n }\n }\n\n return view('admin.quests.show', compact('quest', 'field'));\n }", "public function show($id)\n {\n //\n $pieces = 5;\n \t$input = Input::all();\n $post = Post::where('id', $id) -> first();\n $section = Section::where('id', $post -> sid) -> first();\n if(Input::has('uid')){\n \t$replies = Reply::where('pid', $id) -> where('rid', '<>', '1') -> where('uid', $input['uid']) -> paginate($pieces);\n \t\t$uid = $input['uid'];\n }else {\n \t$replies = Reply::where('pid', $id) -> where('rid', '<>', '1') -> paginate($pieces);\n \t$uid = '';\n }\n\n $i = 0;\n $page = Input::has('page') ? $input['page'] : 1; \n foreach($replies as $reply) {\n \t$reply['user'] = Reply::find($reply['id']) -> user;\n// \tdump($reply);\n \t$reply['user']['detail'] = User::find($reply['uid']) -> userdetail;\n \t$reply['user']['operate'] = User::find($reply['uid']) -> userOperate;\n \t$reply['user']['replies'] = User::find($reply['uid']) -> replies -> count();\n \t$reply['count'] = ++$i + ($page - 1) * 3;\n \t$reply['sons'] = $this -> getSons($reply, $reply['id']);\n }\n// die;\n // 获取广告\n $adverts = $this -> getAdverts();\n // 获取友情链接\n $links = $this -> getLinks();\n // 获取网站信息\n $website = $this -> getWeb();\n $data = [\n \t'section' => $section,\n \t'post' => $post,\n \t'replies' => $replies,\n \t'uid' => $uid,\n \t'adverts' => $adverts,\n \t'links' => $links,\n \t'website' => $website,\n ];\n Post::where('id', $id) -> increment('pvs');\n Section::where('id', $post['sid']) -> increment('pvs');\n return view('home.post.index', $data);\n }", "public function quotes()\n {\n $user = auth()->user();\n $quotes = DB::table('quotes')\n ->select('quotes.account_id', 'quotes.created_by_id', 'quotes.id as quoteId', 'quotes.quote_date',\n 'accounts.name as accountName','users.name as userName','stages.name as stageName',\n 'locations.city','locations.address','quotes.stage_id',\n DB::raw(\"upper(quotes.quote_number) AS quote_number\"),\n 'accounts.document_number','document_types.name as documenttype')\n ->join('accounts', 'accounts.id', '=', 'quotes.account_id')\n ->join('document_types', 'document_types.id', '=', 'accounts.document_type_id')\n ->join('locations', 'locations.id', '=', 'quotes.location_id')\n ->join('stages', 'stages.id', '=', 'quotes.stage_id')\n ->join('users', 'users.id', '=', 'quotes.created_by_id')\n ->orderByRaw('quotes.updated_at DESC')\n ->where('users.organization_id', $user->organization_id)\n ->paginate(10);\n return view('quote.quotes',compact('quotes'));\n }", "public function getAction()\n {\n \t$id = $this->getRequest()->getParam('id');\n\t\t$this->_objectMapper->find($id, $this->_object);\n $this->view->question = $this->_object;\n\t\t$this->view->isMarked = $this->_objectMapper->isMarked($id);\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show($id)\n {\n //$photes = Phote::paginate(10);\n //搜尋\n $photealbum = Photealbum::find($id);\n $photes = Phote::where('belong', '=', $photealbum->title)->paginate(10);\n return view('photes.index', compact('photes','photealbum'));\n }", "public function show($id)\n {\n $quizz = Quizz::find($id);\n $questions = Question::where('quizz', $quizz->id)->get();\n $cat = QuizzCategory::where('quizz_id', $quizz->id)->get();\n foreach($questions as $q) {\n $quizz->questions = Word::where('id', $q->word)->get();\n $quizz->reponses = Response::where('question', $q->id)->get();\n }\n foreach($cat as $c) {\n $quizz->categories = Category::where('category_id', $c->id);\n }\n json($quizz);\n }", "public function show($id)\n {\n //\n $quotation = \\DB::table('quotations')\n ->where('id', $id)\n ->first();\n //$product = Product::find($id);\n\n return view('Finance/quotations/show', ['quotation' => $quotation]);\n\n }", "public function show($id)\n {\n return $this->quotes->with('products')->findOrFail($id);\n }", "public function show($id, $q)\n {\n $id = str_replace(config('app.salt'), '', base64_decode($id));\n $bahan = BahanBerbahaya::where('id', '=', $id)->orWhere('nama', 'like', str_replace('-', ' ', $q))->first();\n return view('pages.frontend.bahan-berbahaya.show', compact('bahan'));\n }", "public function show($id)\n { \n $quiz = Quiz::with('topTen.user','results.user')->withCount('questions')->find($id)?? abort(404,'Quiz Bulunamadı');\n return view('admin.quizzes.show',compact('quiz'));\n }", "public function show($id)\n {\n $quote = Quote::findOrFail($id);\n\n return view('backend.quotes.show', compact('quote'));\n }", "public function show($id)\n {\n $question = QuestionBank::find($id);\n $question_details = QuestionBankDetails::where('question_bank_id',$id)->get();\n return view('admin.single_question.show',compact('question','question_details'));\n }", "public function viewQuestionsAction() {\n\n $all = $this->comments->findAll();\n\n $res = [];\n foreach ($all as $value) {\n if ($this->commentanswer->isAnswer($value->id) == null) {\n $res[] = $value;\n }\n }\n\n /**\n * Alter object by connecting comment tags, adding user information from the database and filtering markdown on the comment object.\n */\n $res = $this->doAll($res);\n\n /**\n * Prepare the view.\n */\n $this->views->add('comment/commentsdb', [\n 'comments' => $res,\n 'title' => 'Browse Discussions',\n 'content' => \"\",\n ]);\n }", "public function index()\n {\n return Quote::orderBy('id', 'desc')->get();\n }", "public function getQuoteDetails()\n {\n $types = [\n ['value' => 'Full Kitchen', 'text' => 'Full Kitchen'],\n ['value' => 'Cabinet Only', 'text' => 'Cabinet Only'],\n ['value' => 'Cabinet Small Job', 'text' => 'Cabinet Small Job'],\n ['value' => 'Cabinet and Install', 'text' => 'Cabinet and Install'],\n ['value' => 'Granite Only', 'text' => 'Granite Only'],\n ];\n if (Auth::user()->id == 5 || Auth::user()->id == 1)\n {\n $types[] = ['value' => 'Builder', 'text' => 'Builder'];\n }\n $type = Editable::init()->id(\"quote_type\")->placement('right')->type('select')->title(\"Quote Type\")\n ->linkText($this->quote->type)\n ->source($types)->url(\"/quote/{$this->quote->id}/type/liveupdate\")->render();\n\n if (!$this->quote->title)\n {\n $this->quote->title = \"Main Quote\";\n }\n $title = Editable::init()->id(\"quote_title\")->placement('right')->type('text')->title(\"Title\")\n ->linkText($this->quote->title)\n ->url(\"/quote/{$this->quote->id}/title/liveupdate\")->render();\n $markup = Editable::init()->id(\"quote_markup\")->placement('right')->type('text')->title(\"Markup Percentage\")\n ->linkText($this->quote->markup)\n ->url(\"/quote/{$this->quote->id}/markup/liveupdate\")->render();\n\n $rows = [];\n $rows[] = ['Quote Type:', $type];\n $rows[] = ['Title (Description)', $title];\n if ($this->quote->type == 'Full Kitchen')\n {\n $rows[] = ['Customer Picking Slab:', $this->quote->picking_slab];\n }\n if ($this->quote->type == 'Builder')\n {\n $rows[] = ['Frugal Markup Percentage:', $markup];\n }\n if (isset($this->meta['finance']))\n {\n switch ($this->meta['finance']['type'])\n {\n case 'all':\n $type = \"100% Financing Option for \" . $this->meta['finance']['terms'] . \" months\";\n break;\n case 'partial':\n\n $type = \"Partial financing Option putting $\" . $this->meta['finance']['downpayment'] . \" down\n with \";\n if (isset($this->meta['finance']['down_cash']) && $this->meta['finance']['down_cash'] > 0)\n {\n $type .= '$' . $this->meta['finance']['down_cash'] . \" in cash, \";\n }\n if (isset($this->meta['finance']['down_credit']) && $this->meta['finance']['down_credit'] > 0)\n {\n $type .= '$' . $this->meta['finance']['down_credit'] . \" in cash, \";\n }\n $type = substr($type, 0, -2);\n $type .= \" and financing for \" . $this->meta['finance']['terms'] . \" months\";\n break;\n case 'none':\n $type = \"No financing paying \";\n if (isset($this->meta['finance']['method']) && $this->meta['finance']['method'] == 'split')\n {\n if (isset($this->meta['finance']['no_cash']) && $this->meta['finance']['no_cash'] > 0)\n {\n $type .= \"$\" . number_format($this->meta['finance']['no_cash'], 2) . \" in cash, \";\n }\n if (isset($this->meta['finance']['no_credit']) && $this->meta['finance']['no_credit'] > 0)\n {\n $type .= \"$\" . number_format($this->meta['finance']['no_credit'], 2) . \" in credit, \";\n }\n $type = substr($type, 0, -2);\n }\n else\n {\n $type = \"No finance using \" . $this->meta['finance']['method'] . \" for payment\";\n }\n break;\n default:\n $type = \"Financing Option Needed\";\n }\n $rows[] = ['Financing Options', $type];\n }\n\n $table = Table::init()->rows($rows)->render();\n $panel = Panel::init('primary')\n ->header(\"Quote Details <small style='color:#fff'>Quote Type and Cabinet Information</small>\")\n ->content($table)->render();\n return $panel;\n }", "public function show($id){\n \n // DB query here\n $question = Question::findOrFail($id);\n $answers = Answer::where('question_id', $id)->orderBy('upvotes', 'DESC')->get();\n\n // returning view and results\n return view('show', ['question' => $question, 'answers' => $answers]);\n }", "public function show($id)\n {\n // $questions = Question::findOrFail($id);\n // return view('question.show', compact(['questions','replies']));\n }", "public function show($id)\n {\n // created an empty array named data \n $data =array();\n \n // added the key and value 'id' to array\n //$data ['id'] =$id;\n\n // find question object with this id \n $recipe = Recipe::findOrFail($id);\n $data['object'] = $recipe;\n\n\n\n return view('recipes/show', $data);\n }", "public function index()\n {\n $quotes = Quotes::all();\n\n $tt = array();\n if (@$quotes) {\n foreach ($quotes as $quote) {\n $id = $quote->request_id;\n $tt[$id][] = $quote;\n }\n }\n\n $total = array_reverse($tt);\n\n $user = User::all();\n \n return view('admin.quotes.index', compact('total', 'user', 'quotes'));\n }", "function get($id)\n\t{\n\t\t$data['module'] = $this->model_module->get_module('id', $id);\n\t\t$data['data_questions'] = $this->model_module->question_query($id);\n\t\t// response_json($data);\n\t\t$this->load->view('layouts/header');\n\t\t$this->load->view('_partalis/navigation');\n\t\t$this->load->view('modules/index', $data);\n\t\t$this->load->view('layouts/footer');\n\t}", "public function show($id)\n {\n\n\n $datas = [];\n $datas['topic'] = QatopicModel::find($id);\n $datas['user'] = User::find($datas['topic']->user_id);\n $datas['admin'] = Auth::guard('admin')->user()->email;\n\n $datas['answer'] = [];\n $relat = QarelatModel::where('topic_id', $datas['topic']->id)->firstOrFail();\n $datas['id'] = $relat->id;\n $answers = $relat->replys;\n $count = 0;\n if($answers && $answers->count() > 0){\n foreach ($answers as $key => $answerss) {\n $datas['answer'][$count]['id'] = $answerss->id;\n $datas['answer'][$count]['details'] = $answerss->details;\n $datas['answer'][$count]['created_at'] = $answerss->created_at->format('d-m-Y');\n $count++;\n }\n }\n\n return view('backend/Qa.viewboard')->with($datas);\n }", "public function show($id)\n {\n //$getComment = PostComment::postIdWiseComment($id,5);\n }", "public function show($id)\n {\n $mytime=Carbon::now();\n $salesquotes = Salesquote::find($id);\n // $salesquotes->customer;\n $cal = $salesquotes->total+5+($salesquotes->total*(10/100));\n $salesquotes = Salesquote::find($id);\n return view('salesquotes.order', compact('salesquotes','mytime','cal'));\n }", "public function actionView($id)\n {\n \n \n \n $model = Purchaserequisition::find()\n ->where(['No_'=> $id])\n ->with('requisitionlines')\n ->asArray()\n ->all();\n \n // print_r( $model['0']);\n // exit;\n return $this->render('view', [\n 'model' => $model['0'],\n \n ]);\n }", "public function show($id)\n {\n //\n $question = Question::find($id);\n// $answers = $question->answers;\n// return compact('question');\n return view('Q&A.show', compact('question'));\n }", "public function show($id)\n {\n //\n $respuesta=[];\n\n $trivias=Trivia::join('preguntas','preguntas.idtrivia','=','trivias.id')\n ->join('respuestas','respuestas.idpregunta','=','preguntas.id')\n ->select('preguntas.pregunta','preguntas.id','respuestas.respuesta','respuestas.correcto')\n ->get();\n $pregunta_actual=null;\n $key=0;\n $no=1;\n foreach($trivias as $trivia)\n {\n if($trivia->pregunta!=$pregunta_actual)\n {\n $no=0;\n\n $respuesta[]=[\"question\"=>$trivia->pregunta];\n $respuesta[$key][\"correct_answer\"]=$trivia->respuesta;\n //array_push($respuesta[$key],[\"respuesta\"=>$trivia->respuesta]);\n $respuesta[$key][\"answer\".$no]=$trivia->respuesta;\n \n $pregunta_actual=$trivia->pregunta;\n $key_actual=$key;\n $key++;\n $no++;\n }else\n {\n $respuesta[$key_actual][\"answer\".$no]=$trivia->respuesta;\n $no++;\n\n }\n }\n return response()->json($respuesta);\n }", "function showquestionAction() {\n\t\t\n\t\t// $questionId = $this->getRequest()->getParam('questionid');\n\t\t// echo $questionId;\n\t\t$em = Zend_Registry::get('em');\n\t\t\n\t\t$questionId = $this->getRequest()->getParam('questionid');\n $questionName = '';\n if(isset($questionId) && $questionId > 0 ) {\n $res = $em->createQueryBuilder()->select('q.QUE_Data')\n ->from('Testcreator_Model_Question', 'q')\n ->where('q.QuestionId='.$questionId)->getQuery();\n\n $question = $res->getResult();\n if(is_array($question) && count($question) >0) {\n $questionName = $question[0]['QUE_Data'];\n } else {\n $questionName = \"Data has been deleted from master \";\n }\n }\n echo $questionName;\n\t\texit;\n\t}", "public function show($id)\n\t{\n \n\t}", "public function show($id) {\n $datos_modelo = ['noticias_0', 'noticias_1', 'noticias_2'];\n // ejemplo:\n // http://mvc-todo.io/noticias/show/1\n // muestra:\n // SALIDA GENERAL noticias_2\n $this->data['titulo'] = \"algo\";\n $this->data['id'] = $id;\n $this->data['contenido'] = $datos_modelo[$id];\n }", "public function show($id) {\r\n //\r\n }", "public function show($id) {\r\n //\r\n }", "public function show( $id)\n { \n $item = Item::find((((((($id/124)-6)/13)-7)/3)-6)/3);\n return view(\"item.show\",['item'=>$item]);\n }", "public function show($id){\n //variabel a digunakan untuk menampilkan hasil\n $a = Booking::find($id);\n return $this->responseHasil(200,true,$a);\n \n }", "public function show($id)\n {\n\n \n \n \n }", "public function show($id) {\n\t //\n }", "public function show($id) {\n \n }", "public function show($id)\n\t{\n\t\t$question = Question::with('tags')->findOrFail($id);\n\n\t\t$question->readtimes += 1;\n\n\t\t$userAvatar = DB::table('users')->where('name',$question->username)->value('avatar');\n\n\t\t$answer = Answer::all()->where('question_id',$id)->sortByDesc('isadopt');\n\n\t\t$question->save();\n\n\t\t$question->content = Markdown::convertToHtml($question->content);\n\n\t\t$popularQuestions = $question->orderBy('answertimes','desc')->where('answertimes','>',0)->limit(5)->get();\n\t\treturn view('questions.show', compact('question','userAvatar','answer','popularQuestions'));\n\t}", "public function index()\n {\n $quote = Quote::paginate(20);\n\n return view('admin.pages.quote.index')\n ->with('quotes', $quote)\n ->with('person', Auth::user());\n }", "public static function show($id) {\n $player = Player::find($id);\n $moderatorOf = Course::find_by_moderator($id);\n $course = Course::find($player->course);\n $scores = Score::find_by_player($player->id);\n foreach($scores as $score) {\n $score->round = Round::find($score->roundId);\n }\n // $rounds = Round::find_by_player($player->id);\n // Kint::dump($rounds);\n View::make('player/show.html', array('player' => $player, 'scores' => $scores, 'moderatorOf' => $moderatorOf, 'course' => $course));\n }", "public function show($id)\n\t{\t\n\n\t}", "public function show($id){\n\t\t//\n\t}", "public function show($id){\n\t\t//\n\t}", "public function showQuotation($id)\n {\n\n $quotations = Rfqresponse::with('users')->where(\n 'rfq_id', $id\n )->get();\n \n // dd($quotations);\n\n return view('admin.rfqresponse.view', compact('quotations'));\n }", "public function actionView($id)\r\n {\r\n $model=$this->findModel($id);\r\n $question=Question::findOne(['task_guid'=>$model->task_guid]);\r\n if(!empty($question)&&empty($question->code)){\r\n $questionArr=Question::find()->andWhere(['task_guid'=>$model->task_guid])->all();\r\n foreach ($questionArr as $k=> $v){\r\n Question::updateAll(['code'=>$k+1],['question_guid'=>$v['question_guid']]);\r\n }\r\n }\r\n $dataProvider=new ActiveDataProvider([\r\n 'query'=>Question::find()->andWhere(['task_guid'=>$model->task_guid])->orderBy('code asc'),\r\n ]);\r\n return $this->render('view', [\r\n 'model' => $model,\r\n 'dataProvider'=>$dataProvider\r\n ]);\r\n }", "public function show($id)\n {\n //\n \n \n }", "public function show($id)\n {\n \n \n }", "public function show($id)\n {\n \n \n }", "public function show() \r\n {\r\n \r\n $id = $this->route_params['id'];\r\n $post = Post::getbyID($id);\r\n $comments = Comment::getCommentById($id);\r\n \r\n View::render('Home/show.php', ['post' => $post , 'comments'=>$comments]);\r\n\r\n }", "public function actionQuestions($id) {\n\n $questions = new Questions();\n\n\n\n return $this->render('questions', [\n 'questions' => $questions,\n ]);\n }", "public function show($id)\n {\n //\n \n \n }", "public function viewAction($qid=null)\n {\n // Define array for presentaion storage\n $presentation = array();\n \n // Get the question\n $qry = \"SELECT * FROM mvc_VQuestion\n WHERE commentTypeId=1\n AND id=?\n ORDER BY created DESC\";\n\n $all = $this->db->executeFetchAll($qry,array($qid));\n\n $question = json_decode(json_encode($all),TRUE); \n \n // Separate the defined tags for this question.\n $tags = $question[0]['tags'];\n $tagsSep = explode(\",\", $tags);\n $tagIdName = array();\n \n foreach ($tagsSep as $key => $val) {\n $tag_id = $this->getTagIdAction($val);\n $tagIdName[] = array('id' => $tag_id, 'name' => $val);\n }\n\n // Store question to presentation array\n $presentation['question'] = $question[0];\n $presentation['tags'] = $tagIdName;\n \n // Get the answers\n $qry = \"SELECT * FROM mvc_VQuestion\n WHERE commentTypeId=2\n AND questionId=?\";\n \n $all = $this->db->executeFetchAll($qry,array($qid));\n \n $answers = array();\n\n foreach ($all as $answer) {\n $answers[] = $answer;\n }\n\n $answers = json_decode(json_encode($answers),TRUE); \n \n // Store answers to presentation array\n $presentation['answers'] = $answers;\n \n // Get the comments\n $qry = \"SELECT * FROM mvc_VQuestion\n WHERE commentTypeId=3\n AND questionId=?\";\n $all = $this->db->executeFetchAll($qry,array($qid));\n $comments = array();\n foreach ($all as $comment) {\n $comments[] = $comment;\n }\n $comments = json_decode(json_encode($comments),TRUE); \n \n // Store answers to presentation array\n $presentation['comments'] = $comments;\n \n \n $this->theme->setTitle($question[0]['title']);\n $this->views->add('comment/view_question', [\n 'presentation' => $presentation,\n ]);\n\n }", "public function show($id)\n {\n \t//\n }", "public function show($id)\n {\n \t//\n }", "public function show($id)\n {\n if(request()->ajax()) {\n return response()\n ->json(\\App\\Quest::find($id));\n }\n\n $quest = \\App\\Quest::withTrashed()->find($id);\n\n if(request()->has('type') && \\request('type') == \"minimum\"){\n return view('layouts.clear',['content' => $quest->task]);\n }\n\n return view('quest.show',['quest' => $quest]);\n }", "public function show($id)\n\t{\n\n\t\t\n\t}", "public function show($id)\n\t{\n\n\t\t\n\t}", "public function show($id){\r\n\t\t$this->template->id = $id;\r\n\t\t\r\n\t\t//Get the recipe from the database\r\n\t\t$recipes = Recipe::retrieve(array(\"RecipeID\"=>$id));\r\n\t\t//If successful and the count is equal to one (as desired)\r\n\t\t//set the recipe object in the template to be displayed\r\n\t\tif(count($recipes) == 1){\r\n\t\t\t$this->template->recipe = $recipes;\r\n\t\t}\r\n\t\t\r\n\t\t$this->template->display('show.html.php');\r\n\t}", "public function show($id)\n\t{\n\t\t\n\t}", "public function show($id)\n\t{\n\t\t\n\t}", "public function show($id)\n\t{\n\t\t\n\t}", "public function indexAction()\n {\n //get logged-in user (if exists)\n $user = $this->session->get(\"user\");\n\n //if the user is logged-in, get a random question that doesn't belong to them and that they haven't answered. Otherwise, get any random question\n if (!empty($user) && array_key_exists('id', $user) && !empty($user['id'])) {\n $question = $this->getNonUserQuestion($user['id']);\n } else {\n $question = $this->getAnyQuestion();\n }\n\n //get any preset answers for the chosen question\n $answers = Answer::find(\n [\n \"question_id = :questionid: AND (is_other IS NULL OR is_other != 1)\",\n \"bind\" => [\n \"questionid\" => $question->id\n ]\n ]\n );\n\n //store answers in question since they technically belong to it \n $question->answers = $answers;\n\n //assign question to the view\n $this->view->question = $question;\n }", "public function show($id)\n {\n //26497 it's just a key to hide the real ids\n $id = $id - 26497;\n $data['title']=\"Questions\";\n $data['table'] = \\App\\QuestionCategory::find($id);\n $data['questions'] = DB::table('questions')->where('parent_id', $id)->orderBy('subject', 'asc')->paginate(8);\n $data['parent_id'] = encrypt($id);\n return view('Admin.Questions.questions', $data);\n }", "public function index()\n {\n $quotes = Quote::paginate(10);\n \n if (! $quotes) {\n return responder()\n ->error()\n ->respond();\n }\n \n return responder()\n ->success($quotes)\n ->respond(); \n }", "public function show($id)\r\n {\r\n \r\n }", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id)\n {\n \n \n }", "public function show($id)\n {\n \n \n }", "public function index($q_id)\n {\n $query_ids = explode(',',$q_id);\n\n //return $query_ids;\n //$queries = Query::where('id')\n $user_id = Auth::user()->id;\n\n //return $user_id;\n\n $details = Query::whereIn('id',$query_ids)->where('user_id',$user_id)->where('status',\"Booked\")->with('user')->with('catagory')->with('vendors')->with('product')->with('invoices')->get();\n\n $user_info = $details[0]['user'];\n $category = $details[0]['catagory'];\n\n $product = \"\";\n if($details[0]['product'] != null){\n $product = $details[0]['product'];\n }else{\n $product = $details[0]['vendors'];\n }\n $category = $details[0]['catagory'];\n\n //return $details;\n\n\n\n return view('user.extra.invoice')\n ->with('user_info',$user_info)\n ->with('details',$details)\n ->with('product',$product)\n ->with('category',$category);\n\n\n\n }", "public function prodViewDetails($quote_id)\n\t{\n\t\t$quote_obj=new Ep_Quote_Quotes();\n\n\t\tif($quote_id)\n\t\t{\n\t\t\t$quoteDetails=$quote_obj->getQuoteDetails($quote_id);\n\t\t\tif($quoteDetails)\n\t\t\t{\n\t\t\t\t$q=0;\n\t\t\t\tforeach($quoteDetails as $quote)\n\t\t\t\t{\n\t\t\t\t\t$quoteDetails[$q]['category_name']=$this->getCategoryName($quote['category']);\n\t\t\t\t\t$quoteDetails[$q]['websites']=explode(\"|\",$quote['websites']);\n\t\t\t\t\t\n\t\t\t\t\tif($quote['documents_path'])\n\t\t\t\t\t{\n\t\t\t\t\t\t/* $related_files='';\n\t\t\t\t\t\t$documents_path=explode(\"|\",$quote['documents_path']);\n\t\t\t\t\t\t$documents_name=explode(\"|\",$quote['documents_name']);\n\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach($documents_path as $k=>$file)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(file_exists($this->quote_documents_path.$documents_path[$k]) && !is_dir($this->quote_documents_path.$documents_path[$k]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($documents_name[$k])\n\t\t\t\t\t\t\t\t$file_name=$documents_name[$k];\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$file_name=basename($file);\n\n\t\t\t\t\t\t\t$related_files.='\n\t\t\t\t\t\t\t<a href=\"/quote/download-document?type=quote&index='.$k.'&quote_id='.$quote_id.'\">'.$file_name.'</a><br>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} */\n\t\t\t\t\t\t$files = array('documents_path'=>$quote['documents_path'],'documents_name'=>$quote['documents_name'],'quote_id'=>$quote_id,'delete'=>false);\n\t\t\t\t\t\t$related_files = $this->getQuoteFiles($files);\n\t\t\t\t\t}\n\n\t\t\t\t\t$quoteDetails[$q]['related_files']=$related_files;\n\n\t\t\t\t\t$quoteDetails[$q]['sales_suggested_price_format']=number_format($quote['sales_suggested_price'], 2, ',', ' ');\n\t\t\t\t\t$quoteDetails[$q]['comment_time']=time_ago($quote['created_at']);\n\t\t\t\t\t\n\n\t\t\t\t\t//bo user details\n\t\t\t\t\t$quote_by=$quote['quote_by'];\n\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($quote_by);\n\t\t\t\t\tif($bo_user_details!='NO')\n\t\t\t\t\t{\n\t\t\t\t\t\t$quoteDetails[$q]['quote_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\t\t\t\t\t\t$quoteDetails[$q]['email']=$bo_user_details[0]['email'];\n\t\t\t\t\t\t$quoteDetails[$q]['phone_number']=$bo_user_details[0]['phone_number'];\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t//getting mission details\n\t\t\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t\t\t$searchParameters['misson_user_type']='sales';\n\t\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t$missonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\t\t\tif($missonDetails)\n\t\t\t\t\t{\n\t\t\t\t\t\t$m=0;\n\t\t\t\t\t\tforeach($missonDetails as $mission)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$missonDetails[$m]['product_name']=$this->product_array[$mission['product']];\t\t\t\n\t\t\t\t\t\t\t$missonDetails[$m]['language_source_name']=$this->getLanguageName($mission['language_source']);\n\t\t\t\t\t\t\t$missonDetails[$m]['product_type_name']=$this->producttype_array[$mission['product_type']];\n\t\t\t\t\t\t\tif($mission['language_dest'])\n\t\t\t\t\t\t\t\t$missonDetails[$m]['language_dest_name']=$this->getLanguageName($mission['language_dest']);\n\n\t\t\t\t\t\t\t$quoteDetails[$q]['missions_list'][$mission['identifier']]='Mission '.($m+1).' - '.$missonDetails[$m]['product_name'];\n\n\t\t\t\t\t\t\t$missonDetails[$m]['comment_time']=time_ago($mission['created_at']);\n\t\t\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\t\t\tif($quote['version']>1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$previousVersion=($quote['version']-1);\n\n\t\t\t\t\t\t\t\t$quoteMissionObj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t\t\t\t$previousMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],$previousVersion,'sales');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tforeach($previousMissionDetails as $key=>$vmission)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_name']=$this->seo_product_array[$vmission['product']];\t\t\t\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_source_name']=$this->getLanguageName($vmission['language_source']);\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_type_name']=$this->producttype_array[$vmission['product_type']];\n\t\t\t\t\t\t\t\t\t\tif($vmission['language_dest'])\n\t\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_dest_name']=$this->getLanguageName($vmission['language_dest']);\n\n\t\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$allVersionMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],NULL,'sales');\n\t\t\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t\t\t$table_end='</table>';\n\t\t\t\t\t\t\t\t\t\t$language_versions=$product_type_versions=$volume_versions=$nb_words_versions='';\n\t\t\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\n\t\t\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t \tif($versions['product']=='translation')\n\t\t\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']).\" > \".$this->getLanguageName($vmission['language_dest']);\n\t\t\t\t\t\t\t\t\t\t \telse\n\t\t\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']);\n\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\n\n\t\t\t\t\t\t\t\t\t\t \t$language_versions.=\"<tr><td>$language</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$product_type_versions.=\"<tr><td>\".$this->producttype_array[$versions['product_type']].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$volume_versions.=\"<tr><td>\".$versions['volume'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$nb_words_versions.=\"<tr><td>\".$versions['nb_words'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['unit_price'],2).\" &\". $versions['sales_suggested_currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t \t$mission_length_option=$this->duration_array[$versions['mission_length_option']];//$versions['mission_length_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['mission_length'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t//checking the version differences\n\t\t\t\t\t\t\t\t\tif($mission['language_source'] !=$previousMissionDetails[0]['language_source'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif($mission['language_dest'] !=$previousMissionDetails[0]['language_dest'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif($mission['product_type'] !=$previousMissionDetails[0]['product_type'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['product_type_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['product_type_versions']=$table_start.$product_type_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif($mission['volume'] !=$previousMissionDetails[0]['volume'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['volume_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['volume_versions']=$table_start.$volume_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($mission['nb_words'] !=$previousMissionDetails[0]['nb_words'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['nb_words_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['nb_words_versions']=$table_start.$nb_words_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($mission['unit_price'] !=$previousMissionDetails[0]['unit_price'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['unit_price_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$current_mission_lenght=$mission['mission_length_option']=='hours' ? ($mission['mission_length']/24) : $mission['mission_length'];\n\t\t\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['mission_length_option']=='hours' ? ($previousMissionDetails[0]['mission_length']/24) : $previousMissionDetails[0]['mission_length'];\n\t\t\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t\t\t$missonDetails[$m]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//Get seo missions related to a mission\n\t\t\t\t\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t\t\t\t\t$searchParameters['misson_user_type']='seo';\n\t\t\t\t\t\t\t$searchParameters['related_to']=$mission['identifier'];\n\t\t\t\t\t\t\t$searchParameters['product']=$mission['product'];\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($searchParameters);\n\t\t\t\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t\t\t$seoMissonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($seoMissonDetails);exit;\n\t\t\t\t\t\t\tif($seoMissonDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$s=0;\n\t\t\t\t\t\t\t\tforeach($seoMissonDetails as $smission)\n\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($smission['created_by']);\n\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['seo_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\n\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['comment_time']=time_ago($smission['created_at']);\n\n\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['product_type_name']=$this->producttype_array[$smission['product_type']];\n\n\t\t\t\t\t\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\n\t\t\t\t\t\t\t\t\t$searchParameters['quote_mission_id']=$smission['identifier'];\n\t\t\t\t\t\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdMissionDetails($searchParameters);\n\t\t\t\t\t\t\t\t\t//echo \"<pre>\";print_r($prodMissionDetails);exit;\n\n\t\t\t\t\t\t\t\t\tif($prodMissionDetails)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['prod_mission_details']=$prodMissionDetails;\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t//getting suggested mission Details for seo missions\n\t\t\t\t\t\t\t\t\t\tif($smission['sales_suggested_missions'])\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$archmission_obj=new Ep_Quote_Mission();\n\t\t\t\t\t\t\t\t\t\t\t$archParameters['mission_id']=$smission['sales_suggested_missions'];\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details=$archmission_obj->getMissionDetails($archParameters);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif($suggested_mission_details)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tforeach($suggested_mission_details as $key=>$suggested_mission)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sug_mission_length=$smission['volume']*($smission['nb_words']/$suggested_mission['article_length']);\n\t\t\t\t\t\t\t\t\t\t\t\t\t$prod_mission_length=round($suggested_mission['mission_length']*($sug_mission_length/$suggested_mission['num_of_articles']));\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['mission_length']=$prod_mission_length;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['mission_length']=round(($smission['mission_length']*90)/100);\n\t\t\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=ceil(($smission['mission_length']*10)/100);\n\t\t\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length ? $staff_setup_length :1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length < 10 ? $staff_setup_length :10;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['staff_setup_length']=$staff_setup_length < 10 ? $staff_setup_length :10;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//pre-fill staff calculations\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//total mission words\n\t\t\t\t\t\t\t\t\t\t\t\t\t$mission_volume=$smission['volume'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$mission_nb_words=$smission['nb_words'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$total_mission_words=($mission_volume*$mission_nb_words);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t//words that can write per writer with in delivery weeks\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_time=$smission['mission_length_option']=='hours' ? ($smission['mission_length']/24) : $smission['mission_length'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_week=ceil($sales_delivery_time/7);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$mission_product=$smission['product_type'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$articles_perweek=$this->configval['max_writer_'.$mission_product];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$words_perweek_peruser=$articles_perweek*250;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$words_peruser_perdelivery=$sales_delivery_week*$words_perweek_peruser;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//wrting and proofreading staff calculations\n\t\t\t\t\t\t\t\t\t\t\t\t\t$writing_staff=round($total_mission_words/$words_peruser_perdelivery);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(!$writing_staff || $writing_staff <1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$writing_staff=1;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['writing_staff']=$writing_staff;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['suggested_mission_details']=$suggested_mission_details;\t\n\t\t\t\t\t\t\t\t\t\t\t\t//staff time details\n\t\t\t\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['staff_time']=$staff_setup_length;\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//echo \"<pre>\";print_r($seoMissonDetails);exit;\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t\t\t$s++;\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$missonDetails[$m]['seoMissions']=$seoMissonDetails;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($missonDetails);exit;\n\n\t\t\t\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\n\t\t\t\t\t\t\t$searchParameters['quote_mission_id']=$mission['identifier'];\n\t\t\t\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdMissionDetails($searchParameters);\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($prodMissionDetails);exit;\n\n\t\t\t\t\t\t\tif($prodMissionDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$p=0;\n\t\t\t\t\t\t\t\tforeach($prodMissionDetails as $mission)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\t\t\t\t\tif($quote['version']>1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$previousVersion=($quote['version']-1);\n\n\t\t\t\t\t\t\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails=$prodMissionObj->getMissionVersionDetails($mission['identifier'],$previousVersion);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$allVersionMissionDetails=$prodMissionObj->getMissionVersionDetails($mission['identifier']);\n\n\t\t\t\t\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t\t\t\t\t$table_end='</table>';\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\t\t\t\t\t\t\t\t\t\t\t\t$staff_versions=$staff_length_versions='';\n\n\t\t\t\t\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t$staff_versions.=\"<tr><td>\".$versions['staff'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['cost'],2).\" &\". $versions['currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$staff_length_option=$versions['staff_time_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$staff_length_versions.=\"<tr><td>\".$versions['staff_time'].\" $staff_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$mission_length_option=$versions['delivery_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['delivery_time'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t\t//checking the version differences\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\tif($mission['cost'] !=$previousMissionDetails[0]['cost'])\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['cost_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif($mission['staff'] !=$previousMissionDetails[0]['staff'])\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_versions']=$table_start.$staff_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$current_mission_lenght=$mission['delivery_option']=='hours' ? ($mission['delivery_time']/24) : $mission['delivery_time'];\n\t\t\t\t\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['delivery_option']=='hours' ? ($previousMissionDetails[0]['delivery_time']/24) : $previousMissionDetails[0]['delivery_time'];\n\t\t\t\t\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$current_staff_lenght=$mission['staff_time_option']=='hours' ? ($mission['staff_time']/24) : $mission['staff_time'];\n\t\t\t\t\t\t\t\t\t\t\t$previous_staff_lenght=$previousMissionDetails[0]['staff_time_option']=='hours' ? ($previousMissionDetails[0]['staff_time']/24) : $previousMissionDetails[0]['staff_time'];\n\t\t\t\t\t\t\t\t\t\t\tif($current_staff_lenght !=$previous_staff_lenght)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_length_versions']=$table_start.$staff_length_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$p++;\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t$missonDetails[$m]['prod_mission_details']=$prodMissionDetails;\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//getting suggested mission Details for quote missions\n\t\t\t\t\t\t\t\tif($mission['sales_suggested_missions'])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$archmission_obj=new Ep_Quote_Mission();\n\t\t\t\t\t\t\t\t\t$archParameters['mission_id']=$mission['sales_suggested_missions'];\n\t\t\t\t\t\t\t\t\t$suggested_mission_details=$archmission_obj->getMissionDetails($archParameters);\n\t\t\t\t\t\t\t\t\tif($suggested_mission_details)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tforeach($suggested_mission_details as $key=>$suggested_mission)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif($suggested_mission['writing_cost_before_signature_currency']!=$quote['sales_suggested_currency'])\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$conversion=$quote['conversion'];\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['writing_cost_before_signature']=($suggested_mission['writing_cost_before_signature']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['correction_cost_before_signature']=($suggested_mission['correction_cost_before_signature']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['other_cost_before_signature']=($suggested_mission['other_cost_before_signature']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['unit_price']=($suggested_mission['selling_price']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['unit_price']=($suggested_mission['selling_price']);\n\n\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['mission_length']=round(($mission['mission_length']*90)/100);\n\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=ceil(($mission['mission_length']*10)/100);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length ? $staff_setup_length :1;\n\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length < 10 ? $staff_setup_length :10;\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['staff_setup_length']=$staff_setup_length < 10 ? $staff_setup_length :10;\n\n\t\t\t\t\t\t\t\t\t\t\t//pre-fill staff calculations\n\n\t\t\t\t\t\t\t\t\t\t\t//total mission words\n\t\t\t\t\t\t\t\t\t\t\t$mission_volume=$mission['volume'];\n\t\t\t\t\t\t\t\t\t\t\t$mission_nb_words=$mission['nb_words'];\n\t\t\t\t\t\t\t\t\t\t\t$total_mission_words=($mission_volume*$mission_nb_words);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//words that can write per writer with in delivery weeks\n\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_time=$mission['mission_length_option']=='hours' ? ($mission['mission_length']/24) : $mission['mission_length'];\n\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_week=ceil($sales_delivery_time/7);\n\n\t\t\t\t\t\t\t\t\t\t\t$mission_product=$mission['product_type'];\n\t\t\t\t\t\t\t\t\t\t\tif($mission['product_type']=='autre')\n\t\t\t\t\t\t\t\t\t\t\t\t$mission_product='article_seo';\n\n\t\t\t\t\t\t\t\t\t\t\t$articles_perweek=$this->configval['max_writer_'.$mission_product];\n\t\t\t\t\t\t\t\t\t\t\t$words_perweek_peruser=$articles_perweek*250;\n\t\t\t\t\t\t\t\t\t\t\t$words_peruser_perdelivery=$sales_delivery_week*$words_perweek_peruser;\n\n\t\t\t\t\t\t\t\t\t\t\t//wrting and proofreading staff calculations\n\t\t\t\t\t\t\t\t\t\t\t$writing_staff=round($total_mission_words/$words_peruser_perdelivery);\n\t\t\t\t\t\t\t\t\t\t\tif(!$writing_staff || $writing_staff <1)\n\t\t\t\t\t\t\t\t\t\t\t\t$writing_staff=1;\n\n\t\t\t\t\t\t\t\t\t\t\t$proofreading_staff=round($total_mission_words/($words_peruser_perdelivery*5));\n\t\t\t\t\t\t\t\t\t\t\tif(!$proofreading_staff || $proofreading_staff <1)\n\t\t\t\t\t\t\t\t\t\t\t\t$proofreading_staff=1;\n\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['writing_staff']=$writing_staff;\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['proofreading_staff']=$proofreading_staff;\n\n\t\t\t\t\t\t\t\t\t\t\t//ENDED\n\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['suggested_mission_details']=$suggested_mission_details;\t\n\t\t\t\t\t\t\t\t\t\t//staff time details\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['staff_time']=$staff_setup_length;\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t$m++;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t//echo \"<pre>\";print_r($missonDetails);exit;\n\t\t\t\t\t\t$quoteDetails[$q]['mission_details']=$missonDetails;\n\t\t\t\t\t}\n\t\t\t\t\tif($quote['version']>1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$previousVersion=($quote['version']-1);\n\t\t\t\t\t\t$deletedMissionVersions=$this->deletedMissionVersions($quote['identifier'],$previousVersion,'sales');\n\t\t\t\t\t\tif($deletedMissionVersions)\n\t\t\t\t\t\t\t$quoteDetails[$q]['deletedMissionVersions']=$deletedMissionVersions;\n\t\t\t\t\t}\n\n\t\t\t\t\t//client aims\n\t\t\t\t\t\t$client_aims=explode(\",\",$quote['client_aims']);\n\t\t\t\t\t\t$client_prio=explode(\",\",$quote['client_prio']);\n\t\t\t\t\t\t$client_aims_text='';\n\t\t\t\t\t\tif(count($client_aims)>0 && is_array($client_aims))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach($client_aims as $i=>$aim)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$client_aims_text.='<b>'.ucfirst($aim).'</b> - Prio '.$client_prio[$i].'<br>';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$quoteDetails[$q]['client_aims_text']=$client_aims_text;\t\t\n\n\t\t\t\t\t$q++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->_view->quoteDetails=$quoteDetails;\n\n\t\t\t//echo \"<pre>\";print_r($quoteDetails);exit;\t\t\t\n\n\t\t\t//getting tech mission details\n\t\t\t$tech_obj=new Ep_Quote_TechMissions();\n\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t$techMissionDetails=$tech_obj->getTechMissionDetails($searchParameters);\n\t\t\t//echo \"<pre>\";print_r($techMissionDetails);exit;\n\t\t\tif($techMissionDetails)\n\t\t\t{\n\t\t\t\t$t=0;\n\t\t\t\tforeach($techMissionDetails as $mission)\n\t\t\t\t{\n\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($mission['created_by']);\n\t\t\t\t\t$techMissionDetails[$t]['tech_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\t\t\t\t\t$techMissionDetails[$t]['comment_time']=time_ago($mission['created_at']);\n\n\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\tif($quoteDetails[0]['version']>1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$previousVersion=($quoteDetails[0]['version']-1);\n\n\t\t\t\t\t\t$techMissionObj=new Ep_Quote_TechMissions();\n\t\t\t\t\t\t$previousMissionDetails=$techMissionObj->getMissionVersionDetails($mission['identifier'],$quoteDetails[0]['identifier'],$previousVersion);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$allVersionMissionDetails=$techMissionObj->getMissionVersionDetails($mission['identifier'],$quoteDetails[0]['identifier']);\n\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t$table_end='</table>';\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\t\t\t\t\t\t\t\t$title_versions='';\n\n\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t$title_versions.=\"<tr><td>\".$versions['title'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['cost'],2).\" &\". $versions['currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t \t$mission_length_option=$versions['delivery_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['delivery_time'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//checking the version differences\n\t\t\t\t\t\t\tif($mission['title'] !=$previousMissionDetails[0]['title'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['title_difference']='yes';\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['title_versions']=$table_start.$title_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif($mission['cost'] !=$previousMissionDetails[0]['cost'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['cost_difference']='yes';\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$current_mission_lenght=$mission['delivery_option']=='hours' ? ($mission['delivery_time']/24) : $mission['delivery_time'];\n\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['delivery_option']=='hours' ? ($previousMissionDetails[0]['delivery_time']/24) : $previousMissionDetails[0]['delivery_time'];\n\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t$techMissionDetails[$t]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t}\t\n\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$techMissionDetails[$t]['files'] = \"\";\n\t\t\t\t\tif($mission['documents_path'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$filesarray = array('documents_path'=>$mission['documents_path'],'documents_name'=>$mission['documents_name'],'id'=>$mission['identifier'],'delete'=>false);\n\t\t\t\t\t\t$files = $this->getTechFiles($filesarray);\n\t\t\t\t\t\t$techMissionDetails[$t]['files'] = $files;\n\t\t\t\t\t}\n\n\t\t\t\t\t$t++;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->_view->techMissionDetails=$techMissionDetails;\n\t\t\t}\n\n\t\t\t//ALL language list\n\t\t\t$language_array=$this->_arrayDb->loadArrayv2(\"EP_LANGUAGES\", $this->_lang);\n \tnatsort($language_array);\n \t$this->_view->ep_language_list=$language_array;\n\n\t\t\t//getting seo mission details\n\t\t\t//getting mission details\n\t\t\tunset($searchParameters);\n\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t$searchParameters['misson_user_type']='seo';\n\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t$seoMissionDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\tif($seoMissionDetails)\n\t\t\t{\n\t\t\t\t$s=0;\n\t\t\t\tforeach($seoMissionDetails as $mission)\n\t\t\t\t{\n\t\t\t\t\tif($mission['documents_path'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$filesarray = array('documents_path'=>$mission['documents_path'],'documents_name'=>$mission['documents_name'],'id'=>$mission['identifier'],'delete'=>false);\n\t\t\t\t\t\t$files = $this->getSeoFiles($filesarray);\n\t\t\t\t\t\t$seoMissionDetails[$s]['files'] = $files;\n\t\t\t\t\t}\n\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($mission['created_by']);\n\t\t\t\t\t$seoMissionDetails[$s]['seo_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\n\t\t\t\t\t$seoMissionDetails[$s]['comment_time']=time_ago($mission['created_at']);\n\n\t\t\t\t\t$seoMissionDetails[$s]['product_name']=$this->seo_product_array[$mission['product']];\n\n\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\tif($quoteDetails[0]['version']>1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$previousVersion=($quoteDetails[0]['version']-1);\n\n\t\t\t\t\t\t$quoteMissionObj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t\t$previousMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],$previousVersion,'seo');\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($previousMissionDetails as $key=>$vmission)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_name']=$this->seo_product_array[$vmission['product']];\t\t\t\n\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_source_name']=$this->getLanguageName($vmission['language_source']);\n\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_type_name']=$this->producttype_array[$vmission['product_type']];\n\t\t\t\t\t\t\t\tif($vmission['language_dest'])\n\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_dest_name']=$this->getLanguageName($vmission['language_dest']);\n\n\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$allVersionMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],NULL,'seo');\n\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t$table_end='</table>';\n\t\t\t\t\t\t\t\t$product_versions=$language_versions=$product_type_versions=$volume_versions=$nb_words_versions='';\n\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\n\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t \tif($versions['product']=='translation')\n\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']).\" > \".$this->getLanguageName($vmission['language_dest']);\n\t\t\t\t\t\t\t\t \telse\n\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']);\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\n\n\t\t\t\t\t\t\t\t \t$language_versions.=\"<tr><td>$language</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$product_versions.=\"<tr><td>\".$this->seo_product_array[$versions['product']].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$product_type_versions.=\"<tr><td>\".$this->producttype_array[$versions['product_type']].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$volume_versions.=\"<tr><td>\".$versions['volume'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$nb_words_versions.=\"<tr><td>\".$versions['nb_words'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['cost'],2).\" &\". $versions['sales_suggested_currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t \t$mission_length_option=$this->duration_array[$versions['mission_length_option']];//$versions['mission_length_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['mission_length'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//checking the version differences\n\t\t\t\t\t\t\tif($mission['language_source'] !=$previousMissionDetails[0]['language_source'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($mission['language_dest'] !=$previousMissionDetails[0]['language_dest'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif($mission['product'] !=$previousMissionDetails[0]['product'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_versions']=$table_start.$product_versions.$table_end;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif($mission['product_type'] !=$previousMissionDetails[0]['product_type'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_type_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_type_versions']=$table_start.$product_type_versions.$table_end;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($mission['volume'] !=$previousMissionDetails[0]['volume'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['volume_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['volume_versions']=$table_start.$volume_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($mission['nb_words'] !=$previousMissionDetails[0]['nb_words'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['nb_words_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['nb_words_versions']=$table_start.$nb_words_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($mission['cost'] !=$previousMissionDetails[0]['cost'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['unit_price_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$current_mission_lenght=$mission['mission_length_option']=='hours' ? ($mission['mission_length']/24) : $mission['mission_length'];\n\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['mission_length_option']=='hours' ? ($previousMissionDetails[0]['mission_length']/24) : $previousMissionDetails[0]['mission_length'];\n\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t$seoMissionDetails[$s]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t}\t\n\n\t\t\t\t\t}\n\n\t\t\t\t\t$s++;\n\t\t\t\t}\t\n\t\t\t\t$this->_view->seoMissionDetails=$seoMissionDetails;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//echo \"<pre>\";print_r($seoMissionDetails);exit;\n\n\t\treturn $html=$this->_view->renderHtml('prod-quote-view-details'); \n\n\t\t\n\t}", "public function show($id)\n {\n //\n \n }", "public function show($id)\n {\n //\n \n }" ]
[ "0.6714972", "0.6231096", "0.6143138", "0.61000955", "0.60916793", "0.6068652", "0.6040153", "0.6001079", "0.5981224", "0.5937121", "0.59279346", "0.59232754", "0.59122777", "0.59081686", "0.5902826", "0.5867795", "0.58644533", "0.58193505", "0.5809522", "0.57964545", "0.5788542", "0.5788542", "0.5788542", "0.5788542", "0.57869834", "0.5759059", "0.5758775", "0.5754045", "0.57505554", "0.57415205", "0.57392913", "0.57150805", "0.5714076", "0.571069", "0.5707228", "0.57034206", "0.5698243", "0.56931543", "0.5677062", "0.56739205", "0.56707734", "0.5657687", "0.5654653", "0.5647086", "0.5640584", "0.5635133", "0.56287366", "0.5618578", "0.5614948", "0.5614449", "0.5614449", "0.56004053", "0.55977744", "0.55964804", "0.55964315", "0.5594169", "0.5591851", "0.5588302", "0.5587739", "0.55857664", "0.5584601", "0.5584601", "0.5578959", "0.55775756", "0.55773556", "0.5577015", "0.5576097", "0.5575003", "0.55697376", "0.5569557", "0.55684656", "0.55677694", "0.55677694", "0.5567434", "0.5566261", "0.5566261", "0.5560298", "0.5558473", "0.5558473", "0.5558473", "0.5557403", "0.555732", "0.55520135", "0.5551681", "0.55484176", "0.55484176", "0.55484176", "0.55484176", "0.55484176", "0.55484176", "0.55484176", "0.55484176", "0.55484176", "0.55484176", "0.55469376", "0.55441177", "0.55437905", "0.55419093", "0.5540548", "0.5540548" ]
0.5999657
8
Lints, or validates, an IAM policy. Currently checks the google.iam.v1.Binding.condition field, which contains a condition expression for a role binding. Successful calls to this method always return an HTTP `200 OK` status code, even if the linter detects an issue in the IAM policy. (iamPolicies.lintPolicy)
public function lintPolicy(LintPolicyRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('lintPolicy', [$params], LintPolicyResponse::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize(Policy $policy): bool\n {\n /** @var \\App\\Area $area */\n $area = $this->find('area');\n\n return $policy->canUpdate(\n $area->team_id, $area->competition_id, $area->id\n );\n }", "public function setIamPolicy($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\DataFusion\\V1beta1\\IAMPolicy::class);\n $this->iam_policy = $var;\n\n return $this;\n }", "public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])\n {\n $params = ['resource' => $resource, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('setIamPolicy', [$params], Policy::class);\n }", "public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])\n {\n $params = ['resource' => $resource, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('setIamPolicy', [$params], Policy::class);\n }", "public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])\n {\n $params = ['resource' => $resource, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('setIamPolicy', [$params], Policy::class);\n }", "public function testPolicy()\n {\n // allow by default\n $this->Acl->setConfig('adapter.policy', PhpAcl::ALLOW);\n $this->Acl->adapter($this->PhpAcl);\n\n $this->assertTrue($this->Acl->check('Role/sales', 'foo'));\n $this->assertTrue($this->Acl->check('Role/sales', 'controllers/bla/create'));\n $this->assertTrue($this->Acl->check('Role/default', 'foo'));\n // undefined user, undefined aco\n $this->assertTrue($this->Acl->check('foobar', 'foo/bar'));\n\n // deny rule: Role.sales -> controllers.*.delete\n $this->assertFalse($this->Acl->check('Role/sales', 'controllers/bar/delete'));\n $this->assertFalse($this->Acl->check('Role/sales', 'controllers/bar', 'delete'));\n }", "public function testUpdatePolicy()\n {\n // p, bob, data2, write\n // p, data2_admin, data2, read\n // p, data2_admin, data2, write\n //\n // g, alice, data2_admin\n\n $e = new Enforcer($this->modelAndPolicyPath . '/rbac_model.conf', $this->modelAndPolicyPath . '/rbac_policy.csv');\n\n $this->assertTrue($e->hasPolicy('alice', 'data1', 'read'));\n $this->assertFalse($e->hasPolicy('alice', 'data1', 'write'));\n\n $e->updatePolicy(['alice', 'data1', 'read'], ['alice', 'data1', 'write']);\n\n $this->assertFalse($e->hasPolicy('alice', 'data1', 'read'));\n $this->assertTrue($e->hasPolicy('alice', 'data1', 'write'));\n }", "public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])\n {\n $params = ['resource' => $resource, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);\n }", "public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])\n {\n $params = ['resource' => $resource, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);\n }", "public function getIamPolicy()\n {\n return isset($this->iam_policy) ? $this->iam_policy : null;\n }", "public function applyPolicy(Request $request): bool;", "function analyze_iam_policy_sample(string $analysisQueryScope): void\n{\n // Create a client.\n $assetServiceClient = new AssetServiceClient();\n\n // Prepare any non-scalar elements to be passed along with the request.\n $analysisQuery = (new IamPolicyAnalysisQuery())\n ->setScope($analysisQueryScope);\n\n // Call the API and handle any network failures.\n try {\n /** @var AnalyzeIamPolicyResponse $response */\n $response = $assetServiceClient->analyzeIamPolicy($analysisQuery);\n printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());\n } catch (ApiException $ex) {\n printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());\n }\n}", "public function setAuthorizationPolicyId($var)\n {\n GPBUtil::checkString($var, True);\n $this->authorization_policy_id = $var;\n\n return $this;\n }", "public function getIamPolicy($resource, $optParams = [])\n {\n $params = ['resource' => $resource];\n $params = array_merge($params, $optParams);\n return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);\n }", "public function getIamPolicy($resource, $optParams = [])\n {\n $params = ['resource' => $resource];\n $params = array_merge($params, $optParams);\n return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);\n }", "public function policy()\n {\n $return = array();\n\n // Itterate over policy rules\n foreach( $this->rules as $k => $v )\n {\n // If rule is enabled, add string to array\n $string = $this->get_rule_error($k);\n if( $string ) $return[$k] = $string;\n }\n\n return $return;\n }", "protected function verifyCompliance()\n {\n // Get the policy based on the job name\n $policyClass = sprintf('%sPolicy', str_replace('Jobs', 'JobPolicies', get_class($this)));\n\n // Job complies if no policy exists\n if (! class_exists($policyClass)) {\n return true;\n }\n\n // Instantiate the policy\n $policy = app($policyClass);\n\n // Policy will either return true or throw an exception\n return $policy->complies($this);\n }", "public function createPolicy() {\n\t\tthrow new CmisNotImplementedException(\"createPolicy\");\n\t}", "function set_iam_policy(\n $registryId,\n $role,\n $member,\n $projectId,\n $location = 'us-central1'\n) {\n print('Setting IAM policy' . PHP_EOL);\n\n // Instantiate a client.\n $deviceManager = new DeviceManagerClient();\n $registryName = $deviceManager->registryName($projectId, $location, $registryId);\n\n $binding = (new Binding())\n ->setMembers([$member])\n ->setRole($role);\n\n $policy = (new Policy())\n ->setBindings([$binding]);\n\n $policy = $deviceManager->setIamPolicy($registryName, $policy);\n\n print($policy->serializeToJsonString() . PHP_EOL);\n}", "public function checkScopePolicy(array &$scope, ClientInterface $client);", "public function canSetControllablePolicy();", "public function getIamPolicy($resource, $optParams = [])\n {\n $params = ['resource' => $resource];\n $params = array_merge($params, $optParams);\n return $this->call('getIamPolicy', [$params], Policy::class);\n }", "public function getIamPolicy($resource, $optParams = [])\n {\n $params = ['resource' => $resource];\n $params = array_merge($params, $optParams);\n return $this->call('getIamPolicy', [$params], Policy::class);\n }", "public function getPolicy(mixed $resource): mixed;", "public function toPolicy()\n {\n return new Policy($this->calls);\n }", "public function getAuthorizationPolicy()\n {\n return $this->authorization_policy;\n }", "public function authorize()\n\t{\n\t\t// Compile the rules\n\t\t$this->compile();\n\t\t\t\n\t\t// Check if this user has access to this request\n\t\tif ($this->user_authorized())\n\t\t\treturn TRUE;\n\n\t\t// Set the HTTP status to 403 - Access Denied\n\t\t$this->request->status = 403;\n\n\t\t// Execute the callback (if any) from the compiled rule\n\t\t$this->perform_callback();\n\n\t\t// Throw a 403 Exception if no callback has altered program flow\n\t\tthrow new Kohana_Request_Exception('You are not authorized to access this resource.', NULL, 403);\n\t}", "function checkPasswordForPolicy($password, $handle = '') {\n $minLength = $this->getProperty('PASSWORD_MIN_LENGTH', 0);\n $compareToHandle = $this->getProperty('PASSWORD_NOT_EQUALS_HANDLE', 0);\n $checkAgainstBlacklist = $this->getProperty('PASSWORD_BLACKLIST_CHECK', 0);\n $result = 0;\n if ($minLength > 0 && strlen($password) < $minLength) {\n $result -= 1;\n }\n if ($compareToHandle && $handle != '' && strtolower($password) == strtolower($handle)) {\n $result -= 2;\n }\n if ($checkAgainstBlacklist && $this->checkPasswordAgainstBlacklist($password) === FALSE) {\n $result -= 4;\n }\n return $result;\n }", "protected function policy()\n {\n return $this->gate()->getPolicyFor($this);\n }", "public function testUpdatePolicies()\n {\n // p, bob, data2, write\n // p, data2_admin, data2, read\n // p, data2_admin, data2, write\n //\n // g, alice, data2_admin\n\n $e = new Enforcer($this->modelAndPolicyPath . '/rbac_model.conf', $this->modelAndPolicyPath . '/rbac_policy.csv');\n $watcherUpdatable = new SampleWatcherUpdatable();\n $e->setWatcher($watcherUpdatable);\n\n $this->assertTrue($e->hasPolicy('alice', 'data1', 'read'));\n $this->assertFalse($e->hasPolicy('alice', 'data1', 'write'));\n $this->assertTrue($e->hasPolicy('bob', 'data2', 'write'));\n $this->assertFalse($e->hasPolicy('bob', 'data2', 'read'));\n\n $oldPolicies = [\n ['alice', 'data1', 'read'],\n ['bob', 'data2', 'write']\n ];\n $newPolicies = [\n ['alice', 'data1', 'write'],\n ['bob', 'data2', 'read']\n ];\n $e->updatePolicies($newPolicies, $oldPolicies);\n $watcherUpdatable->setUpdateCallback(function () {\n throw new \\Exception('');\n });\n $e->updatePolicies($oldPolicies, $newPolicies);\n\n $this->assertFalse($e->hasPolicy('alice', 'data1', 'read'));\n $this->assertTrue($e->hasPolicy('alice', 'data1', 'write'));\n $this->assertFalse($e->hasPolicy('bob', 'data2', 'write'));\n $this->assertTrue($e->hasPolicy('bob', 'data2', 'read'));\n $watcher = new SampleWatcher();\n $e->setWatcher($watcher);\n $watcher->setUpdateCallback(function () {\n });\n $e->updatePolicies($newPolicies, $oldPolicies);\n }", "public function checkPermissions() {\n if ($this->checkIp()) {\n \\BDSCore\\Errors\\Errors::returnError(403);\n }\n }", "public function policy(Policy $policy = null)\n {\n if(null === $policy)\n {\n return $this->child('policy');\n }\n return $this->child('policy', $policy);\n }", "protected function policyCode(){\n return $this->policyCode;\n }", "public function check($value, $type, $policy, $mods = false, &$info = false) {\n\t\t//\n\t\t// Default values.\n\t\t$info = [\n\t\t\tJV_FIELD_ERROR => false\n\t\t];\n\t\t$ok = true;\n\t\t//\n\t\t// Guessing the right policy checker method.\n\t\t$policyFunc = str_replace(' ', '', \"check\".ucwords(preg_replace('/[-_]/', ' ', \"{$type} {$policy}\")));\n\t\t//\n\t\t// Checking if it's possibly to validate the policy.\n\t\tif(method_exists($this, $policyFunc)) {\n\t\t\t//\n\t\t\t// Checking if it applies.\n\t\t\tif(!$this->{$policyFunc}($value, $mods, $message)) {\n\t\t\t\t$info = [\n\t\t\t\t\tJV_FIELD_ERROR => $message\n\t\t\t\t];\n\t\t\t\t$ok = false;\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new JSONPolicyException(\"Unknown policy '{$policy}' for type '{$type}'.\");\n\t\t}\n\n\t\treturn $ok;\n\t}", "public function savePolicy() : void\n {\n if ($this->isFiltered())\n {\n throw new GodException('cannot save a filtered policy');\n }\n\n $this->adapter->savePolicy($this->model);\n\n if ($this->watcher !== null)\n {\n $this->watcher->update();\n }\n }", "public function getPolicyID()\n {\n return $this->policyID;\n }", "public function setAuthorizationPolicy($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\NetworkSecurity\\V1\\AuthorizationPolicy::class);\n $this->authorization_policy = $var;\n\n return $this;\n }", "public function checkRequirements($element)\n\t{\n\t\tparent::checkRequirements($element);\n\n\t\t$permission = (array)$element->getAnnotation('security');\n\n\t\tif ($permission) {\n\t\t\tif (count($permission) === 1) {\n\t\t\t\t$resource = $permission[0];\n\t\t\t\t$privilege = Permission::ALL;\n\t\t\t} else {\n\t\t\t\tlist($resource, $privilege) = array_values($permission);\n\t\t\t}\n\n\t\t\t$this->isAllowed($resource, $privilege);\n\t\t}\n\t}", "public function computePolicyStatus($item)\n {\n $groupPolicies = $item->getItempolicygroup();\n $userPolicies = $item->getItempolicyuser();\n\n $shared = false;\n $modelLoad = new MIDAS_ModelLoader();\n $itemModel = $modelLoad->loadModel('Item');\n\n foreach($groupPolicies as $key => $policy)\n {\n if($policy->getGroupId() == MIDAS_GROUP_ANONYMOUS_KEY)\n {\n $item->setPrivacyStatus(MIDAS_PRIVACY_PUBLIC);\n $itemModel->save($item);\n return MIDAS_PRIVACY_PUBLIC;\n }\n else\n {\n $shared = true;\n }\n }\n foreach($userPolicies as $key => $policy)\n {\n if($policy->getPolicy() != MIDAS_POLICY_ADMIN)\n {\n $shared = true;\n break;\n }\n }\n\n if($shared)\n {\n $item->setPrivacyStatus(MIDAS_PRIVACY_SHARED);\n $itemModel->save($item);\n return MIDAS_PRIVACY_SHARED;\n }\n else\n {\n $item->setPrivacyStatus(MIDAS_PRIVACY_PRIVATE);\n $itemModel->save($item);\n return MIDAS_PRIVACY_PRIVATE;\n }\n }", "public function setChildPolicy($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Grpc\\Service_config\\LoadBalancingConfig::class);\n $this->child_policy = $arr;\n\n return $this;\n }", "public function buildPolicy() {\n\t\t$policy = \"default-src 'none';\";\n\t\t$policy .= \"base-uri 'none';\";\n\t\t$policy .= \"manifest-src 'self';\";\n\n\t\tif (!empty($this->allowedScriptDomains) || $this->inlineScriptAllowed || $this->evalScriptAllowed) {\n\t\t\t$policy .= 'script-src ';\n\t\t\tif (is_string($this->useJsNonce)) {\n\t\t\t\t$policy .= '\\'nonce-'.base64_encode($this->useJsNonce).'\\'';\n\t\t\t\t$allowedScriptDomains = array_flip($this->allowedScriptDomains);\n\t\t\t\tunset($allowedScriptDomains['\\'self\\'']);\n\t\t\t\t$this->allowedScriptDomains = array_flip($allowedScriptDomains);\n\t\t\t\tif (count($allowedScriptDomains) !== 0) {\n\t\t\t\t\t$policy .= ' ';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (is_array($this->allowedScriptDomains)) {\n\t\t\t\t$policy .= implode(' ', $this->allowedScriptDomains);\n\t\t\t}\n\t\t\tif ($this->inlineScriptAllowed) {\n\t\t\t\t$policy .= ' \\'unsafe-inline\\'';\n\t\t\t}\n\t\t\tif ($this->evalScriptAllowed) {\n\t\t\t\t$policy .= ' \\'unsafe-eval\\'';\n\t\t\t}\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedStyleDomains) || $this->inlineStyleAllowed) {\n\t\t\t$policy .= 'style-src ';\n\t\t\tif (is_array($this->allowedStyleDomains)) {\n\t\t\t\t$policy .= implode(' ', $this->allowedStyleDomains);\n\t\t\t}\n\t\t\tif ($this->inlineStyleAllowed) {\n\t\t\t\t$policy .= ' \\'unsafe-inline\\'';\n\t\t\t}\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedImageDomains)) {\n\t\t\t$policy .= 'img-src ' . implode(' ', $this->allowedImageDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedFontDomains)) {\n\t\t\t$policy .= 'font-src ' . implode(' ', $this->allowedFontDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedConnectDomains)) {\n\t\t\t$policy .= 'connect-src ' . implode(' ', $this->allowedConnectDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedMediaDomains)) {\n\t\t\t$policy .= 'media-src ' . implode(' ', $this->allowedMediaDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedObjectDomains)) {\n\t\t\t$policy .= 'object-src ' . implode(' ', $this->allowedObjectDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedFrameDomains)) {\n\t\t\t$policy .= 'frame-src ';\n\t\t\t$policy .= implode(' ', $this->allowedFrameDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedChildSrcDomains)) {\n\t\t\t$policy .= 'child-src ' . implode(' ', $this->allowedChildSrcDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedFrameAncestors)) {\n\t\t\t$policy .= 'frame-ancestors ' . implode(' ', $this->allowedFrameAncestors);\n\t\t\t$policy .= ';';\n\t\t} else {\n\t\t\t$policy .= 'frame-ancestors \\'none\\';';\n\t\t}\n\n\t\tif (!empty($this->allowedWorkerSrcDomains)) {\n\t\t\t$policy .= 'worker-src ' . implode(' ', $this->allowedWorkerSrcDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->allowedFormActionDomains)) {\n\t\t\t$policy .= 'form-action ' . implode(' ', $this->allowedFormActionDomains);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\tif (!empty($this->reportTo)) {\n\t\t\t$policy .= 'report-uri ' . implode(' ', $this->reportTo);\n\t\t\t$policy .= ';';\n\t\t}\n\n\t\treturn rtrim($policy, ';');\n\t}", "public function authorize()\n {\n return auth()->user()->can('updatePermissions', [Role::class, request('role')]);\n }", "public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])\n {\n $params = ['resource' => $resource, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('getIamPolicy', [$params], Policy::class);\n }", "private function _setPolicyList(){\n\t\t/* variable list */\n\t\t$this->_strPolicySchemaName\t= $this->_strPolicySchemaName.\"_\".$this->getCompanyCode();\n\t\t\n\t\t/* get the policy list */\n\t\t$strEventFilterArr \t= array(\n\t\t\t\t\t\t\t\t\t\t'table' \t=> $this->_strPolicySchemaName,\n\t\t\t\t\t\t\t\t\t\t'column' \t=> array('id','name'),\n\t\t\t\t\t\t\t\t\t\t'order'\t\t=> array('name'=>'asc')\n\t\t\t\t\t\t\t\t\t);\n\t\t\n\t\t/* getting record */\n\t\t$strResultArr \t\t= $this->_objDataOperation->getDataFromTable($strEventFilterArr);\n\t\t\n\t\t/* return the policy */\n\t\treturn $strResultArr;\n\t}", "public function authorize()\n {\n return (\\Auth::user()->hasRole('admin')) || (\\Auth::user()->hasRole('editor')) || \\Auth::user()->canDo('UPDATE_POLLS');\n }", "public function authorize()\n {\n $current_user = auth()->user();\n $convention = Convention::find($this->route('convention_id'));\n\n // Use ClientPolicy here to authorize before checking the fields\n return $current_user->can('store', Convention::class)\n || $current_user->can('update', $convention);\n }", "public function authorize(IPrincipal $user, AuthorizationPolicy|string $policy, object $resource = null): AuthorizationResult;", "public function edit(Policy $policy)\n {\n //\n }", "public function updatePolicy(string $sec, string $ptype, array $oldRule, array $newPolicy): void\n {\n throw new NotImplementedException('not implemented');\n }", "public function testPolicyPermissions()\n {\n // User of super admin role always has permission\n $role = factory(\\App\\Models\\Role::class)->make(['name' => 'Admin']);\n $this->roleRepository->create($role);\n $admin = $this->createUser(['role' => $role]);\n $this->assertTrue($admin->isSuperAdmin());\n $this->assertTrue($admin->can('create', User::class));\n\n // User of normal role does not have permission ...\n $user = $this->createUser();\n $this->assertFalse($user->isSuperAdmin());\n $this->assertFalse($user->can('create', User::class));\n $this->assertFalse($user->can('list', User::class));\n\n // ... even if it has module permission ..\n $role = $user->getRole();\n $this->roleRepository->addPermission($role, $this->permissionRepository->findBy('name', 'use-access-module'));\n $this->assertTrue($user->can('access', 'module'));\n $this->assertFalse($user->can('master', 'module'));\n $this->assertFalse($user->can('create', User::class));\n\n // ... until final permission is added\n $this->roleRepository->addPermission($role, $this->permissionRepository->findBy('name', 'user-create'));\n $this->assertTrue($user->can('create', User::class));\n $this->assertFalse($user->can('list', User::class));\n }", "public function getAuthorizationPolicyId()\n {\n return $this->authorization_policy_id;\n }", "public function getPolicy()\n {\n return Controllers\\PolicyController::getInstance();\n }", "public function validate(IntentPayload $payload,$throw = true){\n\t\t\n\t\t$payload->setIntent($this);\n\t\t\n\t\t//is this intent allowed at all?\n\t\tif(!Engine::get()->isIntentAllowed($this)){\n\t\t\tif($throw){\n\t\t\t\tthrow new ValidationException(\"Rights check failed for intent: [{$this->getName()}]: not allowed to access this intent.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$checksPassed = 0;\n\t\t$shouldParametersBeValidated = Engine::get()->shouldParametersBeValidated($this);\n\t\t\n\t\tif(count($this->inputParameters) == 0){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//yes it is allowed, now validate each parameter\n\t\t//for each parameter we have, we must find the value in the payload\n\t\tforeach ($this->inputParameters as $parameter) {\n\n\t\t\t//check to see if the parameter exists\n\t\t\tif(!$payload->parameterExists($parameter->getName())){\n\t\t\t\tif(!$throw){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tthrow new ValidationException(\"Rights check failed for intent: [{$this->getName()}] on parameter: [{$parameter->getName()}] \".\n\t\t\t\t\t\"because the input variable was not found\");\n\t\t\t}\n\n\t\t\t//should we check parameters (useful if the user is an admin in your system, because you can then skip this step)\n\t\t\tif($shouldParametersBeValidated){\n\t\t\t\t\n\t\t\t\t//now we need to find validators for the nodes\n\t\t\t\t$profiles = Engine::get()->getValidationProfilesForIntentParameter($this, $parameter);\n\n\n\t\t\t\t//validate each profile which contains an entry node\n\t\t\t\t\n\t\t\t\t$failures = [];\n\t\t\t\t$success = 0;\n\t\t\t\t\n\t\t\t\tforeach ($profiles as $profile) {\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$result = $profile->validate($payload->get($parameter->getName()));\n\t\t\t\t\t}catch(ValidationException $ex){\n\t\t\t\t\t\t$failures[] = \"Rights check failed for intent: [{$this->getName()}] on parameter: [{$parameter->getName()}] reason: [{$ex->getMessage()}]\";\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t//and use the value from the payload (if ever a payload returns false, then we know something went wrong, but always prefer exceptions)\n\t\t\t\t\tif($result === false){\n\t\t\t\t\t\t$failures[] = \"Rights check failed for intent: [{$this->getName()}] on parameter: [{$parameter->getName()}]\";\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$checksPassed++;\n\t\t\t\t\t$success++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//there were failures and nothing was successful\n\t\t\t\tif($success == 0 && count($failures) > 0){\n\t\t\t\t\tif(!$throw){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tthrow new ValidationException(implode(',', $failures));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//if this happens, it means we didnt find any profiles\n\t\tif($checksPassed == 0 && $shouldParametersBeValidated){\n\t\t\tif(!$throw){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tthrow new ValidationException(\"Rights check failed for intent: [{$this->getName()}] because there were no profiles setup to test with\");\n\t\t}\n\t\t\n\t\t//all checks passed\n\t\treturn true;\n\t}", "public function setPolicyValue($var)\n {\n GPBUtil::checkInt64($var);\n $this->policy_value = $var;\n\n return $this;\n }", "public function update(Request $request, $id)\n {\n // echo \"<pre>\"; print_r($request->all());exit;\n $policy = PolicyMaster::find($id);\n if (!empty($policy)) {\n\n $other_fields = PolicyMaster::getInsuranceFieldsAndValues($request);\n $this->validate($request, [\n 'user_id' => 'required',\n 'company_id' => 'required',\n 'category_id' => 'required',\n 'sub_category_id' => 'required',\n 'insurance_field_id' => 'required',\n 'policy_no' => 'required|min:1',\n 'plan_name' => 'required',\n 'premium_amount' => 'required|numeric|min:1',\n 'policy_term' => 'required',\n 'premium_mode' => 'required',\n ]);\n\n $policy->user_id = $request->input('user_id');\n $policy->company_id = $request->input('company_id');\n $policy->category_id = $request->input('category_id');\n $policy->sub_category_id = $request->input('sub_category_id');\n $policy->policy_no = $request->input('policy_no');\n $policy->plan_name = $request->input('plan_name');\n $policy->premium_amount = $request->input('premium_amount');\n $policy->policy_term = $request->input('policy_term');\n $policy->premium_mode = $request->input('premium_mode');\n $policy->sum_assured = $request->input('sum_assured');\n $policy->other_fields = $other_fields;\n $policy->last_premium_date = Carbon::today()->addYears($request->input('policy_term'))->toDateString();\n if ($policy->save()) {\n return redirect()->route('policy.index')\n ->with('success', 'Policy Updated successfully!!.');\n } else {\n return view('policy.index')->with('fail', 'Policy does not updated.');\n }\n }\n }", "protected static function getAuthorityConstraint(Model $authority, $allowed)\n {\n return function ($query) use ($authority, $allowed) {\n $permissions = Models::table('permissions');\n $abilities = Models::table('abilities');\n $table = $authority->getTable();\n\n $query->from($table)\n ->join($permissions, \"{$table}.{$authority->getKeyName()}\", '=', $permissions.'.entity_id')\n ->whereColumn(\"{$permissions}.ability_id\", \"{$abilities}.id\")\n ->where(\"{$permissions}.forbidden\", ! $allowed)\n ->where(\"{$permissions}.entity_type\", $authority->getMorphClass())\n ->where(\"{$table}.{$authority->getKeyName()}\", $authority->getKey());\n\n Models::scope()->applyToModelQuery($query, $abilities);\n Models::scope()->applyToRelationQuery($query, $permissions);\n };\n }", "protected static function getAssumedRoles($policyDoc) {\n\t\t$roles = [];\n\t\t$json = json_decode($policyDoc, true);\n\t\tforeach ($json['Statement'] as $statement) {\n\t\t\tif ($statement['Effect'] === 'Allow') {\n\t\t\t\tif (in_array(self::ASSUME_ROLE_ACTION, $statement['Action'])) {\n\t\t\t\t\tif (preg_match(self::RESOURCE_REGEX, $statement['Resource'], $matches)) {\n\t\t\t\t\t\t$roles[] = ['account' => $matches[1], 'role' => $matches[2]];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $roles;\n\t}", "public function update(Request $request, Policy $policy)\n {\n //\n }", "public function Policies()\n\t{\n\t\treturn $this->hasMany('\\App\\ThunderID\\OrganisationManagementV1\\Models\\Policy');\n\t}", "public function updatePlagiarismpolicy(Journalpolicy $journalpolicy)\n {\n $journalpolicy->update(request()->validate([\n 'plagiarism' => 'required',\n ]));\n\n return redirect()->back();\n }", "protected static function getRoleConstraint(Model $authority, $allowed)\n {\n return function ($query) use ($authority, $allowed) {\n $permissions = Models::table('permissions');\n $abilities = Models::table('abilities');\n $roles = Models::table('roles');\n\n $query->from($roles)\n ->join($permissions, $roles.'.id', '=', $permissions.'.entity_id')\n ->whereColumn(\"{$permissions}.ability_id\", \"{$abilities}.id\")\n ->where($permissions.\".forbidden\", ! $allowed)\n ->where($permissions.\".entity_type\", Models::role()->getMorphClass());\n\n Models::scope()->applyToModelQuery($query, $roles);\n Models::scope()->applyToRelationQuery($query, $permissions);\n\n $query->where(function ($query) use ($roles, $authority, $allowed) {\n $query->whereExists(static::getAuthorityRoleConstraint($authority));\n });\n };\n }", "public function authorize(): bool\n {\n return Gate::allows('update', $this->product);\n }", "public function policy($force_new = false)\n\t{\n\t\tif ((! $force_new) && (! is_null($this->policy))) {\n\t\t\treturn $this->policy;\n\t\t}\n\n\t\treturn $this->policy = policy($this->policy_class);\n\t}", "public function it_can_retrieve_policy_keys(): void\n {\n $expectations = [\n 'can-impersonate' => 'auth::impersonator.can-impersonate',\n 'can-be-impersonated' => 'auth::impersonator.can-be-impersonated',\n ];\n\n foreach ($expectations as $ability => $expected) {\n static::assertSame($expected, ImpersonationPolicy::ability($ability));\n }\n }", "public function testIamPermissions($resource, $optParams = [])\n {\n $params = ['resource' => $resource];\n $params = array_merge($params, $optParams);\n return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);\n }", "public function update($id,Request $request, PrivacyPolicy $PrivacyPolicy)\n {\n $PrivacyPolicy = $PrivacyPolicy->getPolicyById($id);\n if(!$PrivacyPolicy){\n return redirect()->back()->with('error_message', 'This Terms & Conditions does not exist');\n }\n\n $inputArr['title'] = $request->get('title');\n $inputArr['description'] = $request->get('description');\n $hasUpdated = $PrivacyPolicy->updatePolicy($id, $inputArr);\n \n if(!$hasUpdated){\n return redirect()->back()->with('error_message', 'Unable to update Policy. Please try again later.');\n }\n\n return redirect()->route('admin.privacypolicy.index')->with('success_message', 'updated successfully.');\n \n }", "public function authorize()\n {\n return $this->checkAuthorization(Template::class);\n }", "public function checkPolicy($permission) {\n $access = true;\n\n /* first check moderator access */\n if ($this->get('moderated')) {\n $moderatorGroups = $this->trimArray($this->get('moderator_group'));\n $moderators = $this->trimArray($this->get('moderators'));\n $inModeratorGroup = !empty($moderatorGroups) && !empty($this->xpdo->user) ? $this->xpdo->user->isMember($moderatorGroups) : false;\n $access = $inModeratorGroup || in_array($this->xpdo->user->get('username'),$moderators);\n } else {\n $access = $this->xpdo->user->isMember('Administrator');\n }\n\n /* now check global access */\n switch ($permission) {\n case 'view':\n $access = $this->xpdo->hasPermission('quip.thread_view');\n break;\n case 'truncate':\n $access = $this->xpdo->hasPermission('quip.thread_truncate');\n break;\n case 'remove':\n $access = $this->xpdo->hasPermission('quip.thread_remove');\n break;\n case 'comment_approve':\n $access = $this->xpdo->hasPermission('quip.comment_approve');\n break;\n case 'comment_remove':\n $access = $this->xpdo->hasPermission('quip.comment_approve');\n break;\n case 'comment_update':\n $access = $this->xpdo->hasPermission('quip.comment_approve');\n break;\n }\n\n return $access;\n }", "public function authorize()\n {\n $status = request()->post('status');\n if (!empty($status) && !in_array($status, [\n LoanApplicationService::PENDING_STATUS, LoanApplicationService::APPOVED_STATUS, LoanApplicationService::REJECTED_STATUS])) {\n return false;\n }\n return true;\n }", "public function authorize()\n {\n // Only when rule is correct\n if((bool) Authorization_Base::get_rule($this->class_name) === FALSE)\n {\n throw new AuthBannedException(Authorization_Base::get_error(\n $this->class_name, \"err\"),\n Authorization_Base::get_error($this->class_name, \"err_link\")\n );\n }\n \n return $this->_instance->authorize() && (bool) Authorization_Base::get_rule($this->class_name);\n }", "function acl( $check )\n{\n global $current_user_acl;\n \n $acl = $current_user_acl;\n if ($acl[ 'p' ][ 'ForbiddenAccess' ])\n {\n return false;\n }\n if ($acl[ 'p' ][ 'System' ])\n {\n return true;\n }\n \n $result = false;\n $match = substr($check, 0, 2);\n switch ($match)\n {\n case 'u:':\n case 'g:':\n case 'p:':\n $type = substr($check, 0, 1);\n $target = substr($check, 2);\n $result = check($acl[ $type ], $target);\n break;\n default:\n $args = array_slice(func_get_args(), 1);\n if (is_callable(array( 'Granted', $check )))\n {\n $result = call_user_func_array(array( 'Granted', $check ), $args);\n }\n }\n return $result;\n}", "protected function only($allowedName)\n {\n if (strtolower($allowedName) != strtolower($this->name)) throw new ConditionException;\n }", "public function loadPolicy() : void\n {\n $this->model->clearPolicy();\n\n $this->adapter->loadPolicy($this->model);\n\n $this->model->printPolicy();\n\n if ($this->autoBuildRoleLinks)\n {\n $this->buildRoleLinks();\n }\n }", "public function authorize()\n {\n $authorized = auth()->check();\n if ($authorized) {\n $this->rules = $this->getRulesForAction(CrudAction::update());\n }\n return $authorized;\n }", "public function patchVoicemailGroupPolicy($groupId, $body)\n {\n list($response) = $this->patchVoicemailGroupPolicyWithHttpInfo($groupId, $body);\n return $response;\n }", "protected function withPolicy(string $model, string $policy): void\n {\n $this->callAfterResolving(Gate::class, static fn (Gate $gate): Gate => $gate->policy($model, $policy));\n }", "public function setPolicyID(array $policyID)\n {\n $this->policyID = $policyID;\n return $this;\n }", "public function authorize()\n {\n return \\Gate::allows('update', $this->route('project'));\n }", "public function checkIpAllowed()\n {\n $ip_list = $this->options->get('allowed_ips');\n if ($ip_list) {\n $client_ip = $this->request->getClientIp();\n $status = Ip::match($client_ip, explode(',', $ip_list));\n if (!$status) {\n $this->logger->warning('IP Not Allowed');\n $response = Response::create('Access denied for IP: '.$client_ip, 403);\n $response->send();\n exit();\n }\n }\n }", "public function loadFilteredPolicy($filter) : void\n {\n $this->model->clearPolicy();\n\n if (!$this->adapter instanceof AdapterFiltered)\n {\n throw new GodException('filtered policies are not supported by this adapter');\n }\n\n /** @var AdapterFiltered $adapterFiltered */\n $adapterFiltered = $this->adapter;\n\n $adapterFiltered->loadFilteredPolicy($this->model, $filter);\n\n $this->model->PrintPolicy();\n\n if ($this->autoBuildRoleLinks)\n {\n $this->buildRoleLinks();\n }\n }", "public function filter() {\n $value = null;\n\n if (func_num_args() > 2) {\n $args = func_get_args();\n $value = array_slice($args, 2)[0];\n }\n\n $userId = $this->getSessionUserId();\n\n if ($this->tokenParam !== false && is_null($userId)) {\n $token = $this->getAccessToken();\n\n if (!empty($token)) {\n $userId = call_user_func($this->getCallback(), $token);\n }\n }\n\n if (!empty($userId)) {\n $ret = $this->acl->isRouteAllowed($userId, $value);\n } else {\n $msg = ($this->tokenParam !== false) ? ' ' . trans('acl-manager-laravel::messages.token_not_found') : '.';\n throw new AclServerErrorException(trans('acl-manager-laravel::messages.userid_not_found') . $msg);\n }\n\n if (!$ret) {\n throw new AclPolicyException($value);\n }\n }", "public function determineScoreStatus($projectId) \n {\n $requirements = DB::table('requirements')->where('idProject', $projectId)->get();\n\n $criterias = DB::table('criterias')->where('idProject', $projectId)->where('used', 1)->get();\n \n $countMembers = DB::table('userprojects')->where('idProject', $projectId)->where('role', 2)->count();\n\n $agreementLimit = $countMembers * 2 / 3;\n $threshold = 1;\n\n foreach($requirements as $requirement) {\n foreach($criterias as $criteria) {\n $score = DB::table('scores')->where('idRequirement', $requirement->id)->where('idCriteria', $criteria->id)->first();\n \n $userScores = DB::table('userscores')->where('idRequirement', $requirement->id)->where('idCriteria', $criteria->id)->get();\n\n $agreementCount = 0;\n $minVal = $score->score - $threshold;\n $maxVal = $score->score + $threshold;\n \n foreach($userScores as $userScore) {\n if (($minVal <= $userScore->score) && ($userScore->score <= $maxVal)) {\n $agreementCount += 1;\n }\n }\n\n if ($agreementCount >= $agreementLimit) {\n $affected = DB::table('scores')->where('id', $score->id)->update(['status' => 1]);\n }\n }\n }\n }", "public function getPolicy($capability) {\n // them the same as the project's policies.\n switch ($capability) {\n case PhabricatorPolicyCapability::CAN_VIEW:\n return PhabricatorPolicies::getMostOpenPolicy();\n case PhabricatorPolicyCapability::CAN_EDIT:\n return PhabricatorPolicies::POLICY_USER;\n }\n }", "public function rules()\n {\n return [\n 'permission' => 'required',\n ];\n }", "function Enforce($Permission)\n\t{\n\t\tif (jf::CurrentUser()===null)\n\t\t{\n\t\t\tjf::run ( \"view/_internal/error/401\", array (\"Permission\" => $Permission ) );\n\t\t\texit();\n\t\t}\n\t\tif (! $this->Check ( $Permission ))\n\t\t{\n\t\t\tjf::run ( \"view/_internal/error/403\", array (\"Permission\" => $Permission ) );\n\t\t\texit ();\n\t\t}\n\t}", "public function authorize()\n {\n return auth()->user()->can('update online assessment');\n }", "public function authorize()\n {\n\n if (Gate::allows('change-order-status', $this->route('order'))) {\n return true;\n }\n\n return false;\n }", "public function getPolicy($capability) {\n return PhabricatorPolicies::POLICY_USER;\n }", "public function testQueryPolicyRules()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function isAllowed( $identity, $action, ResourceInterface $resource)\n {\n /** @var AuthorizationRepository $repo */\n $repo = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n if ($resource instanceof EntityResource) {\n return $repo->isAllowedOnEntity($identity, $action, $resource);\n } elseif ($resource instanceof ClassResource) {\n return $repo->isAllowedOnEntityClass($identity, $action, $resource->getClass());\n }\n\n throw new \\RuntimeException('Unknown type of resource: ' . get_class($resource));\n }", "function validate_jwt_from_app_engine($iap_jwt, $cloud_project_number, $cloud_project_id)\n{\n $expected_audience = sprintf(\n '/projects/%s/apps/%s',\n $cloud_project_number,\n $cloud_project_id\n );\n return validate_jwt($iap_jwt, $expected_audience);\n}", "public function approve(Filter $filter)\n {\n return Validator::make($filter->toArray(), [\n 'title' => 'required|min:15',\n 'status' => 'in:verify',\n ]);\n\n }", "public function lint($code);", "function signPolicy($policy) {\n if (!function_exists('binsha1'))\n {\n if (version_compare(phpversion(), \"5.0.0\", \">=\")) {\n function binsha1($d) { return sha1($d, true); }\n } else {\n function binsha1($d) { return pack('H*', sha1($d)); }\n }\n }\n\n $aws_secret = $this->_secretAccessKey;\n\n if (strlen($aws_secret) == 40)\n $aws_secret = $aws_secret.str_repeat(chr(0), 24);\n\n $ipad = str_repeat(chr(0x36), 64);\n $opad = str_repeat(chr(0x5c), 64);\n\n $hmac = binsha1(($aws_secret^$opad).binsha1(($aws_secret^$ipad).$policy));\n return base64_encode($hmac);\n }", "private function verifyControlRule() {\r\n $query = $this->db->select('lp.rule_id')\r\n ->from('landing_page lp')\r\n ->join('landingpage_collection lpc', 'lpc.landingpage_collectionid = lp.landingpage_collectionid', 'INNER')\r\n ->where('lp.landingpage_collectionid', $this->project)\r\n ->where('lp.pagetype', OPT_PAGETYPE_CTRL)\r\n ->get();\r\n\r\n $ruleid = $query->row()->rule_id;\r\n if (!is_numeric($ruleid) || $ruleid <= 0) {\r\n throw new Exception('When personalizationmode is set to COMPLETE, a valid ruleid is mandatory', 400200);\r\n }\r\n }", "public function getBucketPolicy($bucket)\n\t{\n\t\t$url = 'https://' . $bucket . '.' . $this->options->get('api.url') . '/?policy';\n\n\t\t// Send the request and process the response\n\t\treturn $this->commonGetOperations($url);\n\t}", "public function authorize()\n {\n if(!isset($this->action)){\n return false;\n }\n\n if($this->action === \"add\"){\n return Auth::guard('api')->check();\n }else if($this->action === \"update\" || $this->action === \"delete\"){\n if(empty($this->income) || Helper::getStringType($this->income) !== \"integer\"){\n return false;\n }\n\n // not existing or deleted\n if(empty((new Income)->income($this->income))){\n return false;\n }\n\n return Income::canModify(Auth::guard('api')->id(), $this->income) && Auth::guard('api')->check();\n }\n\n return false;\n }", "public function testUpdatePermissionFailsIfLackingPermissions(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_perms\"}')->andThrow(new \\Exception);\n\n $this->userController->_add_permission();\n }", "public function getPolicyValue()\n {\n return $this->policy_value;\n }", "public function update(AttendancePolicyRequest $request)\n {\n $attendance_policy_head = $this->attendance_policy_head->update($request);\n if ($attendance_policy_head == 0){\n return redirect('attendance-policy/create')->with('flashMessageError','Unable to create attendance policy');\n }\n $agent = $this->attendance_policy->update($request,$attendance_policy_head);\n if ($agent) {\n return redirect('attendance-policy')->with('flashMessageSuccess','The attendance policy successfully updated.');\n }\n return redirect('attendance-policy')->with('flashMessageError','Unable to updated attendance policy');\n }" ]
[ "0.5250953", "0.521445", "0.50115305", "0.50115305", "0.50115305", "0.49290648", "0.49202427", "0.48376778", "0.48376778", "0.48106617", "0.47987488", "0.47174957", "0.46720922", "0.46046153", "0.46046153", "0.45415738", "0.44663948", "0.44056544", "0.4394819", "0.43901896", "0.43710607", "0.43276197", "0.43276197", "0.4310729", "0.42827874", "0.42259192", "0.4165944", "0.4162988", "0.4132526", "0.41306692", "0.41213703", "0.41158", "0.4105222", "0.41042906", "0.41010636", "0.40890273", "0.40787494", "0.40735117", "0.40686497", "0.40648556", "0.40625533", "0.40500593", "0.4042333", "0.40072343", "0.39945433", "0.39847985", "0.39802864", "0.39784893", "0.39763722", "0.39689216", "0.3958985", "0.39370155", "0.3936972", "0.3936606", "0.3907574", "0.38598332", "0.38500357", "0.3847456", "0.3829231", "0.38121232", "0.37989572", "0.37899932", "0.3789824", "0.37870887", "0.37857988", "0.3773333", "0.37382486", "0.37309435", "0.3729367", "0.37274352", "0.37248787", "0.37220037", "0.37091887", "0.37028304", "0.3693517", "0.3682672", "0.36771017", "0.3677031", "0.3674522", "0.36735123", "0.36559245", "0.3653356", "0.3652804", "0.36512214", "0.3642999", "0.36427552", "0.36396074", "0.3639097", "0.36352724", "0.3633452", "0.36303142", "0.3620637", "0.3617535", "0.36159945", "0.36124814", "0.36052135", "0.36018735", "0.3595044", "0.35912585", "0.3588741" ]
0.69132173
0
Returns a list of services that allow you to opt into audit logs that are not generated by default. To learn more about audit logs, see the [Logging documentation]( (iamPolicies.queryAuditableServices)
public function queryAuditableServices(QueryAuditableServicesRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('queryAuditableServices', [$params], QueryAuditableServicesResponse::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getListServices () {\n return self::findByStatus(self::STATUS_ACTIVE);\n }", "public function getServices();", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }", "public function getServices() {\n return $this->services;\n }", "public function getServices() {\n return $this->services;\n }", "public function getAllowedServices()\n {\n return $this->allowed_services;\n }", "public function getServices() {\n\n return $this->services;\n\n }", "public function getServices()\n {\n return $this->pantonoServices;\n }", "public function get_safe_services() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/services/safe.json\");\n }", "public function findServicesDowntimesForNonAdminUser(): array;", "public function findServicesDowntimesForAdminUser(): array;", "public function services()\n {\n return $this->belongstomany(Service::class);\n }", "protected function getServices()\n {\n return $this->services;\n }", "public function getServices(): array;", "public function getRequestedServices();", "public function get_services() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/services.json\");\n }", "public static function getServices(): array\n {\n return static::$services;\n }", "public function &getServices(): array {\n return $this->services;\n }", "public function findServices(): array;", "public function getAvailableServices();", "public function services(): array\n {\n return \\array_merge(\n \\array_keys($this->_services),\n \\array_keys($this->aliases)\n );\n }", "public function getAvailableServices()\n {\n return array_keys($this->_servicesConfig);\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 getServices()\n\t{\n\t\treturn ['card', 'topup_mobile', 'topup_mobile_post', 'topup_game'];\n\t}", "public function get_registered_services() {\n\t\t$data = [];\n\t\t$res = self::$dbo->query( 'SELECT storage_service FROM snapshot_storage_credentials' );\n\t\twhile ( $row = $res->fetchArray() ) {\n\t\t\t$data[] = $row['storage_service'];\n\t\t}\n\n\t\treturn $data;\n\t}", "public static function get_services()\n {\n\n //підключаємо всі необхідні класи для активації через масив\n return [\n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class\n ];\n }", "function getAllUnusedServices()\n {\n $tmp = $this->getAllUsedServices();\n $pool_of_ocs = array();\n foreach ($tmp as $name => $value) {\n $pool_of_ocs[] = get_class($this->plugins[$name]);\n if (isset($this->plugins[$name]->conflicts)) {\n $pool_of_ocs = array_merge($pool_of_ocs, $this->plugins[$name]->conflicts);\n }\n }\n\n $ret = array();\n foreach ($this->plugins as $name => $obj) {\n if (!$obj->acl_is_createable()) {\n continue;\n }\n\n /* Skip all pluigns that will lead into conflicts */\n $conflicts = array();\n if (isset($obj->conflicts)) {\n $conflicts = $obj->conflicts;\n }\n $conflicts[] = get_class($obj);\n if (count(array_uintersect($conflicts, $pool_of_ocs, \"strcasecmp\"))) {\n continue;\n }\n\n if (isset($obj->DisplayName)) {\n $ret[$name] = $obj->DisplayName;\n } else {\n $ret[$name] = $name;\n }\n }\n return $ret;\n }", "public static function get_services()\n {\n return [\n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\CustomPostType::class,\n Base\\CustomMetaBox::class,\n Base\\Shortcode::class,\n Base\\Cron::class,\n ];\n }", "public function getAllServicesByUser($userId) {\n $services = self::find()->where(['created_by' => $userId])->all();\n\n return $services;\n }", "public static function get_services(): array\n {\n return [\n Base\\SettingsLinks::class,\n Pages\\Admin::class,\n Base\\Enqueue::class,\n CPT\\EmailCpt::class,\n ];\n }", "public function getAudits();", "public function services($ignore_cache = false) {\n if ($this->services === null || $ignore_cache) {\n $this->services = StatusBoard_Service::allForSite($this);\n }\n \n return $this->services;\n }", "static function getServiceList()\n {\n return session::get('ServerService');\n }", "public function getServices()\n {\n $services = InvoiceService::where('office_id', request('office_id'))->where('name', 'like', '%' . request('q') . '%')->get();\n\n return $services;\n }", "function erp_get_audit_log_modules() {\n return \\WeDevs\\ERP\\Admin\\Models\\Audit_Log::select( 'component' )->distinct()->get()->toArray();\n}", "public static function get_services()\n {\n return [\n Pages\\Dashboard::class,\n Base\\Enqueue::class,\n Base\\SettingsLink::class,\n Base\\CustomPostTypeController::class,\n ];\n }", "private function get_services() {\n\t\treturn [\n\t\t\tServices\\Language_Loader::class,\n\t\t\tServices\\Setup_Database::class,\n\t\t\tServices\\Scripts_And_Templates::class,\n\t\t\tServices\\Admin_Pages::class,\n\t\t\tServices\\Setup_Settings_Page::class,\n\t\t\tServices\\Loggers_Loader::class,\n\t\t\tServices\\Dropins_Loader::class,\n\t\t\tServices\\Setup_Log_Filters::class,\n\t\t\tServices\\Setup_Pause_Resume_Actions::class,\n\t\t\tServices\\Setup_Purge_DB_Cron::class,\n\t\t\tServices\\API::class,\n\t\t\tServices\\Dashboard_Widget::class,\n\t\t\tServices\\Network_Menu_Items::class,\n\t\t\tServices\\Plugin_List_Link::class,\n\t\t];\n\t}", "public function listAllAvailableServices()\n {\n\t\t$data = $this->call(array(), \"GET\", \"sensors/services/available.json\");\n\t\t$data = $data->{'services'};\n\t\t$serviceArray = new ArrayObject();\n\t\tfor($i = 0; $i<count($data);$i++){\n\t\t\t$serviceArray->append(new Service($data[$i], $this));\n\t\t}\n\t\treturn $serviceArray;\n }", "public function servicesArray()\n {\n return [\n self::PAINTING,\n self::TIRE,\n self::BODY_WORK,\n self::TO,\n self::WASHING,\n ];\n }", "public function getAuditEvents(): array\n {\n return DB::table('audits')\n ->select('event')\n ->distinct('event')\n ->pluck('event')\n ->transform(function($item) {\n return [\n 'key' => $item,\n 'value' => array_key_exists($item, trans('tags')) ? trans('tags.'.$item) : $item,\n ];\n\n })\n ->toArray();\n }", "public function getRequiredServices();", "public function getDeclaredServices(): array\n {\n return [\n // Service id, optional class name, tag\n ['best_it_contentful.markdown.twig_extension', MarkdownExtension::class, 'twig.extension'],\n ['best_it_contentful.contentful.twig_extension', ContentfulExtension::class, 'twig.extension'],\n ['best_it_contentful.delivery.cache.reset_service', CacheResetService::class],\n ['best_it_contentful.delivery.client', ClientDecorator::class],\n ['best_it_contentful.markdown.parser', MarkdownParser::class],\n ['best_it_contentful.delivery.response_parser.default', SimpleResponseParser::class]\n ];\n }", "public static function get_services()\n {\n $ServicesObj = new Services();\n $Services = array();\n try {\n $stmt = $ServicesObj->read();\n $count = $stmt->rowCount();\n if ($count > 0) {\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n extract($row);\n $p = (object) array(\n \"ServiceID\" => (int) $ServiceID,\n \"ServiceName\" => $ServiceName,\n );\n\n array_push($Services, $p);\n }\n }\n return $Services;\n } catch (Exception $e) {\n throw $e;\n }\n }", "public function getAllServices_crm() {\r\n\t\t$billingServicesObj = new billing_SERVICES();\r\n $services = $billingServicesObj->getAllServiceDataForActiveServices();\r\n foreach ($services as $key=>$val) {\r\n if (strpos($val[\"SERVICEID\"], 'M') && $val[\"SERVICEID\"] != 'M3' && $val[\"SERVICEID\"] != 'M') {\r\n \tunset($services[$key]);\r\n }\r\n }\r\n return $services;\r\n }", "public static function get_services() {\n return [ \n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class,\n Base\\JsObjectsManager::class,\n Base\\ShortCodesManager::class\n ];\n }", "protected function getServicesList()\n {\n $servicesList = [];\n $services = $this->getInstalledServices();\n foreach ($services as $serviceType => $installedServices) {\n $servicesList[] = $this->getServiceTypeList($serviceType, $installedServices);\n }\n return $servicesList;\n }", "public function getLogCollectionAllowableValues()\r\n {\r\n return [\r\n self::LOG_COLLECTION_0,\r\n self::LOG_COLLECTION_1,\r\n ];\r\n }", "protected function getInstalledServices() {}", "function getServices() {\n\t\t$results = \"\";\n\t\t$sql = 'SELECT * FROM Service';\n\n\t\t$results = queryDB($sql);\n\n\t\treturn $results;\n\t}", "public function listServiceActv()\n {\n $actvServicio = ActividadServicio::orderBy('fechaFinalizacion', 'asc')\n ->get();\n return response()->json($actvServicio, 200);\n }", "function get_service_list() {\n\t\tglobal $wpdb;\n\t\t\n\t\t$services = $wpdb->get_results( \n\t\t\t\"\n\t\t\tSELECT ID, Title\n\t\t\tFROM cp_Categories\n\t\t\tWHERE 1\n\t\t\t\",\n\t\t\tARRAY_A\n\t\t);\n\t\t\n\t\treturn $services;\n\t}", "public function getDeferredServices(): array\n {\n return $this->deferredServices;\n }", "public function getAuditTypes(): array\n {\n $auditableTypes = DB::table('audits')\n ->distinct('auditable_type')\n ->pluck('auditable_type')\n ->toArray();\n\n $hasExportTag = DB::table('audits')\n ->where('tags', 'export')\n ->first();\n\n $formattedTypes = $this->formatTypes($auditableTypes);\n\n if (isset($hasExportTag)) {\n $formattedTypes[] = ['model' => 'Export', 'tag' => 'export'];\n }\n\n return $formattedTypes;\n }", "public function serviceSelectAll(){\n $data = $this->getDataAccessObject()->daoSelectAll();\n return $data;\n }", "public function listsServicesGet()\r\n {\r\n $response = Services::with('regimen')->get();\r\n return response()->json($response,200);\r\n }", "function AllServices(){\n return $this->db->get($this->service)->result();\n }", "public function getAdminServiceIds(): array\n {\n return $this->adminServiceCodes;\n }", "public function getServices(string $type): array\n {\n return $this->services[$type] ?? [];\n }", "public function getServices()\n {\n $services = OurService::select('id','title','slug','description','image')\n ->where('status','=',\\DB::raw(1))\n ->take(4)\n ->get();\n if($services->count()) {\n return $services;\n }\n\n return false;\n }", "public function getServices() {\n $serviceNames = $this->getServiceNames($this->serviceFolderPaths);\n $ret = $ret1 = array();\n// require_once AMFPHP_ROOTPATH.'Plugins/AmfphpDiscovery/CReflection.php';\n foreach ($serviceNames as $serviceName) {\n/* $methods = array();\n $objC = new CReflection(APP_PATH.'/app/controllers/'.$serviceName.'.php');\n $objComment = $objC->getDocComment();\n $arrMethod = $objC->getMethods();\n foreach ($arrMethod as $objMethods)\n {\n $methodComment = $objMethods->getDocComment();\n $parsedMethodComment = $this->parseMethodComment($methodComment);\n $arrParamenter = $objMethods->getParameters();\n foreach ($arrParamenter as $Paramenter)\n {\n $parameterInfo = new AmfphpDiscovery_ParameterDescriptor($Paramenter, '');\n $parameters[] = $parameterInfo;\n }\n $methods[$objMethods->_name] = new AmfphpDiscovery_MethodDescriptor($objMethods->_name, $parameters, $methodComment, $parsedMethodComment['return']);\n }\n\n $ret[$serviceName] = new AmfphpDiscovery_ServiceDescriptor($serviceName, $methods, $objComment); */\n $ret1[] = array('label'=>$serviceName,'date'=>'');\n }\n// var_dump($ret);exit();\n //note : filtering must be done at the end, as for example excluding a Vo class needed by another creates issues\n foreach ($ret as $serviceName => $serviceObj) {\n foreach (self::$excludePaths as $excludePath) {\n if (strpos($serviceName, $excludePath) !== false) {\n unset($ret[$serviceName]);\n break;\n }\n }\n }\n return $ret1;\n }", "public function findOnDemandServiceMacros(int $serviceId, bool $isUsingInheritance = false): array;", "public function index()\n {\n return ServicesApi::collection($this->services->whereNull('deleted_at')->get());\n\n }", "public function client_all_services(){\n $service = Service::where('user_id',Auth::user()->id)->where('status', 0)->get();\n //dd($service);\n return view('admin.pages.client_services.all_services', compact('service'));\n }", "public function getActiveServiceProviderList()\n {\n return array_keys($this->activeProviders);\n }", "protected function getServices() {\n\t\treturn [\n\t\t\tMessagesService::class,\n\t\t];\n\t}", "public static function formatServices($services) {\n foreach ($services as $service) {\n Admin::formatService($service);\n }\n\n return $services;\n }", "public function getServices() {\n\t\t$user = $this->auth->user();\n\n\t\tif(!$user) {\n\t\t\treturn CustomResponsesHandler::response([\n\t\t\t\t\"code\" => 401,\n\t\t\t\t\"message\" => \"Permisos denegados para el cliente\",\n\t\t\t\t\"response\" => null\n\t\t\t]);\n\t\t} else {\n\t\t\t$services = ServicesOrder::join('user_addresses', 'user_addresses.id', '=', 'services_orders.address')\n\t\t\t\t->where('services_orders.id_client', $user->id)\n\t\t\t\t->where('services_orders.status', '!=', 6)\n\t\t\t\t->get(['services_orders.*', 'user_addresses.address', 'user_addresses.latitude', 'user_addresses.longitude']);\n\n\t\t\tif($services->count()) {\n\t\t\t\tforeach($services as $key => $service) {\n\t\t\t\t\t$documents = ServicesDocuments::join('documents', 'documents.id', '=', 'services2documents.document_id')->where('service_id', $service->id)->get(['documents.id', 'folio', 'location', 'type', 'alias', 'notes', 'subtype', 'picture_path', 'expedition', 'expiration', 'documents.created_at']);\n\t\t\t\t\t$services[$key]->documents = $documents;\n\t\t\t\t}\n\n\t\t\t\treturn CustomResponsesHandler::response([\n\t\t\t\t\t\"code\" => 200,\n\t\t\t\t\t\"message\" => \"Listado de servicios\",\n\t\t\t\t\t\"response\" => array(\"services\" => $services)\n\t\t\t\t]);\n\t\t\t} else {\n\t\t\t\treturn CustomResponsesHandler::response([\n\t\t\t\t\t\"code\" => 202,\n\t\t\t\t\t\"message\" => \"No se encontraron servicios\",\n\t\t\t\t\t\"response\" => null\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t}", "public static function getServices($user=null) {\n\t\tif ($user!=null)\t$portlist=$user->getRol()->getServices();\n\t\telse \t\t\t\t\t$portlist=$this->getDoctrine()->getRepository(Service::class)->findAll();\n\t\t$data=array(\"total\"=>count($portlist),\"rows\"=>array());\n\t\tforeach($portlist as $port) {\n\t\t\t$row=array(\"id\"=>$port->getId(), \"port\"=>$port->getPort(), \"name\"=>$port->getName());\n\t\t\t$data[\"rows\"][]=$row;\n\t\t}\n\t\treturn $data;\n\t}", "public function provides()\n {\n AchieveLogger::info(\"Deferred true and I am here in provides()\");\n return['App\\Services\\Utility\\AchieveLoggerService'];\n }", "public function serviceInstances() {\n return StatusBoard_SiteService::allForSite($this); \n }", "public static function adLogList()\n {\n $adLog = ORM::for_table('sales_inte_online_inquiries', 'ksi')\n ->find_array();\n\n return $adLog;\n }", "public function findDowntimesByServiceForAdminUser(int $hostId, int $serviceId): array;", "public static function getSubscribedServices()\r\n {\r\n return [\r\n MDHelper::class,\r\n LoggerInterface::class\r\n ];\r\n }", "public static function getServiceInfo()\n {\n return [\n 'service_name' => env('SERVICE_NAME'),\n 'service_type' => env('SERVICE_TYPE'),\n 'service_scope' => env('SERVICE_SCOPE'),\n 'service_version' => env('SERVICE_VERSION'),\n ];\n }", "public static function getServiceLogEntries() {\n /*\n * EXAMPLE OF LOG OUTPUT:\n\n -- Logs begin at Thu 2018-09-06 22:51:06 CEST. --\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58]\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: Creating key {00000000-0000-0000-0000-d9b836b4f65b} with creation date 2018-09-08 19:44:51Z, activation date 2018-09-08 19:44:51Z, and expiration date 2018-12-07 19:44:51Z.\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: No XML encryptor configured. Key {00000000-0000-0000-0000-d9b836b4f65b} may be persisted to storage in unencrypted form.\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: info: AppNamespace.AppName.Scheduling.ScheduledServiceHostService[0]\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: Scheduled service AppNamespace.AppName.Services.ScheduledTransactionsHostedService. Next occurence: 09/08/2018 19:45:00 +00:00\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: Hosting environment: Production\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: Content root path: /var/www/vhosts/domain.tld/htdocs\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: Now listening on: http://localhost:5000\n Sep 08 21:44:51 domain.tld syslog-identifier-from-service-file[21204]: Application started. Press Ctrl+C to shut down.\n\n */\n\n\n $entry = new stdClass();\n $entry->timestamp = time();\n $entry->type = 'error';\n $entry->message = 'There was an error';\n\n return [ $entry ];\n }", "private function all_consoles_for_select() {\n $consoles = Console::all();\n\n return array_combine(\n array_pluck($consoles, 'id'),\n array_pluck($consoles, 'name')\n );\n }", "public function findDowntimesByServiceForNonAdminUser(int $hostId, int $serviceId): array;", "public function findServicesByIdsForNonAdminUser(array $serviceIds): array;", "public function services()\n {\n return $this->getAngularLocation($this->service_path);\n }", "public function getServices($id) {\n $dql = \"SELECT se FROM Service se\n JOIN se.serviceType st\n WHERE st.id = :id\";\n $services = $this->em->createQuery($dql)\n ->setParameter('id', $id)\n ->getResult();\n return $services;\n }", "protected function getInstalledServices()\n {\n $filteredServices = [];\n foreach ($GLOBALS['T3_SERVICES'] as $serviceType => $serviceList) {\n // If the (first) key of the service list is not the same as the service type,\n // it's a \"true\" service type. Keep it and sort it.\n if (key($serviceList) !== $serviceType) {\n uasort($serviceList, [$this, 'sortServices']);\n $filteredServices[$serviceType] = $serviceList;\n }\n }\n return $filteredServices;\n }", "public function getServices(int $limit = null):array\n {\n\n $sql = 'SELECT * FROM services ORDER BY id DESC';\n\n if($limit)\n {\n $sql .= ' LIMIT ' . $limit;\n }\n\n $req = $this->pdo->query($sql);\n return $req->fetchAll();\n }", "public static function getAllServiceTypes() {\n return id(new PhutilClassMapQuery())\n ->setAncestorClass(__CLASS__)\n ->setUniqueMethod('getServiceTypeConstant')\n ->setSortMethod('getServiceTypeName')\n ->execute();\n }", "public function getUserServisesIds() {\n\t\t$userid = $_SESSION[ 'uid' ];\n\n\t\tif( ! isset( $userid ) || ! is_numeric( $userid ) ) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$sql = \"SELECT\n\t\t\t\t\th.id\n\t\t\t\tFROM\n\t\t\t\t\ttblhosting AS h\n\t\t\t\tLEFT JOIN\n\t\t\t\t\ttblproducts AS p ON h.packageid = p.id\n\t\t\t\tWHERE\n\t\t\t\t\th.userid = $userid AND\n\t\t\t\t\tp.servertype = 'onappcdn'\";\n\n\t\t$result = full_query( $sql );\n\n\t\tif( ! $result && mysql_num_rows( $result ) < 1 ) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$servicesIds = array();\n\t\twhile( $row = mysql_fetch_assoc( $result ) ) {\n\t\t\t$servicesIds[ ] = $row[ 'id' ];\n\t\t}\n\n\t\treturn $servicesIds;\n\t}", "public function getBeauticianServices(GetBeauticianServicesRequest $request) {\n $beauticianId = $request->input('beauticianId');\n $response = BeauticianServiceProvider::getBeauticianService($beauticianId);\n return $this->sendJsonResponse($response);\n }", "public function displayAllServices() {\n $services = $this->userServiceManager->getServices(null, true);\n $this->addCss(['search.css', 'forms.css']);\n $this->showView('service/allServices', [\n 'services' => $services,\n ]);\n }", "public function getLoggers() : array\n {\n return $this->loggers;\n }", "public function getServices()\n\t\t{\n\n\t\t\t$service_id = $this->input->get('service_id') ;\n\t\t\techo json_encode($this->mdl_services->all()->result() ) ;\n\t\t}", "public function activities()\n {\n return $this->morphMany(Config::get('auditing.activity'), 'auditable');\n }", "protected static function getAuditableEvents()\n {\n if (isset(static::$auditableEvents)) {\n return static::$auditableEvents;\n }\n\n return Config::get('auditing.events');\n }", "public function getServices()\r\n {\r\n if (is_null($this->_services)) {\r\n if ($this->getConfig('auto')) {\r\n $this->_services = array();\r\n $config = Mage::app()->getConfig();\r\n foreach (array('cache', 'full_page_cache', 'fpc') as $cacheType) {\r\n $node = $config->getXpath('global/' . $cacheType . '[1]');\r\n if (isset($node[0]->backend) && in_array((string)$node[0]->backend, array(\r\n 'Cm_Cache_Backend_Redis',\r\n 'Mage_Cache_Backend_Redis'\r\n ))) {\r\n $this->_services[] = $this->_buildServiceArray(\r\n $this->__(str_replace('_', ' ', uc_words($cacheType))),\r\n $node[0]->backend_options->server,\r\n $node[0]->backend_options->port,\r\n $node[0]->backend_options->password,\r\n $node[0]->backend_options->database\r\n );\r\n }\r\n }\r\n // get session\r\n $node = $config->getXpath('global/redis_session');\r\n if ($node) {\r\n $this->_services[] = $this->_buildServiceArray(\r\n $this->__('Session'),\r\n $node[0]->host,\r\n $node[0]->port,\r\n $node[0]->password,\r\n $node[0]->db\r\n );\r\n }\r\n } else {\r\n $this->_services = unserialize($this->getConfig('manual'));\r\n }\r\n }\r\n return $this->_services;\r\n }", "public function getServiceNameAllowableValues()\n {\n return [\n self::SERVICE_NAME_BOUNTY_MISSIONS,\n self::SERVICE_NAME_ASSASSINATION_MISSIONS,\n self::SERVICE_NAME_COURIER_MISSIONS,\n self::SERVICE_NAME_INTERBUS,\n self::SERVICE_NAME_REPROCESSING_PLANT,\n self::SERVICE_NAME_REFINERY,\n self::SERVICE_NAME_MARKET,\n self::SERVICE_NAME_BLACK_MARKET,\n self::SERVICE_NAME_STOCK_EXCHANGE,\n self::SERVICE_NAME_CLONING,\n self::SERVICE_NAME_SURGERY,\n self::SERVICE_NAME_DNA_THERAPY,\n self::SERVICE_NAME_REPAIR_FACILITIES,\n self::SERVICE_NAME_FACTORY,\n self::SERVICE_NAME_LABORATORY,\n self::SERVICE_NAME_GAMBLING,\n self::SERVICE_NAME_FITTING,\n self::SERVICE_NAME_PAINTSHOP,\n self::SERVICE_NAME_NEWS,\n self::SERVICE_NAME_STORAGE,\n self::SERVICE_NAME_INSURANCE,\n self::SERVICE_NAME_DOCKING,\n self::SERVICE_NAME_OFFICE_RENTAL,\n self::SERVICE_NAME_JUMP_CLONE_FACILITY,\n self::SERVICE_NAME_LOYALTY_POINT_STORE,\n self::SERVICE_NAME_NAVY_OFFICES,\n self::SERVICE_NAME_SECURITY_OFFICE,\n ];\n }", "final public function getServices()\n {\n if (is_null($this->serviceProviders)) {\n $this->serviceProviders = $this->getServiceProviders();\n }\n\n return $this->serviceProviders;\n }", "public function getServicesFromScope(\\Scope $scope){\n $dql = \"SELECT se\n FROM Service se\n JOIN se.scopes sc\n WHERE sc.id = :id\n ORDER BY se.hostName\";\n $query = $this->em->createQuery($dql)\n ->setParameter(\":id\", $scope->getId());\n return $query->getResult();\n }", "function get_audit_list($where=\"1\",$where_array,$sort_by=\"\"){\n\t\t$data= $this->select_query(\"audit\",\"id,name,from_date,to_date,created_datetime\",$where,$where_array,$sort_by);\n\t\treturn $data;\n\t}", "public function getServiceCatalog()\n {\n $sourcePID = $this->getSystemSetting(\"reference-pid\");\n $servicesData = \\REDCap::getData($sourcePID, 'array');\n\n return $servicesData;\n }", "public function listServiceOfferings() {\n\t\t$data = array (\n\t\t\t\t\"apiKey\" => $this->apiKey,\n\t\t\t\t\"command\" => \"listServiceOfferings\",\n\t\t\t\t\"response\" => \"json\"\n\t\t);\n\t\t$url = $this->getSignatureUrl ( $data );\n\t\treturn $this->curlGet ( $url );\n\t}", "public function get_services($settings = FALSE)\n\t{\t\n\t\treturn parent::get_objects(array(\n\t\t\t'settings' => $settings\n\t\t));\n\t}" ]
[ "0.6111063", "0.6021254", "0.59460855", "0.59460855", "0.59460855", "0.5925563", "0.5925563", "0.59175617", "0.59153557", "0.5889586", "0.58486766", "0.5790817", "0.57907534", "0.57807815", "0.57783866", "0.57488763", "0.571907", "0.5638905", "0.5588885", "0.55544466", "0.5546506", "0.55050844", "0.5500058", "0.54770595", "0.5475724", "0.54422003", "0.54332227", "0.53874624", "0.5387451", "0.537843", "0.5375258", "0.5340429", "0.53300244", "0.53167635", "0.52967966", "0.5280228", "0.5275702", "0.5252572", "0.52422804", "0.52348894", "0.52283496", "0.51878273", "0.5187715", "0.51645494", "0.51535386", "0.5148311", "0.51413697", "0.5130676", "0.51040643", "0.51015294", "0.50617224", "0.50488573", "0.5048732", "0.5040091", "0.50337267", "0.50188893", "0.50129753", "0.49979308", "0.4997394", "0.4994154", "0.49929005", "0.49832356", "0.49558723", "0.4953819", "0.49535802", "0.49521795", "0.4936035", "0.49283895", "0.49100032", "0.4902732", "0.48992923", "0.48792157", "0.4839346", "0.48389605", "0.48339507", "0.4832866", "0.48307356", "0.48183337", "0.48140723", "0.4791146", "0.47883686", "0.47846287", "0.47772923", "0.47733882", "0.47696397", "0.47631454", "0.47576636", "0.47539935", "0.47452468", "0.47347987", "0.47347042", "0.47325417", "0.47283417", "0.47132427", "0.47059262", "0.47058663", "0.4702583", "0.4699026", "0.4698518", "0.46959668" ]
0.6771422
0
TODO: Implement persiste() method.
public function persist($obj) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function persist();", "public function persist() {}", "function persist() ;", "public function persist()\n {\n }", "public function persist()\n {\n //\n }", "public function persist()\n {\n return 1;\n }", "public function persist($data);", "static protected function persist() {\n\t\t$objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Object\\ObjectManager::class);\n\t\t$persistanceManager = $objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager::class);\n\t\t$persistanceManager->persistAll();\n\t}", "function persistAll() ;", "public function persist()\n {\n $uid = $this->getIdentifier() == 0 ? 'NEW' . rand(100000, 999999) : $this->getIdentifier();\n $data = [\n trim(static::$storageTableName) => [\n $uid => $this->getPersistableDataArray()\n ]\n ];\n // New records always must have a pid\n if ($this->getIdentifier() == 0) {\n $data[trim(static::$storageTableName)][$uid]['pid'] = 0;\n }\n /** @var \\TYPO3\\CMS\\Core\\DataHandling\\DataHandler $tce */\n $tce = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\DataHandling\\DataHandler::class);\n $tce->start($data, []);\n $tce->process_datamap();\n }", "protected function persistObjects() {}", "public function persist()\n {\n persistableCollection::getInstance($this->resourceName)->persistObject($this);\n $this->loaded = true;\n $this->persisted = true;\n }", "public function persistAll() {}", "public function persist($entity)\n {\n }", "public function save()\n\t{\n\t\t$this->container->save($this);\n\t}", "public function markAsPersisted(): void;", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsuario = \"insert into usuarios (nomUsuario, clave) values (:nomUsuario, :clave)\";\n $sthSqlInsertUsuario = $bd->prepare($sqlInsertUsuario);\n $result = $sthSqlInsertUsuario->execute([\":nomUsuario\" => $this->nomUsuario, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function persist()\n {\n $this->eventManager->dispatchEvent(['persist_before'], [get_class($this)]);\n if (!empty($this->handlerInterface)) {\n $result = $this->handlerFactory->create($this->handlerInterface)->persist($this);\n if (!empty($result)) {\n foreach ($result as $key => $value) {\n $this->data[$key] = $value;\n }\n }\n }\n $this->eventManager->dispatchEvent(['persist_after'], [get_class($this)]);\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function persist() {\n $bd = BD::getConexion();\n $sql = \"insert into usuarios (nombre, clave) values (:nombre, :clave)\";\n $sthSql = $bd->prepare($sqlInsertUsuario);\n $result = $sthSql->execute([\":nombre\" => $this->nombre, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function store() {\n\t\t//\n\t}", "public function store() {\n\t\t//\n\t}", "public function store() {\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t {\n\t //\n\t }", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.85103893", "0.84754986", "0.8470015", "0.8307271", "0.82072353", "0.76120144", "0.7413233", "0.73545116", "0.72353697", "0.7229123", "0.72126555", "0.71504414", "0.7138415", "0.71230507", "0.705632", "0.70508736", "0.70441693", "0.70331013", "0.698168", "0.6899018", "0.68883806", "0.68866193", "0.68866193", "0.68866193", "0.6875971", "0.6875971", "0.6875971", "0.68679684", "0.68561083", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667", "0.68464667" ]
0.7308662
8
Get the stub file for the generator.
protected function getStub() { return __DIR__ . '/stubs/trait.stub'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStubFile(): string\n {\n return $this->getStubFileFromPresetStorage($this->preset, 'seeder.stub');\n }", "protected function getStub()\n {\n return $this->files->get($this->getStubPath().'/default.stub');\n }", "public function getStubFile(): string\n {\n return $this->getStubFileFromPresetStorage($this->preset, 'console.stub');\n }", "protected function getStub()\n {\n if ($this->option('view')) {\n return __DIR__ . '/stubs/view.stub';\n }\n\n return __DIR__ . '/stubs/table.stub';\n }", "private function getStub()\n {\n return $this->files->get($this->stubPath);\n }", "protected function getStub()\n {\n if ($stub = $this->option('stub')) {\n return $stub;\n }\n\n if ($this->option('model')) {\n return __DIR__.'/stubs/controller.stub';\n }\n\n return __DIR__.'/stubs/blank.stub';\n }", "protected function getStub()\n {\n return config('crudgenerator.custom_template')\n ? config('crudgenerator.path') . '/acl-migration.stub'\n : __DIR__ . '/../stubs/acl-migration.stub';\n }", "protected function getStub()\n {\n return $this->collection()\n ? __DIR__.'/stubs/resource-collection.stub'\n : __DIR__.'/stubs/resource.stub';\n }", "protected function getStub(): string\n {\n return __DIR__ . '/partial_stubs/model.stub';\n }", "protected function getStub() {\n $stub = null;\n\n if ($this->option('crud')) {\n return __DIR__ . '/stubs/schema.crud.stub';\n }else if ($this->option('progressive')) {\n return __DIR__ . '/stubs/schema.progressive.stub';\n }else if ($this->option('report')) {\n return __DIR__ . '/stubs/schema.report.stub';\n }else if ($this->option('chart')) {\n return __DIR__ . '/stubs/schema.chart.stub';\n }\n return __DIR__.$stub;\n }", "protected function getStub()\n {\n $stub = '/stubs/form.stub';\n\n return __DIR__.$stub;\n }", "protected function getStub()\n {\n if ($this->option('validator')) {\n return __DIR__.'/stubs/factory-validator.stub';\n } else {\n return __DIR__.'/stubs/factory-no-validator.stub';\n }\n }", "protected function getStub()\n {\n return base_path() . '/resources/stubs/model.stub';\n }", "protected function getStub()\n {\n return resource_path('stubs/view.stub');\n }", "protected function getStub()\n {\n return $this->option('model')\n ? __DIR__ . '/stubs/service.stub'\n : __DIR__ . '/stubs/service_default.stub';\n }", "protected function getStub()\n {\n $stub = __DIR__.'/../stubs/contracts/contract';\n\n if ($this->option('extends')) {\n $stub .= '.extends';\n }\n\n return $stub.'.stub';\n }", "protected function getStub()\n {\n return $this->files->get($this->getStubPath().\"/create.attribute.stub\");\n }", "protected function getStub()\n {\n $dir = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..';\n// if ($this->option('unit')) {\n// return $dir.'/stubs/unit-test.stub';\n// }\n\n return $dir. DIRECTORY_SEPARATOR .'stubs'. DIRECTORY_SEPARATOR .'test.stub';\n }", "protected function getStub()\n {\n if ($this->option('component')) {\n return __DIR__ . '/Stubs/FacadeComponent.stub';\n }\n return __DIR__ . '/Stubs/Facade.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/views/plain.stub';\n }", "protected function getStub()\n {\n return $this->getStubDir() . '/model.stub';\n }", "protected function getStub(): string\n {\n return __DIR__ . '/stubs/Factory.stub';\n }", "protected function getStub()\n {\n if ($this->option('plain')) {\n return __DIR__.'/stubs/base-controller.plain.stub';\n }\n\n return __DIR__.'/stubs/base-controller.stub';\n }", "protected function getStub()\n {\n $stub = null;\n\n if ($this->option('parent')) {\n $stub = '/stubs/controller.nested.stub';\n } elseif ($this->option('model')) {\n $stub = '/stubs/controller.model.stub';\n } elseif ($this->option('resource')) {\n $stub = '/stubs/controller.stub';\n }\n\n if ($this->option('api') && is_null($stub)) {\n $stub = '/stubs/controller.api.stub';\n } elseif ($this->option('api') && ! is_null($stub)) {\n $stub = str_replace('.stub', '.api.stub', $stub);\n }\n\n $stub = $stub ?? '/stubs/controller.plain.stub';\n\n return __DIR__.$stub;\n }", "protected function getStub(): string\n {\n return $this->resolveStubPath(\n $this->option('markdown') !== false\n ? '/stubs/markdown-mail.stub'\n : '/stubs/mail.stub');\n }", "protected function getStub()\n {\n return __DIR__.'/stubs/kompo-'.($this->option('demo') ? 'demo-' : '').'form.stub';\n }", "protected function getStub(): string\n {\n return __DIR__ . '/../../../resources/stubs/views/view.stub';\n }", "protected function getStub()\n {\n $type = (!is_null($this->option('type')) && in_array($this->option('type'), ['plain', 'extended']))\n ? $this->option('type')\n : 'plain';\n\n return __DIR__ . \"/stubs/responder/{$type}.stub\";\n }", "protected function getStub()\n {\n if ($this->option('pivot')) {\n return parent::getStub();\n }\n\n return __DIR__ . '/stubs/model.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/interface.php.stub';\n }", "protected function getStub()\n {\n if ($this->option('trait')) {\n return __DIR__.'/../Stubs/Trait.stub';\n }\n if ($this->option('interface')) {\n return __DIR__.'/../Stubs/Interface.stub';\n }\n\n return __DIR__.'/../Stubs/Class.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/../stubs/seed.stub';\n }", "protected function getStub()\n\t{\n\t\treturn $this->resolveStubPath('/stubs/integration-manifest.stub');\n\t}", "protected function getStub()\n {\n return config('laravel-crud-generator.custom_template')\n ? config('laravel-crud-generator.path') . '/model.stub'\n : __DIR__ . '/../stubs/model.stub';\n }", "protected function getStub()\n {\n return $this->resolveStubPath('/stubs/bfg-component.stub');\n }", "protected function getStub()\n {\n if ($this->option('request')) {\n return __DIR__.'/stubs/mutator-request.stub';\n } elseif ($this->option('clean')) {\n return __DIR__.'/stubs/mutator-clean.stub';\n } else {\n return __DIR__.'/stubs/mutator.stub';\n }\n }", "protected function getStub()\n {\n if ($this->option('service')) {\n return __DIR__.'/stubs/controller.service.stub';\n } elseif($this->option('base')) {\n return __DIR__.'/stubs/controller.base.stub';\n } elseif($this->option('otp')) {\n return __DIR__.'/stubs/controller.service.otp.stub';\n }\n return __DIR__.'/stubs/controller.plain.stub';\n }", "protected function getStub()\n {\n return file_get_contents(__DIR__ . '/../../Stubs/' . ucfirst($this->type() . 'Task.php'));\n }", "protected function getStub()\n {\n $stub = '/stubs/class.stub';\n\n if ($this->option('constructor')) {\n $stub = '/stubs/class.constructor.stub';\n }\n\n return __DIR__.$stub;\n }", "protected function getStub()\n {\n $stub = '/stubs/class.stub';\n\n if ($this->option('constructor')) {\n $stub = '/stubs/class.constructor.stub';\n }\n\n return __DIR__.$stub;\n }", "public function getStub()\n {\n return File::get(__DIR__.'/../stubs/migrations/migration.stub');\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/bond.stub';\n }", "private function getStub()\n {\n return app_path() . '\\Stubs\\repository_contract.stub';\n }", "protected function getStub()\n {\n if ($this->option('view')) {\n return __DIR__.'/stubs/controller/controller.view.stub';\n }\n\n return __DIR__.'/stubs/controller/controller.api.stub';\n }", "protected function getStub()\n {\n return realpath(__DIR__) .str_replace('/', DS, '/stubs/reminders.stub');\n }", "protected function getStub()\n {\n return $this->getStubsPath() . 'controller.stub';\n }", "protected function getStub(): string\n {\n return __DIR__ . '/../stubs/abstract/iservice.stub';\n }", "protected function getStub()\n {\n if ($this->option('model')) {\n return __DIR__ . '/Stubs/CrudRepository.stub';\n }\n\n return __DIR__ . '/Stubs/Repository.stub';\n }", "protected function getStub(): string\n {\n return __DIR__.'/stubs/php_cs.stub';\n }", "protected function getStub()\n {\n return app_path('Console/Commands/stubs/form-request.stub');\n }", "protected function getStub()\n {\n return $this->resolveStubPath('/stubs/service.stub');\n }", "protected function getStub()\n {\n return $this->option('pivot')\n ? $this->resolveStubPath('/stubs/base_stubs/model.pivot.stub')\n : $this->resolveStubPath('/stubs/base_stubs/model.stub');\n }", "protected function getStub(): string\n {\n return __DIR__.'/stubs/interaction.stub';\n }", "protected function getStub(): string\n\t{\n\t\treturn __DIR__ . '/../../../stubs/action.interface.stub';\n\t}", "protected function getStub():string\n {\n return __DIR__ . '/stubs/controller.stub';\n }", "protected function getStub()\n {\n return $this->option('model')\n ? $this->resolveStubPath('/stubs/observer.stub')\n : $this->resolveStubPath('/stubs/observer.plain.stub');\n }", "protected function getStub()\n {\n return app_path() . '\\Console\\stubs\\controller.stub';\n }", "public function getStub()\n {\n if ($this->option('pivot')) {\n return __DIR__.'/../../stubs/pivot.model.stub';\n }\n\n return __DIR__.'/../../stubs/model.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/../stubs/model.stub';\n }", "protected function getStub()\n {\n if (!$this->option('pivot')) {\n return __DIR__.'/stubs/model.stub';\n }\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/repository-interface.stub';\n }", "protected function getStub()\n {\n return base_path('resources' . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'SystemParameter.stub');\n }", "protected function getStub(): string\n {\n return base_path('stubs/vue-component.stub');\n }", "protected function getStub()\n {\n return app_path('Core/Stub/Migration.stub');\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/form-request.stub';\n }", "protected function getStub()\n {\n return base_path('stubs\\service.stub');\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/service.stub';\n }", "protected function getStub()\n {\n return __DIR__.'/../stubs/' . '/' . 'request.stub';\n }", "protected function getStub()\n {\n if ($this->option('array')) {\n return $this->copyFrom('/stubs/export.array.stub');\n } elseif ($this->option('model')) {\n return $this->copyFrom('/stubs/export.model.stub');\n } elseif ($this->option('query')) {\n return $this->copyFrom('/stubs/export.query.stub');\n }\n\n return $this->copyFrom('/stubs/export.collection.stub');\n }", "protected function getStub()\n {\n return __DIR__ . '/../stubs/transformer.stub';\n }", "protected function getStub()\n\t{\n\t\treturn __DIR__.'/stubs/api.stub';\n\t}", "protected function getStub()\n {\n return __DIR__ . '/../stubs/repository.stub';\n }", "protected function getStub()\n {\n return __DIR__.'/stubs/api-consumer-endpoint.stub';\n }", "protected function getStub()\n {\n return app_path('Stubs/migration.stub');\n }", "protected function getStub()\n {\n return realpath(__DIR__.'/stubs/dashboard.stub');\n }", "protected function getStub()\n {\n return __DIR__.'/../stubs/' . '/' . 'model.stub';\n }", "protected function getStub(): string\n {\n return __DIR__ . '/stubs/authServiceProvider.stub';\n }", "public function getStub()\n {\n return app()->basePath('vendor/samuel-nunes/lumen-form-request-validation/src/Console/Stubs/'.$this->stubName.'.stub');\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/entity_controller.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/action.stub';\n }", "protected function getStub()\n {\n return __DIR__.'/../stubs/composer.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/../stubs/serviceProvider.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/command.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/command.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/../../stubs/modelValidator.stub';\n }", "protected function getStub()\n {\n return $this->resolveStubPath('/stubs/cast.stub');\n }", "public function generate()\n {\n return $this->templateStub;\n }", "protected function getStub()\n {\n return realpath(__DIR__ . '/../stubs/Filter.stub');\n }", "protected function getStub()\n {\n return __DIR__.'/stubs/factory.stub';\n }", "protected function getStub()\n {\n return app_path('Core/Stub/HTML/Views/index.stub');\n }", "protected function getStub()\n\t{\n\t\treturn $this->getStubDirectory('Service.stub');\n\t}", "protected function getStub()\n {\n return __DIR__. '/stubs/facade.base.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/stubs/trait.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/../Stubs/RepositoryInterface.stub';\n }", "protected function getStub()\n {\n return __DIR__.'/stubs/LICENSE.stub';\n }", "protected function getStub(): string\n {\n return __DIR__ . '/stubs/filter.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/../Stubs/ServiceInterface.stub';\n }", "protected function getStub()\n {\n return __DIR__ . '/Stubs/ServiceProvider.stub';\n }", "public function getStub()\n\t{\n\t\treturn $this->getStubDirectory('Policy.stub');\n\t}", "protected function getStub()\n {\n return __DIR__.'/stubs/make/request.stub';\n }" ]
[ "0.83577883", "0.81976575", "0.8165961", "0.8129762", "0.80362254", "0.8004043", "0.7957915", "0.79415196", "0.79104775", "0.7873869", "0.786923", "0.7858761", "0.78551805", "0.7849868", "0.78463316", "0.7844067", "0.78299034", "0.7825267", "0.7817042", "0.7811249", "0.77900445", "0.77872264", "0.77837694", "0.7760309", "0.77581644", "0.7754458", "0.77445877", "0.77365917", "0.7732039", "0.7720171", "0.7709344", "0.77078307", "0.7707502", "0.77062076", "0.7699731", "0.7692721", "0.76793903", "0.7678674", "0.76660573", "0.76660573", "0.7661029", "0.76586574", "0.76545906", "0.7647792", "0.7642207", "0.76334095", "0.76285094", "0.7623656", "0.75976866", "0.7591955", "0.7584828", "0.757906", "0.7578946", "0.75774294", "0.7572424", "0.75610656", "0.75471556", "0.75387335", "0.7538311", "0.75273174", "0.75223684", "0.7514447", "0.7509941", "0.750659", "0.75012517", "0.7496333", "0.7490246", "0.74879473", "0.7484044", "0.74791336", "0.7475106", "0.74690765", "0.74296206", "0.7424854", "0.7412223", "0.7403515", "0.73910695", "0.7386576", "0.73790276", "0.73647326", "0.7356742", "0.7351666", "0.73302424", "0.73302424", "0.73129016", "0.73026514", "0.7296533", "0.7286266", "0.72750676", "0.7273454", "0.7264225", "0.7261402", "0.72608393", "0.7242524", "0.72250617", "0.7224597", "0.71739674", "0.7159979", "0.7157228", "0.7153293" ]
0.73188674
84
Get the default namespace for the class.
protected function getDefaultNamespace($rootNamespace) { return $rootNamespace . '\Traits'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultNamespace()\n\t{\n\t\treturn $this->default_namespace;\n\t}", "public function getDefaultNamespace();", "abstract public function getDefaultNameSpace();", "public function getNamespace()\n {\n return $this->getAttribute('metadata.namespace', 'default');\n }", "public function getNamespace($defaultNs) {\n return CLIUtils::readNamespace($this->getOwner(), $defaultNs, 'Enter an optional namespace for the class:');\n }", "public function getClassNamespace() {\n\t\tif ($this->classNamespace === NULL) {\n\t\t\t$this->classNamespace = $this->findClassNamespace();\n\t\t}\n\t\treturn $this->classNamespace;\n\t}", "public function getNamespacedName()\n {\n return get_class();\n }", "private function _getNamespace() {\n $ns = explode('_', get_class($this));\n return $ns[0];\n }", "final protected static function getNamespace() {\r\n $classNameParts = explode('\\\\', get_called_class());\r\n array_pop($classNameParts);\r\n return join('\\\\', $classNameParts);\r\n }", "public function getNamespace()\n {\n return isset($this->namespace) ? $this->namespace : '';\n }", "public function getBaseNamespace()\n {\n return $this->baseNamespace;\n }", "public function getRootNamespace()\n {\n return $this->rootNameSpace;\n }", "public function get_namespace() : string\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return is_null($this->config) ? null : get_class($this->config);\n }", "public function getNamespace()\n {\n $className = $this->testMetaData->getTestClassName();\n $fqdn = $this->testMetaData->getTestFullyQualifiedClassName();\n\n $namespace = str_replace('\\\\'.$className, '', $fqdn);\n\n return $namespace;\n }", "protected function getNamespace()\n {\n $namespace = Container::getInstance()->getNamespace();\n return rtrim($namespace, '\\\\');\n }", "protected function getDefaultNamespace($rootNamespace) //phpcs:ignore\n {\n return $rootNamespace.'\\Services';\n }", "protected function getNamespace()\n {\n return $this->wrapped->getNamespace();\n }", "protected function getNamespace()\n {\n $reflectionClass = new \\ReflectionClass(get_class($this));\n return dirname($reflectionClass->getNamespaceName());\n }", "protected function getDefaultNamespaces()\n {\n $resourceBundles = new LegacyBasicBundles();\n return $resourceBundles->getPackageNamespaces();\n }", "public static function getNamespace($class)\n {\n return static::splitClassName($class)[0];\n }", "public function getNamespace(): string\n {\n return $this->namespace;\n }", "public function getNamespace(): string\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n $this->_init();\n return unserialize($this->_list_cache->getNamespace());\n }", "public function getNamespace()\n {\n return null;\n }", "public function getNamespace();", "public function getNamespace();", "public function getNamespace();", "protected function getNamespaceReplacement()\n {\n if ($this->runningAsRootDir) {\n return Str::beforeLast($this->buildClassName, '\\\\');\n }\n\n $namespace = $this->theme->getClassNamespace();\n\n return str_replace('\\\\\\\\', '\\\\', $namespace);\n }", "private function getNamespaceName() {\n if ($this->getTypeName() != 'n_NAMESPACE') {\n return null;\n }\n\n $namespace_name = $this->getChildByIndex(0);\n if ($namespace_name->getTypeName() == 'n_EMPTY') {\n return null;\n }\n\n return '\\\\'.$namespace_name->getConcreteString();\n }", "public static function getRootNamespace()\n {\n $config = Config::getInstance();\n\n if ($config->has(['namespaces', 'root'])) {\n return $config->namespaces->root;\n }\n\n return 'App';\n }", "protected function getDefaultClassToExtend()\n {\n $base = $this->getControllerPath();\n\n return Helpers::fixNamespace(Helpers::getAppNamespace($base, 'Controller'));\n }", "public function getNamespace(): string;", "public function getNamespaceName();", "public function getNamespace()\n {\n return $this->_namespace;\n }", "public function getNamespace() {\n\t\treturn $this->config->get('namespace');\n\t}", "public function getNamespace()\n {\n return $this->getNamespaceName();\n }", "public function getNamespace() {\n\t\treturn $this->rootNS;\n\t}", "public function getNamespace()\n\t{\n\t\treturn $this->nameSpace;\n\t}", "public function getNamespace()\n {\n // TODO: Implement getNamespace() method.\n }", "public function getNamespace()\r\n {\r\n return $this->namespace;\r\n }", "public function getNamespace()\n\t{\n\t\treturn $this->_namespace;\n\t}", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "public function getNamespace()\n {\n return $this->namespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace . '\\Services';\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace . '\\Services';\n }", "public function getNamespace()\r\n {\r\n return $this->namespace;\r\n }", "public function getNamespace() {\n return $this->namespace;\n }", "public function getNamespace()\n {\n if (null === $this->reflected) {\n $this->reflected = new \\ReflectionObject($this);\n }\n\n return $this->reflected->getNamespaceName();\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $this->repository->getModuleNamespace($this->module);\n }", "function getNamespace ();", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.'\\Service';\n }", "public function getNamespace() {\n $namespaces = $this\n ->getTree()\n ->getRootNode()\n ->selectDescendantsOfType('n_NAMESPACE')\n ->getRawNodes();\n\n foreach (array_reverse($namespaces) as $namespace) {\n if ($namespace->isAfter($this)) {\n continue;\n }\n\n $body = $namespace->getChildByIndex(1);\n if ($body->getTypeName() != 'n_EMPTY') {\n if (!$body->containsDescendant($this)) {\n continue;\n }\n }\n\n return $namespace->getNamespaceName();\n }\n\n return null;\n }", "public function rootNamespace()\n {\n return $this->laravel->getNamespace();\n }", "public function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.$this->namespace;\n }", "function getNamespace();", "function getNamespace();", "protected function getDefaultNamespace($rootNamespace): string\n {\n return $rootNamespace.'\\\\Mail';\n }", "public function getElementNamespace(): string\n {\n return $this->class_fqsen->getNamespace() ?: '\\\\';\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.'\\Lib\\Factories';\n }", "public function getNamespace()\n {\n if (is_null($this->_namespace)) {\n $namespace = $this->getConfiguration()\n ->get('router.namespace', 'Controllers');\n if (isset($this->_params['namespace'])) {\n $namespace = $this->_params['namespace'];\n }\n $this->_namespace = trim($namespace, '\\\\');\n }\n return $this->_namespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.'\\\\Jobs';\n }", "public function getNamespace()\r\n {\r\n return $this->Namespace;\r\n }", "protected function findClassNamespace() {\n\t\t$matches = array();\n\t\tpreg_match(self::PATTERN_NAMESPACE_DECLARATION, $this->originalClassCode, $matches);\n\t\treturn $matches['namespace'];\n\t}", "public function getNamespaceName() {\n\n\t\treturn $this->_namespace;\n\t}", "public function classNamespace() {}", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace;\n }", "public function getNamespace(){\n \n return $this->namespace;\n \n }", "public function getNamespace(): string\n {\n return (string) SocketIORouter::getNamespace(static::class);\n }", "function getNameSpace() { return $this->_namespace; }", "public function getContainerNamespace();", "public function getNamespace(){\n //base namepace\n $namespace = 'App\\Controllers\\\\';\n //if the namepace is defined\n if(array_key_exists('namespace', $this->params)){\n $namespace .= $this->params['namespace'] . '\\\\';\n }\n return $namespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n\t{\n\t\treturn $rootNamespace;\n\t}", "public function getNamespaceName()\n\t{\n\t\t$pos = strrpos($this->name, '\\\\');\n\t\treturn false === $pos ? '' : substr($this->name, 0, $pos);\n\t}", "protected function getDefaultNamespace($rootNamespace)\n {\n if ($this->option('view')) {\n return \"{$rootNamespace}\\Definitions\\View\";\n };\n\n return \"{$rootNamespace}\\Definitions\\Table\";\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.'\\Http\\Services';\n }", "public function getFullNamespace(): string\n {\n if (empty($this->childNamespace)) {\n return $this->namespace;\n }\n\n return $this->namespace . '\\\\' . $this->childNamespace;\n }", "public abstract function getApplicationNamespace();", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.'\\Contracts';\n }", "public static function view_namespace()\n\t{\n\t\treturn __NAMESPACE__;\t\n\t}", "protected static function getNamespace()\n {\n $namespace = 'App\\Controllers\\\\';\n if (array_key_exists('namespace', self::$params)) {\n $namespace .= self::$params['namespace'] . '\\\\';\n } \n return $namespace;\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace . '\\Http\\Responder';\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.config('ac-developers.repository.generator.namespaces.services', '\\Services');\n }", "abstract protected function namespace(): string;", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.'\\Lib\\Data';\n }", "public static function getBaseNamespace($class)\n {\n if (is_object($class)) $class = get_class($class);\n $list = explode('\\\\', $class);\n return current($list);\n }", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.'\\Http';\n }" ]
[ "0.8448936", "0.821764", "0.7800281", "0.74542356", "0.74156207", "0.7397914", "0.7362119", "0.7336174", "0.72904134", "0.7272925", "0.723129", "0.72085345", "0.7196747", "0.7127158", "0.7018227", "0.7012884", "0.69916", "0.6979542", "0.69777244", "0.6956813", "0.6936764", "0.6912258", "0.6912258", "0.69056207", "0.68654", "0.6861722", "0.6861722", "0.6861722", "0.6858318", "0.6854727", "0.6854387", "0.6842529", "0.68400055", "0.6813656", "0.6806945", "0.68033427", "0.67967427", "0.6793288", "0.6754474", "0.67399555", "0.6733586", "0.6731292", "0.6723682", "0.6723682", "0.6723682", "0.6723682", "0.6723682", "0.6723682", "0.6723682", "0.6723682", "0.6723682", "0.6723682", "0.67211396", "0.67211396", "0.672033", "0.67066574", "0.66961795", "0.6663625", "0.66297996", "0.6626974", "0.6617549", "0.6615463", "0.65963733", "0.6593061", "0.6593061", "0.65854853", "0.65686876", "0.6566701", "0.6559817", "0.65577304", "0.6557363", "0.6546255", "0.65450746", "0.653927", "0.65368813", "0.65368813", "0.65368813", "0.65368813", "0.65368813", "0.65368813", "0.6536637", "0.6532873", "0.6527016", "0.65192974", "0.6514792", "0.6514162", "0.6510188", "0.64932233", "0.6490978", "0.64795786", "0.64747727", "0.64551157", "0.64396554", "0.6427564", "0.64247316", "0.64170855", "0.6408603", "0.6398796", "0.6396114", "0.6388626" ]
0.64678067
91
sanitize or / and keywords, they are optional anyway and just needed for readability and to decide what is the mutual starting point for boolean logic on the first node level
public function sanitize($s) { # make sentence well formatted: "(A and(B) or C)" -> "(A and (B) or C)" #$s = preg_replace($this->PREPROCESS_OPERATORS1, '$1 $2$5$3 $4', $s); #$s = preg_replace($this->PREPROCESS_OPERATORS2, '$1 $2$5$3 $4', $s); #$s = preg_replace($this->PREPROCESS_OPERATORS3, '$1 $2$5$3 $4', $s); # replace operators with empty space $s = preg_replace($this->OPERATORS, ' ', $s); # prepare to remove exclamation mark, that is used for NOT boolean logic tree $s = preg_replace($this->NOT, ' $1 ', $s); # prepare to remove ^ mark, that is used for XOR boolean logic tree $s = preg_replace($this->XOR, ' $1 ', $s); // prepare to remove + mark, that is used for XAND boolean logic tree $s = preg_replace($this->XAND, ' $1 ', $s); # remove extra double, triple and other longs whitespaces # only single spaces between literals are left # array filter needs to have strlen to keep 0 numerals! return implode(' ', array_filter(explode(' ', $s), 'strlen')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function supportsLogicKeywords(): bool;", "public function isOr();", "function rest_sanitize_boolean($value)\n {\n }", "public static function or_() {\n $result = new qti_variable('single', 'boolean', array('value' => false));\r\n $params = func_get_args();\n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\r\n foreach($params as $param) {\r\n if ($param->value) {\r\n $result->value = true;\r\n return $result;\r\n }\r\n }\r\n return $result;\n }", "function sanitize_bool( $value, $key, array $data ) {\n\tif ( is_bool( $value ) ) {\n\t\treturn $value;\n\t} elseif ( is_numeric( $value ) ) {\n\t\treturn (bool) $value;\n\t} elseif ( is_string( $value ) ) {\n\t\tif ( in_array( strtolower( $value ), array( 'true', 'on', 'yes' ), true ) ) {\n\t\t\treturn true;\n\t\t} elseif ( in_array( strtolower( $value ), array( 'false', 'off', 'no' ), true ) ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\treturn (bool) $value;\n}", "public function checkBooleanFulltextSupport();", "function pseudoTypeFalseAndBool(bool|false $var = false) {}", "protected static function logicalOR(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('OR', $values);\n\t}", "function variant_or($left, $right) {}", "function is_logical($x){\n\t//note blank is interpreted as false\n\tif(in_array(strtolower(trim($x)),array(/*true: */'y','yes','1','true','t', /*false: */'n','no','0','false','f','')))return true;\n}", "static function logicalOr()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalOr', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public function useOr()\n {\n $this->imploder = ' OR ';\n }", "function wpsl_bool_check( $atts ) {\n\n foreach ( $atts as $key => $val ) {\n if ( in_array( $val, array( 'true', '1', 'yes', 'on' ) ) ) {\n $atts[$key] = true;\n } else if ( in_array( $val, array( 'false', '0', 'no', 'off' ) ) ) {\n $atts[$key] = false;\n }\n }\n\n return $atts;\n}", "function rest_is_boolean($maybe_bool)\n {\n }", "function _ting_boost_field_filter($element) {\n return !(empty($element['field_name']) || empty($element['field_value']));\n}", "function filter_query($query) {\n\n\n\n //use string replace to allow our users to use AND as a Boolean search parameter\n //All of our search engines use OR so we do not need to edit our Query to facilitate its use\n //use string replace to allow our users to use NOT as a Boolean search parameter\n $bad = array(\"NOT \", \"AND \", \"'s\", '\"');\n $good = array(\"-\", \"+\", \"\", \"'\");\n $query = str_replace($bad, $good, $query);\n\n return $query;\n}", "public function testOrRule()\n {\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n 'true'\n ), 'or');\n $this->assertTrue($rule->validate());\n\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n 'false'\n ), 'or');\n $this->assertFalse($rule->validate());\n }", "function read_logical($x){\n\t$x=strtolower(trim($x));\n\tif(!is_logical($x))return NULL;\n\t$r=(in_array($x,array(/*true: */'y','yes','1','true','t'))?true:false);\n\treturn $r;\n}", "function is_boolexpression($value) {\n preg_match('/^(([ \\-+><!01])|(&&)|(==)|(\\x7C\\x7C)|(!=)|(<=)|(>=)|(true)||(false))+$/i', $value, $result);\n\n return is_array($result) && !is_empty($result);\n }", "function sanitization() {\n genesis_add_option_filter( 'one_zero', GENESIS_SIMPLE_SETTINGS_FIELD,\n array(\n\n ) );\n genesis_add_option_filter( 'no_html', GENESIS_SIMPLE_SETTINGS_FIELD,\n array(\n\n ) );\n }", "function bool($val,$str=false){\n if(is_string($val)) {\n $val=strtolower($val);\n $val=$val && $val!=\"false\" && $val !=\"no\" && $val !=\"n\" && $val !=\"f\" && $val !=\"off\";\n }else $val=(bool)$val;\n return $str?($val?\"true\":\"false\"):$val;\n}", "public static function and_() {\n $result = new qti_variable('single', 'boolean', array('value' => true));\n $params = func_get_args();\n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\r\n foreach($params as $param) {\n if (!$param->value) {\n $result->value = false;\n return $result;\n }\n }\n return $result;\n }", "public function booleanLiteral(){\n try {\n // Sparql11query.g:578:3: ( TRUE | FALSE ) \n // Sparql11query.g: \n {\n if ( ($this->input->LA(1)>=$this->getToken('TRUE') && $this->input->LA(1)<=$this->getToken('FALSE')) ) {\n $this->input->consume();\n $this->state->errorRecovery=false;\n }\n else {\n $mse = new MismatchedSetException(null,$this->input);\n throw $mse;\n }\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "function iscivilstatvalid($str = null){\n if ($str) {\n if (!$str ==\"married\" || !$str == \"single\" || !$str == \"widowed\" || !$str == \"separated\"|| !$str == \"separated\") {\n echo \"input is invalid civil status<br>\";\n return true;\n }else\n echo \"is valid<br>\";\n return false;\n }\n}", "public function booleanAndTerm($term){\n\t\t$term = preg_replace(\"/[^ a-zA-Z0-9]/\", '', $term);\n\t\t\n\t\t$term = mysql_real_escape_string(trim($term));\n\t\t$terms = explode(' ', $term);\n\t\t$return = '';\n\t\tforeach($terms as $word){\n\t\t\tif(strlen($word)>2){\n\t\t\t\t// if has a plural then try without\n\t\t\t\tif(substr($word,-1) == 's'){\n\t\t\t\t\t$return .= '+(>' . $word. ' <' . substr($word,0,-1) . '*) ';\n\t\t\t\t}else{\n\t\t\t\t// if singular then try with an s\n\t\t\t\t\t$return .= '+(>' . $word . ' <' . $word . 's) ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//echo $return;\n\t\t//echo ' --> ';\n\t\treturn $return;\n\t}", "public function containsOr()\n\t{\n\t\t$args = (new static(func_get_args()))->flattenIt();\n\n\t\t$found = $args->detect(function($value) {\n\t\t\treturn in_array($value, $this->attributes);\n\t\t});\n\n\t\treturn !is_null($found);\n\t}", "function yy_r146(){ $this->_retvalue = new Stmt\\Expr('or', $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor); }", "public function conditionalOrExpression(){\n try {\n // Sparql11query.g:382:3: ( conditionalAndExpression ( OR conditionalAndExpression )* ) \n // Sparql11query.g:383:3: conditionalAndExpression ( OR conditionalAndExpression )* \n {\n $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1301);\n $this->conditionalAndExpression();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:383:28: ( OR conditionalAndExpression )* \n //loop48:\n do {\n $alt48=2;\n $LA48_0 = $this->input->LA(1);\n\n if ( ($LA48_0==$this->getToken('OR')) ) {\n $alt48=1;\n }\n\n\n switch ($alt48) {\n \tcase 1 :\n \t // Sparql11query.g:383:29: OR conditionalAndExpression \n \t {\n \t $this->match($this->input,$this->getToken('OR'),self::$FOLLOW_OR_in_conditionalOrExpression1304); \n \t $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1306);\n \t $this->conditionalAndExpression();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop48;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "function to_boolean ($value) {\n\tif (\n\n\t\t// Falsy\n\t\t!$value or\n\n\t\t// Empty\n\t\tempty($value) or\n\n\t\t// Zero or less\n\t\t(is_numeric($value) and strval($value) <= 0) or\n\n\t\t// Keyword\n\t\t(is_string($value) and in_array(trim(strtolower($value)), array('null', 'nul', 'nil', 'false')))\n\n\t) {\n\t\treturn false;\n\t} else {\n\t\treturn true;\n\t}\n}", "private static function filter_args( $arg ) {\n\t\t\tif ( empty( $arg ) && $arg !== false ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}", "public function isSpecial();", "private function fixTrueFalse(&$value, $key) {\r\n if ($value == 'false') {\r\n \t$value = false;\r\n } elseif ($value == 'true') {\r\n $value = true;\r\n }\r\n }", "function isTruthy( $input )\n{\n if ( empty( $input ) ) return FALSE;\n\n $isTrue = FALSE;\n\n if ( is_string( $input ) ) $input = strtolower( $input );\n\n $synonyms = array\n (\n 'ok', TRUE, 'true', 'yes', 'on', 1\n );\n\n if (in_array( $input, $synonyms ) ) $isTrue = TRUE;\n\n return $isTrue;\n}", "abstract public function escapeBoolean($bool);", "protected static function logicalAND(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('AND', $values);\n\t}", "function get_boolean($str)\n{\n $str = strtolower($str);\n if (in_array($str, array('false', '0', 'no', 'nein', ''), TRUE))\n return FALSE;\n else\n return TRUE;\n}", "function themeslug_sanitize_checkbox( $checked ) {\r\n // Boolean check.\r\n return ( ( isset( $checked ) && true == $checked ) ? true : false );\r\n}", "public function termsAndConditionAccpeted()\n\t{\n\n\t}", "private function validate_read_terms($value)\n\t{\n\t\t// valid value is 'true'\n\t\treturn ($value == 'true' || $value == 'on') ? 1 : 0;\n\t}", "public function isAnd();", "function validFood($food)\n{\n return !empty($food) && ctype_alpha($food);\n}", "protected function removeStatementBoolean($value): string\n {\n return preg_replace('/and |or /', '', $value, 1);\n }", "function isNoScriptDescription($text)\n{\n $allowed = array('.','=','-','+', '_',' ','\"',\"'\",'[','(',']',')','$',':','%','!','/','?','*','&','@','|'); // you can add here more value, you want to allow.\n if($text == \"\")\n\t{\n\t\t return TRUE;\n\t}\n\telseif(ctype_alnum(str_replace($allowed,'', $text ))) {\n \treturn TRUE;\n } else {\n\t\treturn FALSE;\n }\n}", "function validate($comment, $words) \n {\n foreach($words as $word) \n {\n if (strpos(strtolower($comment), $word) !== false) \n {\n $prohibited = true; \n break;\n } \n else \n {\n $prohibited = false;\n }\n }\n return $prohibited; \n }", "protected function removeLeadingBoolean(string $value)\n {\n return preg_replace('/and |or /i', '', $value, 1);\n }", "function pseudoTypeFalse(false $var = false) {}", "public static function static_logicalOr($a = null, $b = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function checkConditionSyntax($condition){\n\t\tif($condition[count($condition)-1] == \"\")\n\t\t\t$condition = array_slice($condition, 0, count($condition)-1);\n\t\tfor($i = 0; $i < count($condition); $i++){\n\t\t\tif($condition[$i] == '!'){\n\t\t\t\tif($i != 0 && ($condition[$i-1] == ')' || $condition[$i-1] == 'c'))\n\t\t\t\t\treturn false;\n\t\t\t\telseif($i != count($condition)-1 && in_array($condition[$i+1], array(')','&&','||')))\n\t\t\t\t\treturn false;\n\t\t\t\telse $condition[$i] = \"\";\n\t\t\t}\n\t\t}\n\t\t$condition = array_filter($condition, 'isNotEmpty');\n\t\t$condition = array_values($condition);\n\n\t\tfor($i = 0; $i < count($condition); $i++){\n\t\t\tif($condition[$i] == '('){\n\t\t\t\tif($i != 0 && $condition[$i-1] == 'c')\n\t\t\t\t\treturn false;\n\t\t\t\telseif($i != count($condition)-1 && ($condition[$i+1] == '&&' || $condition[$i+1] == '||' || $condition[$i+1] == ')'))\n\t\t\t\t\treturn false;\n\t\t\t\telse{\n\t\t\t\t\t$j = $i+1;\n\t\t\t\t\tfor(; $j < count($condition); $j++){\n\t\t\t\t\t\tif($condition[$j] == ')'){\n\t\t\t\t\t\t\tif($condition[$j-1] == '&&' || $condition[$j-1] == '||')\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\telseif($j != count($condition)-1 && ($condition[$j+1] == 'c' || $condition[$j+1] == '('))\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t$condition[$i] = $condition[$j] = \"\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($j == count($condition))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($condition[$i] == ')')\n\t\t\t\treturn false;\n\t\t}\n\t\t$condition = array_filter($condition, 'isNotEmpty');\n\t\t$condition = array_values($condition);\n\n\t\tfor($i = 0; $i < count($condition); $i++){\n\t\t\tif(($i == 0 || $i == count($condition)-1) && $condition[$i] != 'c')\n\t\t\t\treturn false;\n\t\t\telseif($i % 2 == 1 && $condition[$i] == 'c')\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "function stage_string_to_bool($string)\n{\n return is_bool($string) ? $string : ( 'yes' === $string || 1 === $string || 'true' === $string || '1' === $string );\n}", "function variant_and($left, $right) {}", "function convert_highlite_words($words = \"\")\n\t{\n\t\tglobal $std;\n\t\t$ibforums = Ibf::app();\n\n\t\t$words = $std->clean_value(trim(urldecode($words)));\n\n\t\t// Convert booleans to something easy to match next time around\n\n\t\t$words = preg_replace(\"/\\s+(and|or)(\\s+|$)/i\", \",\\\\1,\", $words);\n\n\t\t// Convert spaces to plus signs\n\n\t\t$words = preg_replace(\"/\\s/\", \"+\", $words);\n\n\t\treturn $words;\n\t}", "function rest_get_allowed_schema_keywords()\n {\n }", "function validFood($food)\n {\n /*\n if (empty($food))\n return false;\n else\n return true;\n */\n\n return !empty(trim($food)) && ctype_alpha($food);\n }", "function get_bool_or_null($value)\r\n{\r\n $temp = null ;\r\n\r\n if(is_null($value)){\r\n\r\n $temp .= \"<code style='font_size: 9px ; color:#3465a4 '>\" . PHP_EOL ;\r\n \r\n $temp .= 'null' . PHP_EOL;\r\n \r\n $temp .= \"</code><br>\"; \r\n\r\n }else if(is_bool($value)){\r\n $temp .= '<code style=\"font_size: 10px\">boolean </code>';\r\n \r\n $temp .= \"<code style='font_size: 9px ; color:#75507b '>\" . PHP_EOL ;\r\n \r\n $temp .= $value == true ? 'true' : 'false' . PHP_EOL;\r\n \r\n $temp .= \"</code><br>\";\r\n \r\n }\r\n\r\n return $temp ;\r\n}", "private function filter_settings(&$value, $key)\n {\n if ($value === TRUE OR $value === FALSE)\n {\n $value = ($value === TRUE) ? 'true' : 'false';\n }\n }", "function bool($value)\n{\n return ! in_array(strtolower($value), ['no', 'false', '0', '', '-1']);\n}", "function str_bool($string) {\n if (strtolower($string) === 'true') {\n return true;\n } elseif (strtolower($string) === 'false') {\n return false;\n }\n\n return $string;\n}", "public function orConditions($data = array()) {\r\n $filter = $data['filter'];\r\n $condition = array(\r\n 'OR' => array(\r\n $this->alias . '.title LIKE' => '%' . $filter . '%',\r\n $this->alias . '.body LIKE' => '%' . $filter . '%',\r\n )\r\n );\r\n return $condition;\r\n }", "public function is_met();", "private function _validate_keyword(&$option_data)\n\t{\n\t\tif ($option_data['key'] == 'keyword')\n\t\t{\n\t\t\t// Explode value, and group quoted items\n\t\t\t//preg_match_all('/\"(?:\\\\\\\\.|[^\\\\\\\\\"])*\"|\\S+/', $option_data['value'], $keywords);\n\t\t\t$keywords = str_getcsv($option_data['value']);\n\t\t\t$keywords = array_map('trim', $keywords);\n\n\t\t\t$found = array();\n\t\t\t$stops = Twitter_Functions::stop_words();\n\n\t\t\tforeach ($keywords as $key => $value)\n\t\t\t{\n\t\t\t\tif (in_array($value, $stops))\n\t\t\t\t{\n\t\t\t\t\t$found[] = $value;\n\t\t\t\t}\n\t\t\t\t$option_data['quota_usage'] += 1;\n\t\t\t}\n\n\t\t\tif (count($found))\n\t\t\t{\n\t\t\t\t$exception_message = __('Invalid twitter keywords - :keywords',\n\t\t\t\t\t\tarray(':keywords' => implode(', ', $found)));\n\t\t\t\tthrow new Swiftriver_Exception_Channel_Option($exception_message);\n\t\t\t}\n\t\t}\n\t}", "function validate_help(){ \n\t\tif($this->help){\n\t\t\tif(isset($this->input)|| isset($this->output) || isset($this->param_root) || isset($this->query) || isset($this->qf) || $this->n){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->help();\n\t\t\t}\n\t\t}\n\t\treturn true; \n }", "public static function parse($globals){\n\t\t$scanner = $globals->curr_pkg->scanner;\n\t\t$r = self::e3($globals);\n\t\twhile( $scanner->sym === Symbol::$sym_or2 ){\n\t\t\t$scanner->readSym();\n\t\t\t$r = $r->booleanOr($globals->logger, $scanner->here(), self::e3($globals), \"or\");\n\t\t}\n\t\treturn $r;\n\t}", "public function scrubBool(bool $data) : bool;", "function filter_words( $wordsInTisheet, $wordsToFilter, $andOperator )\n {\n $diff = array_diff( $wordsInTisheet, $wordsToFilter );\n\n if ( $andOperator )\n {\n if ( self::and_criteria_met( $diff, $wordsInTisheet, $wordsToFilter ) )\n return true;\n\n return false;\n }\n else \n {\n if ( self::or_criteria_met( $diff, $wordsInTisheet ) )\n return true;\n\n return false;\n }\n\n return false;\n }", "function influencer_sanitize_checkbox( $checked ){\r\n // Boolean check.\r\n return ( ( isset( $checked ) && true == $checked ) ? true : false );\r\n}", "public function testBooleanAttribute() : void\n {\n $string = $this->basicSanitizer->sanitize('<a href=\"#\" download=\"true\">Link</a>');\n $this->assertEquals('<a href=\"#\" download=\"\">Link</a>', $string);\n }", "function emptyInputLogin($emailadres, $wachtwoord) {\n\tif (empty($emailadres) || empty($wachtwoord)) {\n\t\t$result = true;\n\t} else {\n\t\t$result = false;\n\t}\n\treturn $result;\n}", "public function orElse($alternative);", "function isSpecialValue($value)\n {\n return strlen($value)>3 && $value[0]=='!' && $value[1]=='!' && $value[2]=='!';\n }", "public function isDoNotSpellCheckSet() {}", "function _o( $word )\n {\n if ( strlen($word) >= 3 ) {\n if ( $this->is_consonant($word, -1) && !$this->is_consonant($word, -2) &&\n $this->is_consonant($word, -3) ) {\n\t\t $last_char = substr($word, -1);\n\t\t if ( $last_char == 'w' || $last_char == 'x' || $last_char == 'y' ) {\n\t\t return false;\n\t\t }\n return true;\n }\n }\n return false;\n }", "function validate_boolean($bool){\n if ($bool == \"\" ) { return true ; }\n $bool = strtolower($bool);\n\n $true = array(\"y\",\"yes\",\"t\",\"true\",\"n\",\"no\",\"f\",\"false\");\n if ( in_array($bool, $true ) ) {\n return true ;\n }\n\n if ( is_bool($bool) ) {\n return true ;\n }\n else { \n return false ;\n }\n}", "abstract public function getOrElse($else);", "function validFood($food)\r\n {\r\n // $validFoods = array(\"a\", \"b\", \"c\");\r\n\r\n\r\n return !empty($food) && ctype_alpha($food);\r\n }", "function isNoScriptWithNull($text)\n{\n $allowed = array('.','=','-','+', '_',' ','\"',\"'\",'[','(',']',')','$',':','%','!','/','?','*','&','@','|'); // you can add here more value, you want to allow.\n\tif($text == \"\")\n\t{\n\t\t return TRUE;\n\t}\n elseif(ctype_alnum(str_replace($allowed, '', $text ))) {\n return TRUE;\n } else {\n return FALSE;\n }\n}", "function validate_capture_phrases($keywords) {\n $illegal_chars = array( \"\\t\", \"\\n\", \";\", \"(\", \")\" );\n foreach ($illegal_chars as $c) {\n if (strpos($keywords, $c) !== FALSE) {\n return FALSE;\n }\n }\n return TRUE;\n}", "function willYou($young, $beautiful, $loved) {\n if ($young && $beautiful && $loved) {\n return false;\n } elseif ($loved && (!$young || !$beautiful)) {\n return true;\n } elseif (!$loved && !$young && !$beautiful) {\n return false;\n } elseif (!$loved && $young && $beautiful) {\n return true;\n } else {\n return false;\n }\n}", "private function process_required($value)\n {\n return (bool) ($value != \"\" || $value === 0);\n }", "public function or_not_group_start()\n\t{\n\t\treturn $this->group_start('NOT ', 'OR ');\n\t}", "abstract public function unescapeBoolean($bool);", "function wp_validate_boolean($value)\n {\n }", "private function prepareWhereTermsCondition($term)\n {\n $boolOr = new BoolQuery();\n $terms = new Terms();\n list($attribute, $value) = array_pad($term, 2, null);\n\n $terms->setTerms($attribute, $value);\n $boolOr->addShould($terms);\n\n $this->filter->addMust($boolOr);\n }", "public function testFilterKeywords()\n {\n $this->visit('/properties')\n ->type('the', '#keywords')\n ->press('Update results')\n ->see('Shack in the desert')\n ->see('Victorian townhouse');\n $this->notSee('Five bedroom mill conversion');\n }", "protected function _match()\n {\n // SMART/TNT\n $smart = $this->_smart();\n if( $this->name == 'smart' ) return in_array($this->args, $smart) ? true : false;\n // GLOBE/TM\n $globe = $this->_globe();\n if( $this->name == 'globe' ) return in_array($this->args, $globe) ? true : false;\n // SUN\n $sun = $this->_sun();\n if( $this->name == 'sun' ) return in_array($this->args, $sun) ? true : false;\n }", "function ozh_dlb_skip_if_bot() {\n return ozh_dlb_is_bot();\n // if anything but false is returned, functions using the two shunt_* filters will be short-circuited\n}", "function mTRUE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$TRUE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:281:3: ( 'true' ) \n // Tokenizer11.g:282:3: 'true' \n {\n $this->matchString(\"true\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function check_input($data){\n if(isset($data)){\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n $data = strip_tags($data);\n $data = htmlentities($data);\n return $data;\n }\n}", "public function valid()\n {\n if ($this->container['priority'] === null) {\n return false;\n }\n if ($this->container['type'] === null) {\n return false;\n }\n if ($this->container['stop_if_true'] === null) {\n return false;\n }\n if ($this->container['above_average'] === null) {\n return false;\n }\n if ($this->container['color_scale'] === null) {\n return false;\n }\n if ($this->container['data_bar'] === null) {\n return false;\n }\n if ($this->container['formula1'] === null) {\n return false;\n }\n if ($this->container['formula2'] === null) {\n return false;\n }\n if ($this->container['icon_set'] === null) {\n return false;\n }\n if ($this->container['operator'] === null) {\n return false;\n }\n if ($this->container['style'] === null) {\n return false;\n }\n if ($this->container['text'] === null) {\n return false;\n }\n if ($this->container['time_period'] === null) {\n return false;\n }\n if ($this->container['top10'] === null) {\n return false;\n }\n if ($this->container['link'] === null) {\n return false;\n }\n return true;\n }", "static function getrules_deny_bad_query_strings()\r\n {\r\n global $aio_wp_security;\r\n $rules = '';\r\n if ($aio_wp_security->configs->get_value('aiowps_deny_bad_query_strings') == '1') {\r\n $rules .= AIOWPSecurity_Utility_Htaccess::$deny_bad_query_strings_marker_start . PHP_EOL; //Add feature marker start\r\n $rules .= '<IfModule mod_rewrite.c>' . PHP_EOL;\r\n $rules .= 'RewriteEngine On' . PHP_EOL;\r\n //$rules .= 'RewriteCond %{QUERY_STRING} ../ [NC,OR]' . PHP_EOL;\r\n //$rules .= 'RewriteCond %{QUERY_STRING} boot.ini [NC,OR]' . PHP_EOL;\r\n //$rules .= 'RewriteCond %{QUERY_STRING} tag= [NC,OR]' . PHP_EOL;\r\n $rules .= 'RewriteCond %{QUERY_STRING} ftp: [NC,OR]' . PHP_EOL;\r\n $rules .= 'RewriteCond %{QUERY_STRING} http: [NC,OR]' . PHP_EOL;\r\n $rules .= 'RewriteCond %{QUERY_STRING} https: [NC,OR]' . PHP_EOL;\r\n $rules .= 'RewriteCond %{QUERY_STRING} mosConfig [NC,OR]' . PHP_EOL;\r\n //$rules .= 'RewriteCond %{QUERY_STRING} ^.*([|]|(|)||\\'|\"|;|?|*).* [NC,OR]' . PHP_EOL;\r\n //$rules .= 'RewriteCond %{QUERY_STRING} ^.*(%22|%27|%3C|%3E|%5C|%7B|%7C).* [NC,OR]' . PHP_EOL;\r\n //$rules .= 'RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F|127.0).* [NC,OR]' . PHP_EOL;\r\n $rules .= 'RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]' . PHP_EOL;\r\n $rules .= 'RewriteCond %{QUERY_STRING} (\\;|\\'|\\\"|%22).*(request|insert|union|declare|drop) [NC]' . PHP_EOL;\r\n $rules .= 'RewriteRule ^(.*)$ - [F,L]' . PHP_EOL;\r\n $rules .= '</IfModule>' . PHP_EOL;\r\n $rules .= AIOWPSecurity_Utility_Htaccess::$deny_bad_query_strings_marker_end . PHP_EOL; //Add feature marker end\r\n }\r\n\r\n return $rules;\r\n }", "public function globalStringConditionMatchesEmptyRegularExpression() {}", "public function globalStringConditionMatchesEmptyRegularExpression() {}", "public function checkKeyWord(){\n if(trim($this->keyword) == '') return false;\n return 1;\n }", "function bool2str($data)\n {\n TRUE === $data && $data = 'true';\n FALSE === $data && $data = 'false';\n return $data;\n }", "function validate_post($data)\n\t{\n\t\t/* Validating the hostname, the database name and the username. The password is optional. */\n\t\treturn !empty($data['db_host']) && !empty($data['db_username']) && !empty($data['db_name']) && !empty($data['site_url']);\n\t}", "public function orNull();", "function either_param_string($name, $default = false)\n{\n $ret = __param(array_merge($_POST, $_GET), $name, $default);\n if ($ret === null) {\n return null;\n }\n\n if ($ret === $default) {\n if ($default === null) {\n return null;\n }\n\n return $ret;\n }\n\n if (strpos($ret, ':') !== false && function_exists('cms_url_decode_post_process')) {\n $ret = cms_url_decode_post_process($ret);\n }\n\n require_code('input_filter');\n check_input_field_string($name, $ret, true);\n\n return $ret;\n}", "function wp_check_term_meta_support_prefilter($check)\n {\n }", "function issetForbiddenWords($text = '', $forbidden = []) {\r\n if (count($forbidden)) { // not empty array\r\n foreach ($forbidden as $fWord) {\r\n if (strpos($text, $fWord) !== false) { // looking for every word in the text\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n}", "function checkType($instruction)\n{ // INSTRUKCE S JEDNIM ARGUMENTEM\n if (count($instruction) == 2)\n {\n // kontrola int\n if (preg_match('/^int@.*$/', strtolower($instruction[1])))\n {\n if ((preg_match('/^int@[-+]?\\d+$/', ($instruction[1]))))\n {\n $first_arg = \"int\";\n paramsValidateOne($instruction, $first_arg);\n $instruction[1] = ltrim(($instruction[1]),\"int@\");\n echo \" <arg1 type=\\\"int\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n // kontrola bool\n else if (preg_match('/^bool@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^bool@true$/', ($instruction[1])))\n {\n $first_arg = \"bool_t\";\n paramsValidateOne($instruction, $first_arg);\n echo \" <arg1 type=\\\"bool\\\">true</arg1>\\n\";\n }\n else if (preg_match('/^bool@false$/', ($instruction[1])))\n {\n $first_arg = \"bool_f\";\n paramsValidateOne($instruction, $first_arg);\n echo \" <arg1 type=\\\"bool\\\">false</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n // kontrola string\n else if (preg_match('/^string@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^^string@(([a-zA-Z\\x{0021}\\x{0022}\\x{0024}-\\x{005B}\\x{005D}-\\x{FFFF}])|(\\\\\\\\[0-9][0-9][0-9]))*$/', ($instruction[1])))\n {\n $first_arg = \"string\";\n paramsValidateOne($instruction, $first_arg);\n $instruction[1] = substr(($instruction[1]),7);\n $instruction[1] = preg_replace('/&/', \"&amp;\", $instruction[1]);\n $instruction[1] = preg_replace('/</', \"&lt;\", $instruction[1]);\n $instruction[1] = preg_replace('/>/', \"&gt;\", $instruction[1]);\n echo \" <arg1 type=\\\"string\\\">{$instruction[1]}</arg1>\\n\";\n }\n else if (preg_match('/^string@[^\\u0000-\\u007F]+/', ($instruction[1])))\n {\n $first_arg = \"string\";\n paramsValidateOne($instruction, $first_arg);\n echo \" <arg1 type=\\\"string\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n // kontrola type\n else if (preg_match('/^(int|bool|string)$/', ($instruction[1])))\n {\n $first_arg = \"type\";\n paramsValidateOne($instruction, $first_arg);\n echo \" <arg1 type=\\\"type\\\">{$instruction[1]}</arg1>\\n\";\n }\n // kontrola var\n else if ((preg_match('/^(GF|LF|TF)@.*$/', strtoupper($instruction[1]))))\n {\n if (preg_match('/^(GF|LF|TF)@([[:alpha:]]|(_|-|\\$|&|\\?|!|%|\\*))([[:alnum:]]|(_|-|\\$|&|\\?|!|%|\\*))*/', ($instruction[1])))\n {\n $first_arg = \"var\";\n paramsValidateOne($instruction, $first_arg);\n $instruction[1] = preg_replace('/&/', \"&amp;\", $instruction[1]);\n $instruction[1] = preg_replace('/</', \"&lt;\", $instruction[1]);\n $instruction[1] = preg_replace('/>/', \"&gt;\", $instruction[1]);\n echo \" <arg1 type=\\\"var\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n // kontrola nil\n else if (preg_match('/^nil@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^nil@nil$/', ($instruction[1])))\n {\n $first_arg = \"nil\";\n paramsValidateOne($instruction, $first_arg);\n $instruction[1] = substr(($instruction[1]),4);\n echo \" <arg1 type=\\\"nil\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil$/', strtolower($instruction[1])))\n {\n Err();\n }\n // ostatni ...@neco filtrovat jako chybu\n else if (preg_match('/[[:alnum:]]@.*$/', ($instruction[1])))\n {\n Err();\n }\n // kontrola label\n else if (preg_match('/^([[:alpha:]]|(_|-|\\$|&|%|\\*))((_|-|\\$|&|%|\\*)|[[:alnum:]])*/', ($instruction[1])))\n {\n $first_arg = \"label\";\n paramsValidateOne($instruction, $first_arg);\n echo \" <arg1 type=\\\"label\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n\n else if (count($instruction) == 3)\n { // INSTRUKCE S DVEMA ARGUMENTY\n //////////////////////////////////// prvni argument instrukce /////////////////////////////////////////////////////\n if (preg_match('/^int@.*$/', strtolower($instruction[1])))\n {\n if ((preg_match('/^int@[-+]?\\d+$/', ($instruction[1]))))\n {\n $first_arg = \"int\";\n $instruction[1] = ltrim(($instruction[1]),\"int@\");\n echo \" <arg1 type=\\\"int\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^bool@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^bool@true$/', ($instruction[1])))\n {\n $first_arg = \"bool_t\";\n echo \" <arg1 type=\\\"bool\\\">true</arg1>\\n\";\n }\n else if (preg_match('/^bool@false$/', ($instruction[1])))\n {\n $first_arg = \"bool_f\";\n echo \" <arg1 type=\\\"bool\\\">false</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^string@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^^string@(([a-zA-Z\\x{0021}\\x{0022}\\x{0024}-\\x{005B}\\x{005D}-\\x{FFFF}])|(\\\\\\\\[0-9][0-9][0-9]))*$/', ($instruction[1])))\n {\n $first_arg = \"string\";\n $instruction[1] = substr(($instruction[1]),7);\n $instruction[1] = preg_replace('/&/', \"&amp;\", $instruction[1]);\n $instruction[1] = preg_replace('/</', \"&lt;\", $instruction[1]);\n $instruction[1] = preg_replace('/>/', \"&gt;\", $instruction[1]);\n echo \" <arg1 type=\\\"string\\\">{$instruction[1]}</arg1>\\n\";\n }\n else if (preg_match('/^string@[^\\u0000-\\u007F]+/', ($instruction[1])))\n {\n $first_arg = \"string\";\n echo \" <arg1 type=\\\"string\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^(int|bool|string)$/', ($instruction[1])))\n {\n $first_arg = \"type\";\n echo \" <arg1 type=\\\"type\\\">{$instruction[1]}</arg1>\\n\";\n }\n else if ((preg_match('/^(GF|LF|TF)@.*$/', strtoupper($instruction[1]))))\n {\n if (preg_match('/^(GF|LF|TF)@([[:alpha:]]|(_|-|\\$|&|\\?|!|%|\\*))([[:alnum:]]|(_|-|\\$|&|\\?|!|%|\\*))*/', ($instruction[1])))\n {\n $first_arg = \"var\";\n $instruction[1] = preg_replace('/&/', \"&amp;\", $instruction[1]);\n $instruction[1] = preg_replace('/</', \"&lt;\", $instruction[1]);\n $instruction[1] = preg_replace('/>/', \"&gt;\", $instruction[1]);\n echo \" <arg1 type=\\\"var\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^nil@nil$/', ($instruction[1])))\n {\n $first_arg = \"nil\";\n $instruction[1] = substr(($instruction[1]),4);\n echo \" <arg1 type=\\\"nil\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil$/', strtolower($instruction[1])))\n {\n Err();\n }\n else if (preg_match('/[[:alnum:]]@.*$/', ($instruction[1])))\n {\n Err();\n }\n else if (preg_match('/^([[:alpha:]]|(_|-|\\$|&|%|\\*))((_|-|\\$|&|%|\\*)|[[:alnum:]])*/', ($instruction[1])))\n {\n $first_arg = \"label\";\n echo \" <arg1 type=\\\"label\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n //////////////////////////////////// druhy argument instrukce /////////////////////////////////////////////////////\n if (preg_match('/^int@.*$/', strtolower($instruction[2])))\n {\n if ((preg_match('/^int@[-+]?\\d+$/', ($instruction[2]))))\n {\n $sec_arg = \"int\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n $instruction[2] = ltrim(($instruction[2]),\"int@\");\n echo \" <arg2 type=\\\"int\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^bool@.*$/', strtolower($instruction[2])))\n {\n if (preg_match('/^bool@true$/', ($instruction[2])))\n {\n $sec_arg = \"bool_t\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n echo \" <arg2 type=\\\"bool\\\">true</arg2>\\n\";\n }\n else if (preg_match('/^bool@false$/', ($instruction[2])))\n {\n $sec_arg = \"bool_f\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n echo \" <arg2 type=\\\"bool\\\">false</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^string@.*$/', strtolower($instruction[2])))\n {\n if (preg_match('/^^string@(([a-zA-Z\\x{0021}\\x{0022}\\x{0024}-\\x{005B}\\x{005D}-\\x{FFFF}])|(\\\\\\\\[0-9][0-9][0-9]))*$/', ($instruction[2])))\n {\n $sec_arg = \"string\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n $instruction[2] = substr(($instruction[2]),7);\n $instruction[2] = preg_replace('/&/', \"&amp;\", $instruction[2]);\n $instruction[2] = preg_replace('/</', \"&lt;\", $instruction[2]);\n $instruction[2] = preg_replace('/>/', \"&gt;\", $instruction[2]);\n echo \" <arg2 type=\\\"string\\\">{$instruction[2]}</arg2>\\n\";\n }\n else if (preg_match('/^string@[^\\u0000-\\u007F]+/', ($instruction[2])))\n {\n $sec_arg = \"string\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n echo \" <arg2 type=\\\"string\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^(int|bool|string)$/', ($instruction[2])))\n {\n $sec_arg = \"type\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n echo \" <arg2 type=\\\"type\\\">{$instruction[2]}</arg2>\\n\";\n }\n else if ((preg_match('/^(GF|LF|TF)@.*$/', strtoupper($instruction[2]))))\n {\n if (preg_match('/^(GF|LF|TF)@([[:alpha:]]|(_|-|\\$|&|\\?|!|%|\\*))([[:alnum:]]|(_|-|\\$|&|\\?|!|%|\\*))*/', ($instruction[2])))\n {\n $sec_arg = \"var\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n $instruction[2] = preg_replace('/&/', \"&amp;\", $instruction[2]);\n $instruction[2] = preg_replace('/</', \"&lt;\", $instruction[2]);\n $instruction[2] = preg_replace('/>/', \"&gt;\", $instruction[2]);\n echo \" <arg2 type=\\\"var\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil@.*$/', strtolower($instruction[2])))\n {\n if (preg_match('/^nil@nil$/', ($instruction[2])))\n {\n $sec_arg = \"nil\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n $instruction[2] = substr(($instruction[2]),4);\n echo \" <arg2 type=\\\"nil\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil$/', strtolower($instruction[2])))\n {\n Err();\n }\n else if (preg_match('/[[:alnum:]]@.*$/', ($instruction[2])))\n {\n Err();\n }\n else if (preg_match('/^([[:alpha:]]|(_|-|\\$|&|%|\\*))((_|-|\\$|&|%|\\*)|[[:alnum:]])*/', ($instruction[2])))\n {\n $sec_arg = \"label\";\n paramsValidateTwo($instruction, $first_arg, $sec_arg);\n echo \" <arg2 type=\\\"label\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n\n }\n\n else if (count($instruction) == 4)\n { // INSTRUKCE S TREMI ARGUMENTY\n //////////////////////////////////// prvni argument instrukce /////////////////////////////////////////////////////\n if (preg_match('/^int@.*$/', strtolower($instruction[1])))\n {\n if ((preg_match('/^int@[-+]?\\d+$/', ($instruction[1]))))\n {\n $first_arg = \"int\";\n $instruction[1] = ltrim(($instruction[1]),\"int@\");\n echo \" <arg1 type=\\\"int\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^bool@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^bool@true$/', ($instruction[1])))\n {\n $first_arg = \"bool_t\";\n echo \" <arg1 type=\\\"bool\\\">true</arg1>\\n\";\n }\n else if (preg_match('/^bool@false$/', ($instruction[1])))\n {\n $first_arg = \"bool_f\";\n echo \" <arg1 type=\\\"bool\\\">false</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^string@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^^string@(([a-zA-Z\\x{0021}\\x{0022}\\x{0024}-\\x{005B}\\x{005D}-\\x{FFFF}])|(\\\\\\\\[0-9][0-9][0-9]))*$/', ($instruction[1])))\n {\n $first_arg = \"string\";\n $instruction[1] = substr(($instruction[1]),7);\n $instruction[1] = preg_replace('/&/', \"&amp;\", $instruction[1]);\n $instruction[1] = preg_replace('/</', \"&lt;\", $instruction[1]);\n $instruction[1] = preg_replace('/>/', \"&gt;\", $instruction[1]);\n echo \" <arg1 type=\\\"string\\\">{$instruction[1]}</arg1>\\n\";\n }\n else if (preg_match('/^string@[^\\u0000-\\u007F]+/', ($instruction[1])))\n {\n $first_arg = \"string\";\n echo \" <arg1 type=\\\"string\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^(int|bool|string)$/', ($instruction[1])))\n {\n $first_arg = \"type\";\n echo \" <arg1 type=\\\"type\\\">{$instruction[1]}</arg1>\\n\";\n }\n else if ((preg_match('/^(GF|LF|TF)@.*$/', strtoupper($instruction[1]))))\n {\n if (preg_match('/^(GF|LF|TF)@([[:alpha:]]|(_|-|\\$|&|\\?|!|%|\\*))([[:alnum:]]|(_|-|\\$|&|\\?|!|%|\\*))*/', ($instruction[1])))\n {\n $first_arg = \"var\";\n $instruction[1] = preg_replace('/&/', \"&amp;\", $instruction[1]);\n $instruction[1] = preg_replace('/</', \"&lt;\", $instruction[1]);\n $instruction[1] = preg_replace('/>/', \"&gt;\", $instruction[1]);\n echo \" <arg1 type=\\\"var\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil@.*$/', strtolower($instruction[1])))\n {\n if (preg_match('/^nil@nil$/', ($instruction[1])))\n {\n $first_arg = \"nil\";\n $instruction[1] = substr(($instruction[1]),4);\n echo \" <arg1 type=\\\"nil\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil$/', strtolower($instruction[1])))\n {\n Err();\n }\n else if (preg_match('/[[:alnum:]]@.*$/', ($instruction[1])))\n {\n Err();\n }\n else if (preg_match('/^([[:alpha:]]|(_|-|\\$|&|%|\\*))((_|-|\\$|&|%|\\*)|[[:alnum:]])*/', ($instruction[1])))\n {\n $first_arg = \"label\";\n echo \" <arg1 type=\\\"label\\\">{$instruction[1]}</arg1>\\n\";\n }\n else\n {\n Err();\n }\n //////////////////////////////////// druhy argument instrukce /////////////////////////////////////////////////////\n if (preg_match('/^int@.*$/', strtolower($instruction[2])))\n {\n if ((preg_match('/^int@[-+]?\\d+$/', ($instruction[2]))))\n {\n $sec_arg = \"int\";\n $instruction[2] = ltrim(($instruction[2]),\"int@\");\n echo \" <arg2 type=\\\"int\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^bool@.*$/', strtolower($instruction[2])))\n {\n if (preg_match('/^bool@true$/', ($instruction[2])))\n {\n $sec_arg = \"bool_t\";\n echo \" <arg2 type=\\\"bool\\\">true</arg2>\\n\";\n }\n else if (preg_match('/^bool@false$/', ($instruction[2])))\n {\n $sec_arg = \"bool_f\";\n echo \" <arg2 type=\\\"bool\\\">false</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^string@.*$/', strtolower($instruction[2])))\n {\n if (preg_match('/^^string@(([a-zA-Z\\x{0021}\\x{0022}\\x{0024}-\\x{005B}\\x{005D}-\\x{FFFF}])|(\\\\\\\\[0-9][0-9][0-9]))*$/', ($instruction[2])))\n {\n $sec_arg = \"string\";\n $instruction[2] = substr(($instruction[2]),7);\n $instruction[2] = preg_replace('/&/', \"&amp;\", $instruction[2]);\n $instruction[2] = preg_replace('/</', \"&lt;\", $instruction[2]);\n $instruction[2] = preg_replace('/>/', \"&gt;\", $instruction[2]);\n echo \" <arg2 type=\\\"string\\\">{$instruction[2]}</arg2>\\n\";\n }\n else if (preg_match('/^string@[^\\u0000-\\u007F]+/', ($instruction[2])))\n {\n $sec_arg = \"string\";\n echo \" <arg2 type=\\\"string\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^(int|bool|string)$/', ($instruction[2])))\n {\n $sec_arg = \"type\";\n echo \" <arg2 type=\\\"type\\\">{$instruction[2]}</arg2>\\n\";\n }\n else if ((preg_match('/^(GF|LF|TF)@.*$/', strtoupper($instruction[2]))))\n {\n if (preg_match('/^(GF|LF|TF)@([[:alpha:]]|(_|-|\\$|&|\\?|!|%|\\*))([[:alnum:]]|(_|-|\\$|&|\\?|!|%|\\*))*/', ($instruction[2])))\n {\n $sec_arg = \"var\";\n $instruction[2] = preg_replace('/&/', \"&amp;\", $instruction[2]);\n $instruction[2] = preg_replace('/</', \"&lt;\", $instruction[2]);\n $instruction[2] = preg_replace('/>/', \"&gt;\", $instruction[2]);\n echo \" <arg2 type=\\\"var\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil@.*$/', strtolower($instruction[2])))\n {\n if (preg_match('/^nil@nil$/', ($instruction[2])))\n {\n $sec_arg = \"nil\";\n $instruction[2] = substr(($instruction[2]),4);\n echo \" <arg2 type=\\\"nil\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil$/', strtolower($instruction[2])))\n {\n Err();\n }\n else if (preg_match('/[[:alnum:]]@.*$/', ($instruction[2])))\n {\n Err();\n }\n else if (preg_match('/^([[:alpha:]]|(_|-|\\$|&|%|\\*))((_|-|\\$|&|%|\\*)|[[:alnum:]])*/', ($instruction[2])))\n {\n $sec_arg = \"label\";\n echo \" <arg2 type=\\\"label\\\">{$instruction[2]}</arg2>\\n\";\n }\n else\n {\n Err();\n }\n //////////////////////////////////// treti argument instrukce /////////////////////////////////////////////////////\n if (preg_match('/^int@.*$/', strtolower($instruction[3])))\n {\n if ((preg_match('/^int@[-+]?\\d+$/', ($instruction[3]))))\n {\n $th_arg = \"int\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n $instruction[3] = ltrim(($instruction[3]),\"int@\");\n echo \" <arg3 type=\\\"int\\\">{$instruction[3]}</arg3>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^bool@.*$/', strtolower($instruction[3])))\n {\n if (preg_match('/^bool@true$/', ($instruction[3])))\n {\n $th_arg = \"bool_t\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n echo \" <arg3 type=\\\"bool\\\">true</arg3>\\n\";\n }\n else if (preg_match('/^bool@false$/', ($instruction[3])))\n {\n $th_arg = \"bool_f\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n echo \" <arg3 type=\\\"bool\\\">false</arg3>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^string@.*$/', strtolower($instruction[3])))\n {\n if (preg_match('/^^string@(([a-zA-Z\\x{0021}\\x{0022}\\x{0024}-\\x{005B}\\x{005D}-\\x{FFFF}])|(\\\\\\\\[0-9][0-9][0-9]))*$/', ($instruction[3])))\n {\n $th_arg = \"string\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n $instruction[3] = substr(($instruction[3]),7);\n $instruction[3] = preg_replace('/&/', \"&amp;\", $instruction[3]);\n $instruction[3] = preg_replace('/</', \"&lt;\", $instruction[3]);\n $instruction[3] = preg_replace('/>/', \"&gt;\", $instruction[3]);\n echo \" <arg3 type=\\\"string\\\">{$instruction[3]}</arg3>\\n\";\n }\n else if (preg_match('/^string@[^\\u0000-\\u007F]+/', ($instruction[3])))\n {\n $th_arg = \"string\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n echo \" <arg3 type=\\\"string\\\">{$instruction[3]}</arg3>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^(int|bool|string)$/', ($instruction[3])))\n {\n $th_arg = \"type\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n echo \" <arg3 type=\\\"type\\\">{$instruction[3]}</arg3>\\n\";\n }\n else if ((preg_match('/^(GF|LF|TF)@.*$/', strtoupper($instruction[3]))))\n {\n if (preg_match('/^(GF|LF|TF)@([[:alpha:]]|(_|-|\\$|&|\\?|!|%|\\*))([[:alnum:]]|(_|-|\\$|&|\\?|!|%|\\*))*/', ($instruction[3])))\n {\n $th_arg = \"var\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n $instruction[3] = preg_replace('/&/', \"&amp;\", $instruction[3]);\n $instruction[3] = preg_replace('/</', \"&lt;\", $instruction[3]);\n $instruction[3] = preg_replace('/>/', \"&gt;\", $instruction[3]);\n echo \" <arg3 type=\\\"var\\\">{$instruction[3]}</arg3>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil@.*$/', strtolower($instruction[3])))\n {\n if (preg_match('/^nil@nil$/', ($instruction[3])))\n {\n $th_arg = \"nil\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n $instruction[3] = substr(($instruction[3]),4);\n echo \" <arg3 type=\\\"nil\\\">{$instruction[3]}</arg3>\\n\";\n }\n else\n {\n Err();\n }\n }\n else if (preg_match('/^nil$/', strtolower($instruction[3])))\n {\n Err();\n }\n else if (preg_match('/[[:alnum:]]@.*$/', ($instruction[3])))\n {\n Err();\n }\n else if (preg_match('/^([[:alpha:]]|(_|-|\\$|&|%|\\*))((_|-|\\$|&|%|\\*)|[[:alnum:]])*/', ($instruction[3])))\n {\n $th_arg = \"label\";\n paramsValidateThree($instruction, $first_arg, $sec_arg, $th_arg);\n echo \" <arg3 type=\\\"label\\\">{$instruction[3]}</arg3>\\n\";\n }\n else\n {\n Err();\n }\n\n }\n\n}", "function is_keyword($type){\n global $keywords;\n global $token;\n\n foreach ($keywords as $key => $value) { //searching for keyword\n $match_pattern = \"/\\b\" . \"$value\" . \"\\b/i\";\n if(preg_match($match_pattern, strtolower($token->data))){\n $token->type = $type;\n return True;\n }\n }\n return False;\n }", "function _keyword_match($t)\n\t{\n\t\tstatic $regexp='';\n\t\tif (($regexp=='') || ($this->and_query))\n\t\t{\n\t\t\tforeach ($this->keywords as $keyword_group)\n\t\t\t{\n\t\t\t\tif ($this->and_query)\n\t\t\t\t{\n\t\t\t\t\t$regexp='';\n\t\t\t\t}\n\t\t\t\tforeach ($keyword_group as $keyword)\n\t\t\t\t{\n\t\t\t\t\tif ($regexp!='') $regexp.='|';\n\t\t\t\t\t$regexp_for_keyword='((^|\\.|\\#|\\s|\\/|\\-|>|\\)|\\(|\\})'.str_replace('#','\\#',preg_quote($keyword)).')';\n\t\t\t\t\t$regexp.=$regexp_for_keyword;\n\t\t\t\t}\n\t\t\t\tif ($this->and_query)\n\t\t\t\t{\n\t\t\t\t\tif (preg_match('#'.$regexp.'#i',$t)==0) return false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ($this->and_query)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn (preg_match('#'.$regexp.'#i',$t)!=0);\n\t}" ]
[ "0.6231335", "0.6209791", "0.6112906", "0.59193844", "0.56774294", "0.5573987", "0.5539705", "0.55121213", "0.5494223", "0.5468565", "0.5426854", "0.53588367", "0.53409356", "0.5335357", "0.53136945", "0.5303711", "0.52982104", "0.5276695", "0.5276691", "0.5258773", "0.52546525", "0.5218303", "0.51727563", "0.51512575", "0.51411134", "0.51398224", "0.5090401", "0.5088616", "0.50790966", "0.5072433", "0.5056396", "0.50479627", "0.50304", "0.50279903", "0.5021841", "0.5017762", "0.50094295", "0.49994746", "0.49928653", "0.49798033", "0.49767265", "0.49622637", "0.49463758", "0.49358097", "0.49164096", "0.49116722", "0.49101707", "0.49087694", "0.49067217", "0.49051303", "0.49043536", "0.4886055", "0.48816296", "0.48742673", "0.4873401", "0.4873226", "0.48711118", "0.48690203", "0.48661256", "0.48595026", "0.48479396", "0.48450357", "0.4844742", "0.48422077", "0.48419413", "0.48381168", "0.48376462", "0.48366645", "0.48363551", "0.482697", "0.48261124", "0.48075616", "0.48068848", "0.48042578", "0.47982648", "0.47839475", "0.4783825", "0.47802627", "0.47750655", "0.4764065", "0.47631475", "0.4760215", "0.47597924", "0.47484657", "0.4739886", "0.4736219", "0.47280288", "0.47253302", "0.47213504", "0.4720827", "0.4720818", "0.47190893", "0.47188562", "0.4716153", "0.47096804", "0.4706966", "0.47061768", "0.4702352", "0.46995392", "0.4696182", "0.4696065" ]
0.0
-1
not operator becomes 1
private function substitute(&$x) { if ($x == "!" || $x == "not" || $x == "¬") { $x = -1; # xor operator becomes -2 } elseif ($x == "^" || $x == "xor" || $x == "⊕") { $x = -2; # xand operator becomes -3 } elseif ($x == "+" || $x == "xand" || $x == "⊖") { $x = -3; # literal placeholders gets replaced } elseif (isset($this->literals[$x])) { $y = $this->literals[$x]; # double escaped wrapper characters should be decoded foreach ($this->wrappers as $w) $y = str_replace("\\$w", $w, $y); $x = $y; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yy_r147(){ $this->_retvalue = new Stmt\\Expr('not', $this->yystack[$this->yyidx + 0]->minor); }", "function negate() { # :: Num -> Num\n return -$this->value;\n }", "public function negate()\n\t{\n\t\t$this->not_in = !$this->not_in;\n\t}", "function o_ne($a, $b) {\n\t\t\treturn Obj::singleton()->notEqual($a, $b);\n\t\t}", "public function isNot()\n {\n return $this->not;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function operatorNco()\n\t{\n\t\treturn $this->getValue() != $this->recordModel->get('assigned_user_id');\n\t}", "function mNOT_EQUAL(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$NOT_EQUAL;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:713:3: ( '!=' ) \n // Tokenizer11.g:714:3: '!=' \n {\n $this->matchString(\"!=\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function mNOT(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$NOT;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:111:3: ( 'not' ) \n // Tokenizer11.g:112:3: 'not' \n {\n $this->matchString(\"not\"); \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 not() {\n\t\t$this->not = '!';\n\t\treturn $this;\n\t}", "function mNOT_SIGN(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$NOT_SIGN;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:668:3: ( '!' ) \n // Tokenizer11.g:669:3: '!' \n {\n $this->matchChar(33); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public static function ni(IInt32\\Type $x, Core\\Type $y) : IBool\\Type { // !==\n\t\t\treturn IBool\\Module::not(IInt32\\Module::id($x, $y));\n\t\t}", "function yy_r149(){$this->_retvalue = ' XOR '; }", "public static function ne(IInt32\\Type $x, Core\\Type $y) : IBool\\Type { // !=\n\t\t\treturn IBool\\Module::not(IInt32\\Module::eq($x, $y));\n\t\t}", "public function negate(): self;", "function ne ($value) {\n return '!=\\''.$value.'\\'';\n }", "public function doesNotEqual($value)\n {\n $this->operator = \"is_not_equal\";\n $this->value = $value;\n }", "public function negate()\n {\n $this->_not = true;\n return $this;\n }", "public function modif_boolbin() \r\n\t{\r\n\t\t$this->boolbin = abs($this->boolbin-1);\t\r\n\t}", "function yy_r128(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }", "protected function _expressionNot($operation, $class, $method) {\n $this->_emitter->emit_operator('!');\n $this->_processExpression($operation['left'], $class, $method);\n }", "public function globalVarConditionDoesNotMatchOnNotEqualExpression() {}", "public function globalVarConditionDoesNotMatchOnNotEqualExpression() {}", "public function globalVarConditionMatchesOnNotEqualExpression() {}", "public function globalVarConditionMatchesOnNotEqualExpression() {}", "protected function _expressionNot($operation, $class, $method) {\n $this->_emitter->emit('!');\n $this->_processExpression($operation['left'], $class, $method);\n }", "public function negate()\n\t{\n\t\tif($this->sWhere == '')\n\t\t{\n\t\t\t$this->sWhere = 'FALSE';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->sWhere = 'NOT (' . $this->sWhere . ')';\n\t\t}\n\t}", "public function whereNot($operand, $operatorOrValue=null, $value=null);", "public function notEqualTo($value);", "public function setNe($x) { $this->ne = $x; }", "function negate() {\n static $negate = false;\n $negate = $negate ?: curry(function($x){\n return -$x;\n });\n return _apply($negate, func_get_args());\n}", "function isNegative () {\n return (($this->num < 0) xor ($this->denom < 0));\n }", "public function isNotNumbered(){\n return $this->type === self::UP || $this->getFreeSeating();\n }", "public function whereNot($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "function variant_not($variant) {}", "public function getIsNot()\n {\n return $this->is_not;\n }", "public static function evaluate_unary_logic($c, $operator) {\n switch($operator) {\n case SC_Survey_Flow::LO_NOT:\n return !$c;\n break;\n }\n\n return FALSE;\n }", "function _cb_negate($aVal) {\n return round(-$aVal);\n}", "function neparan($b)\n{\n if($b%2==0)\n {\n return false;\n }\n else\n {\n return true;\n }\n}", "public function logicalNot($constraint)\n {\n return $this->qomFactory->not($constraint);\n }", "public function isNot($model);", "public function hasFalseMutations(){\n return $this->_has(5);\n }", "function yy_r130(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }", "public function notFlag($not = null)\n {\n if(null === $not)\n {\n return $this->property('not');\n }\n return $this->property('not', (bool) $not);\n }", "public function skipUntil($operator) {}", "public function testInvokeReturnsFalseIfIntegersAreNotEqual()\n\t{\n $this->assertFalse((new AlmostEquals())(1, 2));\n \n return;\n\t}", "function is_not_zero($num){\n\tif($num <= 0){\n\t\treturn 1;\n\t}\n\t\n\treturn $num;\t\n}", "public function shouldNotEqual($expected) {}", "#[@test]\n public function withoutExpression() {\n $this->assertEquals(array(new TernaryNode(array(\n 'condition' => new VariableNode('i'),\n 'expression' => NULL,\n 'conditional' => new IntegerNode('2'),\n ))), $this->parse('\n $i ?: 2;\n '));\n }", "function yy_r139(){$this->_retvalue = '!='; }", "function variant_xor($left, $right) {}", "public function isFalse();", "public function testNotRule()\n {\n $rule = new NotRule();\n $rule->addRule(new TrueRule());\n\n $this->assertFalse($rule->validate());\n\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n ), 'not');\n $this->assertTrue($rule->validate());\n\n\n try {\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n 'true',\n ), 'not');\n } catch (\\RuntimeException $e) {\n $rule = null;\n }\n $this->assertNull($rule);\n\n }", "static protected function BinaryNOT( $strBinary )\n\t{\n\t\t$strBinaryFinal = '';\n\t\tfor( $intPos = 1 ; $intPos <= \\strlen( $strBinary ) ; $intPos = $intPos + 1 )\n\t\t{\n\t\t\tif ( substr( $strBinary, intval( $intPos ) - 1, 1 ) == \"1\" )\n\t\t\t{\n\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"0\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"1\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $strBinaryFinal;\n\t}", "public function isNoop(): bool;", "public function isNotUsing();", "function not($predicate) : \\Closure\n{\n $predicate = predicate($predicate);\n return function (...$arguments) use ($predicate) {\n return !$predicate(...$arguments);\n };\n}", "public function isIgnored(): bool;", "public function shouldNotBe($expected) {}", "public function setNoexec($ne)\n {\n $this->noexec = (boolean) $ne;\n }", "function specialop() {\n\n\n\t}", "public function nop()\n {\n }", "public function orWhereNot($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "private function get_not() {\n\t\t$prefix = $this->not ? '!' : '';\n\t\tunset( $this->not );\n\t\treturn $prefix;\n\t}", "public function withoutValue();", "function pseudoTypeFalse(false $var = false) {}", "public function isFalse()\n {\n \n return !$this->value;\n \n }", "public function isNotAccessible()\n {\n return ! $this->isAccessible();\n }", "public function globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero() {}", "public function globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero() {}", "function yy_r151(){ $this->_retvalue = new Stmt\\Expr(\"!=\", $this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + 0]->minor); }", "public function isNotOk()\n {\n return ! $this->isOk();\n }", "public static function isNotIdentical($expected)\n {\n return self::logicalNot(self::isIdentical($expected));\n }", "static function false($X, $Alt) {\n\t\treturn $X ? $X : $Alt;\n\t}", "public function validarLogicasNegocio($operacion){\n return;\n }", "public function validarLogicasNegocio($operacion){\n return;\n }", "public function assertNotTrue($bool, $label = \"\") {\n\t\tif (!$bool) {\n\t\t\t$this->currResults[$this->count] = $this->tag.\"assertNotTrue $label TRUE\";\n\t\t} else {\n\t\t\t$this->currResults[$this->count] = $this->tag.\"assertNotTrue $label FALSE\"; \n\t\t}\n\t\t$this->count++;\n\t\t$this->tag = \"\";\n\t\treturn !$bool;\n\t}", "public function hasDifference() {return !!$this->_calculateDifference();}", "function yy_r144(){$this->_retvalue = '==='; }", "public function isnot($input, $args) {\n $args = $this->getArgs($args);\n if (isset($args['value'])) {\n $this->setCondition(($input != $args['value']));\n }\n }", "public function hasOp() {\n return $this->_has(1);\n }", "public function isInvertible(): bool\n {\n if (!array_key_exists(__METHOD__, $this->cache)) {\n $this->cache[__METHOD__] = $this->determinant() != 0.0;\n }\n return $this->cache[__METHOD__];\n }", "public function isNot(): WhereCondition\n {\n\n $this->_op = self::OP_TYPE_ISN;\n\n return $this;\n\n }", "public function globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues() {}", "public function globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues() {}", "public function negate()\n {\n return $this->copy(null, null, !$this->isNegative());\n }", "public static function neq($a, $b)\n {\n return !self::eq(@$a, @$b);\n }", "public function testIsEvenPassNegativeODD()\n {\n \t$this->assertFalse(isEven(-5));\n }", "public function validarLogicasNegocio($operacion){\n\t\t//print_r($this);die();\n\t\tif($this->esEquipamientoDeAlquiler['valor'] == '1'){\n\t\t\t$this->equipamientoDeAlquiler['obligatorio'] = TRUE;\n\t\t}else{\n\t\t\t$this->equipamientoDeAlquiler['obligatorio'] = FALSE;\n\t\t\t$this->equipamientoDeAlquiler['valor'] = null;\n\t\t}\n return $resultMessage;\n \t}", "public function _isNot($model)\n {\n return ! $this->_is($model);\n }", "public function notLike($value);", "protected function isUnchanged() {}", "function yy_r74()\n {\n $this->_retvalue = '!(1 & ' . $this->yystack[$this->yyidx + - 1]->minor . ')';\n }", "public function notEqual($num)\n {\n $num = $this->format($num);\n\n return $this->value != $num;\n }", "public function isVariableNumerica(){ return false; }", "final public function isNot($enum): bool\n {\n return !$this->is($enum);\n }", "public function notBracketOpen()\n {\n return $this->bracketOpen('NOT ', 'AND ');\n }", "public function isDisabled($operation = OperationTypes::OP_UPDATE, $ignore_op = FALSE);", "function dry() {\n\t\treturn !$this->item;\n\t}", "public function validarLogicasNegocio($operacion){\n\t\t//print_r($this);die();\n\t\tif($this->esEmpleadoTemporario['valor'] == '1'){\n\t\t\t$this->empleadoTemporario['obligatorio'] = TRUE;\n\t\t}else{\n\t\t\t$this->empleadoTemporario['obligatorio'] = FALSE;\n\t\t\t$this->empleadoTemporario['valor'] = null;\n\t\t}\n return $resultMessage;\n \t}", "public function Filter_Not() {\r\n\t\treturn array(\r\n\t\t\t'where' => '0'\r\n\t\t);\r\n\t}" ]
[ "0.6861401", "0.66855174", "0.6611945", "0.65605384", "0.64400756", "0.64400756", "0.6423524", "0.63839453", "0.63315284", "0.61911464", "0.61763114", "0.61369884", "0.61035615", "0.6098328", "0.60749024", "0.60732347", "0.5984738", "0.5984388", "0.5955394", "0.5931643", "0.5931266", "0.59086305", "0.59086305", "0.5903942", "0.59028006", "0.5898974", "0.58735657", "0.586517", "0.5843407", "0.58257675", "0.5821288", "0.5815543", "0.58065635", "0.5744151", "0.57165915", "0.57082456", "0.5683816", "0.56787884", "0.5676683", "0.56717074", "0.5629226", "0.56185275", "0.56105065", "0.5605727", "0.55634016", "0.5555086", "0.5552234", "0.5551295", "0.55504555", "0.55364174", "0.55357075", "0.5512657", "0.55060714", "0.5501845", "0.5470105", "0.5465353", "0.54638", "0.5462946", "0.544455", "0.54380107", "0.54350066", "0.5428858", "0.54246515", "0.54102945", "0.54077363", "0.5400661", "0.5399856", "0.53787327", "0.5376538", "0.53761524", "0.5375854", "0.53746647", "0.5369208", "0.5359897", "0.5350413", "0.5350413", "0.5316373", "0.53110516", "0.52822745", "0.52768546", "0.5270282", "0.5264463", "0.52587825", "0.52543277", "0.5254241", "0.5252909", "0.5243868", "0.5229119", "0.5228271", "0.5224151", "0.52187306", "0.5212084", "0.5209765", "0.5202806", "0.5202288", "0.5198381", "0.5197826", "0.5189605", "0.5187801", "0.5179006", "0.51759857" ]
0.0
-1
convert literal placeholders back to original strings and remove reserved boolean operator keywords from string
private function convertLiteralToList($tail) { # before substitution split sentence to literals $s = $this->sanitize($tail); if (count($s)) { $a = explode(' ', $s); array_walk($a, array($this, 'substitute')); return $a; } return NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function unescapeBoolean($bool);", "function prepare_eval($phrase)\n{\n $retVal = \"\";\n $retVal = str_replace(\"!\", \"\\\"\",$phrase);\n $retVal = str_replace(\"#\", \"'\", $retVal);\n return str_replace(\"~\", \"#\", $retVal);\n}", "protected function _clear_operator($str) {\n\t\treturn preg_replace('/(<|>|!|=|\\sIS NULL|\\sIS NOT NULL|\\sEXISTS|\\sBETWEEN|\\sLIKE|\\sIN\\s*\\(|\\s)/i', '', $str);\n\t}", "abstract public function escapeBoolean($bool);", "private function convertStringBooleans($data) {\n foreach($data as $key=>$value) {\n if($value === 'true' || $value === 'TRUE')\n $data[$key] = true;\n\n if($value === 'false' || $value === 'FALSE')\n $data[$key] = false;\n\n if (is_array($value)) {\n $data[$key] = $this->convertStringBooleans($value);\n }\n }\n\n return $data;\n }", "function cleanData(&$str)\n {\n // handling karakter tab\n $str = preg_replace(\"/\\t/\", \"\\\\t\", $str);\n\n // handling karakter enter\n $str = preg_replace(\"/\\r?\\n/\", \"\\\\n\", $str);\n\n // convert 't' and 'f' menjadi nilai boolean\n if($str == 't') $str = 'TRUE';\n if($str == 'f') $str = 'FALSE';\n\n // handle karakter doubel quotes\n if(strstr($str, '\"')) $str = '\"' . str_replace('\"', '\"\"', $str) . '\"';\n }", "function rest_sanitize_boolean($value)\n {\n }", "function cleanData(&$str) {\n if($str == 't') $str = 'TRUE';\n if($str == 'f') $str = 'FALSE';\n if(preg_match(\"/^0/\", $str) || preg_match(\"/^\\+?\\d{8,}$/\", $str) || preg_match(\"/^\\d{4}.\\d{1,2}.\\d{1,2}/\", $str)) {\n $str = \"'$str\";\n }\n if(strstr($str, '\"')) $str = '\"' . str_replace('\"', '\"\"', $str) . '\"';\n }", "function fixRedirectorUnparsedEquals($buffer)\n{\n return preg_replace('#\\[url-disabled].*\\[/url-disabled]#U', '', $buffer);\n}", "protected function removeStatementBoolean($value): string\n {\n return preg_replace('/and |or /', '', $value, 1);\n }", "function bool2str($data)\n {\n TRUE === $data && $data = 'true';\n FALSE === $data && $data = 'false';\n return $data;\n }", "function converter(&$value, $key){\n if($value === \"true\") {\n $value = TRUE;\n } elseif ($value === \"false\") {\n $value = FALSE;\n }\n if ($key === \"not\") {\n if ($value === \"1\") {\n $value = TRUE;\n }\n if ($value === \"0\") {\n $value = FALSE;\n }\n }\n }", "function filter_query($query) {\n\n\n\n //use string replace to allow our users to use AND as a Boolean search parameter\n //All of our search engines use OR so we do not need to edit our Query to facilitate its use\n //use string replace to allow our users to use NOT as a Boolean search parameter\n $bad = array(\"NOT \", \"AND \", \"'s\", '\"');\n $good = array(\"-\", \"+\", \"\", \"'\");\n $query = str_replace($bad, $good, $query);\n\n return $query;\n}", "function reformat_keywords($keywordsraw){\n\t\t $keywords_array = (explode(' ', $keywordsraw));\n\n\t\t // fix the key words with 's and ,s\n\t\t $keywords = '\\'';\n\t\t foreach ($keywords_array as $key => $value) {\n\t\t \tif ($key > 0) {\n\t\t \t\t$keywords = $keywords . ', ';\n\t\t \t}\n\t\t \t$keywords = $keywords . $value;\n\t\t }\n\t\t $keywords = $keywords.'\\'';\n\t\t return $keywords;\n\t\t}", "public static function literalize ($value)\n {\n\n static\n $keys = array(\"\\\\\", \"%'\", \"'\"),\n $reps = array(\"\\\\\\\\\", \"\\\"\", \"\\\\'\");\n\n if ($value == null)\n {\n\n // null value\n return 'null';\n\n }\n\n // lowercase our value for comparison\n $value = trim($value);\n $lvalue = strtolower($value);\n\n if ($lvalue == 'on' || $lvalue == 'yes' || $lvalue == 'true')\n {\n\n // replace values 'on' and 'yes' with a boolean true value\n return 'true';\n\n } else if ($lvalue == 'off' || $lvalue == 'no' || $lvalue == 'false')\n {\n\n // replace values 'off' and 'no' with a boolean false value\n return 'false';\n\n } else if (!is_numeric($value))\n {\n\n $value = str_replace($keys, $reps, $value);\n\n return \"'\" . $value . \"'\";\n\n }\n\n // numeric value\n return $value;\n\n }", "function _remove_special_chars($keyword) {\n //\t$keyword = str_replace('\"', '\\\"', $keyword);\n return $keyword;\n}", "function cleanData(&$str) {\n\t\tif($str == 't') $str = 'TRUE';\n\t\tif($str == 'f') $str = 'FALSE';\n\t\tif(preg_match(\"/^0/\", $str) || preg_match(\"/^\\+?\\d{8,}$/\", $str) || preg_match(\"/^\\d{4}.\\d{1,2}.\\d{1,2}/\", $str)) {\n\t\t\t\n\t\t\t$str = \"'$str\";\n\t\t}\n\t\tif(strstr($str, '\"')) $str = '\"' . str_replace('\"', '\"\"', $str) . '\"';\n\t}", "function _replacePlaceholdersInSQL(&$data){\n // allow current user name in filter:\n $data['sql'] = str_replace('%user%', $_SERVER['REMOTE_USER'], $data['sql']);\n // allow current date in filter:\n $data['sql'] = str_replace('%now%', dformat(null, '%Y-%m-%d'),$data['sql']);\n }", "public function dataStripQuotes()\n {\n return [\n 'double quoted text' => ['\"some text\"', 'some text'],\n 'single quoted text' => [\"'some text'\", 'some text'],\n 'unmatched quotes start of string' => [\"'some text\", \"'some text\"],\n 'unmatched quotes end of string' => ['some text\"', 'some text\"'],\n 'quotes with quoted text within' => [\"some 'text'\", \"some 'text'\"],\n 'string with quotes within' => ['\"some \\'string\\\" with\\' quotes\"', 'some \\'string\\\" with\\' quotes'],\n 'string wrapped in quotes' => ['\"\\'quoted_name\\'\"', \"'quoted_name'\"],\n 'multi-line text string' => [\n \"'some text\nanother line\nfinal line'\",\n \"some text\nanother line\nfinal line\",\n ],\n 'empty string' => ['', ''],\n 'not string input - bool' => [false, ''],\n 'not string input - float' => [12.345, '12.345'],\n ];\n }", "function snmp_parser_unquote($str)\n{\n return str_replace(array('PLACEHOLDER-DOT', 'PLACEHOLDER-SPACE', 'PLACEHOLDER-ESCAPED-QUOTE'),\n array('.',' ','\"'), $str);\n}", "function prepare_field($field)\n{\n return trim(preg_replace(\"/[<>&=%:'“]/i\", \"\", $field));\n}", "private function substitute(&$x) {\n if ($x == \"!\" || $x == \"not\" || $x == \"¬\") {\n $x = -1;\n # xor operator becomes -2\n } elseif ($x == \"^\" || $x == \"xor\" || $x == \"⊕\") {\n $x = -2;\n # xand operator becomes -3\n } elseif ($x == \"+\" || $x == \"xand\" || $x == \"⊖\") {\n $x = -3;\n # literal placeholders gets replaced\n } elseif (isset($this->literals[$x])) {\n $y = $this->literals[$x];\n # double escaped wrapper characters should be decoded\n foreach ($this->wrappers as $w)\n $y = str_replace(\"\\\\$w\", $w, $y);\n $x = $y;\n }\n }", "public static function unescapeQuery($keywords)\n {\n $searchKeywords = preg_replace('/\\\\\\([\\+\\-!\\(\\)\\{\\}\\[\\]\\^\"~\\*\\?:\\/\\|&]|AND|OR|NOT)/', '${1}', $keywords);\n return $searchKeywords;\n }", "function mswRemoveDoubleApostrophes($data) {\n return str_replace(\"''\",\"'\",$data);\n}", "function filterinput($variable)\n{\n // this will add a slash in front of every occurnece of ' in the string \n $variable = str_replace(\"'\", \"\\'\", $variable);\n // this will attempt to add a slash in front og every \" in the string\n // this will not run there is a syntax error the first parmeter need to add a \\ in the middle \n // it would be a better practice to just re-write the arameters as ('\"', '\\\"', $variable)\n $variable = str_replace(\"\"\", \"\\\"\", $variable);\n return $variable;\n}", "function xthreads_sanitize_eval(&$s, &$fields) {\r\n\t// the following won't work properly with array indexes which have non-alphanumeric and underscore chars; also, it won't do ${var} syntax\r\n\t// also, damn PHP's magic quotes for preg_replace - but it does assist with backslash fun!!!\r\n\t$s = preg_replace(\r\n\t\tarray(\r\n\t\t\t'~\\\\{\\\\\\\\\\\\$([a-zA-Z_][a-zA-Z_0-9]*)((-\\\\>[a-zA-Z_][a-zA-Z_0-9]*|\\\\[(\\'|\\\\\\\\\"|)[a-zA-Z_ 0-9]+\\\\4\\\\])*)\\\\}~e',\r\n\t\t\t'~\\{\\\\\\\\\\$forumurl\\\\\\\\\\$\\}~i',\r\n\t\t\t'~\\{\\\\\\\\\\$forumurl\\?\\}~i',\r\n\t\t\t'~\\{\\\\\\\\\\$threadurl\\\\\\\\\\$\\}~i',\r\n\t\t\t'~\\{\\\\\\\\\\$threadurl\\?\\}~i'\r\n\t\t), array(\r\n\t\t\t'\\'{$GLOBALS[\\\\\\'$1\\\\\\']\\'.strtr(\\'$2\\', array(\\'\\\\\\\\\\\\\\\\\\\\\\'\\' => \\'\\\\\\'\\', \\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\' => \\'\\\\\\'\\')).\\'}\\'', // rewrite double-quote to single quotes, cos it's faster\r\n\t\t\t'{$GLOBALS[\\'forumurl\\']}',\r\n\t\t\t'{$GLOBALS[\\'forumurl_q\\']}',\r\n\t\t\t'{$GLOBALS[\\'threadurl\\']}',\r\n\t\t\t'{$GLOBALS[\\'threadurl_q\\']}',\r\n\t\t), strtr($s, array('\\\\' => '\\\\\\\\', '$' => '\\\\$', '\"' => '\\\\\"'))\r\n\t);\r\n\t\r\n\t// replace conditionals\r\n\t@include_once MYBB_ROOT.'inc/xthreads/xt_phptpl_lib.php';\r\n\tif(function_exists('xthreads_phptpl_parsetpl')) {\r\n\t\txthreads_phptpl_parsetpl($s, $fields);\r\n\t}\r\n\t\r\n\t// replace value tokens at the end\r\n\t$do_value_repl = false;\r\n\t$tr = array();\r\n\tforeach($fields as &$f) {\r\n\t\t$tr['{'.$f.'}'] = '{$vars[\\''.$f.'\\']}';\r\n\t\t\r\n\t\tif($f == 'VALUE') $do_value_repl = true;\r\n\t}\r\n\tif($do_value_repl) $s = preg_replace('~\\{((?:RAW)?VALUE)\\\\\\\\?\\$(\\d+)\\}~', '{$vars[\\'$1$\\'][$2]}', $s);\r\n\t$s = strtr($s, $tr);\r\n}", "private function fixTrueFalse(&$value, $key) {\r\n if ($value == 'false') {\r\n \t$value = false;\r\n } elseif ($value == 'true') {\r\n $value = true;\r\n }\r\n }", "function privSwapBackMagicQuotes()\n {\n }", "private static function bool2str($v)\n {\n //convert boolean to text value.\n $v = $v === true ? 'true' : $v;\n $v = $v === false ? 'false' : $v;\n return $v;\n }", "protected function booleanQueryParametersAsString(array $queryParameters)\n {\n return array_map(function ($queryParameters) {\n if (!is_bool($queryParameters)) {\n return $queryParameters;\n }\n return true === $queryParameters ? 'true' : 'false';\n }, $queryParameters);\n }", "function str_bool($string) {\n if (strtolower($string) === 'true') {\n return true;\n } elseif (strtolower($string) === 'false') {\n return false;\n }\n\n return $string;\n}", "function sanitise_str ($x, $flags = 0) {\n global $EscapeSequencesA, $EscapeSequencesB;\n $x = (string)$x;\n if ( $flags & STR_GPC and\n PHP_MAJOR_VERSION < 6 and\n get_magic_quotes_gpc()\n ) {\n $x = stripslashes($x);\n }\n if ( $flags & STR_ENSURE_ASCII ) { $x = ensure_valid_ascii($x); }\n else { $x = ensure_valid_utf8($x); }\n if ( $flags & STR_TO_UPPERCASE ) { $x = strtoupper($x); }\n if ( $flags & STR_TO_LOWERCASE ) { $x = strtolower($x); }\n if ( ~$flags & STR_NO_TRIM ) { $x = trim($x); }\n if ( ~$flags & STR_NO_STRIP_CR ) { $x = str_replace(\"\\r\", '', $x); }\n if ( $flags &\n ( STR_ESCAPE_HTML |\n STR_PERMIT_FORMATTING |\n STR_HANDLE_IMAGES |\n STR_PERMIT_ADMIN_HTML |\n STR_DISREGARD_GAME_STATUS |\n STR_EMAIL_FORMATTING\n )\n ) {\n $x = htmlspecialchars($x, ENT_COMPAT, 'UTF-8');\n }\n if ( $flags & STR_CONVERT_ESCAPE_SEQUENCES ) {\n $x = str_replace($EscapeSequencesA, $EscapeSequencesB, $x);\n }\n if ( $flags & STR_STRIP_TAB_AND_NEWLINE ) {\n $x = str_replace(array(\"\\n\",\"\\t\"), '', $x);\n }\n return $x;\n}", "function format_bool(mixed $input): string\n{\n return $input ? 'true' : 'false';\n}", "function bool2str($bool) {\n\tif($bool ===false)\n\t\treturn 'false';\n\telse\n\t\treturn 'true';\n}", "protected function fix_boolean_settings() {\n\t\tforeach ($this->boolean_settings as $setting) {\n\t\t\t$val = $this->get_setting($setting);\n\t\t\tif ($val) {\n\t\t\t\t$this->add_setting($setting, filter_var($val, FILTER_VALIDATE_BOOLEAN));\n\t\t\t}\n\t\t}\n\t}", "protected function removeLeadingBoolean(string $value)\n {\n return preg_replace('/and |or /i', '', $value, 1);\n }", "function macro_replace(string $source, array $macros): string\n{\n foreach ($macros as $key => $value) {\n if (is_string($value)) {\n $source = str_replace('{{' . $key . '}}', $value, $source);\n }\n }\n return $source;\n}", "function convert_string_to_boolean($string)\n{\n return filter_var($string, FILTER_VALIDATE_BOOLEAN);\n}", "function prepare2eval($evalStr)\n// ****************************\n{\n return html_entity_decode($evalStr);\n}", "public function testUpdateValuesContainSpecialCharacters(): void { }", "public function getShortcodeReplace();", "public function testToStringWithStringValueOff()\n\t{\n\t // initialize a new Boolean instance\n\t $boolean = new TechDivision_Lang_Boolean('off');\n\t\t// check that the two boolean are equal\n\t\t$this->assertEquals('false', $boolean->__toString());\n\t}", "protected function cleanValue()\n {\n return str_replace([\n '%',\n '-',\n '+',\n ], '', $this->condition->value);\n }", "public function remove_placeholder_escape($query)\n {\n }", "function privDisableMagicQuotes()\n {\n }", "function ab_backtickFilter($content){\n\tif (false===strpos($content,'`')) // save CPU resources\n\t\treturn $content;\n\tglobal $ab_bslash;\n\t\n\t// check for special problems:\n\t// on the offchance that somebody's code contains '__abENT__' in it, we should replace the underscores with entity #95 (makes posting this file possible, for example):\n\t$content = str_replace('__abENT__', '__abENT__#95;__abENT__#95;abENT__abENT__#95;__abENT__#95;', $content);\n\t// allow for escaped backticks. Remember that posting vars adds slashes, so we check for two slashes, not just one:\n\t$content = str_replace($ab_bslash.$ab_bslash.'`', '__abENT__#96;', $content);\n\t// but just in case, we'll also look for just one slash:\n\t$content = str_replace($ab_bslash.'`', '__abENT__#96;', $content);\n\n\t// do it\n\t$content = preg_replace_callback( '|`([^`]+)`|Us', 'ab_backtickCallback', $content );\n\treturn $content;\n}", "public function sanitize($s) {\n # make sentence well formatted: \"(A and(B) or C)\" -> \"(A and (B) or C)\"\n #$s = preg_replace($this->PREPROCESS_OPERATORS1, '$1 $2$5$3 $4', $s);\n #$s = preg_replace($this->PREPROCESS_OPERATORS2, '$1 $2$5$3 $4', $s);\n #$s = preg_replace($this->PREPROCESS_OPERATORS3, '$1 $2$5$3 $4', $s);\n # replace operators with empty space\n $s = preg_replace($this->OPERATORS, ' ', $s);\n # prepare to remove exclamation mark, that is used for NOT boolean logic tree\n $s = preg_replace($this->NOT, ' $1 ', $s);\n # prepare to remove ^ mark, that is used for XOR boolean logic tree\n $s = preg_replace($this->XOR, ' $1 ', $s);\n // prepare to remove + mark, that is used for XAND boolean logic tree\n $s = preg_replace($this->XAND, ' $1 ', $s);\n # remove extra double, triple and other longs whitespaces\n # only single spaces between literals are left\n # array filter needs to have strlen to keep 0 numerals!\n return implode(' ', array_filter(explode(' ', $s), 'strlen'));\n }", "public function t_constant_encapsed_string($sTag) {\n\t\tif (substr($sTag, 0, 1) == '\\'') {\n\t\t\t$prev = $this->oBeaut->getPreviousTokenConstant();\n\t\t\t\n\t\t\tif ($prev == T_INCLUDE || $prev == T_INCLUDE_ONCE || $prev == T_REQUIRE || $prev == T_REQUIRE_ONCE || $prev == T_ECHO) {\n\t\t\t\t$this->oBeaut->removeWhitespace();\n\t\t\t\t$this->oBeaut->add(' ');\n\t\t\t\t$this->oBeaut->add($sTag);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\treturn PHP_Beautifier_Filter::BYPASS;\n\t\t}\n\t\t\n\t\t// Detect for things that require double quotes\n\t\t$isEscaped = false;\n\t\t$singleQuoteString = '';\n\t\t$sTag = substr($sTag, 1, strlen($sTag) - 2);\n\t\t\n\t\tforeach (str_split($sTag) as $char) {\n\t\t\tif ($isEscaped) {\n\t\t\t\tif (preg_match('/[nrtvf0-9x]/', $char)) {\n\t\t\t\t\treturn PHP_Beautifier_Filter::BYPASS;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$isEscaped = false;\n\t\t\t\t\n\t\t\t\tif ($char == '$' || $char == '\"') {\n\t\t\t\t\t$singleQuoteString .= $char;\n\t\t\t\t} elseif ($char == '\\\\') {\n\t\t\t\t\t$singleQuoteString .= '\\\\\\\\';\n\t\t\t\t} elseif ($char == '\\'') {\n\t\t\t\t\t$singleQuoteString .= '\\\\\\'';\n\t\t\t\t} else {\n\t\t\t\t\t$singleQuoteString .= '\\\\\\\\' . $char;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($char == '$') {\n\t\t\t\t\treturn PHP_Beautifier_Filter::BYPASS;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($char == '\\\\') {\n\t\t\t\t\t$isEscaped = true;\n\t\t\t\t} elseif ($char == '\\'') {\n\t\t\t\t\t$singleQuoteString .= '\\\\\\'';\n\t\t\t\t} else {\n\t\t\t\t\t$singleQuoteString .= $char;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->oBeaut->add('\\'' . $singleQuoteString . '\\'');\n\t}", "public function scrubBool(bool $data) : bool;", "function sanitize_bool( $value, $key, array $data ) {\n\tif ( is_bool( $value ) ) {\n\t\treturn $value;\n\t} elseif ( is_numeric( $value ) ) {\n\t\treturn (bool) $value;\n\t} elseif ( is_string( $value ) ) {\n\t\tif ( in_array( strtolower( $value ), array( 'true', 'on', 'yes' ), true ) ) {\n\t\t\treturn true;\n\t\t} elseif ( in_array( strtolower( $value ), array( 'false', 'off', 'no' ), true ) ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\treturn (bool) $value;\n}", "public function clean_boolean($input)\r\n {\r\n settype($input, 'boolean');\r\n return $input;\r\n }", "static public function cleanSQL ( $sql )\n {\n $quoter = new \\r8\\Quoter;\n $quoter->setQuote('\"')->setQuote(\"'\")->setQuote(\"`\");\n\n $parsed = $quoter->parse( $sql );\n $parsed->setIncludeQuoted( FALSE )->setIncludeUnquoted( TRUE );\n\n $keywords = '/\\b(?:'. implode(\"|\", self::$keywords) .')\\b/i';\n $breaks = '/\\b('. implode(\"|\", self::$breaks) .')\\b/i';\n\n $parsed->filter(new \\r8\\Filter\\Chain(\n r8(new \\r8\\Curry\\Call('str_replace'))->setLeft( array(\"\\n\", \"\\r\"), \" \" ),\n r8(new \\r8\\Curry\\Call('\\r8\\str\\stripRepeats'))->setRight(\" \"),\n r8(new \\r8\\Curry\\Call('preg_replace_callback'))\n ->setLeft( $keywords, function ( $value ) {\n return strtoupper( $value[0] );\n } ),\n r8(new \\r8\\Curry\\Call('preg_replace'))\n ->setLeft( $breaks, \"\\n\\\\1\" )\n ));\n\n return trim( $parsed->__toString(), \" ;\");\n }", "function pythonifyString($theString) {\n $aThings = array(\n ') {' => ':',\n '}' => '',\n 'cv::' => 'cv2.',\n 'cvui::' => 'cvui.',\n 'if (' => 'if ',\n '} else {' => 'else:',\n '} else if (' => 'elif ',\n 'while (' => 'while ',\n ');' => ')',\n '//' => '#',\n '\"' => '\\'',\n );\n\n $aNormalized = pythonifyType($theString, false);\n $aConverted = str_replace(array_keys($aThings), array_values($aThings), $aNormalized);\n\n return $aConverted;\n}", "function replace_invalid_values($value,$opt){\n\n if(is_string($value)){\n $value = preg_replace(\"/&/\", \"&amp;\", $value);\n $value = preg_replace(\"/</\", \"&lt;\", $value);\n $value = preg_replace(\"/>/\", \"&gt;\", $value);\n $value = preg_replace(\"/\\\"/\", \"&quot;\", $value);\n $value = preg_replace(\"/\\'/\", \"&quot;\", $value);\n }\n return $value;\n }", "function StripDebugQS($s)\r\n{\r\n\t$sRet = str_replace('&debug=1','',$s);\r\n\t$sRet = str_replace('&debug=0','',$sRet);\r\n\treturn $sRet;\r\n}", "public function escapeAll($bool = true)\n\t{\n\t\t$this->regexp = ($bool) ? '/\\\\\\\\./su' : '/\\\\\\\\[-!#()*+.:<>@[\\\\\\\\\\\\]^_`{|}~]/';\n\t}", "protected function substitute_symbols($string){\n $string = str_replace('__dot__', '.', $string);\n $string = str_replace('__q__', '\"', $string);\n $string = str_replace('__t__', \"'\", $string);\n $string = str_replace('__gt__', ' > ', $string);\n $string = str_replace('__ge__', ' >= ', $string);\n $string = str_replace('__lt__', ' < ', $string);\n $string = str_replace('__le__', ' <= ', $string);\n $string = str_replace('__eq__', ' = ', $string);\n $string = str_replace('__ne__', ' != ', $string);\n $string = str_replace('__in__', ' IN ', $string);\n $string = str_replace('__cm__', ', ', $string);\n $string = str_replace('__as__', ' ASC', $string);\n $string = str_replace('__de__', ' DESC', $string);\n return $string;\n }", "function setPlaceholders($placeholders, $tpl) {\r\n $keys = array();\r\n $values = array();\r\n\r\n foreach ($placeholders as $key => $value) {\r\n $keys[] = '[+' . $key . '+]';\r\n $values[] = $value;\r\n }\r\n\r\n return str_replace($keys, $values, $tpl);\r\n }", "function b2s($b) {\n return ($b) ? 'TRUE' : 'FALSE';\n}", "protected function _makeFilter($filter, $placeholders) {\n preg_match_all(\"/%{([^}]+)/\", $filter, $matches, PREG_PATTERN_ORDER);\n //replace each match\n foreach($matches[1] as $match) {\n //take first element if array\n if(is_array($placeholders[$match])) {\n $value = $placeholders[$match][0];\n } else {\n $value = $placeholders[$match];\n }\n $value = $this->_filterEscape($value);\n $filter = str_replace('%{'.$match.'}', $value, $filter);\n }\n return $filter;\n }", "function fastshop_sanitize_checkbox( $checked ) {\n return (bool) $checked;\n}", "public function getBooleanString($tf);", "function antiinjection($data){\n\t$filter_sql = stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES)));\n \treturn $filter_sql;\n}", "function sanitize($cleanFramewerkTags)\n {\n if ( $cleanFramewerkTags == true )\n {\n $this->value = preg_replace('/({(@|%|!i18n:)([^{}]*((?1)[^{}]*)*)})/', $this->value);\n }\n }", "public static function sanitize()\n {\n return new FlagQualifier(self::SANITIZE);\n }", "protected function prepareValue($value) {\n $result = $value;\n if (is_bool($result)) {\n if ($value) {\n $result = '1';\n } else {\n $result = '0';\n }\n } else if (strpos($result, \"\\n\") !== FALSE) {\n// $result = '\"' . $result . '\"';\n// $result = preg_replace(\"/\\t/\", \"\\\\t\", $result);\n// $result = preg_replace(\"/\\r?\\n/\", \"\\\\n\", $result);\n $result = str_replace(\"\\n\", PHP_EOL, $result);\n }\n return $result;\n }", "public function testToStringWithStringValueFalse()\n\t{\n\t // initialize a new Boolean instance\n\t $boolean = new TechDivision_Lang_Boolean('false');\n\t\t// check that the two boolean are equal\n\t\t$this->assertEquals('false', $boolean->__toString());\n\t}", "public static function strbool($bool){\r\n return ($bool) ? \"true\" : \"false\";\r\n }", "function sql_desanitize($sql)\r\n{\r\n\t$trysan = str_replace(\"\\\\\\\\\", \"\\\\\", $sql);\r\n\t$trysan = str_replace(\"\\\"\\\"\", \"\\\"\", $trysan);\r\n\t$trysan = str_replace(\"''\", \"'\", $trysan);\r\n\treturn $trysan;\r\n}", "protected static function preparar_filtros($variables=false){\n $filtros='';\n if($variables){\n $filtros='WHERE true ';\n foreach ($variables as $clave => $valor):\n $clave=strtolower($clave);\n $filtros .=\" AND \".$clave.\"= ? \"; \n endforeach;\n }\n return $filtros;\n }", "function string_strip_quote($p_string) {\n\n\t\t\t$pattern = '#\\[quote[^\\]]*\\]#imsU';\n\t\t\tif ( !preg_match($pattern, $p_string, $matches) ) {\n\t\t\t\treturn $p_string;\n\t\t\t}\n\t\t\t$pattern = '#\\[quote(?:=([^\\]]+))?\\](.+)\\[/quote\\]#imsU';\n\t\t\t$p_string = preg_replace_callback($pattern, array($this, 'removeQuotes'), $p_string);\n\t\t\treturn $p_string;\n\t\t}", "function clean_form_input($form_data){\n\t$temp = str_ireplace(\",\",\"@\", $form_data);\n\t$temp = str_ireplace(\"\\\"\",\"|\", $temp); \n\t$temp = str_ireplace(\"<\", \"$\", $temp);\n\t$temp = str_ireplace(\">\", \"?\", $temp);\n return $temp;\n}", "function convert_highlite_words($words = \"\")\n\t{\n\t\tglobal $std;\n\t\t$ibforums = Ibf::app();\n\n\t\t$words = $std->clean_value(trim(urldecode($words)));\n\n\t\t// Convert booleans to something easy to match next time around\n\n\t\t$words = preg_replace(\"/\\s+(and|or)(\\s+|$)/i\", \",\\\\1,\", $words);\n\n\t\t// Convert spaces to plus signs\n\n\t\t$words = preg_replace(\"/\\s/\", \"+\", $words);\n\n\t\treturn $words;\n\t}", "function string_restore_valid_html_tags( $p_string, $p_multiline = true ) \r\n{\r\n\t$t_html_valid_tags = config_get( $p_multiline ? 'html_valid_tags' : 'html_valid_tags_single_line' );\r\n\r\n\tif ( OFF === $t_html_valid_tags || is_blank( $t_html_valid_tags ) ) {\r\n\t\treturn $p_string;\r\n\t}\r\n\r\n\t$tags = explode( ',', $t_html_valid_tags );\r\n\tforeach ($tags as $key => $value) \r\n\t{ \r\n \tif ( !is_blank( $value ) ) {\r\n \t$tags[$key] = trim($value); \r\n }\r\n }\r\n $tags = implode( '|', $tags);\r\n\r\n\t$p_string = preg_replace( '/&lt;(' . $tags . ')\\s*&gt;/ui', '<\\\\1>', $p_string );\r\n\t$p_string = preg_replace( '/&lt;\\/(' . $tags . ')\\s*&gt;/ui', '</\\\\1>', $p_string );\r\n\t$p_string = preg_replace( '/&lt;(' . $tags . ')\\s*\\/&gt;/ui', '<\\\\1 />', $p_string );\r\n\r\n\r\n\treturn $p_string;\r\n}", "public function testQuoteOrNot()\n {\n // Prepare / Mock\n // The key is the expected output and the value is the input.\n $values = [\n \"'quoted_string'\" => 'quoted_string',\n '123' => 123,\n 'COUNT(id)' => 'COUNT(id)',\n 'null' => 'null',\n 'MAX(random_id)' => 'MAX(random_id)',\n 'true' => 'true',\n 'false' => 'false',\n 'THIS_IS_NOT_QUOTED' => 'THIS_IS_NOT_QUOTED',\n \"'THIS_IS_QUOTED'\" => 'THIS_IS_QUOTED',\n ];\n\n // Add more to this array that would not get quoted.\n // The above array with this value will not get quoted.\n $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords'] = ['THIS_IS_NOT_QUOTED'];\n\n // Execute\n foreach ($values as $key => $value) {\n $result = $this->testObject->quoteOrNot($value);\n\n $this->assertEquals($key, $result);\n }\n }", "function prepare_field_datetime($field){\n return trim(preg_replace(\"/[<>&=%'“]/i\", \"\", $field));\n}", "function corrConditionOperatorToString($operator) {\n\t$operators = [\n\t\tCONDITION_OPERATOR_EQUAL => '=',\n\t\tCONDITION_OPERATOR_NOT_EQUAL => '<>',\n\t\tCONDITION_OPERATOR_LIKE => _('like'),\n\t\tCONDITION_OPERATOR_NOT_LIKE => _('not like')\n\t];\n\n\treturn $operators[$operator];\n}", "function stage_string_to_bool($string)\n{\n return is_bool($string) ? $string : ( 'yes' === $string || 1 === $string || 'true' === $string || '1' === $string );\n}", "function revertLiteralYamlPlaceHolder($lineArray, $literalBlock) {\n\t//--\n\tforeach($lineArray as $k => $v) {\n\t\tif(is_array($v)) {\n\t\t\t$lineArray[$k] = $this->revertLiteralYamlPlaceHolder($v, $literalBlock);\n\t\t} elseif(substr($v, -1 * strlen($this->yaml_literal_placeholder)) == $this->yaml_literal_placeholder) {\n\t\t\t$lineArray[$k] = rtrim($literalBlock, \" \\r\\n\");\n\t\t} //end if else\n\t} //end foreach\n\t//--\n\treturn $lineArray;\n\t//--\n}", "protected function fixOperator(&$operator, &$value, $rawMode)\n {\n if (!$rawMode && WhereInterface::NO_VALUE === $value) {\n $value = $operator;\n $operator = '=';\n }\n }", "function split_truefalse_comment($comment){\n // returns an array of true/false feedback\n $bits = explode('#',$comment);\n $feedback = array('wrong' => $bits[0]);\n if (count($bits) >= 2) {\n $feedback['right'] = $bits[1];\n } else {\n $feedback['right'] = '';\n }\n return $feedback;\n }", "function prepare_code($text) {\n $replace = array( '\\\"' => '&#34;','\"' => '&#34;', '<' => '&lt;', '>' => '&gt;', \"\\'\" => '&#39;', \"'\" => '&#39;' );\n return str_replace(array_keys($replace), array_values($replace),$text);\n}", "function mFALSE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$FALSE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:286:3: ( 'false' ) \n // Tokenizer11.g:287:3: 'false' \n {\n $this->matchString(\"false\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "private function strToBoolean($value) {\r\n\t\tif ($value && strtolower($value) === \"true\") {\r\n\t\t return true;\r\n\t\t} else {\r\n\t\t return false;\r\n\t\t}\r\n\t}", "function sanitizeArray(&$array)\n{\n $excludeListForSanitization = array('query');\n// $excludeListForSanitization = array();\n\n foreach ($array as $k => $v) {\n\n // split to key and value\n list($key, $val) = preg_split(\"/=/\", $v, 2);\n if (!isset($val)) {\n continue;\n }\n\n // when magic quotes is on, need to use stripslashes,\n // and then addslashes\n if (PHP_VERSION_ID < 50400 && get_magic_quotes_gpc()) {\n $val = stripslashes($val);\n }\n // note that we must use addslashes here because this function is called before the db connection is made\n // and sql_real_escape_string needs a db connection\n $val = addslashes($val);\n\n // if $key is included in exclude list, skip this param\n if (!in_array($key, $excludeListForSanitization)) {\n\n // check value\n if (strpos($val, '\\\\')) {\n list($val, $tmp) = explode('\\\\', $val);\n }\n\n // remove control code etc.\n $val = strtr($val, \"\\0\\r\\n<>'\\\"\", \" \");\n\n // check key\n if (preg_match('/\\\"/i', $key)) {\n unset($array[$k]);\n continue;\n }\n\n // set sanitized info\n $array[$k] = sprintf(\"%s=%s\", $key, $val);\n }\n }\n}", "function sanitation($postVal){\n\t$rawinfo= $postVal;\n\t$removeSpecial = htmlspecialchars($rawinfo);\n\t$finalForm = escapeshellcmd($removeSpecial);\n\treturn $finalForm;\n}", "function cond_to_sqladd($cond) {\n\t$s = '';\n\tif(!empty($cond)) {\n\t\t$s = ' WHERE ';\n\t\tforeach($cond as $k=>$v) {\n\t\t\tif(!is_array($v)) {\n\t\t\t\t$v = addslashes($v);\n\t\t\t\t$s .= \"$k = '$v' AND \";\n\t\t\t} else {\n\t\t\t\tforeach($v as $k1=>$v1) {\n\t\t\t\t\t$v1 = addslashes($v1);\n\t\t\t\t\t$k1 == 'LIKE' AND $v1 = \"%$v1%\";\n\t\t\t\t\t$s .= \"$k $k1 '$v1' AND \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$s = substr($s, 0, -4);\n\t}\n\treturn $s;\n}", "function yy_r66(){ $this->_retvalue = str_replace(array('.\"\".','\"\".','.\"\"'),array('.','',''),'\"'.$this->yystack[$this->yyidx + -1]->minor.'\"'); }", "private function injectSpecialBindings(string $sql, array $bindings):string {\n\tforeach(self::SPECIAL_BINDINGS as $special) {\n\t\t$specialPlaceholder = \":\" . $special;\n\n\t\tif(!array_key_exists($special, $bindings)) {\n\t\t\tcontinue;\n\t\t}\n\t\t$sql = str_replace($specialPlaceholder, $bindings[$special], $sql);\n\t\tunset($bindings[$special]);\n\t}\n\n\treturn $sql;\n}", "function mISLITERAL(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$ISLITERAL;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:271:3: ( 'isliteral' ) \n // Tokenizer11.g:272:3: 'isliteral' \n {\n $this->matchString(\"isliteral\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function protectNicknameFromInjection($sql, $formUse = true) {\n $sql = preg_replace(\"/(from|select|insert|delete|where|drop table|show tables|,|'|#|\\*|--|\\\\\\\\)/i\", \"\", $sql);\n $sql = trim($sql);\n $sql = strip_tags($sql);\n \n if(!$formUse || !get_magic_quotes_gpc())\n $sql = addslashes($sql);\n\n return $sql;\n }", "function anti_injection($sql)\n{\n\t$sql = preg_replace(sql_regcase(\"/(from|select|insert|delete|where|drop table|show tables|#|\\*|--|\\\\\\\\)/\"),\"\",$sql);\n\t$sql = trim($sql);//limpa espaços vazio\n\t$sql = strip_tags($sql);//tira tags html e php\n\t$sql = addslashes($sql);//Adiciona barras invertidas a uma string\n\treturn $sql;\n}", "private function prepareBoolParam($value)\n {\n if (is_bool( $value )) {\n return true === $value ? 'true' : 'false';\n }\n\n return $value;\n }", "function fillVariableIfActivated($strNeedle, $strReplace, $strHaystack, $boolActivated)\n {\n if ($boolActivated) {\n return preg_replace('/\\{'.$strNeedle.'\\}/mi', $strReplace, $strHaystack);\n }\n return $strHaystack;\n }", "function smarty_function_escape_special_chars( $string )\r\n{\r\n if ( !is_array( $string ) )\r\n {\r\n $string = preg_replace( \"!&(#?\\\\w+);!\", \"%%%SMARTY_START%%%\\\\1%%%SMARTY_END%%%\", $string );\r\n $string = htmlspecialchars( $string );\r\n $string = str_replace( array( \"%%%SMARTY_START%%%\", \"%%%SMARTY_END%%%\" ), array( \"&\", \";\" ), $string );\r\n }\r\n return $string;\r\n}", "function tidy_repair_string($data, $config = null, $encoding = null) {}", "protected function preparedPlaceholders(): array\n {\n $placeholders = [];\n foreach ($this->placeholders() as $placeholder => $var) {\n $placeholders['{{' . $placeholder . '}}'] = strpos($var, '--') !== 0 \n ? $this->arg($var) \n : $this->opt(substr($var, 0, 2));\n }\n\n return $placeholders;\n }", "function modifiercompiler_unescape($params)\n{\n if (!isset($params[ 1 ])) {\n $params[ 1 ] = 'html';\n }\n if (!isset($params[ 2 ])) {\n $params[ 2 ] = '\\'' . addslashes($_CHARSET) . '\\'';\n } else {\n $params[ 2 ] = \"'{$params[ 2 ]}'\";\n }\n switch (trim($params[ 1 ], '\"\\'')) {\n case 'entity':\n case 'htmlall':\n if ($_MBSTRING) {\n return 'mb_convert_encoding(' . $params[ 0 ] . ', ' . $params[ 2 ] . ', \\'HTML-ENTITIES\\')';\n }\n return 'html_entity_decode(' . $params[ 0 ] . ', ENT_NOQUOTES, ' . $params[ 2 ] . ')';\n case 'html':\n return 'htmlspecialchars_decode(' . $params[ 0 ] . ', ENT_QUOTES)';\n case 'url':\n return 'rawurldecode(' . $params[ 0 ] . ')';\n default:\n return $params[ 0 ];\n }\n\n }", "public function booleanAndTerm($term){\n\t\t$term = preg_replace(\"/[^ a-zA-Z0-9]/\", '', $term);\n\t\t\n\t\t$term = mysql_real_escape_string(trim($term));\n\t\t$terms = explode(' ', $term);\n\t\t$return = '';\n\t\tforeach($terms as $word){\n\t\t\tif(strlen($word)>2){\n\t\t\t\t// if has a plural then try without\n\t\t\t\tif(substr($word,-1) == 's'){\n\t\t\t\t\t$return .= '+(>' . $word. ' <' . substr($word,0,-1) . '*) ';\n\t\t\t\t}else{\n\t\t\t\t// if singular then try with an s\n\t\t\t\t\t$return .= '+(>' . $word . ' <' . $word . 's) ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//echo $return;\n\t\t//echo ' --> ';\n\t\treturn $return;\n\t}", "public static function escapeQuery($keywords)\n {\n $searchKeywords = preg_replace('/([\\+\\-!\\(\\)\\{\\}\\[\\]\\^\"~\\*\\?:\\/\\|&]|AND|OR|NOT)/', '\\\\\\${1}', $keywords);\n return $searchKeywords;\n }", "function sqlsanitize($sql)\r\n{\r\n\t$trysan = str_replace(\"\\\\\", \"\\\\\\\\\", $sql);\r\n\t$trysan = str_replace(\"\\\"\", \"\\\"\\\"\", $trysan);\r\n\t$trysan = str_replace(\"'\", \"''\", $trysan);\r\n\treturn $trysan;\r\n}" ]
[ "0.606175", "0.5674947", "0.5496095", "0.5475485", "0.5401048", "0.5264289", "0.5171866", "0.51709694", "0.51666445", "0.5131951", "0.5128939", "0.51193595", "0.511414", "0.51028115", "0.5081426", "0.5067587", "0.50608873", "0.50413966", "0.503225", "0.5002089", "0.49743825", "0.49560097", "0.49141982", "0.49125344", "0.49115378", "0.48964694", "0.48737803", "0.48686352", "0.48552588", "0.48457724", "0.4839671", "0.4819037", "0.48174626", "0.48172143", "0.4812294", "0.48091134", "0.4807097", "0.48052543", "0.47974718", "0.47961316", "0.47929856", "0.47719887", "0.47670567", "0.47589985", "0.4751726", "0.47494525", "0.47476926", "0.4741398", "0.47401235", "0.47399172", "0.4726578", "0.47097677", "0.47061834", "0.4703649", "0.4693614", "0.46891505", "0.46834645", "0.4670794", "0.46687853", "0.46661302", "0.4662016", "0.4652391", "0.46441942", "0.46412033", "0.4640535", "0.46258023", "0.46160522", "0.4615309", "0.46082053", "0.46079737", "0.459347", "0.45841223", "0.45838302", "0.45713663", "0.45670918", "0.4562413", "0.45556262", "0.45513868", "0.45463675", "0.45375055", "0.45310125", "0.45248032", "0.45231342", "0.45185682", "0.4515495", "0.4506667", "0.45057973", "0.4502294", "0.45007157", "0.45006403", "0.44986835", "0.44955406", "0.44916886", "0.4490362", "0.44876447", "0.44834062", "0.4482376", "0.4478377", "0.4475046", "0.4470284", "0.4469837" ]
0.0
-1
if it is not yet set and level is n (0 or 1) and OPERATOR is found from string
private function setMutual($s, $level, $n) { # this will take the first boolean AND/OR from the first levels of recursion # calculating from left and make it the mutual starting point if ($level == $n) { preg_match($this->OPERATORS, $s, $groups); if ($groups) { $t = trim(strtolower(implode('', $groups))); $this->mutual = strpos($t, "and") > -1 || strpos($t, "&") > -1 || strpos($t, "∧") > -1 ? TRUE : FALSE; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function parseOperator(TokenInterface $token);", "abstract function getOperator() : string ;", "function identify_operand(){\n global $token;\n global $identifier;\n global $label;\n switch ($token->data) {\n case 'string':\n $identifier->stringSearch = True;\n break;\n case 'int':\n $identifier->numberSearch = True;\n break;\n case '@':\n $identifier->markerSearch = True;\n default:\n if(preg_match(\"/^(LT)|(GT)|(LF)$/\", $token->data)){\n $identifier->varSearch = True;\n }\n break;\n }\n }", "protected function _get_operator($str) {\n\t\tstatic $_operators;\n\n\t\tif (empty($_operators)) {\n\t\t\t$_operators = array(\n\t\t\t\t'\\s*(?:<|>|!)?=\\s*', // =, <=, >=, !=\n\t\t\t\t'\\s*<>?\\s*', // <, <>\n\t\t\t\t'\\s*>\\s*', // >\n\t\t\t\t'\\s+IS NULL', // IS NULL\n\t\t\t\t'\\s+IS NOT NULL', // IS NOT NULL\n\t\t\t\t'\\s+EXISTS\\s*\\(.*\\)', // EXISTS(sql)\n\t\t\t\t'\\s+NOT EXISTS\\s*\\(.*\\)', // NOT EXISTS(sql)\n\t\t\t\t'\\s+BETWEEN\\s+', // BETWEEN value AND value\n\t\t\t\t'\\s+IN\\s*\\(.*\\)', // IN(list)\n\t\t\t\t'\\s+NOT IN\\s*\\(.*\\)', // NOT IN (list)\n\t\t\t);\n\n\t\t}\n\n\t\treturn preg_match('/'.implode('|', $_operators).'/i', $str, $match) ? $match[0] : FALSE;\n\t}", "function extractCommand( $str ) {\n\t\t$this->errno = 0;\n\t\t$this->errinfo = \"\";\n\t\t\n\t\tif( strstr( $str, \"OPEN\" ) ) {\n\t\t\t$command = \"OPEN\";\n\t\t}\n\t\telse if( strstr( $str, \"IN-LINE FIND\" ) ) {\n\t\t\t$command = \"INFIND\";\n\t\t}\n\t\telse if( strstr( $str, \"IN-LINE, FIND\" ) ) {\n\t\t\t$command = \"INFIND\";\n\t\t}\n\t\telse if( strstr( $str, \"FIND\" ) ) {\n\t\t\t$command = \"FIND\";\n\t\t}\n\t\telse if( strstr( $str, \"IN-LINE REPLACE\" ) ) {\n\t\t\t$command = \"INREPLACE\";\n\t\t}\n\t\telse if( strstr( $str, \"IN-LINE, REPLACE\" ) ) {\n\t\t\t$command = \"INREPLACE\";\n\t\t}\n\t\telse if( strstr( $str, \"REPLACE\" ) ) {\n\t\t\t$command = \"REPLACE\";\n\t\t}\n\t\telse if( strstr( $str, \"IN-LINE AFTER, ADD\" ) ) {\n\t\t\t$command = \"INAFTERADD\";\n\t\t}\n\t\telse if( strstr( $str, \"AFTER, ADD\" ) ) {\n\t\t\t$command = \"AFTERADD\";\n\t\t}\n\t\telse if( strstr( $str, \"IN-LINE BEFORE, ADD\" ) ) {\n\t\t\t$command = \"INBEFOREADD\";\n\t\t}\n\t\telse if( strstr( $str, \"BEFORE, ADD\" ) ) {\n\t\t\t$command = \"BEFOREADD\";\n\t\t}\n\t\telse if( strstr( $str, \"SAVE/CLOSE\" ) ) {\n\t\t\t$command = \"CLOSE\";\n\t\t}\n\t\telse if( strstr( $str, \"COPY\" ) ) {\n\t\t\t$command = \"COPY\";\n\t\t}\n\t\telse if( strstr( $str, \"SQL\" ) ) {\n\t\t\t$command = \"SQL\";\n\t\t}\n\t\telse if( strstr( $str, \"INCREMENT\" ) ) {\n\t\t\t$command = \"INCREMENT\";\n\t\t}\n\t\telse {\n\t\t\t$command = \"UNKNOWN\";\n\t\t}\n\t\t\n\t\treturn $command;\n\t}", "function insertparen($inparms){ \n if ($this->selectedNode >= 0) {\n if ($inparms['ptype'] == 'open') {\n $this->_query->insert(new queryElement('(', 'p'), $this->selectedNode);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator++;\n }\n $this->selectedNode++;\n } else {\n $this->_query->insert(new queryElement(')', 'p'), $this->selectedNode+1);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator++;\n } \n }\n }\n\n return $this->output(NULL);\n }", "protected abstract function getOperator();", "abstract public function get_operator();", "protected function _has_operator($str) {\n\t\treturn (bool) preg_match('/(<|>|!|=|\\sIS NULL|\\sIS NOT NULL|\\sEXISTS|\\sBETWEEN|\\sLIKE|\\sIN\\s*\\(|\\s)/i', trim($str));\n\t}", "function mOR(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OR;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:611:3: ( '||' ) \n // Tokenizer11.g:612:3: '||' \n {\n $this->matchString(\"||\"); \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 getOperator(): string;", "public function getOperator(): string;", "static function level ($in, $level = 1) {\n\t\tif ($level < 1) {\n\t\t\treturn $in;\n\t\t}\n\t\treturn preg_replace('/^(.*)$/m', str_repeat(\"\\t\", $level).'$1', $in);\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 hasOperator(string $token): bool;", "function GetSubLevelsInStr( $spr, $level, $lang_id=NULL )\n {\n $db = DBs::getInstance();\n if( empty($lang_id) ) $lang_id = $this->lang_id;\n if($level!=0)\n {\n $q = \"SELECT `node` FROM `\".$spr.\"` WHERE `level`='$level' group by level\";\n $res = $db->db_Query( $q );\n if( !$res )return false;\n $row=$db->db_FetchAssoc();\n $curr_node = $row['node'];\n }\n else\n $curr_node = 0;\n $q = \"SELECT MAX(`node`) as max FROM `\".$spr.\"`\";\n $res = $db->db_Query( $q );\n if( !$res )return false;\n $row = $db->db_FetchAssoc();\n $max_node = $row['max'];\n $rows = $max_node - $curr_node;\n $q='SELECT t0.cod as cod0 ';\n for($i=1; $i<=$rows;$i++)\n {\n $q.=', '.'t'.$i.'.cod as cod'.$i;\n }\n $q.= ' FROM '.$spr.' AS t0 ';\n for($i=1; $i<=$rows;$i++)\n {\n $q.='LEFT JOIN '.$spr.' AS t'.$i.' ON ( t'.$i.'.level = t'.($i-1).'.cod AND t'.$i.'.lang_id = t'.($i-1).'.lang_id) ';\n }\n $q.=' WHERE 1 ';\n $q = $q.\" AND t0.level = $level AND t0.lang_id='\".$lang_id.\"' ORDER BY t0.move \";\n $res = $db->db_Query( $q );\n// echo '<br>q='.$q.' res='.$res.' $db->result='.$db->result;\n if( !$res )return false;\n $rows_count = $db->db_GetNumRows();\n //echo '<br> $rows='.$rows;\n $mas = array();\n for( $i = 0; $i < $rows_count; $i++ )\n {\n $row=$db->db_FetchAssoc();\n for($j=0;$j<=$rows;$j++){\n if(!isset($mas[$row['cod'.$j]]) && !is_null($row['cod'.$j]))\n {\n $mas[$row['cod'.$j]] = $row['cod'.$j];\n }\n }\n }\n return implode(\",\",$mas);\n }", "private function getOperator($token)\n\t{\n\t\tif ($token->isUnary())\n\t\t{\n\t\t\treturn $this->unary_operators[$token->value()];\n\t\t}\n\n\t\tif ( ! isset($this->binary_operators[$token->value()]))\n\t\t{\n\t\t\tthrow new BooleanExpressionException('Invalid Binary Operator: '. $token);\n\t\t}\n\n\t\treturn $this->binary_operators[$token->value()];\n\t}", "public function getOperator();", "public function getOperator();", "protected function getOperator($string)\n {\n static $operator;\n\n if (empty($operator)) {\n\n $likeEscapeString = ($this->conn->getConfig('likeEscapeString') !== '')\n ? '\\s+' . preg_quote(\n trim(\n sprintf(\n $this->conn->getConfig('likeEscapeString'),\n $this->conn->getConfig('likeEscapeCharacter')\n )\n ),\n '/'\n )\n : '';\n\n $operator = [\n '\\s*(?:<|>|!)?=\\s*', // =, <=, >=, !=\n '\\s*<>?\\s*', // <, <>\n '\\s*>\\s*', // >\n '\\s+IS NULL', // IS NULL\n '\\s+IS NOT NULL', // IS NOT NULL\n '\\s+EXISTS\\s*\\(.*\\)', // EXISTS(Sql)\n '\\s+NOT EXISTS\\s*\\(.*\\)', // NOT EXISTS(Sql)\n '\\s+BETWEEN\\s+', // BETWEEN value AND value\n '\\s+IN\\s*\\(.*\\)', // IN(list)\n '\\s+NOT IN\\s*\\(.*\\)', // NOT IN (list)\n '\\s+LIKE\\s+\\S.*(' . $likeEscapeString . ')?', // LIKE 'expr'[ ESCAPE '%s']\n '\\s+NOT LIKE\\s+\\S.*(' . $likeEscapeString . ')?' // NOT LIKE 'expr'[ ESCAPE '%s']\n ];\n }\n\n return preg_match('/' . implode('|', $operator) . '/i', $string, $match)\n ? $match[ 0 ]\n : false;\n }", "function checkopration($operator)\r\n {\r\n switch($operator)\r\n {\r\n case 'Add':\r\n return $this->number1 + $this->number2;\r\n break;\r\n\r\n case 'Substract':\r\n return $this->number1 - $this->number2;\r\n break;\r\n\r\n case 'Multiply':\r\n return $this->number1 * $this->number2;\r\n break;\r\n\r\n case 'Divide':\r\n return $this->number1 / $this->number2;\r\n break;\r\n\r\n default:\r\n return \"Sorry No command found\";\r\n } \r\n }", "function getOperator(): string\n {\n return \"w\";\n }", "public function getLevel()\n\t{\n\t\treturn $this->token->level;\n\t}", "function getOperators($strName,$arrRule) {\n\t\tglobal $LANG;\n $arrOptions = array(\n 'eq' => 'equal',\n 'ne' => 'notEqual',\n 'ss' => 'contains',\n 'ns' => 'notContains',\n 'gt' => 'greater',\n 'ge' => 'greaterEqual',\n 'lt' => 'less',\n 'le' => 'lessEqual',\n 'set' => 'set',\n 'notset' => 'notSet'\n );\n $arrCurQuestion = $this->arrPrevQuestions[stripslashes($arrRule['field'])];\n if (in_array($arrCurQuestion['question_type'],array(1,3,10,14,23))) {\n $arrOperators = $arrCurQuestion['options_required']?array('eq','ne','ss','ns'):array('eq','ne','ss','ns','set','notset');\n } elseif (in_array($arrCurQuestion['question_type'],array(2,4,5))) {\n $arrOperators = $arrCurQuestion['options_required']?array('eq','ne'):array('eq','ne','set','notset');\n } elseif (in_array($arrCurQuestion['question_type'],array(7,15))) {\n $arrOperators = $arrCurQuestion['options_required']?array('ss','ns'):array('ss','ns','set','notset');\n } elseif (in_array($arrCurQuestion['question_type'],array(11,12,13))) {\n $arrOperators = $arrCurQuestion['options_required']?array('eq','ne','gt','ge','lt','le'):array('eq','ne','gt','ge','lt','le','set','notset');\n }\n if (!$this->blnLocalization) {\n \t$arrOutput[] = '<select name =\"'.$strName.'[operator]\" onChange=\"submit();\")>';\n\t\t\tforeach($arrOperators as $strKey) {\n\t\t\t\t$arrOutput[] = '<option value=\"'.$strKey.'\" '.($arrRule['operator']==$strKey?'selected=\"selected\"':'').'>'.$LANG->getLL('conditions_'.$arrOptions[$strKey]).'</option>';\n\t\t\t}\n\t $arrOutput[] = '</select>';\n\t\t} else {\n\t\t\tforeach($arrOperators as $strKey) {\n\t\t\t\tif ($arrRule['operator']==$strKey) {\n\t\t\t\t\t$arrOutput[] = '<input type=\"hidden\" name=\"'.$strName.'[operator]\" value=\"'.$strKey.'\" />';\n\t\t\t\t\t$arrOutput[] = $LANG->getLL('conditions_'.$arrOptions[$strKey]).'<br />';\n\t\t\t\t}\n\t\t\t}\n }\n $arrOutput[] = ($arrRule['operator']=='set'||$arrRule['operator']=='notset')?'':implode(chr(10),$this->getAnswers($strName,$arrRule));\n\t\treturn $arrOutput;\n\t}", "protected function parseCombinator()\n {\n $c = isset($this->input[$this->position]) ? $this->input[$this->position] : '';\n if ($c === '>' || $c === '+' || $c === '~' || $c === '|') {\n $this->position++;\n while ($this->isWhitespace()) {\n $this->position++;\n }\n\n return new ILess_Node_Combinator($c);\n } elseif ($this->position > 0 && (preg_match('/\\s/', $this->input[$this->position - 1]))) {\n return new ILess_Node_Combinator(' ');\n } else {\n return new ILess_Node_Combinator();\n }\n }", "function parse_condition($query){\n\t$pole = array(); \n\t$spl = qr_split($query);\n\t\n\t//var_dump($spl);\n\tforeach($spl as $exp){\n\t\tarray_push($pole, new Token($exp));\n\t}\n\n\t$out = array();\n\t$stack = array();\n\tforeach($pole as $val){\n\t\tif($val->type == \"elem\" || $val->type == \"lit\"){\n\t\t\tarray_push($out, $val);\n\t\t}\n\t\telse if($val->type == \"op\"){\n\t\t\tif(!preg_match(\"/NOT/\", $val->value)){\n\t\t\t\t$top = array_top($stack);\n\t\t\t\t\n\t\t\t\twhile(!empty($stack) && ($top->priority >= $val->priority)){\n\t\t\t\t\t$t = array_pop($stack);\n\t\t\t\t\tmake_node($t, $out, $stack); \n\t\t\t\t\t$top = array_top($stack);\n\t\t\t\t}\n\t\t\t}\n\t\t\tarray_push($stack, $val); \n\t\t}\n\t\telse if($val->type == \"par\"){\n\t\t\tif($val->value == '(')\n\t\t\t\tarray_push($stack, $val);\n\t\t\telse {\n\t\t\t\t$top = array_pop($stack);\n\n\t\t\t\twhile(!empty($stack) && $top->value != '('){\n\t\t\t\t\tmake_node($top, $out, $stack);\n\t\t\t\t\t$top = array_pop($stack);\n\t\t\t\t}\n\t\t\t\tif($top->value != '('){\n\t\t\t\t\tfwrite(STDERR,\"error - problemy se zavorkami\\n\");\n\t\t\t\t\texit(80); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfwrite(STDERR,\"error - neznamy\\n\");\n\t\t\texit(80); \n\t\t\t//var_dump($val);\n\t\t}\n\t}\n\twhile(!empty($stack)){\n\t\t$top = array_pop($stack);\n\t\tmake_node($top, $out, $stack);\n\t}\n\n\t$tree = array_pop($out);\n\tif(!empty($out)){\n\t\tfwrite(STDERR,\"error - vystupni zasobnik neni prazdny\\n\");\n\t\texit(80);\n\t}\n\t\t\n\n\treturn $tree;\n}", "function getLevel();", "private function parseBinary( $offset ){\n $input = substr($this->input, $offset);\n if ( preg_match('/^\\s*(\\=\\=|\\=|\\&\\&|\\|\\||[\\!\\+\\*\\-\\/\\^\\%\\<\\>]\\=?|\\.|\\[|\\])/', $input, $match) ) {\n $operator = $match[1];\n\n // [\n if ( $operator == '[' ){\n $this->outputQ []= $this->stack []= new Token($operator);\n// $this->parseState = STATE_BRACKET;\n $this->parseState = STATE_ZERO;\n }\n\n // .\n else if ( $operator == '.' ){\n $this->stack []= new Token($operator, TOKEN_BINARY);\n// $this->parseState = STATE_DOTACCESS;\n $this->parseState = STATE_DOT;\n }\n\n // ]\n else if( $operator == ']' ){\n if ( empty($this->stack) )\n return $this->evalError('Syntax Error: Mismatched brackets', $offset);\n $top = array_pop($this->stack);\n while( $top->value != '[' ){\n $this->outputQ [] = $top;\n if ( empty($this->stack) )\n return $this->evalError('Syntax Error: Mismatched brackets', $offset);\n $top = array_pop($this->stack);\n }\n $this->outputQ []= new Token(']');\n// $this->parseState = STATE_IDENTIFIER;\n $this->parseState = STATE_VAR;\n }\n\n // =\n else if ( $operator == '=' ){\n if ( $this->parseState != STATE_VAR ) return $this->evalError('Syntax Error: Assign to expression');\n// $this->assignStack [] = $this->outputQ;\n// $this->outputQ = array();\n $this->stack []= new Token('=', TOKEN_BINARY);\n $this->outputQ []= new Token('', TOKEN_ASSIGNMENT);\n $this->parseState = STATE_ZERO;\n }\n\n // ...\n else {\n $top = $this->stackTop();\n while (\n !empty($this->stack)\n && $top->value !== '('\n && (\n $this->isLeftAssoc($operator) && $this->comparePrecedence($operator, $top->value) != 1 // op <= top\n || $this->comparePrecedence($operator, $top->value) == -1 // op < top\n )\n ) {\n $this->outputQ [] = array_pop($this->stack); // A B C * +\n $top = $this->stackTop();\n }\n $this->stack []= new Token($operator, TOKEN_BINARY);\n\n $this->parseState = STATE_ZERO;\n }\n\n return strlen($match[0]);\n }\n return 0;\n }", "public function getOperator()\n {\n $logic = $this->getLogic();\n if (!$logic)\n return null;\n return array_key_exists('operator', $logic) ? $logic['operator'] : null;\n }", "protected function parseOperand()\n {\n $negate = false;\n if ($this->peekChar('@', 1) || $this->peekChar('(', 1)) {\n $negate = $this->matchChar('-');\n }\n\n $o = $this->matchFuncs(array(\n 'parseSubExpression',\n 'parseEntitiesDimension',\n 'parseEntitiesColor',\n 'parseEntitiesVariable',\n 'parseEntitiesCall'\n ));\n\n if ($negate) {\n $o->parensInOp = true;\n $o = new ILess_Node_Negative($o);\n }\n\n return $o;\n }", "public function __construct(string $value) //constructor\n {\n $seperateValues=explode(\" \",$value); //splitting the input using ' '\n\n $this->operator=array_shift($seperateValues); //using this method, I stored the operator in the operator property of \n //this class and removed it from the array\n \n \n for ($x = 0; $x < count($seperateValues); $x++) \n {\n try\n {\n if(is_numeric($seperateValues[$x])==1)\n {\n $this->operands[$x]=(int)$seperateValues[$x]; //retreivng the numbers from the existing array to the operands \n } //property I have created int this class\n else\n {\n $this->flag=1; //if the array has something else than a number, the flag becomes 1\n }\n }\n catch(Exception $e)\n {\n $this->flag=1; //also if there is any exception, the flag becomes 1\n }\n }\n }", "private function recursiveParenthesesGroups($i=0, $level=0) {\n list($tail, $root) = [[], []];\n\n while ($i < $this->literal_string_length) {\n $char = substr($this->literal_string, $i, 1);\n # create a new node if (\n if ($char == $this->OPEN_PARENTHESES) {\n $this->subRecursiveParenthesesGroups($root, $tail, $level, 1);\n $tail = [];\n # now recursively get the next data\n @list($sub, $i, $level) = $this->recursiveParenthesesGroups($i+1, $level+1);\n $root[] = $sub;\n # close the node and return back to parent if )\n } elseif ($char == $this->CLOSE_PARENTHESES) {\n $level -= 1;\n $this->subRecursiveParenthesesGroups($root, $tail, $level, 0);\n # it is important to return these information back to parent node\n return [$root, $i + 1, $level];\n # we are staying on same node level, collect characters\n } else {\n $tail[] = $char;\n $i += 1;\n }\n }\n # when the whole input string is processed:\n # add mutual boolean value to the root level for mutual change logic\n $this->mutual = is_bool($this->mutual) ? $this->mutual : TRUE;\n # finally return recursively constructed list\n return [$this->mutual, $root];\n }", "private function _get_operator($arg) {\n\t\tif (isset($this->operators[$arg])) {\n\t\t\treturn $this->operators[$arg];\n\t\t}\n\t\t// Override due to conceede to WP habit\n\t\tif ('post_mime_type' == $arg) {\n\t\t\treturn 'starts_with';\n\t\t}\n\t\telse {\n\t\t\treturn '=';\n\t\t}\n\t}", "public static function isOperator($token): bool\n {\n if (!\\is_string($token)) {\n return false;\n }\n\n return \\strpos(self::MISC_OPERATORS, $token) !== false;\n }", "function get_capability_by_level($level) {\r\n $capability = '';\r\n switch ($level) {\r\n /* Subscriber */\r\n case '0':\r\n $capability = 'read';\r\n break;\r\n /* Contributor */\r\n case '1':\r\n $capability = 'edit_posts';\r\n break;\r\n /* Author */\r\n case '2':\r\n $capability = 'publish_posts';\r\n break;\r\n /* Editor */\r\n case '5':\r\n $capability = 'edit_pages';\r\n break;\r\n /* Administrator */\r\n case '8':\r\n default:\r\n $capability = 'manage_options';\r\n break;\r\n }\r\n return $capability;\r\n }", "public function getOperatorValue();", "protected function getLevelSelector() {}", "public static function string_to_level($str)\n {\n $string_to_level = array_flip(static::$__level_to_string);\n if (array_key_exists($str, $string_to_level))\n return $string_to_level[$str];\n else\n return -1;\n }", "function deleteparen($inparms){\n if ($this->selectedNode >= 0) {\n if ($inparms['ptype'] == 'open') {\n if ($this->_query->getType($this->selectedNode-1) == 'p') {\n $this->_query->delete($this->selectedNode-1);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator--;\n }\n $this->selectedNode--;\n }\n } else {\n if ($this->_query->getType($this->selectedNode+1) == 'p') {\n $this->_query->delete($this->selectedNode+1);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator--;\n }\n }\n }\n }\n return $this->output(NULL);\n }", "function symb_identify($arg_order){\n global $token;\n $error_val = False;\n\n get_token();\n /* Symbol represented as integer */\n if($token->type === tokenType::d_int){\n upper_scan($token->data, 0);\n $arg_order->addAttribute('type','int');\n get_token();\n if($token->type === tokenType::marker){\n get_token();\n if($token->type !== tokenType::number){\n $error_val = True;\n }\n if(!preg_match(\"/^[+|-]?[0-9]*$/\",$token->data)){\n fwrite(STDERR,\"ERROR : LEX : detected lexical error in: $token->data\\n\");\n exit(23);\n }\n $arg_order[0] .= $token->data;\n }\n else $error_val = True;\n }\n /* Symbol represented as string */\n elseif($token->type === tokenType::d_string){\n upper_scan($token->data, 0);\n $arg_order->addAttribute('type','string');\n get_token();\n if($token->type === tokenType::marker){\n get_token();\n if($token->type !== tokenType::stringStream){\n if(preg_match(\"/^[+|-]?[0-9]*$/\",$token->data)){\n $token->type === tokenType::number;\n }\n else {\n $error_val = True;\n }\n }\n $arg_order[0] .= xml_special_char($token->data);\n }\n else $error_val = True;\n }\n /* Symbol represented as bool */\n elseif($token->type === tokenType::d_bool){\n upper_scan($token->data, 0);\n $arg_order->addAttribute('type','bool');\n get_token();\n if($token->type === tokenType::marker){\n get_token();\n upper_scan($token->data, 1);\n if($token->type === tokenType::b_true){\n $arg_order[0] .= $token->data;\n }\n elseif($token->type === tokenType::b_false){\n $arg_order[0] .= $token->data;\n }\n else $error_val = True;\n }\n else $error_val = True;\n }\n /* Symbol represented as nil */\n elseif($token->type === tokenType::d_nil){\n upper_scan($token->data, 0);\n $arg_order->addAttribute('type', 'nil');\n get_token();\n if($token->type === tokenType::marker){\n get_token();\n upper_scan($token->data, 0);\n if($token->type !== tokenType::d_nil){\n $error_val = True;\n }\n $arg_order[0] .= $token->data;\n }\n else $error_val = True;\n }\n /* Symbol represented as <var> */\n elseif($token->type >= tokenType::f_gf && $token->type <= tokenType::f_tf){\n upper_scan($token->data, 0);\n $arg_order->addAttribute('type', 'var');\n $arg_order[0] .= $token->data;\n get_token();\n if($token->type === tokenType::marker){\n $arg_order[0] .= $token->data;\n get_token();\n if(!preg_match(\"/^[a-zA-Z_\\-\\$&%\\*!?][a-zA-Z_\\-\\$&%\\*!?0-9]*$/\", $token->data)){\n fwrite(STDERR,\"ERROR : LEX : detected lexical error in: $token->data\\n\");\n exit(23);\n }\n if($token->type !== tokenType::identifier){\n $error_val = True;\n }\n $arg_order[0] .= xml_special_char($token->data);\n }\n else $error_val = True;\n }\n else $error_val = True;\n\n if($error_val){\n fwrite(STDERR, \"ERROR : SYNTAX : Symbol <symb> expected : last token: $token->data $token->type\\n\");\n exit(23);\n }\n }", "protected function parseQueryOperator()\n {\n $token = $this->tokenQueue->peek();\n $data = $token->getData();\n\n $nextToken = $this->tokenQueue->peek(1);\n $nextData = $nextToken->getData();\n $op = false;\n\n switch ($data) {\n case '<':\n $op = ($nextData === '>' ? '>=' : ($nextData === '=' ? '<=' : '<'));\n break;\n case '>':\n $op = ($nextData === '=' ? '>=' : '>');\n break;\n case '=':\n $op = '=';\n break;\n case 'LIKE':\n $op = 'LIKE';\n break;\n }\n\n // Consume the correct number of tokens\n if ($op === 'LIKE' || strlen($op) === 1) {\n $this->tokenQueue->next();\n } elseif (strlen($op) === 2) {\n $this->tokenQueue->next();\n $this->tokenQueue->next();\n }\n\n return $op;\n }", "private function extractRule($rule)\n\t{\n\t\t$ruleSegments = array();\n\t\t$ruleOperators = array();\n\t\t$ruleLen = strlen($rule);\n\t\t// index of proceed\n\t\t$iop = 0;\n\n\t\t// scan the rule string char by char $ios index of scanned\n\t\tfor ($ios = 0;$ios<$ruleLen;$ios++)\n\t\t{\n\t\t\tswitch ($rule[$ios])\n\t\t\t{\n\t\t\t\tcase '&':\n\t\t\t\tcase '|':\n\t\t\t\t\tif ($iop<$ios)\n\t\t\t\t\t{\n\t\t\t\t\t\t$ruleSegments[] = trim(substr($rule,$iop,$ios-$iop));\n\t\t\t\t\t\t$iop = $ios+1;\n\t\t\t\t\t}\n\t\t\t\t\t$ruleOperators[] = $rule[$ios];\n\t\t\t\tbreak;\n\n\t\t\t\tcase '(':\n\t\t\t\t\t$nestedBracketCount = 0;\n\t\t\t\t\tfor ($j = $ios+1;$j<$ruleLen;$j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tswitch ($rule[$j])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase ')':\n\t\t\t\t\t\t\t\tif (0 === $nestedBracketCount)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$breaketEnd = $j;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$nestedBracketCount--;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase '(':\n\t\t\t\t\t\t\t\t$nestedBracketCount++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ($ruleLen === $j)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthrow new AgsInvalidParamsException(__CLASS__.'::'.__FUNCTION__,array('invalidRule'=>$rule));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// push entire content of the outtest breaket but itself into segments\n\t\t\t\t\t$ruleSegments[] = trim(substr($rule,$ios+1,$breaketEnd-$ios-1));\n\t\t\t\t\t// move ios to breaket end\n\t\t\t\t\t$ios = $breaketEnd;\n\t\t\t\t\t// +2 cuz the ')' and the operater after ')'\n\t\t\t\t\t$iop = $ios+2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// reached string end\n\t\t\t// 抵达访问控制规则末端\n\t\t\tif ((($ruleLen-1 === $ios) && ($iop < $ruleLen))\n\t\t\t\t// the rest of first OR operator will be put in $this->_nextRule\n\t\t\t\t// so OR may be either the last orperator or not exist\n\t\t\t\t// 如果遇到 OR 操作符,那么控制规则剩下的部分都会放进 $this->_nextRule\n\t\t\t\t// 所以OR操作符要么是最后一个操作符要么不存在\n\t\t\t\t|| ('|' === $rule[$ios]))\n\t\t\t{\n\t\t\t\t$ruleSegments[] = trim(substr($rule,$iop));\n\t\t\t\t// leave scan loop\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t$segCount = count($ruleSegments);\n\t\t// the leaf node of rules tree,has one and only one executable rule\n\t\t// 规则树的末端节点,有且只有一条可执行的规则\n\t\tif (1 === $segCount)\n\t\t{\n\t\t\t$this->_rule = current($ruleSegments);\n\t\t}\n\t\t// or split down into child\n\t\t// 否则继续分解\n\t\telse\n\t\t{\n\t\t\t// if the last operator is OR,the last rule should be proceed later\n\t\t\t// or all rules should be put in children\n\t\t\t// 如果最后一个操作符是OR,最后一条规则后面再处理\n\t\t\t// 否则所有的规则都放进子节点\n\t\t\tfor ($i = 0; $i < (('|' === end($ruleOperators))?($segCount-1):$segCount); $i++)\n\t\t\t{\n\t\t\t\t$this->_childRules[] = new AgsAccessRule(array_shift($ruleSegments));\n\t\t\t}\n\n\t\t\t// if still segment remain,it must be the OR rule\n\t\t\t// 如果还有规则段剩下,必然是那条OR规则了\n\t\t\tif (count($ruleSegments))\n\t\t\t{\n\t\t\t\t$this->_nextRule = new AgsAccessRule(array_pop($ruleSegments));\n\t\t\t}\n\t\t}\n\t}", "private function makeParenthesis()\n\t{\n\t\t$level = 0;\n\t\t/** @var Token $token */\n\t\tforeach ($this->tokens as $token)\n\t\t{\n\t\t\tif ($token->text === ')')\n\t\t\t\t$level--;\n\t\t\t$token->level = $level;\n\t\t\tif ($token->text === '(')\n\t\t\t\t$level++;\n\t\t}\n\t}", "abstract protected function parseOperand(TokenInterface $token);", "function isset_identif(){\n global $token;\n global $identifier;\n global $label;\n\n if($identifier->stringSearch && $identifier->markerSearch){\n $token->type = tokenType::stringStream;\n }\n elseif($identifier->varSearch){\n $token->type = tokenType::identifier;\n if(!preg_match(\"/^[a-zA-Z_\\-\\$&%\\*!?][a-zA-Z_\\-\\$&%\\*!?0-9]*$/\", $token->data)){ //checks if indentif. really matches regex for identif.\n fwrite(STDERR,\"ERROR : LEX : detected lexical error in: $token->data\\n\");\n exit(23);\n }\n }\n elseif($identifier->numberSearch && $identifier->markerSearch){\n $token->type = tokenType::number;\n }\n elseif($label->isset){\n $token->type = tokenType::identifier;\n }\n }", "protected function parseOperator(string $operator)\n {\n $dict_operators = [\n '!~' => ' NOT LIKE ',\n '>=' => ' >= ',\n '<=' => ' <= ',\n '=' => ' = ',\n '!=' => ' != ',\n '>' => ' > ',\n '<' => ' < ',\n '~' => ' LIKE ',\n '!' => ' IS NOT '\n ];\n\n return (isset($dict_operators[$operator]) ? $dict_operators[$operator] : false);\n }", "function lex($polynomial)\n{\n //symbol set\n //constant is float\n //power must positive integer, \n //single variable, no more than 1 variable\n //^\n // +, -\n //start char must a contant or an variable\n $index = 0;\n /*$token = getMonomial($polynomial, $index);\n $tokens[] = $token['token'];\n $index = $token['index'];*/\n $sign = 1;\n while (isset($polynomial[$index])) {\n \n if (isSign($polynomial[$index])) {\n if ($polynomial[$index] === '-') {\n $sign = -1;\n } else {\n $sign = 1;\n }\n ++$index;\n }\n \n $token = getMonomial($polynomial, $index);\n $token['token']['sign'] = $sign;\n $tokens[] = $token['token'];\n $index = $token['index'];\n }\n return $tokens;\n}", "function getPosname($condition)\n\t{\n\t\t$operators = '(,|\\+|\\-|\\*|\\/|==|\\!=|\\<\\>|\\<|\\>|\\<=|\\>=|and|or|xor)';\n\t\t$words = preg_split('# ' . $operators . ' #', $condition, null, PREG_SPLIT_DELIM_CAPTURE);\n\t\tfor ($i = 0, $n = count($words); $i < $n; $i += 2) {\n\t\t\t// odd parts (modules)\n\t\t\t$name = strtolower($words[$i]);\n\t\t\t$words[$i] = $this->getLayoutSetting($name, $name);\n\t\t}\n\n\t\t$poss = '';\n\t\tforeach ($words as $word) {\n\t\t\tif (is_string($word)) {\n\t\t\t\t$poss .= ' ' . $word;\n\t\t\t} else {\n\t\t\t\t$poss .= ' ' . (is_array($word) ? $word['position'] : (isset($word->position) ? $word->position : $name));\n\t\t\t}\n\t\t}\n\t\t$poss = trim($poss);\n\n\t\treturn $poss;\n\t}", "function mMINUS(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$MINUS;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:653:3: ( '-' ) \n // Tokenizer11.g:654:3: '-' \n {\n $this->matchChar(45); \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 level($n) {\n\t\treturn $this->sets[':default']->level($n);\n\t}", "public function getLevel($k)\n {\n // if the code does not exist => return empty\n if (!isset($this->code[$k])) {\n return array();\n }\n\n // the tag to detect\n $detect = $this->code[$k]->getName();\n\n // if it is a text => return\n if ($detect === 'write') {\n return array($this->code[$k]);\n }\n\n //\n $level = 0; // depth level\n $end = false; // end of the search\n $code = array(); // extract code\n\n // while it's not ended\n while (!$end) {\n // current action\n /** @var Node $node */\n $node = $this->code[$k];\n\n // if 'write' => we add the text\n if ($node->getName() === 'write') {\n $code[] = $node;\n } else { // else, it is a html tag\n $not = false; // flag for not taking into account the current tag\n\n // if it is the searched tag\n if ($node->getName() == $detect) {\n // if we are just at the root level => dont take it\n if ($level == 0) {\n $not = true;\n }\n\n // update the level\n $level += ($node->isClose() ? -1 : 1);\n\n // if we are now at the root level => it is the end, and dont take it\n if ($level == 0) {\n $not = true;\n $end = true;\n }\n }\n\n // if we can take into account the current tag => save it\n if (!$not) {\n $code[] = $node;\n }\n }\n\n // it continues as long as there has code to analyze\n if (isset($this->code[$k + 1])) {\n $k++;\n } else {\n $end = true;\n }\n }\n\n // return the extract\n return $code;\n }", "public function isOperator()\n {\n return\n $this->type === 'plus' ||\n $this->type === 'minus' ||\n $this->type === 'slash' ||\n $this->type === 'star';\n }", "public function parse($braket = 0)\n\t{\n\t\t/**\n\t\t * @var Expression\n\t\t */\n\t\t$expression = false;\n\t\t$prev_char = $char = \"\";\n\t\t$buffer = \"\";\n\t\twhile ($this->index < $this->chars_count) {\n\t\t $prev_char = $char;\n\t\t $char = $this->chars[$this->index];\n\t switch ($this->state) {\n\t case self::WAIT_OPERAND:\n\t if ($char !== ' ') {\n\t \t if ($char === '\"') {\n\t \t $this->state = self::DOUBLE_QUOTE;\n\t \t $this->index++; \n\t \t } else {\n\t $this->state = self::OPERAND;\n\t \t }\n\t }\n\t break;\n\t case self::OPERAND:\n\t \t $is_op = $this->isOperation($char);\n\t \t if ($char === '(') {\n\t \t \t $this->index++;\t\n\t \t $operand = $this->parse(true);\n\t \t $operand->block(true);\n\t \t \t if ($expression) {\n\t \t \t $expression->addExpression($operand);\n\t \t \t } else {\n\t \t \t $expression = $operand;\n\t \t \t }\n \t \t \t $this->state = self::WAIT_OPERATION;\n \t \t \t $buffer = '';\n\t \t } elseif ($braket && $char == ')') {\n\t \t \t $this->index++;\n\t \t \t return $expression;\n\t \t } elseif ($char === ' ' || $is_op) {\n\t \t \t if (is_numeric($buffer)) {\n\t \t \t $operand = new ExpressionValue($buffer);\n\t \t \t } else {\n\t \t \t \t $operand = new ExpressionField($buffer);\n\t \t \t }\n\t \t \t if ($expression) {\n\t \t \t $expression->addExpression($operand);\n\t \t \t } else {\n\t \t \t $expression = $operand;\n\t \t \t }\n\t \t \t if ($is_op) {\n\t \t \t \t\tif (!$buffer) {\n\t \t \t \t\t\tthrow new Exception(\"Parse error on '\".$op.\"'\");\n\t \t \t \t\t}\n\t \t \t \t\t$this->state = self::OPERATION;\n\t \t \t \t\t$buffer = $char;\n\t \t \t } else {\n\t \t \t \t\t$this->state = self::WAIT_OPERATION;\n\t \t \t \t\t$buffer = '';\n\t \t \t }\n\t \t } else {\n\t \t $buffer .= $char;\n\t \t }\n\t \t $this->index++;\n\t \t break;\n\t case self::WAIT_OPERATION:\n\t \t if ($char !== ' ') {\n\t \t $this->state = self::OPERATION;\n\t \t } else {\n\t \t $this->index++;\n\t \t }\n\t \t break;\n\t case self::PARAM:\n\t \t\t\n\t \t\tbreak;\n\t case self::OPERATION: \n\t \t if ($char === ' ') {\n\t \t $expression = $expression->addOp($buffer);\n\t \t $this->state = self::WAIT_OPERAND;\n\t \t $buffer = \"\";\n\t \t } else {\n\t \t \t $buffer .= $char;\n\t \t }\n\t \t $this->index++;\n\t break;\n\t case self::DOUBLE_QUOTE:\n\t \t if ($char == '\"' && $prev_char !== \"\\\\\") {\n\t \t \t $operand = new ExpressionValue($buffer, '\"');\n\t \t \t if ($expression) {\n\t \t \t $expression->addExpression($operand);\n\t \t \t } else {\n\t \t \t \t $expression = $operand;\n\t \t \t }\n\t \t \t $this->state = self::WAIT_OPERATION;\n\t \t \t $buffer = \"\";\n\t \t } else {\n\t \t $buffer .= $char;\n\t \t }\n\t \t $this->index++;\n\t \t break;\n\t }\t\t\n\t\t}\n\t\treturn $expression;\n\t}", "function controlInstruction($instruction, $number_of_instruction)\n{\n // pole pro opcodes vsech instrukci\n $instruction_names = array(\"MOVE\",\"CREATEFRAME\",\"PUSHFRAME\",\"POPFRAME\",\"DEFVAR\",\"CALL\",\"RETURN\",\"PUSHS\",\"POPS\",\"ADD\",\"SUB\",\"MUL\",\"IDIV\",\"LT\",\"GT\",\"EQ\",\"AND\",\"OR\",\"NOT\",\"INT2CHAR\",\"STRI2INT\",\"READ\",\"WRITE\",\"CONCAT\",\"STRLEN\",\"GETCHAR\",\"SETCHAR\",\"TYPE\",\"LABEL\",\"JUMP\",\"JUMPIFEQ\",\"JUMPIFNEQ\",\"EXIT\",\"DPRINT\",\"BREAK\");\n // rozdeleni instrukci podle poctu argumentu\n $instruction_0arg = array(\"CREATEFRAME\",\"PUSHFRAME\",\"POPFRAME\",\"RETURN\",\"BREAK\");\n $instruction_1arg = array(\"DEFVAR\",\"CALL\",\"PUSHS\",\"POPS\",\"WRITE\",\"LABEL\",\"JUMP\",\"EXIT\",\"DPRINT\");\n $instruction_2arg = array(\"MOVE\",\"INT2CHAR\",\"READ\",\"STRLEN\",\"TYPE\",\"NOT\");\n $instruction_3arg = array(\"ADD\",\"SUB\",\"MUL\",\"IDIV\",\"LT\",\"GT\",\"EQ\",\"AND\",\"OR\",\"STRI2INT\",\"CONCAT\",\"GETCHAR\",\"SETCHAR\",\"JUMPIFEQ\",\"JUMPIFNEQ\");\n\n if ((in_array((strtoupper($instruction[0])), $instruction_names)) == false)\n {\n ob_end_clean(); // pokud narazim na problem, odstranim vse co uz se vygenerovalo na STDOUT\n fprintf (STDERR, \"Chyba - Chybny nebo neznamy operacni kod!\\n\");\n exit(22);\n }\n\n // validace poctu operandu\n if ((in_array((strtoupper($instruction[0])), $instruction_0arg)) && (count($instruction) == 1))\n {\n $instruction[0] = strtoupper($instruction[0]);\n echo \" <instruction order=\\\"{$number_of_instruction}\\\" opcode=\\\"{$instruction[0]}\\\">\\n\";\n }\n else if ((in_array((strtoupper($instruction[0])), $instruction_1arg)) && (count($instruction) == 2))\n {\n $instruction[0] = strtoupper($instruction[0]);\n echo \" <instruction order=\\\"{$number_of_instruction}\\\" opcode=\\\"{$instruction[0]}\\\">\\n\";\n checkType($instruction);\n }\n else if ((in_array((strtoupper($instruction[0])), $instruction_2arg)) && (count($instruction) == 3))\n {\n $instruction[0] = strtoupper($instruction[0]);\n echo \" <instruction order=\\\"{$number_of_instruction}\\\" opcode=\\\"{$instruction[0]}\\\">\\n\";\n checkType($instruction);\n }\n else if ((in_array((strtoupper($instruction[0])), $instruction_3arg)) && (count($instruction) == 4))\n {\n $instruction[0] = strtoupper($instruction[0]);\n echo \" <instruction order=\\\"{$number_of_instruction}\\\" opcode=\\\"{$instruction[0]}\\\">\\n\";\n checkType($instruction);\n }\n else\n {\n Err();\n }\n echo \" </instruction>\\n\";\n\n}", "public function getLevel() {}", "function getOperand() ;", "function getOperand() ;", "function getOperand() ;", "function nfx($expr) {\n \n $expr = $this->checkVector($expr);\n \n $index = 0;\n $stack = new EvalMathStack;\n $output = array(); // postfix form of expression, to be passed to pfx()\n $expr = trim(mb_strtolower($expr));\n \n $ops = array('+', '-', '*', '/', '^', '_');\n $ops_r = array('+'=>0,'-'=>0,'*'=>0,'/'=>0,'^'=>1); // right-associative operator? \n $ops_p = array('+'=>0,'-'=>0,'*'=>1,'/'=>1,'_'=>1,'^'=>2); // operator precedence\n \n $expecting_op = false; // we use this in syntax-checking the expression\n // and determining when a - is a negation\n \n if (preg_match(\"/[^a-zа-я0-9\\s+*^\\/()\\.,-]/u\", $expr, $matches)) { // make sure the characters are all good\n return $this->trigger(\"illegal character '{$matches[0]}' at expression '{$expr}'\");\n }\n while(1) { // 1 Infinite Loop ;)\n $op = substr($expr, $index, 1); // get the first character at the current index\n // find out if we're currently at the beginning of a number/variable/function/parenthesis/operand\n $ex = preg_match('/^([a-zа-я][a-zа-я0-9]*\\(?|\\d+(?:\\.\\d*)?|\\.\\d+|\\()/u', substr($expr, $index), $match);\n //===============\n if ($op == '-' and !$expecting_op) { // is it a negation instead of a minus?\n $stack->push('_'); // put a negation on the stack\n $index++;\n } elseif ($op == '_') { // we have to explicitly deny this, because it's legal on the stack \n return $this->trigger(\"illegal character '_'\"); // but not in the input expression\n //===============\n } elseif ((in_array($op, $ops) or $ex) and $expecting_op) { // are we putting an operator on the stack?\n if ($ex) { // are we expecting an operator but have a number/variable/function/opening parethesis?\n return $this->trigger(\"expecting operand\");\n //$op = '*'; $index--; // it's an implicit multiplication\n }\n // heart of the algorithm:\n while($stack->count > 0 and ($o2 = $stack->last()) and in_array($o2, $ops) and ($ops_r[$op] ? $ops_p[$op] < $ops_p[$o2] : $ops_p[$op] <= $ops_p[$o2])) {\n $output[] = $stack->pop(); // pop stuff off the stack into the output\n }\n // many thanks: http://en.wikipedia.org/wiki/Reverse_Polish_notation#The_algorithm_in_detail\n $stack->push($op); // finally put OUR operator onto the stack\n $index++;\n $expecting_op = false;\n //===============\n } elseif ($op == ')' and $expecting_op) { // ready to close a parenthesis?\n while (($o2 = $stack->pop()) != '(') { // pop off the stack back to the last (\n if (is_null($o2)) return $this->trigger(\"unexpected ')'\");\n else $output[] = $o2;\n }\n if (preg_match(\"/^([a-zа-я][a-zа-я0-9]*)\\($/u\", $stack->last(2), $matches)) { // did we just close a function?\n $fnn = $matches[1]; // get the function name\n $arg_count = $stack->pop(); // see how many arguments there were (cleverly stored on the stack, thank you)\n $fn = $stack->pop();\n $output[] = array('fn'=>$fn, 'fnn'=>$fnn, 'argcount'=>$arg_count); // send function to output\n if (in_array($fnn, self::$fb)) { // check the argument count\n if($arg_count > 1)\n return $this->trigger(\"too many arguments ($arg_count given, 1 expected)\");\n } elseif (array_key_exists($fnn, self::$fc)) {\n $counts = self::$fc[$fnn];\n if (in_array(-1, $counts) and $arg_count > 0) {}\n elseif (in_array(-2, $counts)) { if ($arg_count % 2 !== 0) { $this->trigger(\"wrong number of arguments ($arg_count given, even expected)\"); } }\n elseif (!in_array($arg_count, $counts))\n return $this->trigger(\"wrong number of arguments ($arg_count given, \" . implode('/',self::$fc[$fnn]) . \" expected)\");\n } elseif (array_key_exists($fnn, $this->f)) {\n if ($arg_count != count($this->f[$fnn]['args']))\n return $this->trigger(\"wrong number of arguments ($arg_count given, \" . count($this->f[$fnn]['args']) . \" expected)\");\n } else { // did we somehow push a non-function on the stack? this should never happen\n return $this->trigger(\"internal error\");\n }\n }\n $index++;\n //===============\n } elseif ($op == ',' and $expecting_op) { // did we just finish a function argument?\n while (($o2 = $stack->pop()) != '(') { \n if (is_null($o2)) return $this->trigger(\"unexpected ','\"); // oops, never had a (\n else $output[] = $o2; // pop the argument expression stuff and push onto the output\n }\n // make sure there was a function\n if (!preg_match(\"/^([a-zа-я][a-zа-я0-9]*)\\($/u\", $stack->last(2), $matches))\n return $this->trigger(\"unexpected ','\");\n $stack->push($stack->pop()+1); // increment the argument count\n $stack->push('('); // put the ( back on, we'll need to pop back to it again\n $index++;\n $expecting_op = false;\n //===============\n } elseif ($op == '(' and !$expecting_op) {\n $stack->push('('); // that was easy\n $index++;\n $allow_neg = true;\n //===============\n } elseif ($ex and !$expecting_op) { // do we now have a function/variable/number?\n $expecting_op = true;\n $val = $match[1];\n if (preg_match(\"/^([a-zа-я][a-zа-я0-9]*)\\($/u\", $val, $matches)) { // may be func, or variable w/ implicit multiplication against parentheses...\n if (in_array($matches[1], self::$fb) or array_key_exists($matches[1], $this->f) or array_key_exists($matches[1], self::$fc)) { // it's a func\n $stack->push($val);\n $stack->push(1);\n $stack->push('(');\n $expecting_op = false;\n } else { // it's a var w/ implicit multiplication\n $val = $matches[1];\n $output[] = $val;\n }\n } else { // it's a plain old var or num\n $output[] = $val;\n }\n $index += strlen($val);\n //===============\n } elseif ($op == ')') {\n //it could be only custom function with no params or general error\n if ($stack->last() != '(' or $stack->last(2) != 1) return $this->trigger(\"unexpected ')'\");\n if (preg_match(\"/^([a-zа-я][a-zа-я0-9]*)\\($/u\", $stack->last(3), $matches)) { // did we just close a function?\n $stack->pop();// (\n $stack->pop();// 1\n $fn = $stack->pop();\n $fnn = $matches[1]; // get the function name\n $counts = self::$fc[$fnn];\n if (!in_array(0, $counts))\n return $this->trigger(\"wrong number of arguments (... given, \" . implode('/',self::$fc[$fnn]) . \" expected) at expr: '$expr'\");\n $output[] = array('fn'=>$fn, 'fnn'=>$fnn, 'argcount'=>0); // send function to output\n $index++;\n } else {\n return $this->trigger(\"unexpected ')'\");\n }\n //===============\n } elseif (in_array($op, $ops) and !$expecting_op) { // miscellaneous error checking\n return $this->trigger(\"unexpected operator '$op'\");\n } else { // I don't even want to know what you did to get here\n return $this->trigger(\"an unexpected error occured at expression: \".$expr);\n }\n if ($index == strlen($expr)) {\n if (in_array($op, $ops)) { // did we end with an operator? bad.\n return $this->trigger(\"operator '$op' lacks operand\");\n } else {\n break;\n }\n }\n while (substr($expr, $index, 1) == ' ') { // step the index past whitespace (pretty much turns whitespace \n $index++; // into implicit multiplication if no operator is there)\n }\n \n } \n while (!is_null($op = $stack->pop())) { // pop everything off the stack and push onto output\n if ($op == '(') return $this->trigger(\"expecting ')'\"); // if there are (s on the stack, ()s were unbalanced\n $output[] = $op;\n }\n return $output;\n }", "private function setLevel()\n\t{\n\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_level` WHERE 1\");\n\t\tif ($level_count > 1) // binary level\n\t\t{\n\t\t\t$this->levelType = 1;\n\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_level` WHERE 1\");\n\t\t}else{\n\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_serial_type` WHERE 1\");\n\t\t\tif ($level_count > 1)\n\t\t\t{\n\t\t\t\t$this->levelType = 2;\n\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_serial_type` WHERE 1\");\n\t\t\t}else{\n\t\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\tif ($level_count > 2) // user group level\n\t\t\t\t{\n\t\t\t\t\t$this->levelType = 3;\n\t\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function mORDER(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$ORDER;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:161:3: ( 'order' ) \n // Tokenizer11.g:162:3: 'order' \n {\n $this->matchString(\"order\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function matematyczny_input($ma) {\n if(preg_match('/(\\d+)(?:\\s*)([\\+\\-\\*\\/])(?:\\s*)(\\d+)/', $ma, $matches) !== FALSE){\n $operator = $matches[2];\n \n switch($operator){\n case '+':\n $p = $matches[1] + $matches[3];\n break;\n case '-':\n $p = $matches[1] - $matches[3];\n break;\n case '*':\n $p = $matches[1] * $matches[3];\n break;\n case '/':\n $p = $matches[1] / $matches[3];\n break;\n }\n \n return $p;\n } else { return $ma; }\n}", "public function getLevel();", "public function getLevel();", "public function parse($sub = false)\n {\n \n try {\n \n while($this->lexer->moveNext()) {\n \n $result = null;\n $scope = null;\n $parser = null;\n \n switch(true) {\n case($this->lexer->isNextToken(Lexer::T_GROUP_OPEN)) :\n \n # is the group character the first token? is the regex wrapped in brackets. \n //if($this->lexer->token === null) {\n // continue;\n //}\n \n # note this is a new group create new parser instance.\n $parser = new Parser($this->lexer,new Scope(),new Scope());\n \n $this->left = $parser->parse(true)->getResult();\n $this->head->attach($this->left); \n \n break;\n case($this->lexer->isNextToken(Lexer::T_GROUP_CLOSE)) :\n \n # group is finished don't want to contine this loop break = 2\n break 2;\n break;\n case ($this->lexer->isNextTokenAny(array(Lexer::T_LITERAL_CHAR,Lexer::T_LITERAL_NUMERIC))): \n \n # test for literal characters (abcd)\n $this->left = new LiteralScope();\n $this->left->addLiteral($this->lexer->lookahead['value']);\n $this->head->attach($this->left);\n \n break;\n case($this->lexer->isNextToken(Lexer::T_SET_OPEN)) :\n \n # character classes [a-z]\n $this->left = new LiteralScope();\n self::createSubParser('character')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_DOT,\n Lexer::T_SHORT_D,\n Lexer::T_SHORT_NOT_D,\n Lexer::T_SHORT_W,\n Lexer::T_SHORT_NOT_W,\n Lexer::T_SHORT_S,\n Lexer::T_SHORT_NOT_S))):\n \n # match short (. \\d \\D \\w \\W \\s \\S)\n $this->left = new LiteralScope();\n self::createSubParser('short')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_SHORT_P,\n Lexer::T_SHORT_UNICODE_X,\n Lexer::T_SHORT_X))):\n \n # match short (\\p{L} \\x \\X )\n $this->left = new LiteralScope();\n self::createSubParser('unicode')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_QUANTIFIER_OPEN,\n Lexer::T_QUANTIFIER_PLUS,\n Lexer::T_QUANTIFIER_QUESTION,\n Lexer::T_QUANTIFIER_STAR,\n Lexer::T_QUANTIFIER_OPEN\n ))):\n \n # match quantifiers \n self::createSubParser('quantifer')->parse($this->left,$this->head,$this->lexer);\n \n break;\n case ($this->lexer->isNextToken(Lexer::T_CHOICE_BAR)):\n \n # match alternations\n $this->left = $this->head;\n \n $this->head = new Scope();\n $this->result->useAlternatingStrategy();\n $this->result->attach($this->head);\n \n \n break; \n default:\n # ignore character \n } \n \n \n }\n \n }\n catch(ParserException $e)\n {\n $pos = $this->lexer->lookahead['position'];\n $compressed = $this->compress();\n throw new ParserException(sprintf('Error found STARTING at position %s after `%s` with msg %s ',$pos,$compressed,$e->getMessage()));\n }\n \n return $this; \n }", "function make_node($op, &$out, &$stack){\n\tif($op->priority == 2){\n\t\t// < > = CONTAINS\n\t\tif(!empty($out))\n\t\t\t$right = array_pop($out);\n\t\telse {\n\t\t\tfwrite(STDERR, \"error - neobsahuje pravy prvek\\n\");\n\t\t\texit(80);\n\t\t}\n\t\tif(!empty($out))\n\t\t\t$left = array_pop($out);\n\t\telse {\n\t\t\tfwrite(STDERR, \"error - neobsahuje levy prvek\\n\");\n\t\t\texit(80);\n\t\t}\n\t\tif($left->type == \"elem\" && $right->type == \"lit\"){\n\t\t\t$op->left = $left;\n\t\t\t$op->right = $right;\n\t\t}\n\t\telse {\n\t\t\tfwrite(STDERR, \"error - relacni operatory musi mit vlevo element a v pravo literal\\n\");\n\t\t\texit(80); \n\t\t}\n\n\t\tarray_push($out, $op);\n\t}\n\telse if($op->priority == 1){\n\t\tif(!empty($out))\n\t\t\t$node = array_pop($out);\n\t\telse{\n\t\t fwrite(STDERR, \"error - chybi prvek pro NOT\\n\");\n\t\t exit(80); \n\t\t}\n\t\t\t\n\n\t\tif($node->type == \"op\"){\n\t\t\t$op->left = $node;\n\t\t\t$op->right = NULL;\n\t\t}\n\t\telse {\n\t\t\tfwrite(STDERR,\"error - not muze byt pouze na operator ($node->type)\\n\");\n\t\t\texit(80); \n\t\t}\n\t\tarray_push($out, $op);\n\t}\n\telse\n\t{\n\t\tfwrite(STDERR,\"error - neznamy\\n\");\n\t\texit(80); \n\t}\n}", "abstract protected function parseOpenParenthese(TokenInterface $token);", "public function treeLevelConditionDoesNotMatchFaultyValue() {}", "public function treeLevelConditionDoesNotMatchFaultyValue() {}", "protected function parseAddition()\n {\n $operation = false;\n if ($m = $this->parseMultiplication()) {\n $isSpaced = $this->isWhitespace(-1);\n while (($op = ($op = $this->matchReg('/\\\\G[-+]\\s+/')) ? $op : (!$isSpaced ? ($this->match(array('+', '-'))) : false))\n && ($a = $this->parseMultiplication())) {\n $m->parensInOp = true;\n $a->parensInOp = true;\n $operation = new ILess_Node_Operation($op, array($operation ? $operation : $m, $a), $isSpaced);\n $isSpaced = $this->isWhitespace(-1);\n }\n\n return $operation ? $operation : $m;\n }\n }", "protected function getOperatorSymbol(): string\n {\n return 'IN';\n }", "public function getOperator()\n {//-------------------->> getOperator()\n return $this->_operator;\n }", "public function treeLevelConditionMatchesSingleValue() {}", "public function treeLevelConditionMatchesSingleValue() {}", "function mNOT_SIGN(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$NOT_SIGN;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:668:3: ( '!' ) \n // Tokenizer11.g:669:3: '!' \n {\n $this->matchChar(33); \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 getOperatorKey();", "function mOPEN_SQUARE_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OPEN_SQUARE_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:718:3: ( '[' ) \n // Tokenizer11.g:719:3: '[' \n {\n $this->matchChar(91); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function processOperator($interval, $operator, $operatee) {\n if (!is_numeric($interval) || !is_numeric($operatee)) {\n switch ($operator) {\n case \"+\":\n return $interval.$operatee;\n break;\n default:\n break;\n }\n }\n else {\n switch ($operator) {\n case \"+\":\n return intval($interval) + intval($operatee);\n break;\n case \"-\":\n return intval($interval) + intval($operatee);\n break;\n case \"*\":\n return intval($interval) * intval($operatee);\n break;\n case \"/\":\n return intval($interval) / intval($operatee);\n break;\n }\n }\n return $interval.$operator.$operatee;\n }", "function mPLUS(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$PLUS;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:648:3: ( '+' ) \n // Tokenizer11.g:649:3: '+' \n {\n $this->matchChar(43); \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 getOperator(): string\n {\n return $this->operator;\n }", "function get_uraian($kode, $level)\n{\n switch ($level) {\n case 5:\n $where = \"\";\n break;\n case 4:\n $where = \" and SubSub is null\";\n break;\n case 3:\n $where = \" and sub is null and SubSub is null\";\n break;\n case 2:\n $where = \" and kelompok is null and sub is null and SubSub is null\";\n break;\n case 1:\n $where = \" and bidang is null and kelompok is null and sub is null and SubSub is null\";\n break;\n\n default:\n break;\n }\n $query = \"select Uraian from kelompok where Kode like '$kode%' $where limit 1\";\n $result = mysql_query ($query) or die(mysql_error());\n while ($row = mysql_fetch_array ($result)) {\n $Uraian = $row[ Uraian ];\n }\n return $Uraian;\n}", "function mEXPONENT(){\n try {\n // Tokenizer11.g:402:3: ( 'e' ( PLUS | MINUS )? ( '0' .. '9' )+ ) \n // Tokenizer11.g:403:3: 'e' ( PLUS | MINUS )? ( '0' .. '9' )+ \n {\n $this->matchChar(101); \n // Tokenizer11.g:404:3: ( PLUS | MINUS )? \n $alt16=2;\n $LA16_0 = $this->input->LA(1);\n\n if ( ($LA16_0==$this->getToken('43')||$LA16_0==$this->getToken('45')) ) {\n $alt16=1;\n }\n switch ($alt16) {\n case 1 :\n // Tokenizer11.g: \n {\n if ( $this->input->LA(1)==$this->getToken('43')||$this->input->LA(1)==$this->getToken('45') ) {\n $this->input->consume();\n\n }\n else {\n $mse = new MismatchedSetException(null,$this->input);\n $this->recover($mse);\n throw $mse;}\n\n\n }\n break;\n\n }\n\n // Tokenizer11.g:408:3: ( '0' .. '9' )+ \n $cnt17=0;\n //loop17:\n do {\n $alt17=2;\n $LA17_0 = $this->input->LA(1);\n\n if ( (($LA17_0>=$this->getToken('48') && $LA17_0<=$this->getToken('57'))) ) {\n $alt17=1;\n }\n\n\n switch ($alt17) {\n \tcase 1 :\n \t // Tokenizer11.g:408:4: '0' .. '9' \n \t {\n \t $this->matchRange(48,57); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( $cnt17 >= 1 ) break 2;//loop17;\n $eee =\n new EarlyExitException(17, $this->input);\n throw $eee;\n }\n $cnt17++;\n } while (true);\n\n\n }\n\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function isOperatorL($login) {\n\n\t\t// check for operator list entry\n\t\tif ($login != '' && isset($this->operator_list['TMLOGIN']))\n\t\t\treturn in_array($login, $this->operator_list['TMLOGIN']);\n\t\telse\n\t\t\treturn false;\n\t}", "function yy_r69()\n {\n $operator = strtolower(trim($this->yystack[$this->yyidx + - 1]->minor));\n if (isset($this->opMap[$operator])) {\n $operator = $this->opMap[$operator];\n }\n $this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . \" {$operator} \" . $this->yystack[$this->yyidx + 0]->minor;\n }", "function mOPTIONAL(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OPTIONAL;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:196:3: ( 'optional' ) \n // Tokenizer11.g:197:3: 'optional' \n {\n $this->matchString(\"optional\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function getConditions($con, $op, $num, $str){\n\t\t$retvalue = $con;\n\t\t$and = \"\";\n\t\t\n\t\tif ($con != \"\"){\n\t\t\t$and = \" AND \";\n\t\t}\n\t\t\n\t\tif (empty($op)){\n\t\t\t// Any/Failsafe\n\t\t\t$retvalue = $retvalue. $and. $str. \" >= 1\";\n\t\t} else if ($op == \"gr\"){\n\t\t\t$retvalue = $retvalue. $and. $str. \" >= \". $num;\n\t\t} else if ($op == \"ls\"){\n\t\t\t$retvalue = $retvalue. $and. $str. \" <= \". $num;\n\t\t} else if ($op == \"eq\"){\n\t\t\t$retvalue = $retvalue. $and. $str. \" = \". $num;\n\t\t}\n\t\t\n\t\treturn $retvalue;\n\t}", "public function getOperation($operator) {\n switch($operator) {\n case '+' :\n $operation = 'add';\n break;\n case '-' :\n $operation = 'subtract';\n break;\n case '*' :\n $operation = 'multiply';\n break;\n case '/' :\n $operation = 'divide';\n break;\n case '%' :\n $operation = 'modulus';\n break;\n case '^' :\n $operation = 'exponentiation';\n break;\n default :\n throw new Exception(\"Calculator does not support this operator\");\n }\n\n return $operation;\n }", "function mMODIFY(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$MODIFY;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:9:3: ( 'modify' ) \n // Tokenizer11.g:10:3: 'modify' \n {\n $this->matchString(\"modify\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function mISLITERAL(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$ISLITERAL;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:271:3: ( 'isliteral' ) \n // Tokenizer11.g:272:3: 'isliteral' \n {\n $this->matchString(\"isliteral\"); \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 testRPN()\n {\n $stack = array();\n\n $fsm = new FSM('INIT', $stack);\n $fsm->setDefaultTransition('INIT', 'Error');\n\n $fsm->addTransitionAny('INIT', 'INIT');\n $fsm->addTransition('=', 'INIT', 'INIT', array($this, 'doEqual'));\n $fsm->addTransitions(range(0, 9), 'INIT', 'BUILD_NUMBER', array($this, 'doBeginBuildNumber'));\n $fsm->addTransitions(range(0, 9), 'BUILD_NUMBER', 'BUILD_NUMBER', array($this, 'doBuildNumber'));\n $fsm->addTransition(' ', 'BUILD_NUMBER', 'INIT', array($this, 'doEndBuildNumber'));\n $fsm->addTransitions(array('+', '-', '*', '/'), 'INIT', 'INIT', array($this, 'doOperator'));\n\n $input = '1 9 + 29 7 * * =';\n\n $fsm->processString($input);\n }", "public function getOperator(): string {\n\t\tswitch($this->rndOperator) {\n\t\t\tcase self::PLUS:\n\t\t\t\treturn Config::ANTI_SPAM_USE_MATH_SYMBOLS ? '+' : Language::out()->getPlusName();\n\t\t\tcase self::MINUS:\n\t\t\t\treturn Config::ANTI_SPAM_USE_MATH_SYMBOLS ? '-' : Language::out()->getMinusName();\n\t\t\tcase self::MULTIPLE:\n\t\t\tdefault:\n\t\t\t\treturn Config::ANTI_SPAM_USE_MATH_SYMBOLS ? '*' : Language::out()->getMultiplyWithName();\n\t\t}\n\t}", "function mDOT(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DOT;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:643:3: ( '.' ) \n // Tokenizer11.g:644:3: '.' \n {\n $this->matchChar(46); \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 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 orderCondition(){\n try {\n // Sparql11query.g:146:3: ( ( ( ASC | DESC ) brackettedExpression ) | ( constraint | variable ) ) \n $alt23=2;\n $LA23_0 = $this->input->LA(1);\n\n if ( (($LA23_0>=$this->getToken('ASC') && $LA23_0<=$this->getToken('DESC'))) ) {\n $alt23=1;\n }\n else if ( ($LA23_0==$this->getToken('COALESCE')||$LA23_0==$this->getToken('IF')||($LA23_0>=$this->getToken('STR') && $LA23_0<=$this->getToken('REGEX'))||$LA23_0==$this->getToken('IRI_REF')||$LA23_0==$this->getToken('PNAME_NS')||$LA23_0==$this->getToken('PNAME_LN')||($LA23_0>=$this->getToken('VAR1') && $LA23_0<=$this->getToken('VAR2'))||$LA23_0==$this->getToken('OPEN_BRACE')) ) {\n $alt23=2;\n }\n else {\n $nvae = new NoViableAltException(\"\", 23, 0, $this->input);\n\n throw $nvae;\n }\n switch ($alt23) {\n case 1 :\n // Sparql11query.g:147:3: ( ( ASC | DESC ) brackettedExpression ) \n {\n // Sparql11query.g:147:3: ( ( ASC | DESC ) brackettedExpression ) \n // Sparql11query.g:148:5: ( ASC | DESC ) brackettedExpression \n {\n if ( ($this->input->LA(1)>=$this->getToken('ASC') && $this->input->LA(1)<=$this->getToken('DESC')) ) {\n $this->input->consume();\n $this->state->errorRecovery=false;\n }\n else {\n $mse = new MismatchedSetException(null,$this->input);\n throw $mse;\n }\n\n $this->pushFollow(self::$FOLLOW_brackettedExpression_in_orderCondition544);\n $this->brackettedExpression();\n\n $this->state->_fsp--;\n\n\n }\n\n\n }\n break;\n case 2 :\n // Sparql11query.g:155:3: ( constraint | variable ) \n {\n // Sparql11query.g:155:3: ( constraint | variable ) \n $alt22=2;\n $LA22_0 = $this->input->LA(1);\n\n if ( ($LA22_0==$this->getToken('COALESCE')||$LA22_0==$this->getToken('IF')||($LA22_0>=$this->getToken('STR') && $LA22_0<=$this->getToken('REGEX'))||$LA22_0==$this->getToken('IRI_REF')||$LA22_0==$this->getToken('PNAME_NS')||$LA22_0==$this->getToken('PNAME_LN')||$LA22_0==$this->getToken('OPEN_BRACE')) ) {\n $alt22=1;\n }\n else if ( (($LA22_0>=$this->getToken('VAR1') && $LA22_0<=$this->getToken('VAR2'))) ) {\n $alt22=2;\n }\n else {\n $nvae = new NoViableAltException(\"\", 22, 0, $this->input);\n\n throw $nvae;\n }\n switch ($alt22) {\n case 1 :\n // Sparql11query.g:156:5: constraint \n {\n $this->pushFollow(self::$FOLLOW_constraint_in_orderCondition562);\n $this->constraint();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 2 :\n // Sparql11query.g:157:7: variable \n {\n $this->pushFollow(self::$FOLLOW_variable_in_orderCondition570);\n $this->variable();\n\n $this->state->_fsp--;\n\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "private function _token($operation)\n {\n $len = strlen($operation);\n $tokens = array();\n \n for ($i = 0, $offset = 0; $i < $len;) {\n switch ($operation[$i]) {\n case '(':\n $tokens[] = '(';\n $offset++;\n $i++;\n break;\n \n case ')':\n $tokens[] = ')';\n $offset++;\n $i++;\n break;\n \n case '.':\n $tokens[] = '&&';\n $offset++;\n $i++;\n break;\n \n case '+':\n $tokens[] = '||';\n $offset++;\n $i++;\n break;\n \n default:\n preg_match(\n \t'/^AND|^and|^OR|^or|^\\d+/', \n substr($operation, $offset), $match, PREG_OFFSET_CAPTURE\n );\n if ($match) {\n switch ($match[0][0]) {\n case 'AND':\n case 'and':\n $tokens[] = '&&';\n $i += strlen($match[0][0]);\n $offset = $i;\n break 2;\n \n case 'OR':\n case 'or':\n $tokens[] = '||';\n $i += strlen($match[0][0]);\n $offset = $i;\n break 2;\n \n default:\n $tokens[] = $match[0][0];\n $i += strlen($match[0][0]);\n $offset = $i;\n break 2;\n }\n }\n else {\n// $tokens[] = 'error';\n $offset++;\n $i++;\n }\n break;\n }\n }\n return $tokens;\n }", "protected function hasOperator($string)\n {\n return (bool)preg_match(\n '/(<|>|!|=|\\sIS NULL|\\sIS NOT NULL|\\sEXISTS|\\sBETWEEN|\\sLIKE|\\sIN\\s*\\(|\\s)/i',\n trim($string)\n );\n }", "function getOperand1() ;", "function getOperator(): string\n {\n return \"Tw\";\n }", "protected function parseOperation()\n {\n $operation = 'select';\n\n $queryParts = explode('/', $this->query);\n array_shift($queryParts);\n\n if (!count($queryParts)) {\n $this->operation = $operation;\n\n return;\n }\n\n if (in_array($queryParts[0], $this->operations, true)) {\n $operation = array_shift($queryParts);\n if (count($queryParts) && is_numeric($queryParts[0])) {\n $this->params['limit'] = array_shift($queryParts);\n }\n $this->identifier = implode(',', $queryParts);\n } else {\n $this->identifier = implode(',', $queryParts);\n }\n\n if (!empty($this->identifier)) {\n $operation = 'namedselect';\n }\n\n $this->operation = $operation;\n }", "public function func()\n {\n if ($this->lookahead->type == ControlFunctionLexer::NAME) {\n if (array_key_exists($this->lookahead->text, FunctionDispatcher::$functionNames)) {\n $this->function_name = $this->lookahead->text;\n //$this->function_index = FunctionDispatcher::$functionNames[$this->lookahead->text];\n $this->function_index = FunctionDispatcher::functionIndex($this->lookahead->text);\n } else {\n throw new \\Exception(\"Функция <$this->function_name> не существует\");\n }\n $this->root = new ControlFunctionParseTree($this->lookahead->type, $this->function_name);\n //$this->root = $this->currentNode;\n $this->match(ControlFunctionLexer::NAME);\n $this->cargs();\n } else {\n throw new \\Exception(\n \"Ожидалось объявление функции контроля (сравнение, зависимость ...). Получено \" .\n ControlFunctionLexer::$tokenNames[$this->lookahead->type]\n );\n }\n }" ]
[ "0.57558286", "0.5612808", "0.55412173", "0.5512435", "0.52748734", "0.52469224", "0.5216043", "0.5198736", "0.5196284", "0.51802784", "0.51482755", "0.51482755", "0.51095086", "0.50924915", "0.5086636", "0.505188", "0.50175476", "0.4979749", "0.4979749", "0.49522918", "0.49505702", "0.48699176", "0.48505783", "0.48334953", "0.48323613", "0.48227847", "0.48093772", "0.47861668", "0.47830048", "0.4770229", "0.47692454", "0.4745333", "0.47394392", "0.47391868", "0.47205526", "0.471572", "0.47093433", "0.47033006", "0.47018182", "0.4695775", "0.46313626", "0.46299127", "0.46286464", "0.46153694", "0.4592348", "0.45847902", "0.4581493", "0.45782056", "0.45513254", "0.45057124", "0.4505457", "0.44942322", "0.4492375", "0.44909272", "0.4490444", "0.44854513", "0.44854513", "0.44854513", "0.44808167", "0.44749153", "0.4470851", "0.4470553", "0.4461772", "0.4461772", "0.44563204", "0.44556305", "0.4454882", "0.4446619", "0.44460887", "0.44400144", "0.44344783", "0.44331703", "0.442648", "0.44260904", "0.44199535", "0.4414667", "0.44109866", "0.4403952", "0.4398993", "0.43982795", "0.439565", "0.43920386", "0.43891802", "0.437706", "0.43705064", "0.4370495", "0.4369607", "0.43664122", "0.4362759", "0.43468732", "0.4344007", "0.43437204", "0.43352175", "0.4333912", "0.4312574", "0.4311581", "0.43094707", "0.43049908", "0.42968437", "0.4294074" ]
0.4828055
25
sub routine for open and close parentheses
private function subRecursiveParenthesesGroups(&$root, $tail, $level, $n) { # join tail to string # only if string is not empty if ($x = trim(implode('', $tail))) { # only id mutual is not set, # try to retrieve mutual boolean starting point if ($this->mutual == NULL) { $this->setMutual($x, $level, $n); } # add literals to root and flush tail $y = $this->convertLiteralToList($x); if (count($y)) { $root = array_merge($root, $y); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insertparen($inparms){ \n if ($this->selectedNode >= 0) {\n if ($inparms['ptype'] == 'open') {\n $this->_query->insert(new queryElement('(', 'p'), $this->selectedNode);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator++;\n }\n $this->selectedNode++;\n } else {\n $this->_query->insert(new queryElement(')', 'p'), $this->selectedNode+1);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator++;\n } \n }\n }\n\n return $this->output(NULL);\n }", "private function makeParenthesis()\n\t{\n\t\t$level = 0;\n\t\t/** @var Token $token */\n\t\tforeach ($this->tokens as $token)\n\t\t{\n\t\t\tif ($token->text === ')')\n\t\t\t\t$level--;\n\t\t\t$token->level = $level;\n\t\t\tif ($token->text === '(')\n\t\t\t\t$level++;\n\t\t}\n\t}", "function mOPEN_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OPEN_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:693:3: ( '(' ) \n // Tokenizer11.g:694:3: '(' \n {\n $this->matchChar(40); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function mOPEN_CURLY_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OPEN_CURLY_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:628:3: ( '{' ) \n // Tokenizer11.g:629:3: '{' \n {\n $this->matchChar(123); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function mOPEN_SQUARE_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OPEN_SQUARE_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:718:3: ( '[' ) \n // Tokenizer11.g:719:3: '[' \n {\n $this->matchChar(91); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "abstract protected function parseOpenParenthese(TokenInterface $token);", "public function brackettedExpression(){\n try {\n // Sparql11query.g:472:3: ( OPEN_BRACE expression CLOSE_BRACE ) \n // Sparql11query.g:473:3: OPEN_BRACE expression CLOSE_BRACE \n {\n $this->match($this->input,$this->getToken('OPEN_BRACE'),self::$FOLLOW_OPEN_BRACE_in_brackettedExpression1674); \n $this->pushFollow(self::$FOLLOW_expression_in_brackettedExpression1676);\n $this->expression();\n\n $this->state->_fsp--;\n\n $this->match($this->input,$this->getToken('CLOSE_BRACE'),self::$FOLLOW_CLOSE_BRACE_in_brackettedExpression1678); \n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "function mCLOSE_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$CLOSE_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:698:3: ( ')' ) \n // Tokenizer11.g:699:3: ')' \n {\n $this->matchChar(41); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "abstract protected function parseCloseParenthese(TokenInterface $token, TokenInterface $openingToken);", "function deleteparen($inparms){\n if ($this->selectedNode >= 0) {\n if ($inparms['ptype'] == 'open') {\n if ($this->_query->getType($this->selectedNode-1) == 'p') {\n $this->_query->delete($this->selectedNode-1);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator--;\n }\n $this->selectedNode--;\n }\n } else {\n if ($this->_query->getType($this->selectedNode+1) == 'p') {\n $this->_query->delete($this->selectedNode+1);\n if ($this->selectedOperator > $this->selectedNode) {\n $this->selectedOperator--;\n }\n }\n }\n }\n return $this->output(NULL);\n }", "function doublequoteopening() {\n global $lang;\n $this->doc .= $lang['doublequoteopening'];\n }", "function mCLOSE_SQUARE_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$CLOSE_SQUARE_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:723:3: ( ']' ) \n // Tokenizer11.g:724:3: ']' \n {\n $this->matchChar(93); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function mCLOSE_CURLY_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$CLOSE_CURLY_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:633:3: ( '}' ) \n // Tokenizer11.g:634:3: '}' \n {\n $this->matchChar(125); \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 t_parenthesis_open($sTag) {\n\t\t$this->oBeaut->removeWhitespace();\n\t\t\n\t\tif (! $this->oBeaut->isPreviousTokenConstant(array(\n\t\t\t\t\tT_ARRAY,\n\t\t\t\t\tT_EMPTY,\n\t\t\t\t\tT_EVAL,\n\t\t\t\t\tT_EXIT,\n\t\t\t\t\tT_INCLUDE,\n\t\t\t\t\tT_INCLUDE_ONCE,\n\t\t\t\t\tT_ISSET,\n\t\t\t\t\tT_REQUIRE,\n\t\t\t\t\tT_REQUIRE_ONCE,\n\t\t\t\t\tT_STRING,\n\t\t\t\t\tT_UNSET,\n\t\t\t\t\tT_VARIABLE,\n\t\t\t\t\t'('\n\t\t\t\t), 1)) {\n\t\t\t$this->oBeaut->add(' ');\n\t\t}\n\t\t\n\t\t$this->oBeaut->add($sTag);\n\t\t$this->oBeaut->incIndent();\n\t\t\n\t\tif ($this->oBeaut->getControlParenthesis() == T_ARRAY && $this->oBeaut->getNextTokenContent() != ')') {\n\t\t\t$this->oBeaut->addNewLineIndent();\n\t\t}\n\t}", "public static function end()\n {\n if (!self::isBalanced()) {\n throw new CTE_Engine_Expression_Exception('unbalanced parentheses');\n }\n \n if (count(self::$openStack)) {\n self::$open = array_pop(self::$openStack);\n } else {\n self::$open = -1;\n }\n }", "public function closeParentheses(): self\n {\n $this->openedParenthesesLevel -= 1;\n $this->where->appendSql(Parentheses::close(), null);\n\n return $this;\n }", "function close_bracket()\n {\n $this->ar_where[] = \")\"; \n return $this; \n }", "function doublequoteclosing() {\n global $lang;\n $this->doc .= $lang['doublequoteclosing'];\n }", "function singlequoteclosing() {\n global $lang;\n $this->doc .= $lang['singlequoteclosing'];\n }", "public function isClosingParenthesis() {\n return ($this->code === ')');\n }", "function singlequoteopening() {\n global $lang;\n $this->doc .= $lang['singlequoteopening'];\n }", "function save_bracket($str)\n{\n $str = trim($str);\n if (substr($str, -1) == ')') {\n $str = ')';\n } else {\n $str = '';\n }\n\n return $str;\n}", "public function isOpeningParenthesis() {\n return ($this->code === '(');\n }", "function yp_str_until_close_2_3($src, $startPos, $charOpen, $charClose) {\r\n\t\t\t$retStr = '';\r\n\t\t\t$pos = $startPos;\r\n\t\t\t$openCount = 0;\r\n\t\t\t// Copy until OPEN\r\n\t\t\twhile($src[$pos] != $charOpen) {\r\n\t\t\t\t$retStr .= $src[$pos ++];\r\n\t\t\t}\r\n\t\t\t// OPEN\r\n\t\t\t$openCount ++;\r\n\t\t\t$retStr .= $src[$pos ++];\r\n\t\t\t// Copy until CLOSE\r\n\t\t\twhile($openCount > 0) {\r\n\t\t\t\tif ($src[$pos] == $charOpen)\r\n\t\t\t\t\t$openCount ++;\r\n\t\t\t\tif ($src[$pos] == $charClose)\r\n\t\t\t\t\t$openCount --;\r\n\t\t\t\t$retStr .= $src[$pos ++];\r\n\t\t\t}\r\n\t\t\treturn $retStr;\r\n\t\t}", "function tag($tag_name, $op, $pref = '', $nl = false, $extra = '')\n{\n echo $pref . '<' ;\n if ($op == 'close') {\n echo '/' ;\n }\n echo $tag_name ;\n if ($extra != '') {\n echo ' ' . $extra ;\n }\n echo '>' ;\n if ($nl == true) {\n NL() ;\n }\n}", "function horse_thatbooks_balance_parens( $output ) {\n\tif ( false !== strpos( $output, '(' ) || false !== strpos( $output, ')' ) ) {\n\t\tpreg_match_all( '|\\(|', $output, $os, PREG_OFFSET_CAPTURE );\n\t\tpreg_match_all( '|\\)|', $output, $cs, PREG_OFFSET_CAPTURE );\n\n\t\t$count_os = isset( $os[0] ) && is_array( $os[0] ) ? count( $os[0] ) : 0;\n\t\t$count_cs = isset( $cs[0] ) && is_array( $cs[0] ) ? count( $cs[0] ) : 0;\n\n\t\t// Case 1: We have both open and close parens\n\t\tif ( $count_os && $count_cs ) {\n\t\t\t// Nuke all the close parens\n\t\t\t$output = str_replace( ')', '', $output );\n\n\t\t\t// Take just the first open paren\n\t\t\t$output_a = explode( '(', $output );\n\t\t\t$output = $output_a[0] . '(' . implode( '', array_slice( $output_a, 1 ) );\n\n\t\t\t// Reset counts. This'll make it fall through to Case 2\n\t\t\t$count_cs = 0;\n\t\t\t$count_os = 1;\n\t\t}\n\n\t\t// Case 2: We have only open parens\n\t\tif ( $count_os && !$count_cs ) {\n\t\t\t// If we have more than one open paren, nuke all but the first\n\t\t\tif ( $count_os > 1 ) {\n\t\t\t\t$output_a = explode( '(', $output );\n\t\t\t\t$output = $output_a[0] . '(' . implode( '', array_slice( $output_a, 1 ) );\n\t\t\t}\n\n\t\t\t$output_a = explode( '(', $output );\n\n\t\t\t// Attach a close paren to a random word after the open paren\n\t\t\t// Sanity check. We should always pass this test\n\t\t\tif ( isset( $output_a[1] ) ) {\n\t\t\t\t// Break into words\n\t\t\t\t$output_a_1 = explode( ' ', $output_a[1] );\n\t\t\t\t$rand_key = array_rand( $output_a_1 );\n\t\t\t\t$output_a_1[$rand_key] .= ')';\n\t\t\t\t$output_a[1] = implode( ' ', $output_a_1 );\n\t\t\t}\n\n\t\t\t$output = implode( '(', $output_a );\n\n\t\t\t// Reset counts. This will ensure that the next case does *not* run\n\t\t\t$count_cs = 0;\n\t\t\t$count_os = 0;\n\t\t}\n\n\t\t// Case 3: We have only close parens\n\t\tif ( !$count_os && $count_cs ) {\n\t\t\t// If we have more than one close paren, nuke all but the last\n\t\t\tif ( $count_cs > 1 ) {\n\t\t\t\t$output_a = explode( ')', $output );\n\t\t\t\t$last_word = array_pop( $output_a );\n\t\t\t\t$output = implode( '', $output_a ) . ')' . $last_word;\n\t\t\t}\n\n\t\t\t$output_a = explode( ')', $output );\n\n\t\t\t// Attach an open paren to a random word before the close paren\n\t\t\t// Sanity check. We should always pass this test\n\t\t\tif ( isset( $output_a[1] ) ) {\n\t\t\t\t// Break into words\n\t\t\t\t$output_a_0 = explode( ' ', $output_a[0] );\n\t\t\t\t$rand_key = array_rand( $output_a_0 );\n\t\t\t\t$output_a_0[$rand_key] = '(' . $output_a_0[$rand_key];\n\t\t\t\t$output_a[0] = implode( ' ', $output_a_0 );\n\t\t\t}\n\n\t\t\t$output = implode( ')', $output_a );\n\n\t\t\t// Reset counts\n\t\t\t$count_cs = 0;\n\t\t\t$count_os = 0;\n\t\t}\n\n\t\t// Cleanup <3\n\t\tunset( $count_cs, $count_os, $cs, $os, $output_a );\n\t}\n\n\treturn $output;\n}", "public function validate($input_string, $open=NULL, $close=NULL, $wrappers=NULL, $escape_char=NULL) {\n // for example (, [, {\n $open = $open ? $open : $this->OPEN_PARENTHESES;\n // for example: }, ], )\n $close = $close ? $close : $this->CLOSE_PARENTHESES;\n // multiple wrapper chars accepted, for example ['\"', \"'\", \"´\"]\n $wrappers = $wrappers ? $wrappers : $this->wrappers;\n // is is possible to pass a different escape char, but it is probably\n // not a good idea because many of the string processors use the same\n $escape_char = $escape_char ? $escape_char : '\\\\';\n\n $stack = array();\n $previous = NULL;\n\n // loop over all characters in a string\n $chars = preg_split('/(?<!^)(?!$)/u', $input_string);\n foreach ($chars as $current) {\n // if previous character was escape character, then \n // swap it with the current one and continue to the next char\n if ($previous == $escape_char) {\n // see if current character is escape char, then there are\n // two of them in row and we should reset previous marker\n if ($current == $escape_char) $previous = NULL;\n else $previous = $current;\n continue;\n }\n // last stacked char. not that this differs from the previous value which\n // is the previous char from string. last is the last char from stack\n $last = @array_slice($stack, -1)[0];\n // if we are inside a wrapper accept ANY character \n // until the next unescaped wrapper char occurs\n if (in_array($last, $wrappers) && $current != $last) {\n // swap the current so that we can escape wrapper inside wrappers: \"\\\"\"\n $previous = $current;\n continue;\n }\n // push open parenthesis or wrapper to the stack\n if ($current == $open ||\n (in_array($current, $wrappers) && $current != $last)) {\n $stack[] = $current;\n // prepare to pop last parenthesis or wrapper\n } else if ($current == $close || \n in_array($current, $wrappers)) {\n // if there is nothing on stack, should already return false\n if (count($stack) == 0) {\n return FALSE;\n } else {\n // if we encounter wrapper char take the last wrapper char out from stack\n if (in_array($last, $wrappers) ||\n // or if the last char was open and current close parenthsis\n ($last == $open && $current == $close)) {\n array_pop($stack);\n } else {\n return FALSE;\n }\n }\n }\n // update previous char\n $previous = $current;\n }\n // if there is something on stack then no closing char was found\n return count($stack) == 0;\n }", "public function processSingleLineCall(File $phpcsFile, $stackPtr, $openBracket, $tokens)\n {\n $closer = $tokens[$openBracket]['parenthesis_closer'];\n if ($openBracket === ($closer - 1)) {\n return;\n }\n\n // If the function call has no arguments or comments, enforce 0 spaces.\n $next = $phpcsFile->findNext(T_WHITESPACE, ($openBracket + 1), $closer, true);\n if ($next === false) {\n $requiredSpacesAfterOpen = 0;\n $requiredSpacesBeforeClose = 0;\n } else {\n $requiredSpacesAfterOpen = $this->requiredSpacesAfterOpen;\n $requiredSpacesBeforeClose = $this->requiredSpacesBeforeClose;\n }\n\n if ($requiredSpacesAfterOpen === 0 && $tokens[($openBracket + 1)]['code'] === T_WHITESPACE) {\n // Checking this: $value = my_function([*]...).\n $error = 'Space after opening parenthesis of function call prohibited';\n $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterOpenBracket');\n if ($fix === true) {\n $phpcsFile->fixer->replaceToken(($openBracket + 1), '');\n }\n } else if ($requiredSpacesAfterOpen > 0) {\n $spaceAfterOpen = 0;\n if ($tokens[($openBracket + 1)]['code'] === T_WHITESPACE) {\n $spaceAfterOpen = $tokens[($openBracket + 1)]['length'];\n }\n\n if ($spaceAfterOpen !== $requiredSpacesAfterOpen) {\n $error = 'Expected %s spaces after opening parenthesis; %s found';\n $data = [\n $requiredSpacesAfterOpen,\n $spaceAfterOpen,\n ];\n $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterOpenBracket', $data);\n if ($fix === true) {\n $padding = str_repeat(' ', $requiredSpacesAfterOpen);\n if ($spaceAfterOpen === 0) {\n $phpcsFile->fixer->addContent($openBracket, $padding);\n } else {\n $phpcsFile->fixer->replaceToken(($openBracket + 1), $padding);\n }\n }\n }\n }//end if\n\n // Checking this: $value = my_function(...[*]).\n $spaceBeforeClose = 0;\n $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($closer - 1), $openBracket, true);\n if ($tokens[$prev]['code'] === T_END_HEREDOC || $tokens[$prev]['code'] === T_END_NOWDOC) {\n // Need a newline after these tokens, so ignore this rule.\n return;\n }\n\n if ($tokens[$prev]['line'] !== $tokens[$closer]['line']) {\n $spaceBeforeClose = 'newline';\n } else if ($tokens[($closer - 1)]['code'] === T_WHITESPACE) {\n $spaceBeforeClose = $tokens[($closer - 1)]['length'];\n }\n\n if ($spaceBeforeClose !== $requiredSpacesBeforeClose) {\n $error = 'Expected %s spaces before closing parenthesis; %s found';\n $data = [\n $requiredSpacesBeforeClose,\n $spaceBeforeClose,\n ];\n $fix = $phpcsFile->addFixableError($error, $closer, 'SpaceBeforeCloseBracket', $data);\n if ($fix === true) {\n $padding = str_repeat(' ', $requiredSpacesBeforeClose);\n\n if ($spaceBeforeClose === 0) {\n $phpcsFile->fixer->addContentBefore($closer, $padding);\n } else if ($spaceBeforeClose === 'newline') {\n $phpcsFile->fixer->beginChangeset();\n\n $closingContent = ')';\n\n $next = $phpcsFile->findNext(T_WHITESPACE, ($closer + 1), null, true);\n if ($tokens[$next]['code'] === T_SEMICOLON) {\n $closingContent .= ';';\n for ($i = ($closer + 1); $i <= $next; $i++) {\n $phpcsFile->fixer->replaceToken($i, '');\n }\n }\n\n // We want to jump over any whitespace or inline comment and\n // move the closing parenthesis after any other token.\n $prev = ($closer - 1);\n while (isset(Tokens::$emptyTokens[$tokens[$prev]['code']]) === true) {\n if (($tokens[$prev]['code'] === T_COMMENT)\n && (strpos($tokens[$prev]['content'], '*/') !== false)\n ) {\n break;\n }\n\n $prev--;\n }\n\n $phpcsFile->fixer->addContent($prev, $padding.$closingContent);\n\n $prevNonWhitespace = $phpcsFile->findPrevious(T_WHITESPACE, ($closer - 1), null, true);\n for ($i = ($prevNonWhitespace + 1); $i <= $closer; $i++) {\n $phpcsFile->fixer->replaceToken($i, '');\n }\n\n $phpcsFile->fixer->endChangeset();\n } else {\n $phpcsFile->fixer->replaceToken(($closer - 1), $padding);\n }//end if\n }//end if\n }//end if\n\n }", "function closetags($html) {\n\t\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t\t$openedtags = $result[1]; #put all closed tags into an array\n\t\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count($openedtags);\n\t\t# all tags are closed\n\t\tif (count($closedtags) == $len_opened) {\n\t\t\treturn $html;\n\t\t}\n\t\t\n\t\t$openedtags = array_reverse($openedtags);\n\t\t# close tags\n\t\tfor ($i=0; $i < $len_opened; $i++) {\n\t\t\tif (!in_array($openedtags[$i], $closedtags)){\n\t\t\t $html .= '</'.$openedtags[$i].'>';\n\t\t\t} else {\n\t\t\t unset($closedtags[array_search($openedtags[$i], $closedtags)]); }\n\t\t\t} \n\t\t\treturn $html;\n\t\t}", "function sexpcode_get_tags($expr, &$defs)\n{\n\n global $sexpcode_tags;\n $funcs = array();\n $open = $close = \"\";\n $tot_arity = 0;\n $frep_c = 1;\n $verbatim = false;\n\n for ($i = $j = $n = 0; $i < strlen($expr); ++$i) {\n switch ($expr[$i]) {\n case '.':\n if ($n == 0) {\n $funcs[] = substr($expr, $j, $i - $j);\n $j = $i + 1;\n }\n break;\n case '{':\n ++$n;\n break;\n case '}':\n --$n;\n break;\n }\n }\n $funcs[] = substr($expr, $j);\n\n foreach ($funcs as $func) {\n $func = strtr($func, \"^\", \"*\");\n @list($func, $iter) = explode('*', $func);\n $iter = $iter === null ? 1 : floor($iter);\n\n $o = $c = \"\";\n $alias = false;\n\n if ($func[0] == '{') {\n /* Higher-arity function (or pretender) */\n\n $func = substr($func, 1, -1);\n list($func, $args) = explode(' ', $func, 2);\n\n if (array_key_exists($func, $sexpcode_tags)) {\n $o = $sexpcode_tags[$func]['open'];\n $c = $sexpcode_tags[$func]['close'];\n $verbatim = false;\n $arity = $sexpcode_tags[$func]['arity'];\n\n } elseif (array_key_exists($func, $defs)) {\n list($o, $c, $verbatim, $arity) = $defs[$func];\n $alias = true;\n\n } else return false;\n\n for ($i = 1, $j = 0; $i <= $arity; ++$i) {\n if (($p = sexpcode_next_arg($args, $j)) === false) break;\n list($arg, $j) = $p;\n\n $o = str_replace('%' . $i . '%', $arg, $o);\n --$arity;\n }\n $i_start = $i;\n\n } elseif (array_key_exists($func, $defs)) {\n /* Function alias */\n\n list($o, $c, $verbatim, $arity) = $defs[$func];\n $alias = true;\n $i_start = 1;\n\n } elseif (array_key_exists($func, $sexpcode_tags)) {\n /* Simple function (or pretender) */\n\n $o = $sexpcode_tags[$func]['open'];\n $c = $sexpcode_tags[$func]['close'];\n\n $arity = $sexpcode_tags[$func]['arity'];\n $i_start = 1;\n\n } else return false;\n\n if ($arity > 0) {\n $j = $arity;\n $i = $i_start;\n while ($j--) {\n $o = str_replace('%' . $i . '%', '%' . $frep_c . '%', $o);\n ++$i;\n ++$frep_c;\n }\n }\n\n $iter = min($iter, !$alias &&\n $arity == 0 &&\n $sexpcode_tags[$func]['iter'] ? 3 : 1);\n\n while ($iter-->0) {\n $open .= $o;\n $close = $c . $close;\n $tot_arity += $arity;\n }\n\n if ($func == 'verbatim') $verbatim = true;\n }\n\n return array($open, $close, $verbatim, $tot_arity);\n}", "function close_group_where()\n {\n return $this->close_bracket(); \n }", "private function markupDeclarationOpenState() {\n if($this->character($this->char + 1, 2) === '--') {\n $this->char += 2;\n $this->state = 'comment';\n $this->token = array(\n 'data' => null,\n 'type' => self::COMMENT\n );\n\n /* Otherwise if the next seven chacacters are a case-insensitive match\n for the word \"DOCTYPE\", then consume those characters and switch to the\n DOCTYPE state. */\n } elseif(strtolower($this->character($this->char + 1, 7)) === 'doctype') {\n $this->char += 7;\n $this->state = 'doctype';\n\n /* Otherwise, is is a parse error. Switch to the bogus comment state.\n The next character that is consumed, if any, is the first character\n that will be in the comment. */\n } else {\n $this->char++;\n $this->state = 'bogusComment';\n }\n }", "function foldOpen(&$parser, $tag, $attrs = [], $empty = false): void\n\t{\n\t\t$this->orig_obj->{$this->orig_open_method}($parser, strtoupper($tag), $attrs, $empty);\n\t}", "private function markupDeclarationOpenState()\n {\n if ($this->character($this->char + 1, 2) === '--') {\n $this->char += 2;\n $this->state = 'comment';\n $this->token = array(\n 'data' => null,\n 'type' => self::COMMENT\n );\n\n /* Otherwise if the next seven chacacters are a case-insensitive match\n for the word \"DOCTYPE\", then consume those characters and switch to the\n DOCTYPE state. */\n } elseif (strtolower($this->character($this->char + 1, 7)) === 'doctype') {\n $this->char += 7;\n $this->state = 'doctype';\n\n /* Otherwise, is is a parse error. Switch to the bogus comment state.\n The next character that is consumed, if any, is the first character\n that will be in the comment. */\n } else {\n $this->char++;\n $this->state = 'bogusComment';\n }\n }", "function quote_open() {\n $this->doc .= '<blockquote><div class=\"no\">'.DOKU_LF;\n }", "function aplly_tags($open, $close, $regex, $instream, &$ofset, &$output)\n{\n\t$matches;\n\t$olen = mb_strlen($open);\t// delka tagu\n\t$clen = mb_strlen($close);\n\t$pos = preg_match($regex, $instream, $matches);\t\t// pozice odpovidajici podretezce\n\tif ($pos === false)\n\t{\n\t\tfwrite(STDERR, \"CHYBA: interni!\\n\");\n\t\texit (100);\t\n\t}\n\t$cutout = 0;\t// soucasna pozice v prohledavanem retezci\n\t\n\twhile ($pos === 1 && 0 < mb_strlen($instream))\n\t{\t\t\n\t\t/*echo \"match:\\n@$matches[0]@\\n\";\n\t\techo \"instream:\\n@$instream@\\n\";*/\n\t\t$len = mb_strlen($matches[0]);\n\t\tif ($len !== 0)\n\t\t{\t\t\t\n\t\t\t$pos = mb_strpos($instream, $matches[0]);\t// nalezeni pozice na ketre zacina podretezec\n\t\t\t$pos_orig = $pos + $cutout;\t// pozice v puvodnim vstupu (posuna o jiz projitou cast retezce)\n\t\t\t$epos_orig = $pos + $cutout + $len;\n\t\t\t$kpos_orig = $pos_orig;\t// pozice ke kterym nebude prepocitany podle vlozenych tagu\n\t\t\t$kepos_orig = $epos_orig;\n\t\t\talign_pos($ofset, $pos_orig, $epos_orig);\n\t\t\t\n\t\t\t$output = mb_substr($output, 0, $pos_orig) . $open . mb_substr($output, $pos_orig, $epos_orig - $pos_orig) . $close . mb_substr($output, $epos_orig);\n\t\t\t\n\t\t\t$ofset[$kpos_orig] += $olen;\t// aktualizace ofsetu o nove vlozene tagy\n\t\t\t$ofset[$kepos_orig] += $clen;\n\t\t\t\n\t\t\t/*echo \"output:\\n@$output@\\n\";*/\n\t\t\t\n\t\t\t$instream = mb_substr($instream, $pos + $len);\t// oriznuti vstupu o jiz osetrenou cast\n\t\t\t$cutout += $pos + $len;\n\t\t\t\n\t\t\t/*$ppos = $pos;\n\t\t\t$pcpos = $pos + $len;\n\t\t\t$pos += $cutout;\n\t\t\t$cpos = $pos + $len;\n\t\t\t\n\t\t\t$output = mb_substr($output, 0, $pos) . $open . mb_substr($output, $pos, $cpos - $pos) . $close . mb_substr($output, $cpos);\n\t\t\t$ofset[$ppos] += $olen;\n\t\t\t$ofset[$pcpos] += $clen;*/\n\t\t}\n\t\telse\t// osetreni prazdych retezcu\n\t\t{\n\t\t\t$instream = mb_substr($instream, 1);\n\t\t\t$cutout++;\n\t\t}\n\t\t$pos = preg_match($regex, $instream, $matches);\n\t\tif ($pos === false)\n\t\t{\n\t\t\tfwrite(STDERR, \"CHYBA: interni!\\n\");\n\t\t\texit (100);\n\t\t}\n\t}\n\treturn;\n}", "function yy_r29(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); }", "public static function syntaxPattern(): string {\n\t\t$statementOpen = preg_quote(Delimiters::STATEMENT_OPEN);\n\t\t$statementClose = preg_quote(Delimiters::STATEMENT_CLOSE);\n\n\t\treturn $statementOpen . '\\s*' .\n\t\t\t\t'(?P<call>[\\w\\/\\-]+)\\s*(?P<callOptions>\\{.*?\\})?' .\n\t\t\t\t'\\s*' . $statementClose;\n\t}", "public function parse($sub = false)\n {\n \n try {\n \n while($this->lexer->moveNext()) {\n \n $result = null;\n $scope = null;\n $parser = null;\n \n switch(true) {\n case($this->lexer->isNextToken(Lexer::T_GROUP_OPEN)) :\n \n # is the group character the first token? is the regex wrapped in brackets. \n //if($this->lexer->token === null) {\n // continue;\n //}\n \n # note this is a new group create new parser instance.\n $parser = new Parser($this->lexer,new Scope(),new Scope());\n \n $this->left = $parser->parse(true)->getResult();\n $this->head->attach($this->left); \n \n break;\n case($this->lexer->isNextToken(Lexer::T_GROUP_CLOSE)) :\n \n # group is finished don't want to contine this loop break = 2\n break 2;\n break;\n case ($this->lexer->isNextTokenAny(array(Lexer::T_LITERAL_CHAR,Lexer::T_LITERAL_NUMERIC))): \n \n # test for literal characters (abcd)\n $this->left = new LiteralScope();\n $this->left->addLiteral($this->lexer->lookahead['value']);\n $this->head->attach($this->left);\n \n break;\n case($this->lexer->isNextToken(Lexer::T_SET_OPEN)) :\n \n # character classes [a-z]\n $this->left = new LiteralScope();\n self::createSubParser('character')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_DOT,\n Lexer::T_SHORT_D,\n Lexer::T_SHORT_NOT_D,\n Lexer::T_SHORT_W,\n Lexer::T_SHORT_NOT_W,\n Lexer::T_SHORT_S,\n Lexer::T_SHORT_NOT_S))):\n \n # match short (. \\d \\D \\w \\W \\s \\S)\n $this->left = new LiteralScope();\n self::createSubParser('short')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_SHORT_P,\n Lexer::T_SHORT_UNICODE_X,\n Lexer::T_SHORT_X))):\n \n # match short (\\p{L} \\x \\X )\n $this->left = new LiteralScope();\n self::createSubParser('unicode')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_QUANTIFIER_OPEN,\n Lexer::T_QUANTIFIER_PLUS,\n Lexer::T_QUANTIFIER_QUESTION,\n Lexer::T_QUANTIFIER_STAR,\n Lexer::T_QUANTIFIER_OPEN\n ))):\n \n # match quantifiers \n self::createSubParser('quantifer')->parse($this->left,$this->head,$this->lexer);\n \n break;\n case ($this->lexer->isNextToken(Lexer::T_CHOICE_BAR)):\n \n # match alternations\n $this->left = $this->head;\n \n $this->head = new Scope();\n $this->result->useAlternatingStrategy();\n $this->result->attach($this->head);\n \n \n break; \n default:\n # ignore character \n } \n \n \n }\n \n }\n catch(ParserException $e)\n {\n $pos = $this->lexer->lookahead['position'];\n $compressed = $this->compress();\n throw new ParserException(sprintf('Error found STARTING at position %s after `%s` with msg %s ',$pos,$compressed,$e->getMessage()));\n }\n \n return $this; \n }", "function _opened_tag($mindless_mode,$as_admin,$source_member,$attribute_map,$current_tag,$pos,$comcode_dangerous,$comcode_dangerous_html,$in_separate_parse_section,$in_html,$in_semihtml,$close,&$len,&$comcode)\n{\n\tglobal $BLOCK_TAGS,$TEXTUAL_TAGS,$CODE_TAGS;\n\n\t$block_tag=isset($BLOCK_TAGS[$current_tag]);\n\n\tif (($block_tag) && ($pos<$len) && ($comcode[$pos]==chr(10)))\n\t{\n\t\t++$pos;\n\t\tglobal $NUM_LINES;\n\t\t++$NUM_LINES;\n\t}\n\n\t$tag_output=new ocp_tempcode();\n\t$textual_area=isset($TEXTUAL_TAGS[$current_tag]);\n\n\t$white_space_area=$textual_area;\n\tif (((($current_tag=='code') || ($current_tag=='codebox')) && (isset($attribute_map['param'])) && ((strtolower($attribute_map['param'])=='php') || (file_exists(get_file_base().'/sources/geshi/'.filter_naughty(strtolower($attribute_map['param'])).'.php')) || (file_exists(get_file_base().'/sources_custom/geshi/'.filter_naughty($attribute_map['param']).'.php')))) || ($current_tag=='php') || ($current_tag=='attachment') || ($current_tag=='attachment2') || ($current_tag=='attachment_safe') || ($current_tag=='menu'))\n\t{\n\t\t$in_separate_parse_section=true;\n\t} else\n\t{\n\t\t// Code tags are white space area, but not textual area\n\t\tif (isset($CODE_TAGS[$current_tag])) $white_space_area=true;\n\t}\n\n\t$in_code_tag=isset($CODE_TAGS[$current_tag]);\n\n\t$attribute_map=array();\n\n\t$formatting_allowed=(($textual_area?1:0) & ($block_tag?1:0))!=0;\n\n//\t\t\t\t\t\tif (in_array($current_tag,$BLOCK_TAGS)) $just_new_line=true;\n\n\tif ($current_tag=='html') $in_html=!$close;\n\telseif ($current_tag=='semihtml') $in_semihtml=!$close;\n\t$status=CCP_NO_MANS_LAND;\n\n\tif (($current_tag=='html') || ($current_tag=='semihtml')) // New state meaning we need to filter the contents\n\t{\n\t\tif (($in_html) || ($in_semihtml))\n\t\t{\n\t\t\tfilter_html($as_admin,$source_member,$pos,$len,$comcode,$in_html,$in_semihtml);\n\t\t}\n\t}\n\n\tif ($mindless_mode)\n\t{\n\t\t$white_space_area=true;\n\t\t$in_separate_parse_section=false;\n\t}\n\n\tif ($current_tag=='quote')\n\t{\n\t\t$comcode_dangerous=false;\n\t\t$comcode_dangerous_html=false;\n\t}\n\n\treturn array($tag_output,$comcode_dangerous,$comcode_dangerous_html,$white_space_area,$formatting_allowed,$in_separate_parse_section,$textual_area,$attribute_map,$status,$in_html,$in_semihtml,$pos,$in_code_tag);\n}", "public function integrate()\n {\n // Neighbor into which the parentheses will be inserted:\n $neighbor = null;\n \n if ($this->type == self::TYPE_OPEN) {\n \n $neighbor = $this->getRightNeighbor();\n \n // Integrate into right operand:\n $neighbor->insertLeftComponent($this);\n } else if ($this->type == self::TYPE_CLOSE) {\n\n $neighbor = $this->getLeftNeighbor();\n \n // Integrate into left operand:\n $neighbor->insertRightComponent($this);\n } else {\n // Unknown parenthesis type:\n throw new CTE_Engine_Expression_Exception('invalid parenthesis type');\n }\n \n // Make sure neigbor is valid:\n if (!$neighbor instanceof CTE_Engine_Expression_Variable &&\n !$neighbor instanceof CTE_Engine_Expression_Literal_Abstract &&\n !$neighbor instanceof CTE_Engine_Expression_Resource &&\n !$neighbor instanceof CTE_Engine_Expression_LogicalNot &&\n !$neighbor instanceof CTE_Engine_Expression_Function &&\n !$neighbor instanceof CTE_Engine_Expression_Modifier) {\n \n throw new CTE_Engine_Template_Contextual_Exception(\n $this,\n 'unexpected parenthesis near ' . $neighbor->getName() . ' expression'\n );\n }\n \n // Remover ourselves from context:\n $this->context->remove($this);\n \n $this->integrated = true;\n }", "public function orBracketOpen()\n {\n return $this->bracketOpen('', 'OR ');\n }", "public function parseStatement()\n {\n\n }", "function _escape($s)\n\t\t{\n\t\t\treturn str_replace(')','\\\\)',str_replace('(','\\\\(',str_replace('\\\\','\\\\\\\\',$s)));\n\t\t}", "private static function closetags ($html) {\n\t\t// put all opened tags into an array\n\t\tpreg_match_all ( \"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result );\n\t\t$openedtags = $result[1];\n\t\t// put all closed tags into an array\n\t\tpreg_match_all ( \"#</([a-z]+)>#iU\", $html, $result );\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count ( $openedtags );\n\t\t// all tags are closed\n\t\tif(count($closedtags ) == $len_opened)\n\t\t\treturn $html;\n\t\t$openedtags = array_reverse ( $openedtags );\n\t\t// close tags\n\t\tfor( $i = 0; $i < $len_opened; $i++ ){\n\t\t\tif ( !in_array ( $openedtags[$i], $closedtags ) )\n\t\t\t\t$html .= \"</\" . $openedtags[$i] . \">\";\n\t\t\telse\n\t\t\t\tunset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] );\n\t\t}\n\t\treturn $html;\n\t}", "public function getFunctionCloseBracket($stackPtr)\n {\n //$closingBracket = $this->phpcsFile->findNext(T_COMMA, $stackPtr + 1, null\n //$prevPtr = $this->phpcsFile->findPrevious(array(T_OPEN_CURLY_BRACKET, T_CLOSE_CURLY_BRACKET), $stackPtr - 1);\n }", "public function t_parenthesis_close($sTag) {\n\t\tif ($this->oBeaut->getControlParenthesis() == T_ARRAY) {\n\t\t\t$this->oBeaut->decIndent();\n\t\t\t\n\t\t\tif ($this->oBeaut->getPreviousTokenContent() != '(') {\n\t\t\t\t$this->pad(1);\n\t\t\t} else {\n\t\t\t\t$this->pad(0);\n\t\t\t}\n\t\t\t\n\t\t\t$this->oBeaut->add($sTag);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->oBeaut->add($sTag);\n\t\t$this->oBeaut->decIndent();\n\t}", "function __open(&$tmp) {\r\r\n\t\tasido::trigger_abstract_error(\r\r\n\t\t\t__CLASS__,\r\r\n\t\t\t__FUNCTION__\r\r\n\t\t\t);\r\r\n\t\t}", "function yy_r47()\n {\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor . 'close', array());\n }", "public function testParsingStatementsSurroundedByExpressions()\n {\n $tokens = [\n new Token(TokenTypes::T_EXPRESSION, 'a', 1),\n new Token(TokenTypes::T_SANITIZED_TAG_OPEN, '{{', 1),\n new Token(TokenTypes::T_EXPRESSION, 'b', 1),\n new Token(TokenTypes::T_SANITIZED_TAG_CLOSE, '}}', 1),\n new Token(TokenTypes::T_EXPRESSION, 'c', 1),\n new Token(TokenTypes::T_DIRECTIVE_OPEN, '<%', 1),\n new Token(TokenTypes::T_DIRECTIVE_NAME, 'd', 1),\n new Token(TokenTypes::T_EXPRESSION, '(e)', 1),\n new Token(TokenTypes::T_DIRECTIVE_CLOSE, '%>', 1),\n new Token(TokenTypes::T_EXPRESSION, 'f', 1),\n new Token(TokenTypes::T_UNSANITIZED_TAG_OPEN, '{{!', 1),\n new Token(TokenTypes::T_EXPRESSION, 'g', 1),\n new Token(TokenTypes::T_UNSANITIZED_TAG_CLOSE, '!}}', 1),\n new Token(TokenTypes::T_EXPRESSION, 'h', 1),\n new Token(TokenTypes::T_COMMENT_OPEN, '{#', 1),\n new Token(TokenTypes::T_EXPRESSION, 'i', 1),\n new Token(TokenTypes::T_COMMENT_CLOSE, '#}', 1),\n new Token(TokenTypes::T_EXPRESSION, 'j', 1),\n ];\n $this->ast->getCurrentNode()->addChild(new ExpressionNode('a'));\n $sanitizedTagNode = new SanitizedTagNode();\n $sanitizedTagNode->addChild(new ExpressionNode('b'));\n $this->ast->getCurrentNode()->addChild($sanitizedTagNode);\n $this->ast->getCurrentNode()->addChild(new ExpressionNode('c'));\n $directiveNode = new DirectiveNode();\n $directiveNode->addChild(new DirectiveNameNode('d'));\n $directiveNode->addChild(new ExpressionNode('(e)'));\n $this->ast->getCurrentNode()->addChild($directiveNode);\n $this->ast->getCurrentNode()->addChild(new ExpressionNode('f'));\n $unsanitizedTagNode = new UnsanitizedTagNode();\n $unsanitizedTagNode->addChild(new ExpressionNode('g'));\n $this->ast->getCurrentNode()->addChild($unsanitizedTagNode);\n $this->ast->getCurrentNode()->addChild(new ExpressionNode('h'));\n $commentNode = new CommentNode();\n $commentNode->addChild(new ExpressionNode('i'));\n $this->ast->getCurrentNode()->addChild($commentNode);\n $this->ast->getCurrentNode()->addChild(new ExpressionNode('j'));\n $this->assertEquals($this->ast, $this->parser->parse($tokens));\n }", "protected function _parseRightBracket()\n\t{\n\t\t$this->_array_string .= ')';\n\t\t--$this->_nested;\n\t\t\n\t\tif($this->_nested == 0)\n\t\t\t$this->_breakParsing();\n\t}", "function convert_regex($regex, &$pos)\n{\n\t$state = \"init\";\t\t// pocatecni stav automatu\n\t$newex = \"\";\t\t\t// sem se uklada prevedeny regularni vyraz\n\t$empty = true;\t\n\t$last_escaped = 0;\t\t// urcuje zda posledni znak byl escape sekvence\n\t\n\t\n\twhile ($state !== \"fin\")\n\t{\n\t\tif ($last_escaped > 0)\n\t\t\t$last_escaped--;\n\t\t/*echo \"newex: $newex\\n\";*/\n\t\t$aux = mb_substr($regex, $pos);\n\t\tswitch ($state)\n\t\t{\n\t\t\tcase \"init\":\t// prvni znak musi byt '('\n\t\t\t\tif ($pos < mb_strlen($regex) && mb_substr($regex, $pos, 1) === \"(\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"(\";\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"read\":\t// zakladni stav pro cteni\n\t\t\t\tif ($pos >= mb_strlen($regex))\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (is_escape(mb_substr($regex, $pos, 1)))\t// nasledujici znak je potreba dat do escape sekvence\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t$newex = $newex . \"\\\\\" . mb_substr($regex, $pos, 1);\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \".\")\t// konkatenace, pred timto znakem se nesmi vyskytovat symboly se specialnim vyznamem\n\t\t\t\t{\n\t\t\t\t\t$aux = mb_substr($regex, $pos - 1, 1);\n\t\t\t\t\tif (($aux !== \".\" && $aux !== \"|\" && $aux !== \"!\" && $aux !== \"(\") || $last_escaped === 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pos++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"|\")\t// \"nebo\", pred timto znakem se nesmi vyskytovat symboly se specialnim vyznamem\n\t\t\t\t{\n\t\t\t\t\t$aux = mb_substr($regex, $pos - 1, 1);\n\t\t\t\t\tif (($aux !== \".\" && $aux !== \"|\" && $aux !== \"!\" && $aux !== \"(\") || $last_escaped === 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$newex = $newex . \"|\";\n\t\t\t\t\t\t$pos++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"+\" || mb_substr($regex, $pos, 1) === \"*\")\t// iterace a pozitivni iterace, pred timto znakem se nesmi vyskytovat symboly se specialnim vyznamem\n\t\t\t\t{\n\t\t\t\t\t$aux = mb_substr($regex, $pos - 1, 1);\n\t\t\t\t\tif (($aux !== \".\" && $aux !== \"|\" && $aux !== \"!\" && $aux !== \"(\" && $aux !== \"+\" && $aux !== \"*\") || $last_escaped === 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$newex = $newex . mb_substr($regex, $pos, 1);\n\t\t\t\t\t\t$pos++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"%\")\t// nasleduje escape sekvence\n\t\t\t\t{\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"escaped\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"!\")\t// nasleduje negace\n\t\t\t\t{\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"negate\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"(\")\t// nasleduje vyraz uzavreny v zavorkach, rekurzivne volej convert_regex()\n\t\t\t\t{\n\t\t\t\t\tif (($aux = convert_regex($regex, $pos)) === null)\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t$newex = $newex . $aux;\n\t\t\t\t\t$empty = false;\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \")\")\t// konec vyrazu uravreneho v zavorkach, nesmi mu predchazet symboly se specialnim vyznamem\n\t\t\t\t{\n\t\t\t\t\t$aux = mb_substr($regex, $pos - 1, 1);\n\t\t\t\t\tif ((($aux !== \".\" && $aux !== \"|\" && $aux !== \"!\") || $last_escaped === 1) && !$empty)\n\t\t\t\t\t{\n\t\t\t\t\t\t$newex = $newex . \")\";\n\t\t\t\t\t\t$pos++;\n\t\t\t\t\t\t$state = \"fin\";\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse // ostatni symboly\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . mb_substr($regex, $pos, 1);\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t\t\n\t\t\tcase \"escaped\":\t// escape sekvence a jejich konverze na odpovidijici vyrazy pro preg_match\n\t\t\t\tif ($pos >= mb_strlen($regex))\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (is_escape_2(mb_substr($regex, $pos, 1)))\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\\\\" . mb_substr($regex, $pos, 1);\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t\t$last_escaped = 2;\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"!\" || mb_substr($regex, $pos, 1) === \"%\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . mb_substr($regex, $pos, 1);\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t\t$last_escaped = 2;\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"t\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\\\t\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"n\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\\\n\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"s\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\s\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"a\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[\\s|\\S]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"d\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\d\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"l\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[a-z]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"L\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[A-Z]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"w\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[a-zA-Z]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"W\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[a-zA-Z0-9]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"negate\":\t// nasleduje negovany vyraz\n\t\t\t\tif (mb_substr($regex, $pos, 1) === \"!\")\t\t\t// negace negace je ignorovana\n\t\t\t\t{\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"(\")\t// nasleduje vyraz v zavorce, rekurzivni volani convert_regex()\n\t\t\t\t{\n\t\t\t\t\tif (($aux = convert_regex($regex, $pos)) === null)\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t$newex = $newex . \"(?:(?!\" . $aux . \")[\\s|\\S])\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\telse\t\t\t\t\t\t\t\t\t\t\t// nasleduje jediny znak()\n\t\t\t\t{\n\t\t\t\t\tif (($aux = read_one($regex, $pos)) === null)\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t$newex = $newex . \"(?:(?!\" . $aux . \")[\\s|\\S])\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$state = \"read\";\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\n\t\t}\n\t}\n\treturn $newex;\n}", "public function process_token( $stackPtr ) {\n\t\tif ( 'window' !== $this->tokens[ $stackPtr ]['content'] ) {\n\t\t\t// Doesn't begin with 'window', bail.\n\t\t\treturn;\n\t\t}\n\n\t\t$nextTokenPtr = $this->phpcsFile->findNext( Tokens::$emptyTokens, ( $stackPtr + 1 ), null, true, null, true );\n\t\tif ( false === $nextTokenPtr ) {\n\t\t\treturn;\n\t\t}\n\t\t$nextToken = $this->tokens[ $nextTokenPtr ]['code'];\n\t\tif ( T_OBJECT_OPERATOR !== $nextToken && T_OPEN_SQUARE_BRACKET !== $nextToken ) {\n\t\t\t// No . or [' next, bail.\n\t\t\treturn;\n\t\t}\n\n\t\t$nextNextTokenPtr = $this->phpcsFile->findNext( Tokens::$emptyTokens, ( $nextTokenPtr + 1 ), null, true, null, true );\n\t\tif ( false === $nextNextTokenPtr ) {\n\t\t\t// Something went wrong, bail.\n\t\t\treturn;\n\t\t}\n\n\t\t$nextNextToken = \\str_replace( [ '\"', \"'\" ], '', $this->tokens[ $nextNextTokenPtr ]['content'] );\n\n\t\tif ( is_string( $nextNextToken ) && isset( $this->windowProperties[ $nextNextToken ] ) ) {\n\t\t\t$functionToken = $this->phpcsFile->findNext( Tokens::$functionNameTokens, ( $nextNextTokenPtr + 3 ) );\n\n\t\t\t// Wrapped in escape function.\n\t\t\tif ( isset( $this->tokens[ $nextTokenPtr ]['nested_parenthesis'] ) ) {\n\t\t\t\t$functionBefore = $this->phpcsFile->findNext( Tokens::$functionNameTokens, $stackPtr - 3 );\n\t\t\t\tif ( $this->isEscapeFunction( $functionBefore ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Followed by escape function.\n\t\t\tif ( $this->isEscapeFunction( $functionToken ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tparent::process_token( $stackPtr );\n\t}", "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "public function regexExpression(){\n try {\n // Sparql11query.g:517:3: ( REGEX OPEN_BRACE expression COMMA expression ( COMMA expression )? CLOSE_BRACE ) \n // Sparql11query.g:518:3: REGEX OPEN_BRACE expression COMMA expression ( COMMA expression )? CLOSE_BRACE \n {\n $this->match($this->input,$this->getToken('REGEX'),self::$FOLLOW_REGEX_in_regexExpression1889); \n $this->match($this->input,$this->getToken('OPEN_BRACE'),self::$FOLLOW_OPEN_BRACE_in_regexExpression1891); \n $this->pushFollow(self::$FOLLOW_expression_in_regexExpression1893);\n $this->expression();\n\n $this->state->_fsp--;\n\n $this->match($this->input,$this->getToken('COMMA'),self::$FOLLOW_COMMA_in_regexExpression1895); \n $this->pushFollow(self::$FOLLOW_expression_in_regexExpression1897);\n $this->expression();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:518:48: ( COMMA expression )? \n $alt56=2;\n $LA56_0 = $this->input->LA(1);\n\n if ( ($LA56_0==$this->getToken('COMMA')) ) {\n $alt56=1;\n }\n switch ($alt56) {\n case 1 :\n // Sparql11query.g:518:49: COMMA expression \n {\n $this->match($this->input,$this->getToken('COMMA'),self::$FOLLOW_COMMA_in_regexExpression1900); \n $this->pushFollow(self::$FOLLOW_expression_in_regexExpression1902);\n $this->expression();\n\n $this->state->_fsp--;\n\n\n }\n break;\n\n }\n\n $this->match($this->input,$this->getToken('CLOSE_BRACE'),self::$FOLLOW_CLOSE_BRACE_in_regexExpression1906); \n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public static function openTag($script, $openTag, $phpOpenTag, $endOpenTag, $phpEndOpenTag)\n {\n $data = Strings::splite($script, $openTag);\n //\n $output = $data[0];\n //\n for ($i = 1; $i < Collection::count($data); $i++) {\n $output .= $phpOpenTag;\n //\n $next = Strings::splite($data[$i], $endOpenTag);\n $output .= $next[0].$phpEndOpenTag;\n //\n for ($j = 1; $j < Collection::count($next); $j++) {\n if ($j == (Collection::count($next) - 1)) {\n $output .= $next[$j];\n } else {\n $output .= $next[$j].$endOpenTag;\n }\n }\n }\n\n return $output;\n }", "public function orNotBracketOpen()\n {\n return $this->bracketOpen('NOT ', 'OR ');\n }", "public function openParentheses(string $combinator = QueryInterface::COMBINATOR_AND): self\n {\n $this->openedParenthesesLevel += 1;\n $this->where->appendSql(Parentheses::open(), $combinator);\n\n return $this;\n }", "function _tag_close( $parser, $tag )\n {\n $this->curtag = &$this->curtag->parent;\n }", "protected function syntaxCheck(&$str)\n {\n $errors = false;\n $current_file = 'file://' . end($this->process->sources);\n $balanced_parens = substr_count($str, \"(\") === substr_count($str, \")\");\n $balanced_curlies = substr_count($str, \"{\") === substr_count($str, \"}\");\n\n $validate_pairings = function ($str, $pairing) use ($current_file)\n {\n if ($pairing === '{}') {\n $opener_patt = '~\\{~';\n $balancer_patt = Regex::make('~^{{block}}~');\n }\n else {\n $opener_patt = '~\\(~';\n $balancer_patt = Regex::make('~^{{parens}}~');\n }\n\n // Find unbalanced opening brackets.\n preg_match_all($opener_patt, $str, $matches, PREG_OFFSET_CAPTURE);\n foreach ($matches[0] as $m) {\n $offset = $m[1];\n if (! preg_match($balancer_patt, substr($str, $offset), $m)) {\n $substr = substr($str, 0, $offset);\n $line = substr_count($substr, \"\\n\") + 1;\n $column = strlen($substr) - strrpos($substr, \"\\n\");\n return \"Unbalanced '{$pairing[0]}' in $current_file, Line $line, Column $column.\";\n }\n }\n\n // Reverse the string (and brackets) to find stray closing brackets.\n $str = strtr(strrev($str), $pairing, strrev($pairing));\n\n preg_match_all($opener_patt, $str, $matches, PREG_OFFSET_CAPTURE);\n foreach ($matches[0] as $m) {\n $offset = $m[1];\n $substr = substr($str, $offset);\n if (! preg_match($balancer_patt, $substr, $m)) {\n $line = substr_count($substr, \"\\n\") + 1;\n $column = strpos($substr, \"\\n\");\n return \"Stray '{$pairing[1]}' in $current_file, Line $line, Column $column.\";\n }\n }\n\n return false;\n };\n\n if (! $balanced_curlies) {\n $errors = true;\n warning($validate_pairings($str, '{}') ?: \"Unbalanced '{' in $current_file.\");\n }\n if (! $balanced_parens) {\n $errors = true;\n warning($validate_pairings($str, '()') ?: \"Unbalanced '(' in $current_file.\");\n }\n\n return $errors ? false : true;\n }", "function ctag($close=1)\n\t{\n\t\t$close = ($close == 'all' ? count($this->closetags) : $close);\n\t\t$toecho = '';\n\t\tfor($i = 0; $i < $close; $i ++)\n\t\t{\n\t\t\t$thisclose = array_pop($this->closetags);\n\t\t\t$toecho .= '</' . $thisclose . '>';\n\t\t}\n\t\treturn $this->xecho($toecho);\n\t}", "function yy_r48()\n {\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 1]->minor . 'close', array(), array('modifier_list' => $this->yystack[$this->yyidx + 0]->minor));\n }", "protected function _parseLeftBracket()\n\t{\n\t\t++$this->_nested;\n\t\tif($this->_nested == 1)\n\t\t{\n\t\t\t$this->_addTokenCallback(')', array($this, '_parseRightBracket'));\n\t\t\t$this->_addTokenCallback('*', array($this, '_parseRepresentation'));\n\t\t}\n\t\t$this->_array_string .= '(';\n\t}", "public function checkMatchingQuotes($query){\n\t\t//initialize stack\n\t\t$stack=array();//stack variable\n\t\t$msg=\"\";//variable for storing error message\n\n\t\t$quotectr1 = 0;//count number of single quotes\n\t\t$quotectr2 = 0;//count number of double quotes\n\n\t\t//end of the statement is not a \";\" character\n\t\tif($query[strlen($query)-1]!=\";\"){\n\t\t\t$_SESSION['error']=1;\n\t\t\treturn \"<br/>Syntax error: expected ';' at the end of input\";\n\t\t}\n\t\n\t\tfor($i=0;$i<strlen($query);$i++){\n\t\t\t//if symbol is an opening single quote\n\t\t\tif(($query[$i]==\"'\")&&($quotectr1%2==0)){\n\t\t\t\tarray_push($stack,$query[$i]);\n\t\t\t\t$quotectr1+=1;\n\t\t\t}\n\t\t\t//if symbol is an opening double quote\n\t\t\telse if(($query[$i]=='\"')&&($quotectr2%2==0)){\n\t\t\t\tarray_push($stack,$query[$i]);\n\t\t\t\t$quotectr2+=1;\n\t\t\t}\n\t\t\t/* Check if closing quotes */\n\t\t\t//if closing symbol, check if it matches at the top of stack\n\t\t\telse if((($query[$i]==\"'\")&&($quotectr1%2!=0))//closing single quote\n\t\t\t\t\t||(($query[$i]=='\"')&&($quotectr2%2!=0))//closing double quote\n\t\t\t\t\t){\n\n\t\t\t\t//error in single quotes\n\t\t\t\tif(($query[$i]==\"'\")&&(array_pop($stack)!=\"'\")){\n\t\t\t\t\t$_SESSION['error']=1;\n\t\t\t\t\treturn \"<br/>Syntax error: expected ' or identifier before ' \";\n\t\t\t\t}\n\t\t\t\t//error in double quotes\n\t\t\t\telse if(($query[$i]=='\"')&&(array_pop($stack)!='\"')){\n\t\t\t\t\t$_SESSION['error']=1;\n\t\t\t\t\treturn '<br/>Syntax error: expected \" or identifier before \" ';\n\t\t\t\t}\n\t\t\t\telse if($query[$i]==\"'\") $quotectr1+=1;//increment number of single quotes\n\t\t\t\telse if($query[$i]=='\"') $quotectr2+=1;//increment number of double quotes\n\t\t\t}\n\t\t}\n\n\t\t//stack is not empty and there is an unclosed opening symbol\n\t\tif(!empty($stack)) $msg=\"<br/>Syntax error: unclosed ' or \\\"\";\n\n\t\treturn $msg;\n\t}", "private function isSquareBracket()\n {\n if ($this->opener === $this->closer) {\n // Parse error (unclosed bracket) or live coding. Bow out.\n return \\true;\n }\n // Check if this is a bracket we need to examine or a mistokenization.\n return $this->isShortArrayBracket() === \\false;\n }", "private function recursiveParenthesesGroups($i=0, $level=0) {\n list($tail, $root) = [[], []];\n\n while ($i < $this->literal_string_length) {\n $char = substr($this->literal_string, $i, 1);\n # create a new node if (\n if ($char == $this->OPEN_PARENTHESES) {\n $this->subRecursiveParenthesesGroups($root, $tail, $level, 1);\n $tail = [];\n # now recursively get the next data\n @list($sub, $i, $level) = $this->recursiveParenthesesGroups($i+1, $level+1);\n $root[] = $sub;\n # close the node and return back to parent if )\n } elseif ($char == $this->CLOSE_PARENTHESES) {\n $level -= 1;\n $this->subRecursiveParenthesesGroups($root, $tail, $level, 0);\n # it is important to return these information back to parent node\n return [$root, $i + 1, $level];\n # we are staying on same node level, collect characters\n } else {\n $tail[] = $char;\n $i += 1;\n }\n }\n # when the whole input string is processed:\n # add mutual boolean value to the root level for mutual change logic\n $this->mutual = is_bool($this->mutual) ? $this->mutual : TRUE;\n # finally return recursively constructed list\n return [$this->mutual, $root];\n }", "function open_bracket($type=\"AND\")\n {\n $this->ar_where[] = $type . \" (\";\n return $this; \n }", "function mINTO(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$INTO;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:24:3: ( 'into' ) \n // Tokenizer11.g:25:3: 'into' \n {\n $this->matchString(\"into\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "abstract protected function parseOperator(TokenInterface $token);", "function bbQuotations(){ $this->__construct(); }", "public function calculateWithParenthesesDataProvider() {}", "public function testIndentationLevel2()\n {\n $store = new MySqlCompoundSyntaxCodeStore();\n\n $store->append('create procedure abc_blob_insert_blob()');\n $store->append('modifies sql data');\n $store->append('begin');\n $store->append('// More code');\n $store->append('open c_data;');\n $store->append('loop1: loop');\n $store->append('set l_done = false;');\n $store->append('fetch c_data');\n $store->append('into l_bdt_id,');\n $store->append(' l_bdt_data', false);\n $store->append(';');\n $store->append('if (l_done) then');\n $store->append('close c_data;');\n $store->append('leave loop1;');\n $store->append('end if;');\n $store->append('');\n $store->append('if (p_bdt_data=l_bdt_data) then');\n $store->append('close c_data;');\n $store->append('leave loop1;');\n $store->append('end if;');\n $store->append('end loop;');\n $store->append('// More code');\n $store->append('end');\n\n $expected = <<< EOL\ncreate procedure abc_blob_insert_blob()\nmodifies sql data\nbegin\n // More code\n open c_data;\n loop1: loop\n set l_done = false;\n fetch c_data\n into l_bdt_id,\n l_bdt_data\n ;\n if (l_done) then\n close c_data;\n leave loop1;\n end if;\n\n if (p_bdt_data=l_bdt_data) then\n close c_data;\n leave loop1;\n end if;\n end loop;\n // More code\nend\n\nEOL;\n\n $code = $store->getCode();\n\n $this->assertEquals($expected, $code);\n }", "public function process(Bracket $bracket);", "function open_tag($element, $attr){\n\t\n}", "public function popToken ()\n {\n if ( !$this->hasToken() )\n return NULL;\n\n $next = $this->inner->popToken();\n\n $type = $next->getType();\n\n // If the first token we read is an open curly, it doesn't affect the depth\n if ( $this->first )\n $this->first = FALSE;\n\n else if ( $type == Token::T_CURLY_OPEN || $type == Token::T_DOLLAR_OPEN_CURLY_BRACES )\n $this->depth++;\n\n else if ( $type == Token::T_CURLY_CLOSE )\n $this->depth--;\n\n return $next;\n }", "function yy_r50()\n {\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 3]->minor . 'close', array(), array('object_method' => $this->yystack[$this->yyidx + - 1]->minor, 'modifier_list' => $this->yystack[$this->yyidx + 0]->minor));\n }", "function yy_r49()\n {\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor . 'close', array(), array('object_method' => $this->yystack[$this->yyidx + 0]->minor));\n }", "public function process_token($stackPtr)\n {\n $token = $this->tokens[$stackPtr];\n // Find the condition opener/closer.\n if (\\T_FOR === $token['code']) {\n if (isset($token['parenthesis_opener'], $token['parenthesis_closer']) === \\false) {\n return;\n }\n $semicolon = $this->phpcsFile->findNext(\\Dekode\\GravityForms\\Vendor\\T_SEMICOLON, $token['parenthesis_opener'] + 1, $token['parenthesis_closer']);\n if (\\false === $semicolon) {\n return;\n }\n $opener = $semicolon;\n $semicolon = $this->phpcsFile->findNext(\\Dekode\\GravityForms\\Vendor\\T_SEMICOLON, $opener + 1, $token['parenthesis_closer']);\n if (\\false === $semicolon) {\n return;\n }\n $closer = $semicolon;\n unset($semicolon);\n } elseif (\\T_CASE === $token['code']) {\n if (isset($token['scope_opener']) === \\false) {\n return;\n }\n $opener = $stackPtr;\n $closer = $token['scope_opener'];\n } elseif (\\Dekode\\GravityForms\\Vendor\\T_INLINE_THEN === $token['code']) {\n // Check if the condition for the ternary is bracketed.\n $prev = $this->phpcsFile->findPrevious(\\Dekode\\GravityForms\\Vendor\\PHP_CodeSniffer\\Util\\Tokens::$emptyTokens, $stackPtr - 1, null, \\true);\n if (\\false === $prev) {\n // Shouldn't happen, but in that case we don't have anything to examine anyway.\n return;\n }\n if (\\Dekode\\GravityForms\\Vendor\\T_CLOSE_PARENTHESIS === $this->tokens[$prev]['code']) {\n if (!isset($this->tokens[$prev]['parenthesis_opener'])) {\n return;\n }\n $opener = $this->tokens[$prev]['parenthesis_opener'];\n $closer = $prev;\n } elseif (isset($token['nested_parenthesis'])) {\n $closer = \\end($token['nested_parenthesis']);\n $opener = \\key($token['nested_parenthesis']);\n $next_statement_closer = $this->phpcsFile->findEndOfStatement($stackPtr, array(\\Dekode\\GravityForms\\Vendor\\T_COLON, \\Dekode\\GravityForms\\Vendor\\T_CLOSE_PARENTHESIS, \\Dekode\\GravityForms\\Vendor\\T_CLOSE_SQUARE_BRACKET));\n if (\\false !== $next_statement_closer && $next_statement_closer < $closer) {\n // Parentheses are unrelated to the ternary.\n return;\n }\n $prev_statement_closer = $this->phpcsFile->findStartOfStatement($stackPtr, array(\\Dekode\\GravityForms\\Vendor\\T_COLON, \\Dekode\\GravityForms\\Vendor\\T_OPEN_PARENTHESIS, \\Dekode\\GravityForms\\Vendor\\T_OPEN_SQUARE_BRACKET));\n if (\\false !== $prev_statement_closer && $opener < $prev_statement_closer) {\n // Parentheses are unrelated to the ternary.\n return;\n }\n if ($closer > $stackPtr) {\n $closer = $stackPtr;\n }\n } else {\n // No parenthesis found, can't determine where the conditional part of the ternary starts.\n return;\n }\n } else {\n if (isset($token['parenthesis_opener'], $token['parenthesis_closer']) === \\false) {\n return;\n }\n $opener = $token['parenthesis_opener'];\n $closer = $token['parenthesis_closer'];\n }\n $startPos = $opener;\n do {\n $hasAssignment = $this->phpcsFile->findNext($this->assignment_tokens, $startPos + 1, $closer);\n if (\\false === $hasAssignment) {\n return;\n }\n // Examine whether the left side is a variable.\n $hasVariable = \\false;\n $conditionStart = $startPos;\n $altConditionStart = $this->phpcsFile->findPrevious($this->condition_start_tokens, $hasAssignment - 1, $startPos);\n if (\\false !== $altConditionStart) {\n $conditionStart = $altConditionStart;\n }\n for ($i = $hasAssignment; $i > $conditionStart; $i--) {\n if (isset(\\Dekode\\GravityForms\\Vendor\\PHP_CodeSniffer\\Util\\Tokens::$emptyTokens[$this->tokens[$i]['code']])) {\n continue;\n }\n // If this is a variable or array, we've seen all we need to see.\n if (\\T_VARIABLE === $this->tokens[$i]['code'] || \\Dekode\\GravityForms\\Vendor\\T_CLOSE_SQUARE_BRACKET === $this->tokens[$i]['code']) {\n $hasVariable = \\true;\n break;\n }\n // If this is a function call or something, we are OK.\n if (\\Dekode\\GravityForms\\Vendor\\T_CLOSE_PARENTHESIS === $this->tokens[$i]['code']) {\n break;\n }\n }\n if (\\true === $hasVariable) {\n $errorCode = 'Found';\n if (\\T_WHILE === $token['code']) {\n $errorCode = 'FoundInWhileCondition';\n } elseif (\\Dekode\\GravityForms\\Vendor\\T_INLINE_THEN === $token['code']) {\n $errorCode = 'FoundInTernaryCondition';\n }\n $this->phpcsFile->addWarning('Variable assignment found within a condition. Did you mean to do a comparison?', $hasAssignment, $errorCode);\n } else {\n $this->phpcsFile->addWarning('Assignment found within a condition. Did you mean to do a comparison?', $hasAssignment, 'NonVariableAssignmentFound');\n }\n $startPos = $hasAssignment;\n } while ($startPos < $closer);\n }", "function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }", "private function pop_tag($tag) {\n if ($tag === 'header') $tag = 'h2';\n\n $opener = null;\n if (count($this->stack) > 0) {\n $opener = array_pop($this->stack);\n }\n if ($opener === null || $opener['@name'] !== $tag) throw $this->makeError(\"</\" . $tag . \"> occurred without a corresponding open tag.\");\n\n switch ($tag) {\n case 'comment':\n $this->comment_nest_level--;\n break;\n\n case 'enablebackticks':\n case 'disablebackticks':\n $this->backticks_for_inline_code_enabled = $opener['@name'] === 'enablebackticks';\n break;\n\n case 'bookmark':\n $uid = $opener['@uid'];\n $label = implode('', $this->active_text_listeners[$uid]);\n unset($this->active_text_listeners[$uid]);\n for ($i = count($this->bookmark_list) - 1; $i >= 0; --$i) {\n if ($this->bookmark_list[$i]['uid'] === $uid) {\n $this->bookmark_list[$i]['label'] = $label;\n }\n }\n break;\n\n case 'image':\n if (isset($opener['@url'])) {\n $url = trim($opener['@url']);\n $alt_text = trim($opener['alt']);\n if ($alt_text === '') {\n $t = explode('/', $url);\n $alt_text = htmlspecialchars($t[count($t) - 1]);\n }\n\n if (isset($opener['mouseover'])) {\n $opener['title'] = $opener['mouseover'];\n unset($opener['mouseover']);\n }\n\n $this->output('<img src=\"' . $url . '\" alt=\"' . $alt_text . '\"');\n foreach ($opener as $attr => $value) {\n if ($attr[0] !== '@' && $attr !== 'comment') {\n $this->output(' ' . $attr . '=\"' . $value . '\"');\n }\n }\n $this->output('/>');\n }\n break;\n\n case 'note':\n case 'warning':\n $this->output('</div>');\n break;\n\n case 'code':\n $syntax = isset($opener['language']) ? $opener['language'] : 'none';\n $classes = isset($opener['classes']) ? explode(',', str_replace(' ', ',', $opener['classes'])) : array(); // classes are trimmed and ignored if empty.\n $code = $opener['@code'];\n $html = (new BlakesHtmlSyntaxHighlighter($syntax))->highlight($code, $classes);\n\n $this->output('<div');\n foreach ($opener as $attr => $value) {\n if ($attr[0] !== '@' && $attr !== 'language' && $attr !== 'classes') {\n $this->output(' ' . $attr . '=\"' . $value . '\"');\n }\n }\n $this->output('>');\n\n $this->output($html);\n $this->output('</div>');\n\n break;\n\n case 'tableofcontents':\n break;\n\n default:\n $this->output('</' . $tag . '>');\n break;\n }\n }", "function foldClose(&$parser, $tag, $empty = false): void\n\t{\n\t\t$this->orig_obj->{$this->orig_close_method}($parser, strtoupper($tag), $empty);\n\t}", "public function process_token( $stackPtr ) {\n\n\t\tswitch ( $this->tokens[ $stackPtr ]['type'] ) {\n\t\t\t/*\n\t\t\t * Detect `something();;`.\n\t\t\t */\n\t\t\tcase 'T_SEMICOLON':\n\t\t\t\t$prevNonEmpty = $this->phpcsFile->findPrevious(\n\t\t\t\t\tTokens::$emptyTokens,\n\t\t\t\t\t( $stackPtr - 1 ),\n\t\t\t\t\tnull,\n\t\t\t\t\ttrue\n\t\t\t\t);\n\n\t\t\t\tif ( false === $prevNonEmpty\n\t\t\t\t\t|| ( \\T_SEMICOLON !== $this->tokens[ $prevNonEmpty ]['code']\n\t\t\t\t\t\t&& \\T_OPEN_TAG !== $this->tokens[ $prevNonEmpty ]['code']\n\t\t\t\t\t\t&& \\T_OPEN_TAG_WITH_ECHO !== $this->tokens[ $prevNonEmpty ]['code'] )\n\t\t\t\t) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif ( isset( $this->tokens[ $stackPtr ]['nested_parenthesis'] ) ) {\n\t\t\t\t\t$nested = $this->tokens[ $stackPtr ]['nested_parenthesis'];\n\t\t\t\t\t$last_closer = array_pop( $nested );\n\t\t\t\t\tif ( isset( $this->tokens[ $last_closer ]['parenthesis_owner'] )\n\t\t\t\t\t\t&& \\T_FOR === $this->tokens[ $this->tokens[ $last_closer ]['parenthesis_owner'] ]['code']\n\t\t\t\t\t) {\n\t\t\t\t\t\t// Empty for() condition.\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$fix = $this->phpcsFile->addFixableWarning(\n\t\t\t\t\t'Empty PHP statement detected: superfluous semi-colon.',\n\t\t\t\t\t$stackPtr,\n\t\t\t\t\t'SemicolonWithoutCodeDetected'\n\t\t\t\t);\n\t\t\t\tif ( true === $fix ) {\n\t\t\t\t\t$this->phpcsFile->fixer->beginChangeset();\n\n\t\t\t\t\tif ( \\T_OPEN_TAG === $this->tokens[ $prevNonEmpty ]['code']\n\t\t\t\t\t\t|| \\T_OPEN_TAG_WITH_ECHO === $this->tokens[ $prevNonEmpty ]['code']\n\t\t\t\t\t) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Check for superfluous whitespace after the semi-colon which will be\n\t\t\t\t\t\t * removed as the `<?php ` open tag token already contains whitespace,\n\t\t\t\t\t\t * either a space or a new line and in case of a new line, the indentation\n\t\t\t\t\t\t * should be done via tabs, so spaces can be safely removed.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif ( \\T_WHITESPACE === $this->tokens[ ( $stackPtr + 1 ) ]['code'] ) {\n\t\t\t\t\t\t\t$replacement = str_replace( ' ', '', $this->tokens[ ( $stackPtr + 1 ) ]['content'] );\n\t\t\t\t\t\t\t$this->phpcsFile->fixer->replaceToken( ( $stackPtr + 1 ), $replacement );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tfor ( $i = $stackPtr; $i > $prevNonEmpty; $i-- ) {\n\t\t\t\t\t\tif ( \\T_SEMICOLON !== $this->tokens[ $i ]['code']\n\t\t\t\t\t\t\t&& \\T_WHITESPACE !== $this->tokens[ $i ]['code']\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->phpcsFile->fixer->replaceToken( $i, '' );\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->phpcsFile->fixer->endChangeset();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t/*\n\t\t\t * Detect `<?php ?>`.\n\t\t\t */\n\t\t\tcase 'T_CLOSE_TAG':\n\t\t\t\t$prevNonEmpty = $this->phpcsFile->findPrevious(\n\t\t\t\t\t\\T_WHITESPACE,\n\t\t\t\t\t( $stackPtr - 1 ),\n\t\t\t\t\tnull,\n\t\t\t\t\ttrue\n\t\t\t\t);\n\n\t\t\t\tif ( false === $prevNonEmpty\n\t\t\t\t\t|| ( \\T_OPEN_TAG !== $this->tokens[ $prevNonEmpty ]['code']\n\t\t\t\t\t\t&& \\T_OPEN_TAG_WITH_ECHO !== $this->tokens[ $prevNonEmpty ]['code'] )\n\t\t\t\t) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$fix = $this->phpcsFile->addFixableWarning(\n\t\t\t\t\t'Empty PHP open/close tag combination detected.',\n\t\t\t\t\t$prevNonEmpty,\n\t\t\t\t\t'EmptyPHPOpenCloseTagsDetected'\n\t\t\t\t);\n\t\t\t\tif ( true === $fix ) {\n\t\t\t\t\t$this->phpcsFile->fixer->beginChangeset();\n\t\t\t\t\tfor ( $i = $prevNonEmpty; $i <= $stackPtr; $i++ ) {\n\t\t\t\t\t\t$this->phpcsFile->fixer->replaceToken( $i, '' );\n\t\t\t\t\t}\n\t\t\t\t\t$this->phpcsFile->fixer->endChangeset();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t/* Deliberately left empty. */\n\t\t\t\tbreak;\n\t\t}\n\t}", "function read_one($regex, &$pos)\n{\n\t$state = \"read\";\n\t$newex = \"\";\n\t$empty = true;\n\t\n\twhile ($state !== \"fin\")\n\t{\n\t\t/*echo \"newex: $newex\\n\";*/\n\t\tswitch ($state)\n\t\t{\n\t\t\tcase \"read\":\t// pocatecni stav, ocekava znak nebo pocatek escape sekvence %\n\t\t\t\tif ($pos >= mb_strlen($regex))\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$aux = mb_substr($regex, $pos, 1);\n\t\t\t\tif (is_escape($aux))\t// pred znak je potreba vlozit \\ \n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t$newex = $newex . \"\\\\\" . $aux;\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if ($aux === \"%\")\t// pocatek escape sekvence\n\t\t\t\t{\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"escaped\";\n\t\t\t\t}\n\t\t\t\telse if ($aux !== \"+\" && $aux !== \"*\" && $aux !== \".\" && $aux !== \"|\" && $aux !== \")\") // symboly, ktere se nemohou za negaci vyskytnout\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . $aux;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t\t\n\t\t\tcase \"escaped\":\t// znaky vyskytujici se po escepe sekvenci a jejich prevody na format se kterym pracuje preg_match\n\t\t\t\tif ($pos >= mb_strlen($regex))\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (is_escape_2(mb_substr($regex, $pos, 1)))\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\\\\" . mb_substr($regex, $pos, 1);\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"!\" || mb_substr($regex, $pos, 1) === \"%\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . mb_substr($regex, $pos, 1);\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"t\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\\\t\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"n\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\\\n\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"s\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\s\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"a\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[\\s|\\S]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"d\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"\\d\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"l\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[a-z]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"L\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[A-Z]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"w\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[a-zA-Z]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse if (mb_substr($regex, $pos, 1) === \"W\")\n\t\t\t\t{\n\t\t\t\t\t$newex = $newex . \"[a-zA-Z0-9]\";\n\t\t\t\t\t$empty = false;\n\t\t\t\t\t$pos++;\n\t\t\t\t\t$state = \"fin\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\n\t\t}\n\t}\n\treturn $newex;\n}", "function close_tag($tag, $pref, $nl)\n{\n tag($tag, 'close', $pref, $nl) ;\n}", "function ensure_proper_quotation_nesting() {\r\n\t\t//$this->code = OM::ensure_proper_nesting($this->code, 'q');\r\n\t\tReTidy::combine_inline();\r\n\t}", "function quote_close() {\n $this->doc .= '</div></blockquote>'.DOKU_LF;\n }", "function strong_open() {\n $this->doc .= '<strong>';\n }", "private static function consumeString($contents,&$pos) {\n\t\t$quote=$contents[$pos];//$quote should now be either ' or \" given the method is used correctly\n\t\t$startPos=$pos++;//save initial value of $pos to $startPos and also advance $pos to after the quote\n\t\t\n\t\t//We now want to find the closing quote. However it obviously can't be an escaped one, e.g. \\\" if \" opened.\n\t\t//So we can't just look for the quote character. But we can't simply look for quote character which is not\n\t\t//preceeded by a \\ either because for instance this one is\n\t\t//closing: \\\\\"(since the first \\ only escapes the second \\) but not this \\\\\\\" but this is \\\\\\\\\" etc\n\t\t\n\t\t//look for either closing quote or a backslash\n\t\twhile (preg_match($reg='#\\\\\\\\|'.$quote.'#',$contents,$match,PREG_OFFSET_CAPTURE,$pos)&&$match[0][0]==\"\\\\\")\n\t\t\t$pos=$match[0][1]+1; //if backslash is found then simply skip to the position after that backslash +1-\n\t\t\t//this will in effect skip to position after \\\\ or after \\\". it will not skip the whole escape sequence in\n\t\t\t//the case of for example \\x26 (this evaluates to a \"&\" in a string) but that wont matter\n\t\t$pos=$match[0][1]+1;//now $pos should be at the position of the character succeeding the closing quote\n\t\treturn substr($contents, $startPos,$pos-$startPos);//return the string inluding its quotes\n\t}", "public function createTokens() {\n\n\t\t$openCodeBlock = false; // boolean flag for code block\n\t\t$skipNext = false; // skip next character\n\t\t$openCommentBlock = false; // boolean flag for comments \n\n\n\t\t// string length\n\t\t$strlen = strlen($this->html);\n\t\t// current block contents\n\t\t$block = \"\";\n\n\t\tfor( $i = 0; $i <= $strlen; $i++ ) {\n\n\t\t\t// get current char and next char\n\t\t\t$char = substr( $this->html, $i, 1);\n\t\t\t$nextchar = ($strlen >= $i) ? substr( $this->html, $i+1, 1) : \"\";\n\n\t\t\t// Code to skip next char.\n\t\t\tif ($skipNext) {\n\t\t\t\t$skipNext = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//Open code block\n\t\t\tif (!$openCodeBlock \n\t\t\t\t&& !$openCommentBlock\n\t\t\t\t&& $char == \"{\" \n\t\t\t\t&& $nextchar == \"{\") {\n\t\t\t\t$skipNext = true;\n\t\t\t\t$openCodeBlock = true;\n\t\t\t\t$this->createToken(\"HTML\", $block);\n\t\t\t\t$block = \"\";\n\t\t\t} else if ($openCodeBlock \n\t\t\t\t&& !$openCommentBlock\n\t\t\t\t&& $char == \"}\" \n\t\t\t\t&& $nextchar == \"}\") {\n\t\t\t\t$skipNext = true;\n\t\t\t\t$openCodeBlock = false;\n\t\t\t\t$this->doToken($block);\n\t\t\t\t$block = \"\";\n\t\t\t} else if (!$openCodeBlock \n\t\t\t&& !$openCommentBlock \n\t\t\t&& $char == \"{\" \n\t\t\t&& $nextchar == \"#\") { //Open comment block\n\t\t\t\t$skipNext = true;\n\t\t\t\t$openCommentBlock = true;\n\t\t\t} else if ($openCommentBlock \n\t\t\t&& $char == \"#\" \n\t\t\t&& $nextchar == \"}\") { //Close comment block\n\t\t\t\t$skipNext = true;\n\t\t\t\t$openCommentBlock = false;\n\t\t\t} else if (!$openCodeBlock && !$openCommentBlock) {\n\t\t\t\t$block .= $char;\n\t\t\t} else if ($openCodeBlock && !$openCommentBlock) {\n\t\t\t\t$block .= $char;\n\t\t\t}\n\n\t\t}\n\n\t\t// Create last block\n\t\t$this->createToken(\"html\", $block);\n\t\t$block = \"\";\n\n\t}", "public static function infix_2_rpn($infix) {\n // Operators\n $unary = array(SC_Survey_Flow::LO_NOT);\n $binary = array(SC_Survey_Flow::LO_AND, SC_Survey_Flow::LO_OR);\n $operators = array(SC_Survey_Flow::LO_NOT, SC_Survey_Flow::LO_AND, SC_Survey_Flow::LO_OR);\n $precedence = array(SC_Survey_Flow::OPEN_PAREN, SC_Survey_Flow::CLOSE_PAREN, SC_Survey_Flow::LO_NOT, SC_Survey_Flow::LO_AND, SC_Survey_Flow::LO_OR);\n\n // Format expression\n $tokens = SC_Survey_Flow::tokenise($infix);\n\n $output = $stack = [];\n $loop = 1;\n foreach ($tokens as $t) {\n\n if (in_array($t, $unary)) { //Token is a unary operator\n $stack[] = $t;\n\n } elseif (in_array($t, $binary)) { //Token is a binary operator\n $r = array_pop($stack);\n // check if r is an operator and if it takes precedence over t\n if (in_array($r, $operators) && array_search($t, $precedence) > array_search($r, $precedence)) {\n if ($r !== NULL) {\n $output[] = $r;\n }\n } else {\n if ($r !== NULL) {\n $stack[] = $r;\n }\n }\n $stack[] = $t;\n\n } elseif ($t === SC_Survey_Flow::OPEN_PAREN) { //Token is opening parenthesis\n $stack[] = $t;\n\n } elseif ($t === SC_Survey_Flow::CLOSE_PAREN) { //Token is closing parenthesis\n while (count($stack) > 0) {\n $r = array_pop($stack);\n if ($r !== SC_Survey_Flow::OPEN_PAREN) {\n $output[] = $r;\n if (count($stack) === 0) {\n throw new Exception('mismatched parenthesis!');\n }\n } else {\n break;\n }\n }\n if (count($stack) > 0 && in_array($stack[0], $unary)) {\n $r = array_pop($stack);\n $output[] = $r;\n }\n\n } else { //Token is a condition\n $output[] = $t;\n\n }\n $loop++;\n } // END FOREACH\n\n\n //Add the rest of the stack to output\n while (count($stack) > 0) {\n if ($stack[0] === SC_Survey_Flow::OPEN_PAREN || $stack[0] === SC_Survey_Flow::CLOSE_PAREN) {\n throw new Exception('mismatched parenthesis!');\n }\n $r = array_pop($stack);\n $output[] = $r;\n }\n\n\n return implode(' ', $output);\n \n }", "function deleted_open() {\n $this->doc .= '<del>';\n }", "function _close_comments_for_old_post($open, $post_id)\n {\n }", "public function chrhndl($xp,$data) {\n $this->parentEl = array_pop($this->parents);\n // restore top of stack\n $this->parents[]=$this->parentEl;\n if ($this->parentEl == \"lex\") {\n // $data is a text node within lex convert to abbreviation if possible\n $tran = $this->basicadj->getABdata($data); \n // try some adjustments if abbreviation not found \n if ($tran == \"\") {\n $data1 = trim($data); // remove spaces at ends\n $data1 = preg_replace('|[.]|','',$data1);\n $data1 = preg_replace('|\\(.*$|','',$data1);\n $data1 = \"$data1.\"; # add period\n $tran = $this->basicadj->getABdata($data1);\n }\n if ($tran == \"\") {\n $data1 = trim($data); // remove spaces at ends\n $data1 = preg_replace('|[.]|','',$data1);\n $data1 = preg_replace('|^.*\\)|','',$data1);\n $data1 = \"$data1.\"; //add period at end \n $tran = $this->basicadj->getABdata($data1);\n }\n dbgprint($this->dbg,\"BasicAdjustLexParser. lex chrhndl. data=$data, tran=$tran\\n\");\n if ($tran == \"\") {\n // No translation found\n $this->row .= $data;\n }else {\n # convert special characters to html entities\n # for instance, this handles cases when $tran has single (or double) quotes\n $tran = htmlspecialchars($tran,ENT_QUOTES); \n $this->row .= \"<ab n='$tran'>$data</ab>\";\n }\n }else {\n // some other tag. just return $data unchanged\n $this->row .= $data;\n dbgprint($this->dbg,\"BasicAdjustLexParser. lex chrhndl. parent={$this->parentEl}, data=$data\\n\");\n }\n\n }", "protected function Chunks(){\n $level = 0;\n $parenLevel = 0;\n $lastMultiCommentEndBrace = null;\n $lastOpening = null;\n $lastMultiComment = null;\n $lastParen = null;\n\n for( $this->parserCurrentIndex = 0; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ){\n $cc = $this->CharCode($this->parserCurrentIndex);\n if ((($cc >= 97) && ($cc <= 122)) || ($cc < 34)) {\n // a-z or whitespace\n continue;\n }\n\n switch ($cc) {\n\n // (\n case 40:\n $parenLevel++;\n $lastParen = $this->parserCurrentIndex;\n continue;\n\n // )\n case 41:\n $parenLevel--;\n if( $parenLevel < 0 ){\n return $this->fail(\"missing opening `(`\");\n }\n continue;\n\n // ;\n case 59:\n //if (!$parenLevel) { $this->emitChunk();\t}\n continue;\n\n // {\n case 123:\n $level++;\n $lastOpening = $this->parserCurrentIndex;\n continue;\n\n // }\n case 125:\n $level--;\n if( $level < 0 ){\n return $this->fail(\"missing opening `{`\");\n\n }\n //if (!$level && !$parenLevel) { $this->emitChunk(); }\n continue;\n // \\\n case 92:\n if ($this->parserCurrentIndex < $this->input_len - 1) { $this->parserCurrentIndex++; continue; }\n return $this->fail(\"unescaped `\\\\`\");\n\n // \", ' and `\n case 34:\n case 39:\n case 96:\n $matched = 0;\n $currentChunkStartIndex = $this->parserCurrentIndex;\n for ($this->parserCurrentIndex = $this->parserCurrentIndex + 1; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {\n $cc2 = $this->CharCode($this->parserCurrentIndex);\n if ($cc2 > 96) { continue; }\n if ($cc2 == $cc) { $matched = 1; break; }\n if ($cc2 == 92) { // \\\n if ($this->parserCurrentIndex == $this->input_len - 1) {\n return $this->fail(\"unescaped `\\\\`\");\n }\n $this->parserCurrentIndex++;\n }\n }\n if ($matched) { continue; }\n return $this->fail(\"unmatched `\" + chr($cc) + \"`\", $currentChunkStartIndex);\n\n // /, check for comment\n case 47:\n if ($parenLevel || ($this->parserCurrentIndex == $this->input_len - 1)) { continue; }\n $cc2 = $this->CharCode($this->parserCurrentIndex+1);\n if ($cc2 == 47) {\n // //, find lnfeed\n for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {\n $cc2 = $this->CharCode($this->parserCurrentIndex);\n if (($cc2 <= 13) && (($cc2 == 10) || ($cc2 == 13))) { break; }\n }\n } else if ($cc2 == 42) {\n // /*, find */\n $lastMultiComment = $currentChunkStartIndex = $this->parserCurrentIndex;\n for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len - 1; $this->parserCurrentIndex++) {\n $cc2 = $this->CharCode($this->parserCurrentIndex);\n if ($cc2 == 125) { $lastMultiCommentEndBrace = $this->parserCurrentIndex; }\n if ($cc2 != 42) { continue; }\n if ($this->CharCode($this->parserCurrentIndex+1) == 47) { break; }\n }\n if ($this->parserCurrentIndex == $this->input_len - 1) {\n return $this->fail(\"missing closing `*/`\", $currentChunkStartIndex);\n }\n }\n continue;\n\n // *, check for unmatched */\n case 42:\n if (($this->parserCurrentIndex < $this->input_len - 1) && ($this->CharCode($this->parserCurrentIndex+1) == 47)) {\n return $this->fail(\"unmatched `/*`\");\n }\n continue;\n }\n }\n\n if( $level !== 0 ){\n if( ($lastMultiComment > $lastOpening) && ($lastMultiCommentEndBrace > $lastMultiComment) ){\n return $this->fail(\"missing closing `}` or `*/`\", $lastOpening);\n } else {\n return $this->fail(\"missing closing `}`\", $lastOpening);\n }\n } else if ( $parenLevel !== 0 ){\n return $this->fail(\"missing closing `)`\", $lastParen);\n }\n\n\n //chunk didn't fail\n\n\n //$this->emitChunk(true);\n }", "public function primaryExpression(){\n try {\n // Sparql11query.g:459:3: ( brackettedExpression | builtInCall | iriRefOrFunction | rdfLiteral | numericLiteral | booleanLiteral | variable ) \n $alt54=7;\n $LA54 = $this->input->LA(1);\n if($this->getToken('OPEN_BRACE')== $LA54)\n {\n $alt54=1;\n }\n else if($this->getToken('COALESCE')== $LA54||$this->getToken('IF')== $LA54||$this->getToken('STR')== $LA54||$this->getToken('LANG')== $LA54||$this->getToken('LANGMATCHES')== $LA54||$this->getToken('DATATYPE')== $LA54||$this->getToken('BOUND')== $LA54||$this->getToken('SAMETERM')== $LA54||$this->getToken('ISIRI')== $LA54||$this->getToken('ISURI')== $LA54||$this->getToken('ISBLANK')== $LA54||$this->getToken('ISLITERAL')== $LA54||$this->getToken('REGEX')== $LA54)\n {\n $alt54=2;\n }\n else if($this->getToken('IRI_REF')== $LA54||$this->getToken('PNAME_NS')== $LA54||$this->getToken('PNAME_LN')== $LA54)\n {\n $alt54=3;\n }\n else if($this->getToken('STRING_LITERAL1')== $LA54||$this->getToken('STRING_LITERAL2')== $LA54||$this->getToken('STRING_LITERAL_LONG1')== $LA54||$this->getToken('STRING_LITERAL_LONG2')== $LA54)\n {\n $alt54=4;\n }\n else if($this->getToken('INTEGER')== $LA54||$this->getToken('DECIMAL')== $LA54||$this->getToken('DOUBLE')== $LA54||$this->getToken('INTEGER_POSITIVE')== $LA54||$this->getToken('DECIMAL_POSITIVE')== $LA54||$this->getToken('DOUBLE_POSITIVE')== $LA54||$this->getToken('INTEGER_NEGATIVE')== $LA54||$this->getToken('DECIMAL_NEGATIVE')== $LA54||$this->getToken('DOUBLE_NEGATIVE')== $LA54)\n {\n $alt54=5;\n }\n else if($this->getToken('TRUE')== $LA54||$this->getToken('FALSE')== $LA54)\n {\n $alt54=6;\n }\n else if($this->getToken('VAR1')== $LA54||$this->getToken('VAR2')== $LA54)\n {\n $alt54=7;\n }\n else{\n $nvae =\n new NoViableAltException(\"\", 54, 0, $this->input);\n\n throw $nvae;\n }\n\n switch ($alt54) {\n case 1 :\n // Sparql11query.g:460:3: brackettedExpression \n {\n $this->pushFollow(self::$FOLLOW_brackettedExpression_in_primaryExpression1620);\n $this->brackettedExpression();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 2 :\n // Sparql11query.g:461:5: builtInCall \n {\n $this->pushFollow(self::$FOLLOW_builtInCall_in_primaryExpression1626);\n $this->builtInCall();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 3 :\n // Sparql11query.g:462:5: iriRefOrFunction \n {\n $this->pushFollow(self::$FOLLOW_iriRefOrFunction_in_primaryExpression1632);\n $this->iriRefOrFunction();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 4 :\n // Sparql11query.g:463:5: rdfLiteral \n {\n $this->pushFollow(self::$FOLLOW_rdfLiteral_in_primaryExpression1638);\n $this->rdfLiteral();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 5 :\n // Sparql11query.g:464:5: numericLiteral \n {\n $this->pushFollow(self::$FOLLOW_numericLiteral_in_primaryExpression1644);\n $this->numericLiteral();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 6 :\n // Sparql11query.g:465:5: booleanLiteral \n {\n $this->pushFollow(self::$FOLLOW_booleanLiteral_in_primaryExpression1650);\n $this->booleanLiteral();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 7 :\n // Sparql11query.g:466:5: variable \n {\n $this->pushFollow(self::$FOLLOW_variable_in_primaryExpression1656);\n $this->variable();\n\n $this->state->_fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function testSubparsers()\n {\n $grammar2 = $this->grammar->parse(\" S ::= ('a') \");\n $this->assertEquals(array(array(\"a\")), $grammar2->parse(\"a\"));\n }", "public function fopen() \n { \n }", "public function parse($braket = 0)\n\t{\n\t\t/**\n\t\t * @var Expression\n\t\t */\n\t\t$expression = false;\n\t\t$prev_char = $char = \"\";\n\t\t$buffer = \"\";\n\t\twhile ($this->index < $this->chars_count) {\n\t\t $prev_char = $char;\n\t\t $char = $this->chars[$this->index];\n\t switch ($this->state) {\n\t case self::WAIT_OPERAND:\n\t if ($char !== ' ') {\n\t \t if ($char === '\"') {\n\t \t $this->state = self::DOUBLE_QUOTE;\n\t \t $this->index++; \n\t \t } else {\n\t $this->state = self::OPERAND;\n\t \t }\n\t }\n\t break;\n\t case self::OPERAND:\n\t \t $is_op = $this->isOperation($char);\n\t \t if ($char === '(') {\n\t \t \t $this->index++;\t\n\t \t $operand = $this->parse(true);\n\t \t $operand->block(true);\n\t \t \t if ($expression) {\n\t \t \t $expression->addExpression($operand);\n\t \t \t } else {\n\t \t \t $expression = $operand;\n\t \t \t }\n \t \t \t $this->state = self::WAIT_OPERATION;\n \t \t \t $buffer = '';\n\t \t } elseif ($braket && $char == ')') {\n\t \t \t $this->index++;\n\t \t \t return $expression;\n\t \t } elseif ($char === ' ' || $is_op) {\n\t \t \t if (is_numeric($buffer)) {\n\t \t \t $operand = new ExpressionValue($buffer);\n\t \t \t } else {\n\t \t \t \t $operand = new ExpressionField($buffer);\n\t \t \t }\n\t \t \t if ($expression) {\n\t \t \t $expression->addExpression($operand);\n\t \t \t } else {\n\t \t \t $expression = $operand;\n\t \t \t }\n\t \t \t if ($is_op) {\n\t \t \t \t\tif (!$buffer) {\n\t \t \t \t\t\tthrow new Exception(\"Parse error on '\".$op.\"'\");\n\t \t \t \t\t}\n\t \t \t \t\t$this->state = self::OPERATION;\n\t \t \t \t\t$buffer = $char;\n\t \t \t } else {\n\t \t \t \t\t$this->state = self::WAIT_OPERATION;\n\t \t \t \t\t$buffer = '';\n\t \t \t }\n\t \t } else {\n\t \t $buffer .= $char;\n\t \t }\n\t \t $this->index++;\n\t \t break;\n\t case self::WAIT_OPERATION:\n\t \t if ($char !== ' ') {\n\t \t $this->state = self::OPERATION;\n\t \t } else {\n\t \t $this->index++;\n\t \t }\n\t \t break;\n\t case self::PARAM:\n\t \t\t\n\t \t\tbreak;\n\t case self::OPERATION: \n\t \t if ($char === ' ') {\n\t \t $expression = $expression->addOp($buffer);\n\t \t $this->state = self::WAIT_OPERAND;\n\t \t $buffer = \"\";\n\t \t } else {\n\t \t \t $buffer .= $char;\n\t \t }\n\t \t $this->index++;\n\t break;\n\t case self::DOUBLE_QUOTE:\n\t \t if ($char == '\"' && $prev_char !== \"\\\\\") {\n\t \t \t $operand = new ExpressionValue($buffer, '\"');\n\t \t \t if ($expression) {\n\t \t \t $expression->addExpression($operand);\n\t \t \t } else {\n\t \t \t \t $expression = $operand;\n\t \t \t }\n\t \t \t $this->state = self::WAIT_OPERATION;\n\t \t \t $buffer = \"\";\n\t \t } else {\n\t \t $buffer .= $char;\n\t \t }\n\t \t $this->index++;\n\t \t break;\n\t }\t\t\n\t\t}\n\t\treturn $expression;\n\t}", "public function processMultiLineCall(File $phpcsFile, $stackPtr, $openBracket, $tokens)\n {\n // We need to work out how far indented the function\n // call itself is, so we can work out how far to\n // indent the arguments.\n $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $stackPtr, true);\n if ($tokens[$first]['code'] === T_CONSTANT_ENCAPSED_STRING\n && $tokens[($first - 1)]['code'] === T_CONSTANT_ENCAPSED_STRING\n ) {\n // We are in a multi-line string, so find the start and use\n // the indent from there.\n $prev = $phpcsFile->findPrevious(T_CONSTANT_ENCAPSED_STRING, ($first - 2), null, true);\n $first = $phpcsFile->findFirstOnLine(Tokens::$emptyTokens, $prev, true);\n if ($first === false) {\n $first = ($prev + 1);\n }\n }\n\n $foundFunctionIndent = 0;\n if ($first !== false) {\n if ($tokens[$first]['code'] === T_INLINE_HTML\n || ($tokens[$first]['code'] === T_CONSTANT_ENCAPSED_STRING\n && $tokens[($first - 1)]['code'] === T_CONSTANT_ENCAPSED_STRING)\n ) {\n $trimmed = ltrim($tokens[$first]['content']);\n if ($trimmed === '') {\n $foundFunctionIndent = strlen($tokens[$first]['content']);\n } else {\n $foundFunctionIndent = (strlen($tokens[$first]['content']) - strlen($trimmed));\n }\n } else {\n $foundFunctionIndent = ($tokens[$first]['column'] - 1);\n }\n }\n\n // Make sure the function indent is divisible by the indent size.\n // We round down here because this accounts for times when the\n // surrounding code is indented a little too far in, and not correctly\n // at a tab stop. Without this, the function will be indented a further\n // $indent spaces to the right.\n $functionIndent = (int) (floor($foundFunctionIndent / $this->indent) * $this->indent);\n $adjustment = 0;\n\n if ($foundFunctionIndent !== $functionIndent) {\n $error = 'Opening statement of multi-line function call not indented correctly; expected %s spaces but found %s';\n $data = [\n $functionIndent,\n $foundFunctionIndent,\n ];\n\n $fix = $phpcsFile->addFixableError($error, $first, 'OpeningIndent', $data);\n if ($fix === true) {\n $adjustment = ($functionIndent - $foundFunctionIndent);\n $padding = str_repeat(' ', $functionIndent);\n if ($foundFunctionIndent === 0) {\n $phpcsFile->fixer->addContentBefore($first, $padding);\n } else if ($tokens[$first]['code'] === T_INLINE_HTML) {\n $newContent = $padding.ltrim($tokens[$first]['content']);\n $phpcsFile->fixer->replaceToken($first, $newContent);\n } else {\n $phpcsFile->fixer->replaceToken(($first - 1), $padding);\n }\n }\n }//end if\n\n $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($openBracket + 1), null, true);\n if ($tokens[$next]['line'] === $tokens[$openBracket]['line']) {\n $error = 'Opening parenthesis of a multi-line function call must be the last content on the line';\n $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentAfterOpenBracket');\n if ($fix === true) {\n $phpcsFile->fixer->addContent(\n $openBracket,\n $phpcsFile->eolChar.str_repeat(' ', ($foundFunctionIndent + $this->indent))\n );\n }\n }\n\n $closeBracket = $tokens[$openBracket]['parenthesis_closer'];\n $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBracket - 1), null, true);\n if ($tokens[$prev]['line'] === $tokens[$closeBracket]['line']) {\n $error = 'Closing parenthesis of a multi-line function call must be on a line by itself';\n $fix = $phpcsFile->addFixableError($error, $closeBracket, 'CloseBracketLine');\n if ($fix === true) {\n $phpcsFile->fixer->addContentBefore(\n $closeBracket,\n $phpcsFile->eolChar.str_repeat(' ', ($foundFunctionIndent + $this->indent))\n );\n }\n }\n\n // Each line between the parenthesis should be indented n spaces.\n $lastLine = ($tokens[$openBracket]['line'] - 1);\n $argStart = null;\n $argEnd = null;\n\n // Start processing at the first argument.\n $i = $phpcsFile->findNext(T_WHITESPACE, ($openBracket + 1), null, true);\n\n if ($tokens[$i]['line'] > ($tokens[$openBracket]['line'] + 1)) {\n $error = 'The first argument in a multi-line function call must be on the line after the opening parenthesis';\n $fix = $phpcsFile->addFixableError($error, $i, 'FirstArgumentPosition');\n if ($fix === true) {\n $phpcsFile->fixer->beginChangeset();\n for ($x = ($openBracket + 1); $x < $i; $x++) {\n if ($tokens[$x]['line'] === $tokens[$openBracket]['line']) {\n continue;\n }\n\n if ($tokens[$x]['line'] === $tokens[$i]['line']) {\n break;\n }\n\n $phpcsFile->fixer->replaceToken($x, '');\n }\n\n $phpcsFile->fixer->endChangeset();\n }\n }//end if\n\n $i = $phpcsFile->findNext(Tokens::$emptyTokens, ($openBracket + 1), null, true);\n\n if ($tokens[($i - 1)]['code'] === T_WHITESPACE\n && $tokens[($i - 1)]['line'] === $tokens[$i]['line']\n ) {\n // Make sure we check the indent.\n $i--;\n }\n\n for ($i; $i < $closeBracket; $i++) {\n if ($i > $argStart && $i < $argEnd) {\n $inArg = true;\n } else {\n $inArg = false;\n }\n\n if ($tokens[$i]['line'] !== $lastLine) {\n $lastLine = $tokens[$i]['line'];\n\n // Ignore heredoc indentation.\n if (isset(Tokens::$heredocTokens[$tokens[$i]['code']]) === true) {\n continue;\n }\n\n // Ignore multi-line string indentation.\n if (isset(Tokens::$stringTokens[$tokens[$i]['code']]) === true\n && $tokens[$i]['code'] === $tokens[($i - 1)]['code']\n ) {\n continue;\n }\n\n // Ignore inline HTML.\n if ($tokens[$i]['code'] === T_INLINE_HTML) {\n continue;\n }\n\n if ($tokens[$i]['line'] !== $tokens[$openBracket]['line']) {\n // We changed lines, so this should be a whitespace indent token, but first make\n // sure it isn't a blank line because we don't need to check indent unless there\n // is actually some code to indent.\n if ($tokens[$i]['code'] === T_WHITESPACE) {\n $nextCode = $phpcsFile->findNext(T_WHITESPACE, ($i + 1), ($closeBracket + 1), true);\n if ($tokens[$nextCode]['line'] !== $lastLine) {\n if ($inArg === false) {\n $error = 'Empty lines are not allowed in multi-line function calls';\n $fix = $phpcsFile->addFixableError($error, $i, 'EmptyLine');\n if ($fix === true) {\n $phpcsFile->fixer->replaceToken($i, '');\n }\n }\n\n continue;\n }\n } else {\n $nextCode = $i;\n }\n\n if ($tokens[$nextCode]['line'] === $tokens[$closeBracket]['line']) {\n // Closing brace needs to be indented to the same level\n // as the function call.\n $inArg = false;\n $expectedIndent = ($foundFunctionIndent + $adjustment);\n } else {\n $expectedIndent = ($foundFunctionIndent + $this->indent + $adjustment);\n }\n\n if ($tokens[$i]['code'] !== T_WHITESPACE\n && $tokens[$i]['code'] !== T_DOC_COMMENT_WHITESPACE\n ) {\n // Just check if it is a multi-line block comment. If so, we can\n // calculate the indent from the whitespace before the content.\n if ($tokens[$i]['code'] === T_COMMENT\n && $tokens[($i - 1)]['code'] === T_COMMENT\n ) {\n $trimmedLength = strlen(ltrim($tokens[$i]['content']));\n if ($trimmedLength === 0) {\n // This is a blank comment line, so indenting it is\n // pointless.\n continue;\n }\n\n $foundIndent = (strlen($tokens[$i]['content']) - $trimmedLength);\n } else {\n $foundIndent = 0;\n }\n } else {\n $foundIndent = $tokens[$i]['length'];\n }\n\n if ($foundIndent < $expectedIndent\n || ($inArg === false\n && $expectedIndent !== $foundIndent)\n ) {\n $error = 'Multi-line function call not indented correctly; expected %s spaces but found %s';\n $data = [\n $expectedIndent,\n $foundIndent,\n ];\n\n $fix = $phpcsFile->addFixableError($error, $i, 'Indent', $data);\n if ($fix === true) {\n $phpcsFile->fixer->beginChangeset();\n\n $padding = str_repeat(' ', $expectedIndent);\n if ($foundIndent === 0) {\n $phpcsFile->fixer->addContentBefore($i, $padding);\n if (isset($tokens[$i]['scope_opener']) === true) {\n $phpcsFile->fixer->changeCodeBlockIndent($i, $tokens[$i]['scope_closer'], $expectedIndent);\n }\n } else {\n if ($tokens[$i]['code'] === T_COMMENT) {\n $comment = $padding.ltrim($tokens[$i]['content']);\n $phpcsFile->fixer->replaceToken($i, $comment);\n } else {\n $phpcsFile->fixer->replaceToken($i, $padding);\n }\n\n if (isset($tokens[($i + 1)]['scope_opener']) === true) {\n $phpcsFile->fixer->changeCodeBlockIndent(($i + 1), $tokens[($i + 1)]['scope_closer'], ($expectedIndent - $foundIndent));\n }\n }\n\n $phpcsFile->fixer->endChangeset();\n }//end if\n }//end if\n } else {\n $nextCode = $i;\n }//end if\n\n if ($inArg === false) {\n $argStart = $nextCode;\n $argEnd = $phpcsFile->findEndOfStatement($nextCode, [T_COLON]);\n }\n }//end if\n\n // If we are within an argument we should be ignoring commas\n // as these are not signalling the end of an argument.\n if ($inArg === false && $tokens[$i]['code'] === T_COMMA) {\n $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($i + 1), $closeBracket, true);\n if ($next === false) {\n continue;\n }\n\n if ($this->allowMultipleArguments === false) {\n // Comma has to be the last token on the line.\n if ($tokens[$i]['line'] === $tokens[$next]['line']) {\n $error = 'Only one argument is allowed per line in a multi-line function call';\n $fix = $phpcsFile->addFixableError($error, $next, 'MultipleArguments');\n if ($fix === true) {\n $phpcsFile->fixer->beginChangeset();\n for ($x = ($next - 1); $x > $i; $x--) {\n if ($tokens[$x]['code'] !== T_WHITESPACE) {\n break;\n }\n\n $phpcsFile->fixer->replaceToken($x, '');\n }\n\n $phpcsFile->fixer->addContentBefore(\n $next,\n $phpcsFile->eolChar.str_repeat(' ', ($foundFunctionIndent + $this->indent))\n );\n $phpcsFile->fixer->endChangeset();\n }\n }\n }//end if\n\n $argStart = $next;\n $argEnd = $phpcsFile->findEndOfStatement($next, [T_COLON]);\n }//end if\n }//end for\n\n }", "function close_comments( $open, $post_id ) {\n\tif ( DevHub\\is_parsed_post_type( get_post( $post_id )->post_type ) ) {\n\t\treturn false;\n\t}\n\n\treturn $open;\n}" ]
[ "0.6278216", "0.62656116", "0.6223409", "0.59748745", "0.58937603", "0.5881608", "0.5880318", "0.5866443", "0.5841091", "0.5802723", "0.57891566", "0.5698434", "0.5671004", "0.5619261", "0.5587921", "0.5535531", "0.55239004", "0.5521584", "0.5514959", "0.5475387", "0.5430265", "0.54202753", "0.5418002", "0.5301262", "0.5223912", "0.51665866", "0.507554", "0.49968752", "0.49763927", "0.49717784", "0.496538", "0.49644947", "0.49618423", "0.4956698", "0.49273416", "0.49148178", "0.4885898", "0.48752198", "0.4864862", "0.48620299", "0.483491", "0.4813458", "0.4810407", "0.47707367", "0.47694933", "0.47447577", "0.47321677", "0.47297788", "0.4714928", "0.4706475", "0.46691862", "0.46409762", "0.46367788", "0.46332222", "0.46322864", "0.46301976", "0.46165565", "0.46127117", "0.45937273", "0.4589633", "0.4580244", "0.45671773", "0.455697", "0.4546256", "0.45408112", "0.4532783", "0.45323047", "0.4526457", "0.452595", "0.45185766", "0.45122987", "0.45109808", "0.45105365", "0.44880155", "0.44776875", "0.4457912", "0.44565406", "0.44485745", "0.44479904", "0.44478485", "0.4447529", "0.44435042", "0.4437129", "0.4433259", "0.44285128", "0.44052115", "0.4395492", "0.43914363", "0.43892273", "0.4385789", "0.43795735", "0.43435317", "0.4329369", "0.43260917", "0.432038", "0.43116593", "0.4306818", "0.4302695", "0.428889", "0.42876518" ]
0.44179547
85
collect sub and final result to these variables
private function recursiveParenthesesGroups($i=0, $level=0) { list($tail, $root) = [[], []]; while ($i < $this->literal_string_length) { $char = substr($this->literal_string, $i, 1); # create a new node if ( if ($char == $this->OPEN_PARENTHESES) { $this->subRecursiveParenthesesGroups($root, $tail, $level, 1); $tail = []; # now recursively get the next data @list($sub, $i, $level) = $this->recursiveParenthesesGroups($i+1, $level+1); $root[] = $sub; # close the node and return back to parent if ) } elseif ($char == $this->CLOSE_PARENTHESES) { $level -= 1; $this->subRecursiveParenthesesGroups($root, $tail, $level, 0); # it is important to return these information back to parent node return [$root, $i + 1, $level]; # we are staying on same node level, collect characters } else { $tail[] = $char; $i += 1; } } # when the whole input string is processed: # add mutual boolean value to the root level for mutual change logic $this->mutual = is_bool($this->mutual) ? $this->mutual : TRUE; # finally return recursively constructed list return [$this->mutual, $root]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFinal()\n {\n }", "function intermediate() {}", "public function collect();", "function extract()\n {\n }", "private function getResult(): void\n {\n $matches = $this->getNeedlesResult();\n foreach ($matches as $n_key => $match) {\n if (isset($match['matching_filters'])) {\n $match_count = count($match['matching_filters']);\n if ($match_count === 1) { // Save Matches\n $match = $this->getReturnValues($match);\n $match = $this->getLayerData($match);\n unset($match['matching_filters']);\n $this->SearchResult->matches[$n_key] = $match;\n continue;\n } elseif ($match_count > 1) { // Save Indecisive\n $result = [];\n $matching_filters = $match['matching_filters'];\n unset($match['matching_filters']);\n foreach ($matching_filters as $filter) {\n $result[] = $this->getReturnValues($match, $filter['filter_id']);\n }\n $match[$this->config->prefix . 'matching_filters'] = $result;\n $this->SearchResult->indecisive_matches[$n_key] = $match;\n continue;\n }\n }\n // Save no matches\n $this->SearchResult->no_matches[$n_key] = $match;\n }\n }", "private function getConjoinedResult(): void\n {\n $tot_match = 0;\n $tot_indecisive = 0;\n $tot_no_match = 0;\n $matches = $this->getNeedlesResult();\n foreach ($matches as $n_key => $match) {\n if (isset($match['matching_filters'])) {\n $match[$this->config->prefix . 'filter_match_count'] = count($match['matching_filters']);\n } else {\n $match[$this->config->prefix . 'filter_match_count'] = 0;\n }\n if ($match[$this->config->prefix . 'filter_match_count'] === 1) {\n $tot_match++;\n $match = $this->getReturnValues($match);\n $match = $this->getLayerData($match);\n unset($match['matching_filters']);\n } elseif ($match[$this->config->prefix . 'filter_match_count'] > 1) {\n unset($match['matching_filters']);\n $tot_indecisive++;\n } else {\n $tot_no_match++;\n }\n $this->SearchResult->matches[$n_key] = $match;\n }\n $this->SearchResult->total_matches = $tot_match;\n $this->SearchResult->total_indecisive_matches = $tot_indecisive;\n $this->SearchResult->total_no_matches = $tot_no_match;\n }", "public function extract();", "public function extract();", "private function setResult() {\n $result = 0;\n foreach ($this->process AS $key => $value) {\n $total = $value['pivot'] * $value['adj']['result'];\n if($key == 0) {\n $result = $result + $total;\n }\n elseif($key == 1) {\n $result = $result - $total;\n }\n else {\n if($key % 2 == 0) {\n $result = $result + $total;\n }\n else {\n $result = $result - $total;\n }\n }\n }\n unset($key, $value, $total);\n return $result;\n }", "abstract protected function getResultComponents();", "private function calcResult(): void {\n\t\tswitch($this->rndOperator) {\n\t\t\tcase self::PLUS:\n\t\t\t\t$this->result = $this->rndNumber1 + $this->rndNumber2;\n\t\t\t\tbreak;\n\t\t\tcase self::MINUS:\n\t\t\t\t// Avoid negative results\n\t\t\t\tif($this->rndNumber1 < $this->rndNumber2) {\n\t\t\t\t\t$tmp = $this->rndNumber1;\n\t\t\t\t\t$this->rndNumber1 = $this->rndNumber2;\n\t\t\t\t\t$this->rndNumber2 = $tmp;\n\t\t\t\t}\n\n\t\t\t\t$this->result = $this->rndNumber1 - $this->rndNumber2;\n\t\t\t\tbreak;\n\t\t\tcase self::MULTIPLE:\n\t\t\tdefault:\n\t\t\t\t$this->result = $this->rndNumber1 * $this->rndNumber2;\n\t\t}\n\t}", "abstract protected function setresults();", "function result()\n\t\t{\t\n\t\t\t//generate first number\n\t\t\t$number1 = new Operand(1,10);\n\t\t\t$number1->generate_number();\n\n\t\t\t//generate second number\t\n\t\t\t$number2 = new Operand(1,10);\n\t\t\t$number2->generate_number();\n\t\n\t\t\t//generate operator\n\t\t\t$operator = new Operator('+-');\n\t\t\t$operator->generate_operator();\n\t\t\t\n\t\t\t//calculate result\n\t\t\t$a= $number1->number;\n\t\t\t$b= $operator->Operator;\n\t\t\t$c= $number2->number;\n\t\t\tif ($b=='+')\n\t\t\t{\n\t\t\t\t$d= $a + $c;\n\t\t\t}\n\t\t\tif ($b=='-')\n\t\t\t{\n\t\t\t\t$d= $a - $c;\n\t\t\t}\n\t\t\t\n\t\t\t$this->expression =$a.$b.$c;\n\t\t\t$this->security_code=$d;\n\t\t\t$this->a = $a;\n\t\t\t$this->b = $b;\n\t\t\t$this->c = $c;\n\t\t}", "function yy_r66(){ $this->_retvalue = []; }", "private function calculateSubscription()\n {\n $subscription = new Subscription();\n $result = $subscription->getById($this->subscription['name'])[0];\n if ($result === FALSE) {\n $this->subscription['final_price'] = \"0.00\";\n } else {\n $result['date'] = $this->subscription['date'];\n $result['days'] = $subscription->calculateAmountOfDays($this->subscription['date']);\n $result['total'] += $result['price_per_day'] * $result['days'];\n $this->subtotal += $result['total'];\n }\n\n $this->subscription = $result;\n\n }", "function result()\n\t\t{\n\t\t\t//generate first number\n\t\t\t$number1 = new Operand(10,50);\n\t\t\t$number1->generate_number();\n\n\t\t\t//generate second number\n\t\t\t$number2 = new Operand(10,50);\n\t\t\t$number2->generate_number();\n\t\t\t\n\t\t\t//generate operator\n\t\t\t$operator = new Operator('+-*');\n\t\t\t$operator->generate_operator();\n\t\t\t\n\t\t\t//calculate result\n\t\t\t$a= $number1->number;\n\t\t\t$b= $operator->Operator;\n\t\t\t$c= $number2->number;\n\t\t\tif ($b=='+')\n\t\t\t{\n\t\t\t\t$d= $a + $c;\n\t\t\t}\n\t\t\tif ($b=='-')\n\t\t\t{\n\t\t\t\t$d= $a - $c;\n\t\t\t}\n\t\t\tif ($b=='*')\n\t\t\t{\n\t\t\t\t$d= $a * $c;\n\t\t\t}\n\t\n\t\t\t$this->expression =$a.$b.$c;\n\t\t\t$this->security_code=$d;\n\t\t\t$this->a = $a;\n\t\t\t$this->b = $b;\n\t\t\t$this->c = $c;\n\t\t}", "public function collect()\n {\n }", "protected function preFinalResult()\n {\n if(!empty($this->recSize) && is_array($this->recSize)) { \n $arr=array_count_values($this->recSize); \n \n foreach($arr as $key=>$value)\n {\n // $very_tught_plus=(isset($result['data'][Evaluate::VERY_TIGHT_PLUS]))\n // ? array_key_exists($key, $result['data'][Evaluate::VERY_TIGHT_PLUS])\n // : false;\n // \n // $baggy_plus=(isset($result['data'][Evaluate::BAGGY_PLUS]))\n // ? array_key_exists($key, $result['data'][Evaluate::BAGGY_PLUS])\n // : false; \n \n $rangeListCount=count($this->useRangeList);\n $lesBy=$rangeListCount-$value;\n if($rangeListCount==$value)\n $this->fullyFittedSizeList[$key]=Evaluate::RECOMENDED;\n elseIf($lesBy==$this->entryNeededNotLessThan){\n $this->semiFittedSizeList[$key]=Evaluate::SEMI_RECOMENDED;\n } \n else\n $this->notFittedSizeList[$key]=Evaluate::NOT_FITTED; \n }\n }\n \n// if(!empty($this->fullyFittedSizeList)) {\n// } \n \n /**\n * Checks if there is a semi or fully recomended size within the finalResult[range]['recomended'] array for each range\n * and removes them from 'recomended' and puts into another key 'semirecomeded';\n */\n foreach($this->finalResult['evaluation'] as $rkey=>$result)\n {\n if(!empty($this->semiFittedSizeList)) {\n foreach($this->semiFittedSizeList as $key=>$fsize)\n {\n if(isset($result['data'][Evaluate::RECOMENDED]) && is_array($result['data'][Evaluate::RECOMENDED])){\n if(array_key_exists($key, $result['data'][Evaluate::RECOMENDED])) {\n $this->finalResult['evaluation'][$rkey]['data'][Evaluate::SEMI_RECOMENDED][$key]=$this->finalResult['evaluation'][$rkey]['data'][Evaluate::RECOMENDED][$key];\n unset($this->finalResult['evaluation'][$rkey]['data'][Evaluate::RECOMENDED][$key]);\n }\n } \n }\n } \n \n if(!empty($this->notFittedSizeList))\n {\n /**\n * Removed from recomended every size, that is in recomanded range only on one range formula\n * amongst 3 or more. That is if the difference between the quantity of range formulas and\n * the 'recomended' entries for a given size is more than set in $entryNeededNotLessThan=1, ot is removed\n * from 'recomended' and marked as 'not fitted'\n * \n */\n foreach($this->notFittedSizeList as $key=>$fsize)\n {\n if(isset($result['data'][Evaluate::RECOMENDED]) && is_array($result['data'][Evaluate::RECOMENDED])){\n if(array_key_exists($key, $result['data'][Evaluate::RECOMENDED])) {\n $this->finalResult['evaluation'][$rkey]['data'][Evaluate::NOT_FITTED][$key]=$this->finalResult['evaluation'][$rkey]['data'][Evaluate::RECOMENDED][$key];\n unset($this->finalResult['evaluation'][$rkey]['data'][Evaluate::RECOMENDED][$key]);\n }\n } \n } \n }\n }\n }", "protected function doConcatenate() {}", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();", "function recuperarFinalistas(){\n\t\t$votopro = new VotaProfesional();\n\t\t$res = $votopro->recuperarFinalistas();\n\t\treturn $res;\n\t}", "public function initTotal()\n {\n // Return val.\n $temp = 0;\n // Add cone price.\n $temp += $this->coneType['price'];\n // Add all scoops of ice cream.\n foreach ($this->scoops as $scoop) {\n $temp += $scoop['price'];\n }\n // Return total item cost.\n return $temp;\n }", "private function resCalc(&$result){\n if ($result == false)\n $result = $this->result;\n else {\n if (gettype($result) != 'resource')\n $result = $this->query($result);\n }\n }", "public function extract()\n {\n $this->looper($this->fields);\n\n return $this->result;\n }", "private function setCalculate() {\n\n if($this->getType() == 2) {\n $det = new CalculateTwo($this->array);\n $this->result = $det->getResult();\n $this->rule = $det->getRule();\n $this->ruleExplanation = $det->getRuleExplanation();\n }\n elseif($this->getType() == 3) {\n\n $det = new CalculateThree($this->array);\n $this->result = $det->getResult();\n $this->rule = $det->getRule();\n $this->ruleExplanation = $det->getRuleExplanation();\n }\n else {\n $this->getPivot();\n $this->result = $this->setResult();\n $this->rule = $this->getPivotRule();\n $this->ruleExplanation = $this->process;\n }\n }", "private function calculeResult()\n {\n\n if ($this->nClouds <= 0) {\n $this->result['status'] = 'warning';\n $this->result['msg'] = 'Nemhuma nuvem informada!';\n } elseif ($this->nAirports <= 0) {\n $this->result['status'] = 'warning';\n $this->result['msg'] = 'Nemhum aeroporto informado!';\n } else {\n while (sizeof($this->airports) < $this->nAirports) {\n $this->today = array_values($this->scene); // copia scena\n foreach ($this->scene as $rowKey => $row) {\n foreach ($row as $colKey => $col) {\n if ($col == '*') {\n $this->expandCloud($rowKey, $colKey);\n }\n }\n }\n $this->scene = $this->today; // atualiza scena\n $this->nDays++;\n //debug\n //$this->debug();\n }\n $this->result['status'] = 'success';\n $this->result['msg'] = 'Primeiro aeroporto atingido em: ' . $this->airports[0][2] . ' dias.';\n $this->result['msg'] .= ' / linha: ' . ($this->airports[0][0] + 1) . ', coluna: ' . ($this->airports[0][1] + 1) . '<br>';\n $this->result['msg'] .= 'Todos os aeroporto atingido em: ' . $this->airports[sizeof($this->airports) - 1][2] . ' dias.';\n }\n\n }", "public function aggregate(): void;", "public function subSelect(){\n try {\n // Sparql11query.g:620:3: ( project whereClause solutionModifier ) \n // Sparql11query.g:621:3: project whereClause solutionModifier \n {\n $this->pushFollow(self::$FOLLOW_project_in_subSelect2248);\n $this->project();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_whereClause_in_subSelect2250);\n $this->whereClause();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_solutionModifier_in_subSelect2252);\n $this->solutionModifier();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function getRetVals()\n {\n }", "function processGetVars()\n {\n assignGetIfExists($this->parent, $this->rs, 'parent');\n assignGetIfExists($this->lecture_id, $this->rs, 'lecture_id');\n assignGetIfExists($this->type, $this->rs, 'type');\n assignGetIfExists($this->copy_parent, $this->rs, 'copy_parent');\n\n /* Process 'returntoparent' directive */\n $this->processReturnToParent();\n\n return $this->rs;\n }", "private function _reducer ()\r\n {\r\n // (stored string or regexp) | +?+ ++? |\r\n //whitespace\r\n $reg = $this->_getRegex('whitespace', array(\r\n 'fbov' => $this->_IdRegex('fbov'),\r\n 'fbo' => $this->_IdRegex('fbo')\r\n ), true);\r\n $this->_script = preg_replace_callback($reg, array(&$this, '_spaceRemover'), $this->_script);\r\n \r\n $reg = preg_replace('#\\s+#','','\r\n for\\s*\\{;;\\}\r\n|\r\n (;\\})\r\n|\r\n (;+)(?=;)\r\n');\r\n \r\n if ($this->getConcatString()) {\r\n $reg .= '|'.$this->_IdRegex('s',true).'((?:\\+'.$this->_IdRegex('s').')+)';\r\n }\r\n \r\n $this->_script = preg_replace_callback('#'.$reg.'#', array(&$this, '_reducerOptimal'), $this->_script);\r\n }", "function result()\n\t\t{\n\t\t\t//generate first number\n\t\t\t$number1 = new Operand(1,10);\n\t\t\t$number1->generate_number();\n\t\t\t\n\t\t\t//generate second number\n\t\t\t$number2 = new Operand(1,10);\n\t\t\t$number2->generate_number();\n\t\t\t\n\t\t\t//generate third number\n\t\t\t$number3 = new Operand(1,10);\n\t\t\t$number3->generate_number();\n\t\t\t\n\t\t\t//generate first operator\n\t\t\t$operator1 = new Operator('+-*');\n\t\t\t$operator1->generate_operator();\n\t\t\t\n\t\t\t//generate second operator\n\t\t\t$operator2= new Operator('+-*');\n\t\t\t$operator2->generate_operator();\n\t\t\t\n\t\t\t//calculate result\n\t\t\t$a= $number1->number;\n\t\t\t$b= $operator1->Operator;\n\t\t\t$c= $number2->number;\n\t\t\t$d= $operator2->Operator;\n\t\t\t$e= $number3->number;\n\t\t\tif ($b=='+')\n\t\t\t{\n\t\t\t\t$temp= $a + $c;\n\t\t\t}\n\t\t\tif ($b=='-')\n\t\t\t{\n\t\t\t\t$temp= $a - $c;\n\t\t\t}\n\t\t\tif ($b=='*')\n\t\t\t{\n\t\t\t\t$temp= $a * $c;\n\t\t\t}\n\n\t\t\tif ($d=='+')\n\t\t\t{\n\t\t\t\t$result= $temp + $e;\n\t\t\t}\n\t\t\tif ($d=='-')\n\t\t\t{\n\t\t\t\t$result= $temp - $e;\n\t\t\t}\n\t\t\tif ($d=='*')\n\t\t\t{\n\t\t\t\t$result= $temp * $e;\n\t\t\t}\n\t\t\t\n\t\t\t$this->expression =$a.$b.$c.$d.$e;\n\t\t\t$this->security_code=$result;\n\t\t\t$this->a = $a;\n\t\t\t$this->b = $b;\n\t\t\t$this->c = $c;\n\t\t\t$this->d = $d;\n\t\t\t$this->e = $e;\n\t\t}", "public function extract()\n {\n }", "function post_process(&$results) {\n }", "function sub(Vector $sub)\n\t\t{\n\t\t\t$res = new Vector(array('dest' => new Vertex(array(\n\t\t\t\t'x' => $this->_x - $sub->getX(),\n\t\t\t\t'y' => $this->_y - $sub->getY(),\n\t\t\t\t'z' => $this->_z - $sub->getZ()\n\t\t\t))));\n\t\t\treturn ($res);\n\t\t}", "public function returnResults()\n {\n $this->executionResult['final']['X'] = $this->currentXPosition;\n $this->executionResult['final']['Y'] = $this->currentYPosition;\n $this->executionResult['final']['facing'] = $this->currentDirection;\n $this->executionResult['battery'] = $this->battery;\n if (isset($this->executionResult['visited'])) {\n array_multisort($this->executionResult['visited'], SORT_ASC);\n }\n if (isset($this->executionResult['cleaned'])) {\n array_multisort($this->executionResult['cleaned'], SORT_ASC);\n }\n\n return $this->executionResult;\n }", "public function collect() {\n foreach ($this->_items as $item) {\n $item->collect();\n }\n }", "public function pullSubReqData()\n {\n // Make the query\n $q = \"SELECT id_user, id_team, id_event, sex_needed,\n experience_needed, id_region\n FROM subrequests\n WHERE id_subrequest = {$this->id_subrequest}\n LIMIT 1\";\n\n // Execute the query & store result\n $result = $this->_dbObject->getRow($q);\n\n // Found result\n if($result !== false) {\n $this->setSRAttributes($result['id_user'], $result['id_team'], $result['id_event'],\n $result['sex_needed'], $result['experience_needed'],\n $result['id_region']);\n }\n }", "public abstract function compute();", "private function parse_total(){\n\t\t$production_formats = new \\gcalc\\db\\production\\formats();\n\t\t$product_constructor_name = '\\gcalc\\db\\product\\\\' . str_replace( '-', '_', $this->get_slug() );\n\t\t$product_constructor_exists = class_exists( $product_constructor_name );\n\t\t$product_constructor_cost_equasion_exists = $product_constructor_exists ? method_exists( $product_constructor_name, 'get_calc_data' ) : false;\n\n\n\n\t\t/*\n\t\tEquasion can be stored in product constructor or formats array.\n\t\tFormats array is a temporary means to keep data so product constructor is a preferred way\n\t\t */\n\t\t$total_cost_equasion = \n\t\t\t$product_constructor_cost_equasion_exists ? \n\t\t\t\t$product_constructor_name::get_calc_data( )\n\t\t\t\t: $production_formats->get_total_cost_equasion( $this->get_product_id() );\n\n\t\t$total_cost_equasion_string = $total_cost_equasion['equasion'];\n\n\t\t$total_cost_equasion = $total_cost_equasion_string;\n\t\t$total_pcost_equasion = $total_cost_equasion_string;\n\n\t\t\n\t\t/**\n\t\t * Keeps selling prices of used processes\n\t\t * @var array\n\t\t */\n\t\t$total_cost_array = array();\n\t\t/**\n\t\t * Keeps production costs of used processes\n\t\t * @var array\n\t\t */\n\t\t$total_pcost_array = array();\n\t\t/**\n\t\t * Keeps markups of used proceses\n\t\t * @var array\n\t\t */\n\t\t$total_markup_array = array();\n\t\t/**\n\t\t * All used in calculation formats\n\t\t * @var array\n\t\t */\n\t\t$used_formats_array = array();\n\t\t/**\n\t\t * All used in calculation media\t\t \n\t\t * @var array\n\t\t */\n\t\t$used_media_array = array();\n\n\t\t//checking credentials for data filter\t\t\n\t\t$credetials = $this->login();\n\t\t$al = $credetials['access_level'];\n\n\t\tforeach ($this->done as $key => $value) {\t\n\t\t\tif ( preg_match( '/'.$value->total['name'].'/', $total_cost_equasion_string )) {\n\t\t\t\t$total_cost_equasion = str_replace($value->total['name'], $value->total['total_price'], $total_cost_equasion);\t\t\t\t\t\t\n\t\t\t\t$total_pcost_equasion = str_replace($value->total['name'], $value->total['production_cost'], $total_pcost_equasion);\t\t\n\n\t\t\t\t$total_cost_array[ $value->total['name'] ] = $value->total['total_price'];\n\t\t\t\t$total_pcost_array[ $value->total['name'] ] = $value->total['production_cost'];\n\t\t\t\t$total_markup_array[ $value->total['name'] ] = $value->total['markup'];\n\t\t\t}\t\n\n\t\t\t//used formats total\n\t\t\tif ( preg_match( '/_format/', $value->total['name'] )) {\n\t\t\t\t$production_format_pieces = $value->total['extended']['production_format']['pieces'];\n\t\t\t\t$common_format_name = $value->total['extended']['production_format']['common_format']['name'];\n\t\t\t\t$common_format_width = $value->total['extended']['production_format']['common_format']['width'];\n\t\t\t\t$common_format_height = $value->total['extended']['production_format']['common_format']['height'];\n\n\t\t\t\t$production_format_format = $value->total['extended']['production_format']['format'];\n\t\t\t\t$production_format_width = $value->total['extended']['production_format']['width'];\n\t\t\t\t$production_format_height = $value->total['extended']['production_format']['height'];\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t* Filtering data\n\t\t\t\t*/\n\t\t\t\tif ( $al > 0) {\n\t\t\t\t\t\n\t\t\t\t\tif ($al > 5) { // admin, master only\n\t\t\t\t\t\t\n\t\t\t\t\t\t$format_str = $production_format_pieces .' '. __('slots', 'gcalc') .' '. $common_format_name .'('.$common_format_width.'x'.$common_format_height.')' \n\t\t\t\t\t\t\t.' @ '. $production_format_format.'('.$production_format_width.'x'.$production_format_height.')';\n\n\t\t\t\t\t} else { // no data for account, inner\n\t\t\t\t\t\t$format_str = '';\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t} else { // 0 - anonymous\n\t\t\t\t\t$format_str = $common_format_width.'x'.$common_format_height;\n\n\t\t\t\t}\n\n\n\t\t\t\t$used_formats_array[ $value->total['name'] ] = $format_str;\n\t\t\t}\n\t\t\t\n\t\t\t//used papers total\n\t\t\tif ( preg_match( '/_paper/', $value->total['name'] )) {\n\t\t\t\t$sheet_cost = $value->total['extended']['sheet_cost'];\n\t\t\t\t$sheets_quantity = $value->total['extended']['sheets_quantity'];\n\t\t\t\t$paper_price_per_kg = $value->total['extended']['paper']['price_per_kg'];\n\t\t\t\t$paper_label = $value->total['extended']['paper']['label'];\t\t\t\t\n\t\t\t\t$paper_thickness = $value->total['extended']['paper']['thickness'];\n\n\t\t\t\t/*\n\t\t\t\t* Filtering data\n\t\t\t\t*/\n\t\t\t\tif ( $al > 0) {\n\t\t\t\t\tif ($al > 5) { // admin, master only\n\t\t\t\t\t\t\n\t\t\t\t\t\t$media_str = $sheets_quantity .' x ' . $paper_label . ' (' . $paper_thickness . 'mm)'\n\t\t\t\t\t\t.' @ ' . $sheet_cost . ' PLN / '. __('sheet','gcalc') .' (' . $paper_price_per_kg . '/kg) ';\n\n\t\t\t\t\t} else { // no data for account, inner\n\t\t\t\t\t\t$media_str = '';\t\n\t\t\t\t\t}\n\t\t\t\t} else { // 0 - anonymous\n\t\t\t\t\t$media_str = $paper_label;\n\n\t\t\t\t}\n\n\t\t\t\t$used_media_array[ $value->total['name'] ] = $media_str;\n\n\t\t\t}\n\t\t}\n\t\teval('$total_cost_ = ' . $total_cost_equasion . ';');\n\t\teval('$total_pcost_ = ' . $total_pcost_equasion . ';');\n\n\t\t$average_markup = count($total_markup_array) > 0 ? array_sum( $total_markup_array ) / count($total_markup_array) : 1;\n\n\n\n\n\t\t$total_ = array(\n\t\t\t'equasion' => $total_cost_equasion_string,\t\t\t\n\t\t\t'used_formats' => $used_formats_array,\n\t\t\t'used_media' => $used_media_array,\n\n\t\t\t'total_markup' => $total_markup_array,\n\t\t\t'total_cost_equasion' => $total_cost_array,\n\t\t\t'total_pcost_equasion' => $total_pcost_array,\n\t\t\t\n\t\t\t'average_markup' => ( ( $total_cost_ - $total_pcost_ ) / $total_pcost_ ) + 1, \n\t\t\t'total_cost_' => $total_cost_,\n\t\t\t'total_pcost_' => $total_pcost_\n\t\t);\n\n\t\t\t\t/*\n\t\t\t\t* Filtering total data\n\t\t\t\t*/\n\t\t\t\tif ( $al > 0) {\n\t\t\t\t\tif ($al > 5) { // admin, master only\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t} else { // no data for account, inner\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset($total_['used_formats']);\n\t\t\t\t\t\tunset($total_['used_media']);\n\t\t\t\t\t}\n\t\t\t\t} else { // 0 - anonymous\n\t\t\t\t\t$media_str = $paper_label;\n\n\t\t\t\t}\n\n\n\t\t$total_ = $this->merge_children_totals( $total_ );\n\t\t$this->total_ = $total_;\n\n\t}", "final function velcom(){\n }", "public function calculate();", "public function calculate();", "function capture_do(){\n \t}", "protected function collectInformation() {}", "public function getResults() {\n\t\t$this->$results_ = $this->resultSource_->getResults();\n\t\treturn $this->$results_;\n }", "public function store_result() {}", "public function collect() {\r\n $stat1 = $this->GetCoreInformation();\r\n /* sleep on server for one second */\r\n sleep(1);\r\n /* take second snapshot */\r\n $stat2 = $this->GetCoreInformation();\r\n /* get the cpu percentage based off two snapshots */\r\n $data = $this->GetCpuPercentages($stat1, $stat2);\r\n $total = 0;\r\n $count = 0;\r\n foreach ($data as $key => $value) {\r\n $total += $value['user'] + $value['nice'] + $value['sys'];\r\n $count++;\r\n }\r\n\r\n $information = array\r\n (\r\n 'processors' => $this->collectProccessorsNumber(),\r\n 'processor_load' => $this->collectProcessorLoad(),\r\n 'cpu' => round($total / ($count ?: 1)),\r\n 'memory' => array('total' => $this->collectMemoryTotal(), 'free' => $this->collectMemoryFree()),\r\n 'swap' => array('total' => $this->collectSwapTotal(), 'free' => $this->collectSwapFree()),\r\n 'tasks' => $this->collectTasksNumber(),\r\n 'uptime' => $this->collectUptime(),\r\n );\r\n $information['memory']['busy'] = $information['memory']['total'] - $information['memory']['free'];\r\n $information['swap']['busy'] = $information['swap']['total'] - $information['swap']['free'];\r\n return $information;\r\n }", "public function prepareResults()\n {\n $final_imageset = $this->_imagesets;\n foreach ($this->_imagesets as $run_id => $imageset) {\n if (!$this->_validateOutFiles($imageset['out_images'])) {\n unset($final_imageset[$run_id]);\n break;\n }\n $final_imageset[$run_id]['recordtodb'] = isset($imageset['out_images']['main']);\n// unset ($final_imageset[$run_id]['out_images']);\n foreach ($this->_image->getColours() as $colour) {\n $tmp_colour = $imageset[$colour];\n $final_imageset[$run_id][$colour] = $tmp_colour['colour'];\n $final_imageset[$run_id]['imlev'] = $tmp_colour['levels']['imlev'];\n foreach (['r', 'v'] as $levtype) {\n foreach (['min', 'max'] as $minmax) {\n $minkey = sprintf(\"%s%s_%s\", $minmax, $colour, $levtype);\n $final_imageset[$run_id][$minkey] = $tmp_colour['levels'][$levtype][$minmax];\n }\n }\n }\n $final_imageset[$run_id] = array_merge($final_imageset[$run_id], $this->_commons);\n }\n return $final_imageset;\n }", "function yy_r34(){ $this->_retvalue = array(); }", "function stream_results(){\r\n // \r\n //Get all the subjects that this student is taught \r\n $subjects= $this->get_student($stream, $grade, $year);\r\n //\r\n $sql= \"select student.name as name\";\r\n // \r\n //Appends every subjects name\r\n foreach ($subjects as $value) {\r\n //\r\n $sql.\"{$value}.score as $value\"; \r\n }\r\n \r\n }", "public function afterGetItems(\\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection $subject ,array $result)\n {\n foreach ($result as $product) {\n $this->addDigitalLicensesToProduct($product);\n }\n return $result;\n }", "function totalAmount_subaccount() {\r\n global $date;\r\n $query = \"SELECT DISTINCT\r\n s.sub_account AS Sub_account,\r\n a.account AS Account,\r\n (\r\n (\r\n (\r\n SELECT IFNULL(SUM(amount), 0)\r\n FROM record\r\n WHERE subacc = s.sub_account\r\n AND transaction_type = 'in'\r\n AND date BETWEEN\r\n (\r\n SELECT MIN(date)\r\n FROM record\r\n ) AND '{$date}'\r\n )\r\n +\r\n (\r\n SELECT IFNULL(SUM(amount), 0)\r\n FROM record\r\n WHERE to_subacc = s.sub_account\r\n AND transaction_type = 'tr'\r\n AND date BETWEEN\r\n (\r\n SELECT MIN(date)\r\n FROM record\r\n ) AND '{$date}'\r\n )\r\n )\r\n -\r\n (\r\n (\r\n SELECT IFNULL(SUM(amount), 0)\r\n FROM record\r\n WHERE subacc = s.sub_account\r\n AND transaction_type = 'ex'\r\n AND date BETWEEN\r\n (\r\n SELECT MIN(date)\r\n FROM record\r\n ) AND '{$date}'\r\n )\r\n +\r\n (\r\n SELECT IFNULL(SUM(amount), 0)\r\n FROM record\r\n WHERE from_subacc = s.sub_account\r\n AND transaction_type = 'tr'\r\n AND date BETWEEN\r\n (\r\n SELECT MIN(date)\r\n FROM record\r\n ) AND '{$date}'\r\n )\r\n )\r\n ) AS Remain\r\n FROM account s\r\n INNER JOIN account a\r\n ON s.account = a.account;\";\r\n return fetch($query);\r\n }", "function yy_r54(){ $this->_retvalue = array(); }", "public function afterResolve($subject, $result)\n {\n if (isset($result['order']) && isset($result['order']['order_number'])) {\n $order = $this->dataHelper->getOrderByIncrementId($result['order']['order_number']);\n $result['order']['document_id'] = !empty($order) && $order->getDocumentId() ? $order->getDocumentId() : '';\n $result['order']['pickup_store_id'] = !empty($order) && $order->getPickupStore() ?\n $order->getPickupStore() : '';\n $result['order']['pickup_store_name'] = !empty($order) && $order->getPickupStore() ?\n $this->dataHelper->getStoreNameById($order->getPickupStore()) : '';\n }\n\n return $result;\n }", "public function total(){\n $total = $this->qualification + $this->referee_report + $this->interview;\n }", "public function getResults(/* ... */)\n {\n return $this->_return;\n }", "public function fetchInto(){\n\t\t\t}", "function sub()\n\t{\n\t\t$a = 120;\n\t\t$b = 22;\n\t\t$c = $a - $b;\n\t\techo \"Subtraction :\" .$c;\n\t}", "function process() ;", "function assign_rs()\n {\n $this->assign('student', $this->rs);\n }", "private function extractData($decoded)\n {\n $amount = $decoded->{'Amount'};\n $receiverNumber = $decoded->{'ReceiverNumber'};\n $statusCode = $decoded->{'StatusCode'};\n $transactionID = $decoded->{'TransactionID'};\n $processingNumber = $decoded->{'ProcessingNumber'};\n\n //now put them in the variable\n $this->amount = $amount;\n $this->receiverNumber = $receiverNumber;\n $this->statusCode = $statusCode;\n $this->transactionID = $transactionID;\n $this->processingNumber = $processingNumber;\n }", "public function prepareOutput(){ return $this->value; }", "public function process()\n {\n return $this->operation->evaluate($this->operands);\n }", "public function initialize() {\n\t\t# Create structure\n\t\t$parentResult =& $this->getParentResult();\n\t\t# Creating array structures!\n\t\t$parentResult[$this->getTagName()] =& $this->getResult();\n\t}", "private function calculate_consumption_and_resources(&$p_members, &$p_main_obj)\n {\n foreach ($p_main_obj as $l_main_obj_id => $l_main_data)\n {\n if (!is_array($p_members))\n {\n $p_main_obj[$l_main_obj_id][\"memory_consumption\"] = 0;\n $p_main_obj[$l_main_obj_id][\"cpu_consumption\"] = 0;\n $p_main_obj[$l_main_obj_id][\"bandwidth_consumption\"] = 0;\n $p_main_obj[$l_main_obj_id][\"disc_space_consumption\"] = 0;\n\n return;\n }\n else\n {\n foreach ($p_members as $l_obj_id => $l_data)\n {\n $p_main_obj[$l_main_obj_id][\"memory_rest\"] = $p_main_obj[$l_main_obj_id][\"memory_rest\"] - $l_data[\"memory\"];\n $p_main_obj[$l_main_obj_id][\"memory_consumption\"] = $p_main_obj[$l_main_obj_id][\"memory_consumption\"] + $l_data[\"memory\"] + 0;\n\n $p_main_obj[$l_main_obj_id][\"cpu_rest\"] = $p_main_obj[$l_main_obj_id][\"cpu_rest\"] - $l_data[\"cpu\"];\n $p_main_obj[$l_main_obj_id][\"cpu_consumption\"] = $p_main_obj[$l_main_obj_id][\"cpu_consumption\"] + $l_data[\"cpu\"] + 0;\n\n $p_main_obj[$l_main_obj_id][\"bandwidth_rest\"] = $p_main_obj[$l_main_obj_id][\"bandwidth_rest\"] - $l_data[\"bandwidth\"];\n $p_main_obj[$l_main_obj_id][\"bandwidth_consumption\"] = $p_main_obj[$l_main_obj_id][\"bandwidth_consumption\"] + $l_data[\"bandwidth\"] + 0;\n\n $p_main_obj[$l_main_obj_id][\"disc_space_rest\"] = $p_main_obj[$l_main_obj_id][\"disc_space_rest\"] - $l_data[\"disc_space\"];\n $p_main_obj[$l_main_obj_id][\"disc_space_consumption\"] = $p_main_obj[$l_main_obj_id][\"disc_space_consumption\"] + $l_data[\"disc_space\"] + 0;\n } // foreach\n } // if\n } // foreach\n }", "public function sub_combine_c() {\n\t\t\n\t\techo 'Subchild begin-bring from childclass-> '.parent::combine_child().' <-subchild end';\n\t}", "abstract function extract(): array;", "function yy_r207(){ $this->_retvalue = new Stmt\\Expr(\"ALL\"); }", "public function test2()\n\t\t{\n\t\t\treturn get_object_vars($this);\n\t\t}", "function yy_r114(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor); }", "private function init_consolidationAndSelect_setArrayConsolidation()\n {\n // LOOP : each filter (table.field)\n foreach ( ( array ) $this->arr_tsFilterTableFields as $tableField )\n {\n list( $table ) = explode( '.', $tableField );\n $tableUid = $table . '.uid';\n\n // CONTINUE : $arrConsolidation contains the current tableUid\n if ( in_array( $tableUid, ( array ) $this->pObj->arrConsolidate[ 'addedTableFields' ] ) )\n {\n continue;\n }\n // CONTINUE : $arrConsolidation contains the current tableUid\n // #47089, 120410, dwildt\n // CONTINUE : select clause contains the current tableUid\n // #50214, 130720, dwildt, 1-\n //$pos = strpos( $this->pObj->conf_sql, $tableUid );\n // #50214, 130720, dwildt, 1+\n $pos = strpos( $this->pObj->conf_sql[ 'select' ], $tableUid );\n if ( !( $pos === false ) )\n {\n continue;\n }\n // CONTINUE : select clause contains the current tableUid\n // #47089, 120410, dwildt\n // Add current tableUid\n $this->pObj->arrConsolidate[ 'addedTableFields' ][] = $tableUid;\n\n // DRS\n if ( $this->pObj->b_drs_filter )\n {\n t3lib_div :: devlog( '[INFO/FILTER] Table ' . $tableUid . ' is added to arrConsolidate[addedTableFields].', $this->pObj->extKey, 0 );\n }\n // DRS\n }\n // LOOP : each filter (table.field)\n }", "public function sub( VONumber $l, VONumber $r );", "public function run()\n {\n $result = $this->serializeData(parent::run());\n $result = $this->filterResult($result);\n return $result;\n }", "function calculate_total($tax, $sub){\n\t//echo $tax;\n\t//echo \" ____ \";\n\t//echo $sub;\n\treturn $tax + $sub;\n\t}", "public function getResult()\n {\n return $this->_result;\n }", "function yy_r32(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }", "protected function result()\n\t{\n\t\treturn $this->subject;\n\t}", "public function getResult()\n\t{\n\t\treturn $this->last_result;\n\t}", "function processGetVars()\n {\n //assignGetIfExists ( $fullList, NULL, 'full' );\n //$this->fullList = (bool) $fullList;\n self::dumpThis();\n }", "public function getResult(){\n $val = $this->result;\n $this->result = array();\n return $val;\n }", "public function _finalize() {\n $this->calls = substr($this->calls, 1, -1);\n }", "public function interpretation() {\n $functiontype = $this->inputarray[$this->position];\n \n /* Gets target position indicated by the third element after the function position\n Sets target position in the array to equal the result of the addition \n Advances index position by 4 to continue to next function */\n if ($functiontype == 1) {\n $target = $this->inputarray[$this->position+3];\n $this->inputarray[$target] = $this->one();\n $this->position = $this->position+4;\n return;\n }\n \n /* Gets target position indicated by the third element after the function position\n Sets target position in the array to equal the result of the multiplication \n Advances index position by 4 to continue to next function */\n if ($functiontype == 2) {\n $target = $this->inputarray[$this->position+3];\n $this->inputarray[$target] = $this->two();\n $this->position = $this->position+4;\n return;\n }\n \n /* Sets the final calculated value at position 0 and returns 99 to end the while loop*/\n if ($functiontype == 99) {\n $this->finalvalue = $this->inputarray[0];\n return $this->inputarray[$this->position];\n }\n }", "static function measureResults(){\n\t\tforeach(self::$measures as $name=>$measure){\n\t\t\t$totalTime = 0;\n\t\t\twhile(($instance = current($measure)) && next($measure)){\n\t\t\t\t$nextInstance = current($measure);\n\t\t\t\tif($nextInstance){\n\t\t\t\t\t$currentCount = count($out[$name]);\n\t\t\t\t\t$totalTime += $nextInstance['time'] - $instance['time'];\n\t\t\t\t\t$out[$name][$currentCount]['timeChange'] = $nextInstance['time'] - $instance['time'];\n\t\t\t\t\t$out[$name][$currentCount]['memoryChange'] = $nextInstance['mem'] - $instance['mem'];\n\t\t\t\t\t$out[$name][$currentCount]['peakMemoryChange'] = $nextInstance['peakMem'] - $instance['peakMem'];\n\t\t\t\t\t$out[$name][$currentCount]['peakMemoryLevel'] = $instance['peakMem'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$out[$name]['total']['time'] = $totalTime;\n\t\t}\n\t\treturn $out;\n\t}", "public function afterGetById(\\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection $subject ,array $result)\n {\n foreach ($result as $product) {\n $this->addDigitalLicensesToProduct($product);\n }\n return $result;\n }", "public function view_results()\n {\n $obj = new CombinedAnalysis();\n $this->final_results = $obj->fetchResultsFromFiles($this->id);\n\n // show everthing in template\n $this->show_template();\n }", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}", "function getRetVals()\r\n\t\t{\r\n\t\treturn null;\r\n\t\t}" ]
[ "0.5275692", "0.52105784", "0.51045465", "0.5034777", "0.50084394", "0.4996921", "0.49502286", "0.49502286", "0.49028453", "0.4867414", "0.48280042", "0.4792536", "0.47873583", "0.47209057", "0.47034994", "0.47013786", "0.46625718", "0.465845", "0.46411496", "0.46374464", "0.46374464", "0.46374464", "0.46374464", "0.46374464", "0.46374464", "0.46374464", "0.46374464", "0.4635324", "0.4611984", "0.45971307", "0.459486", "0.45880863", "0.45833218", "0.45785874", "0.4561732", "0.45412937", "0.45253608", "0.45093545", "0.45053637", "0.4475504", "0.44726503", "0.44724068", "0.44674373", "0.445025", "0.44338825", "0.44315612", "0.4430445", "0.44231272", "0.4404567", "0.4404567", "0.44014794", "0.4396755", "0.43889517", "0.43869188", "0.43826166", "0.43758196", "0.43733", "0.436948", "0.436771", "0.4367518", "0.434134", "0.43176067", "0.4316775", "0.43141282", "0.43110663", "0.4300573", "0.4298049", "0.42969763", "0.42952734", "0.42948952", "0.4294087", "0.4286904", "0.42814142", "0.42803568", "0.42758548", "0.42720595", "0.42699298", "0.42698053", "0.42647418", "0.42618415", "0.42607966", "0.4259923", "0.42559066", "0.42499223", "0.42471662", "0.4239252", "0.42329487", "0.42320263", "0.42284715", "0.42229548", "0.4217335", "0.42138913", "0.42040053", "0.42012948", "0.42012948", "0.42012948", "0.42012948", "0.42012948", "0.42012948", "0.42012948", "0.42012948" ]
0.0
-1
""" main method """
public function parse($input_string) { $this->input_string = trim($input_string); $this->setLiterals($input_string); return $this->recursiveParenthesesGroups(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function main()\n\t{\n\t}", "public function main()\r\n {\r\n \r\n }", "public static function main(){\n\t\t\t\n\t\t}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main()\n {\n\n }", "public function main();", "public abstract function Main();", "public function main()\n {\n return null;\n }", "protected function main()\n /**/\n {\n parent::run();\n }", "public function getMain();", "public function getMain();", "public function \tc_main(){ return \"\"; }", "function main()\r\n {\r\n $this->setOutput();\r\n }", "abstract protected function main(array $arguments);", "public static function main(){\n //do nothing\n }", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "public static function main() {\n\t\tTestRunner::run( self::suite() );\n\t}", "public static function run() {\n\t}", "function run()\r\n {\r\n }", "function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite(__CLASS__);\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "public function setMain(): void;", "public function main()\n\t{\n\t\t$this->loadConfig();\n\t\t$this->validateProject();\n\t\t$this->cleanConfig();\n\t\t$this->installDependencies();\n\t\t$this->createAutoload();\n\t\t$this->finish();\n\t}", "public static function main()\n {\n $suite = new TestSuite(__CLASS__);\n $result = (new resources_Runner())->run($suite);\n }", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite(__CLASS__);\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "function jzApi_main($argv) {\n\t\t$ret = array();\n\t\t\n\t\t//$ret[] = E(\"Playlists\", null, \"playlists\");\n\t\t//$ret[] = E(\"Charts & Random\", null, \"random\");\n\t\t$ret[] = E(\"Genres\", null, \"nodes\");\n\t\t\n\t\treturn $ret;\n\t}", "static function main()\n {\n self::primeAnagrams(self::prime1000());\n }", "static function main() {\n $suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n PHPUnit_TextUI_TestRunner::run( $suite);\n }", "static function main() {\n $suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n PHPUnit_TextUI_TestRunner::run( $suite);\n }", "public static function main()\n {\n $suite = new TestSuite(\"Zend_Form_Decorator_LabelTest\");\n $result = (new resources_Runner())->run($suite);\n }", "abstract public function run() ;", "public static function main()\n {\n $suite = new TestSuite(\"Zend_Form_Decorator_ViewHelperTest\");\n $result = (new resources_Runner())->run($suite);\n }", "public static function main()\n {\n $suite = new TestSuite(\"Zend_Dom_QueryTest\");\n $result = (new resources_Runner())->run($suite);\n }", "function main()\n{\n global $app, $globalSettings;\n\n $filter = getFilter();\n $books1 = $app->calibre->last30Books($globalSettings['lang'], $globalSettings[PAGE_SIZE], $filter);\n $books = array_map('checkThumbnail', $books1);\n $stats = $app->calibre->libraryStats($filter);\n $app->render('index_last30.html', [\n 'page' => mkPage(getMessageString('dl30'), 1, 1),\n 'books' => $books,\n 'stats' => $stats]);\n}", "public static function main()\n {\n include_once \"PHPUnit/TextUI/TestRunner.php\";\n\n $suite = new PHPUnit_Framework_TestSuite('Math_Numerical_RootFinding General Test');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "function main()\n{\n runGetFeature();\n runListFeatures();\n runRecordRoute();\n runRouteChat();\n}", "public static function main()\n {\n\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "abstract protected function _run();", "abstract protected function _run();", "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tinebase_ImageHelperTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "public static function main()\n\t{\n\t\trequire_once \"PHPUnit/TextUI/TestRunner.php\";\n\n\t\t$suite = new PHPUnit_Framework_TestSuite(\"EssentialsTest\");\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite(__CLASS__));\n }", "public function __construct($argv)\n {\n }" ]
[ "0.8554008", "0.8539641", "0.851743", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8298197", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8297579", "0.8226518", "0.81590503", "0.8045718", "0.7381024", "0.71680033", "0.713824", "0.713824", "0.7097639", "0.70021254", "0.6984619", "0.67121375", "0.67070776", "0.67070776", "0.67070776", "0.67070776", "0.67070776", "0.67070776", "0.6676173", "0.662069", "0.66078407", "0.657798", "0.6532519", "0.6514318", "0.6493661", "0.64877236", "0.6472109", "0.6455044", "0.6442909", "0.6442909", "0.6393275", "0.6385588", "0.63741195", "0.6320514", "0.6300482", "0.62937534", "0.6293709", "0.62826383", "0.6254756", "0.6254756", "0.6205749", "0.62045705", "0.62045705", "0.62045705", "0.6204414", "0.6202661", "0.6198407" ]
0.0
-1
if input is string, parse it first
public function evaluate($input, $table=array()) { if (is_string($input)) { $input = $this->parse($input); } // assume input is well formed so that we can calculate the truth value if (is_array($input)) { return $this->truthValue($input[1], !$input[0], $table, FALSE, FALSE, FALSE); } return NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse(string $input);", "abstract public function parse($string);", "public function parse($string);", "public function getParsedInput();", "public function parse($input) {\n\t//--\n\treturn (array) $this->loadWithSource((array)$this->loadFromString((string)$input));\n\t//--\n}", "public function parse(string $value);", "function tidy_parse_string($input, $config = null, $encoding = null) {}", "abstract public function process($inputString);", "abstract public function parse($value);", "public function parse($input, $flags = null);", "public function parseString($input, $config = null, $encoding = null) {}", "function getType($input)\r\n {\r\n if (is_numeric(str_replace(\" \", \"\", trim($input)))) {\r\n return \"number\";\r\n } elseif (strpos($input, \"+\") !== false) {\r\n return \"number\";\r\n } elseif (is_string($input) && !empty($input)) {\r\n return \"name\";\r\n } elseif ($input == '') {\r\n return \"empty\";\r\n }\r\n }", "function normalizeInput($input) {\n\t\t$ret = null;\n\t\tif (is_array($input)) {\n\t\t\t$ret = $input;\n\t\t} else if (is_string($input)) {\n\t\t\t$ret = str2bytes($input);\n\t\t} else {\n\t\t\tthrow new Exception(\"Input must be a string or an array\");\n\t\t}\n\t\treturn $ret;\n\t}", "abstract public function parseInput(array $input): array;", "protected function parse_inputdata(string $inputdata) {\n /* Convert text to SimpleXmlElement. */\n $xmltext = $this->fix_html_errors_in_string($inputdata);\n $xml = $this->string_to_xmlelement($xmltext);\n $this->fix_xmlelement_errors($xml);\n \n /* Find main tag. */\n $main = $xml;\n if (isset($this->app->config->main))\n $main = $this->xpath_one($xml, $this->app->config->main);\n \n /* Return ref to main tag. */\n return $main;\n }", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "function wp_parse_str($input_string, &$result)\n {\n }", "abstract public static function parse($value);", "public static function parse_str($str)\n {\n }", "protected function parse($str)\n {\n }", "abstract public function parse ();", "public static function is_string_or_stringable($input)\n {\n }", "function cleanInput($input,$type = null)\r\n{\r\n\tswitch($type) {\r\n\t\t//these are the parameters passed through function parameters, a,b,c,d etc..\r\n\t\tcase 'args':\r\n\t\t\tif(is_array($input)) {\r\n\t\t\t\tforeach($input as $k => $kv ) {\r\n\t\t\t\t\tif(!is_array($kv)) {\r\n\t\t\t\t\t\t$return[$k] = addslashes($kv);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tforeach($kv as $k_level => $v_level2) {\r\n\t\t\t\t\t\t\t$return[$k][$k_level] = $v_level2;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$input = $return;\r\n\t\t\t} else {\r\n\t\t\t\t$input = addslashes($v);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase '_REQUEST':\r\n\t\t\t//\r\n\t\tbreak;\r\n\t\tcase '_POST':\r\n\t\t\t//\r\n\t\tbreak;\r\n\t\tcase '_GET':\r\n\t\t\t//\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t//other inputs\r\n\t}\r\n\t\r\n\treturn $input;\r\n}", "private static function processInputAsDateString() {\n $unix = strtotime(self::$input);\n\n if ($unix) { \n self::$timestamp = $unix;\n self::setDateFromTimestamp(self::$timestamp);\n } else {\n self::setMessage(\"Sorry. Your input was invalid.\");\n }\n }", "public abstract function parse($text);", "public static function parse(string $string): self;", "function validate_input($input_data, $input_type) {\n $output_data = trim($input_data);\n $output_data = stripslashes($output_data);\n $output_data = htmlspecialchars($output_data);\n if($input_type == 'text') {\n // not sure what to do here; \n }\n if($input_type == 'number') {\n if(!is_numeric($output_data)) {\n return false;\n }\n }\n return $output_data;\n}", "function is_input($arg)\n{\n\tif (mb_substr ($arg, 0, 8) === \"--input=\")\n\t\treturn true;\n\treturn false;\n}", "private function parseSession($input) {\n $matches = array();\n if ( preg_match('/([A-Z]+)/i', $input, $matches) ) {\n $semester = $matches[1];\n $this->semester = $this->getSemesterFromInput($semester);\n } else {\n $this->fail('Problem parsing semester');\n }\n $matches = array();\n if ( preg_match('/([0-9]+)/', $input, $matches) ) {\n $year = $matches[1];\n $this->year = $this->getYearFromInput($year);\n } else {\n $this->fail('Problem parsing year');\n }\n }", "function parseInput($src, $delim = '||', $type = 'string', $columns = true)\n { // type can be: string, array\n global $modx;\n\n if (db()->isResult($src)) {\n // must be a recordset\n $rows = [];\n $nc = db()->numFields($src);\n while ($cols = db()->getRow($src, 'num')) {\n $rows[] = ($columns) ? $cols : implode(' ', $cols);\n }\n return ($type == 'array') ? $rows : implode($delim, $rows);\n }\n\n// must be a text\n if ($type === 'array') {\n return explode($delim, $src);\n }\n return $src;\n }", "public static function unpoify($input_string)\n {\n }", "function _wp_json_convert_string($input_string)\n {\n }", "function test_input($str) {\n\t\t\t\t$str = @trim($str);\n\t\t\t\tif(get_magic_quotes_gpc()) {\n\t\t\t\t$str = stripslashes($str);\n\t\t\t\t}\n\t\t\t\treturn ($str);\n\t\t\t\t}", "public function fromString(string $string);", "protected function _validateInput($input)\n\t{\n\t\tif($input === false || ($input = trim($input)) === '')\n\t\t\treturn false;\n\t\t\n\t\treturn $input;\n\t}", "function parseValue($value);", "public function resolveInput()\n {\n $value = $this->_value( @$_SERVER['CONTENT_TYPE'], '' );\n $value = $this->_value( @$_SERVER['HTTP_CONTENT_TYPE'], $value );\n $value = $this->_value( @$_SERVER['HTTP_X_CONTENT_TYPE'], $value );\n $parts = array();\n\n if( !empty( $value ) )\n {\n $value = 'ctype='. $value;\n $value = preg_replace( '/\\;\\s+/', '&', $value );\n parse_str( $value, $parts );\n }\n $this->ctype = $this->_value( @$parts['ctype'], '' );\n $this->boundary = $this->_value( @$parts['boundary'], '' );\n $this->input = trim( file_get_contents( 'php://input' ) );\n }", "abstract public function parse($data, $type);", "public function parse();", "public function parse();", "public function parse();", "static function readString($input, $flag = 1)\n\t{\n\t\treturn self::readArray(explode(\",\", $input), $flag);\n\t}", "function simpleCleanInput($input){\n\t\tif(!is_null($input)){\n\t\t\t$value = $input;\n\t\t\t$value = @strip_tags($value);\t\n\t\t\t$value = @stripslashes($value);\n\t\t\t$value = trim($value);\n\t\t\tif(!empty($value)){\n\t\t\t\treturn $value;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public function parse($text);", "function string_parse($string, $data = array(), $return = FALSE)\n\t{\n\t\treturn $this->_parse($string, $data, $return);\n }", "abstract protected function parse($data);", "public function setParsedInput(array $input);", "private function _parse($value)\n\t{\n\t\tif (is_object($value)) {\n\t\t\treturn $value;\n\t\t}\n\t\t\n\t\tif (is_array($value)) {\n\t\t\tforeach ($value as $k => $v) {\n\t\t\t\t$value[$k] = $this->_parse($v);\n\t\t\t}\n\t\t\treturn $value;\n\t\t}\n\t\t\n\t\tif (preg_match(\"/^[0-9]+$/\", $value)) {\n\t\t\treturn (int) $value;\n\t\t}\n\t\t\n\t\tif (preg_match(\"/^[0-9]+\\.[0-9]+$/\", $value)) {\n\t\t\treturn (float) $value;\n\t\t}\n\t\t\n\t\treturn $value;\n\t}", "public function parse(string $string): array;", "public function __invoke(string $input): string\n {\n return $this->convert($input);\n }", "public function parse($input) {\n preg_match($this->pattern, $input, $matches);\n $command = ucfirst(strtolower($matches['class'])) . ucfirst(strtolower($matches['action']));\n $arguments = [$matches['argument1'], $matches['rest']];\n //Construct the correct classpath and name so it can be autoloaded.\n $command_class = $this->command_namespace . $command . 'Command';\n if (class_exists($command_class)) {\n return new $command_class($this->remote_request, $arguments);\n } else {\n return new UnknownCommand($command);\n }\n }", "private function prepareInput($input) {\n $error_detected = [];\n\n $type = '';\n //check for requirements\n if (isset($input['type'])) {\n $type = $input['type'];\n }\n\n if (!isset($input['name']) || empty($input['name'])) {\n $error_detected[] = __sso('A Name is required');\n }\n\n if (empty($type)) {\n $error_detected[] = __('An item type is required');\n } else if (!isset(static::getTypes()[$type])) {\n $error_detected[] = sprintf(__sso('The \"%s\" is a Invalid type'), $type);\n }\n\n if (!isset($input['client_id']) || empty($input['client_id'])) {\n $error_detected[] = __sso('A Client ID is required');\n }\n\n if (!isset($input['client_secret']) || empty($input['client_secret'])) {\n $error_detected[] = __sso('A Client Secret is required');\n }\n\n if ($type === 'generic') {\n if (!isset($input['url_authorize']) || empty($input['url_authorize'])) {\n $error_detected[] = __sso('An Authorize URL is required');\n } else if (!filter_var($input['url_authorize'], FILTER_VALIDATE_URL)) {\n $error_detected[] = __sso('The Authorize URL is invalid');\n }\n\n if (!isset($input['url_access_token']) || empty($input['url_access_token'])) {\n $error_detected[] = __sso('An Access Token URL is required');\n } else if (!filter_var($input['url_access_token'], FILTER_VALIDATE_URL)) {\n $error_detected[] = __sso('The Access Token URL is invalid');\n }\n\n if (!isset($input['url_resource_owner_details']) || empty($input['url_resource_owner_details'])) {\n $error_detected[] = __sso('A Resource Owner Details URL is required');\n } else if (!filter_var($input['url_resource_owner_details'], FILTER_VALIDATE_URL)) {\n $error_detected[] = __sso('The Resource Owner Details URL is invalid');\n }\n }\n\n if (count($error_detected)) {\n foreach ($error_detected as $error) {\n Session::addMessageAfterRedirect(\n $error,\n true,\n ERROR\n );\n }\n return false;\n }\n\n return $input;\n }", "public function process($string);", "function test_input($data)\n{\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n\t $data = strtolower($data);\n return $data;\n}", "private function parseCourse($input) {\n $matches = array();\n if ( preg_match('/^([A-Z]+)/i', $input, $matches) ) {\n $this->department = $matches[1];\n } else {\n $this->fail('Problem parsing department');\n }\n $matches = array();\n if ( preg_match('/([0-9]+)/', $input, $matches) ) {\n $this->course_number = $matches[1];\n } else {\n $this->fail('Problem parsing course number');\n }\n\n }", "private static function fromString($input, VersionParser $parser = null)\n {\n // we need a parser\n if ($parser === null) {\n throw new E4xx_VersionParserRequired();\n }\n\n // convert and return\n return $parser($input);\n }", "function tep_parse_input_field_data($data, $parse) {\n\t\treturn strtr(trim($data), $parse);\n\t}", "protected function parse()\n {\n preg_match('/(user|ip)\\:\\\"?([0-9a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ._ -]{1,})\\\"?/', $this->inputQuery, $matches);\n\n if (empty($matches)) {\n return $this->filteredQuery = $this->inputQuery;\n }\n\n list($original, $key, $value) = $matches;\n\n $this->filteredQuery = str_replace($original, '', $this->inputQuery);\n $this->filters[$key] = trim($value, '\"');\n }", "public function parse(string $content);", "public function parse(string $content);", "public function parse(string $str): ?array;", "public function parse($input_string) {\n $this->input_string = trim($input_string);\n $this->setLiterals($input_string);\n return $this->recursiveParenthesesGroups();\n }", "private function _parsePlain()\n {\n $data = @parse_ini_string( $this->input, true );\n\n if( is_array( $data ) )\n {\n $_REQUEST = array_merge( $_GET, $data );\n return true;\n }\n return false;\n }", "protected function parse() {}", "public static function purifyByType($input, $type, $convert = false)\n\t{\n\t\tif (\\is_array($input)) {\n\t\t\t$value = [];\n\t\t\tforeach ($input as $k => $v) {\n\t\t\t\t$value[$k] = static::purifyByType($v, $type);\n\t\t\t}\n\t\t} else {\n\t\t\t$value = null;\n\t\t\tswitch ($type) {\n\t\t\t\tcase 'Standard': // only word\n\t\t\t\tcase 1:\n\t\t\t\t\t$value = Validator::standard($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Alnum': // word and int\n\t\t\t\tcase 2:\n\t\t\t\t\t$value = Validator::alnum($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'AlnumExtended':\n\t\t\t\t\t$value = preg_match('/^[\\sA-Za-z0-9\\,\\_\\.\\=\\-]+$/', $input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'AlnumType2':\n\t\t\t\t\t$value = preg_match('/^[\\sA-Za-z0-9\\/\\+]+$/', $input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DateInUserFormat': // date in user format\n\t\t\t\t\tif (!$input) {\n\t\t\t\t\t\treturn '';\n\t\t\t\t\t}\n\t\t\t\t\t$value = Validator::dateInUserFormat($input) ? ($convert ? Fields\\Date::formatToDB($input) : $input) : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Time':\n\t\t\t\t\t$value = Validator::time($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'TimePeriod':\n\t\t\t\t\t$value = Validator::timePeriod($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'TimeInUserFormat':\n\t\t\t\t\t$value = Validator::timeInUserFormat($input) ? ($convert ? Fields\\Time::formatToDB($input) : $input) : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DateRangeUserFormat': // date range user format\n\t\t\t\t\t$dateFormat = User::getCurrentUserModel()->getDetail('date_format');\n\t\t\t\t\t$v = [];\n\t\t\t\t\tforeach (explode(',', $input) as $i) {\n\t\t\t\t\t\t[$y, $m, $d] = Fields\\Date::explode($i, $dateFormat);\n\t\t\t\t\t\tif (checkdate((int) $m, (int) $d, (int) $y) && is_numeric($y) && is_numeric($m) && is_numeric($d)) {\n\t\t\t\t\t\t\t$v[] = \\DateTimeField::convertToDBFormat($i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($v) {\n\t\t\t\t\t\t$value = $v;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Date': // date in base format yyyy-mm-dd\n\t\t\t\t\t$value = Validator::date($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DateTime': // date in base format Y-m-d H:i:s\n\t\t\t\t\t$value = Validator::dateTime($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DateTimeInUserFormat':\n\t\t\t\t\t$value = Validator::dateTimeInUserFormat($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DateTimeInIsoFormat': // date in base format yyyy-mm-dd\n\t\t\t\t\t$value = Validator::dateTimeInIsoFormat($input) ? date('Y-m-d H:i:s', strtotime($input)) : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Bool':\n\t\t\t\t\t$value = self::bool($input);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'NumberInUserFormat': // number in user format\n\t\t\t\t\t$input = Fields\\Double::formatToDb($rawInput = $input);\n\t\t\t\t\tif (is_numeric($input) && Fields\\Double::formatToDisplay($input, false) === Fields\\Double::truncateZeros($rawInput)) {\n\t\t\t\t\t\t$value = $input;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Number':\n\t\t\t\t\t$dbFormat = Fields\\Double::formatToDb($input);\n\t\t\t\t\tif (is_numeric($dbFormat) && Fields\\Double::formatToDisplay($dbFormat, false) === Fields\\Double::truncateZeros($input)) {\n\t\t\t\t\t\t$value = $input;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Double':\n\t\t\t\t\tif (false !== ($input = filter_var($input, FILTER_VALIDATE_FLOAT))) {\n\t\t\t\t\t\t$value = $input;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Phone':\n\t\t\t\t\t$value = preg_match('/^[\\s0-9+\\-()]+$/', $input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Email':\n\t\t\t\t\t$value = Validator::email($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Html':\n\t\t\t\t\t$value = self::purifyHtml($input);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Integer': // Integer\n\t\t\t\t\tif (false !== ($input = filter_var($input, FILTER_VALIDATE_INT))) {\n\t\t\t\t\t\t$value = $input;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Digital': // Digital - eg. 000523\n\t\t\t\t\tif (false !== ($input = filter_var($input, FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => '/^[0-9]+$/']]))) {\n\t\t\t\t\t\t$value = $input;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Color': // colors\n\t\t\t\t\t$value = preg_match('/^(#[0-9a-fA-F]{6})$/', $input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Year': // 2018 etc\n\t\t\t\t\tif (is_numeric($input) && (int) $input >= 0 && (int) $input <= 3000 && 4 === \\strlen((string) $input)) {\n\t\t\t\t\t\t$value = (string) $input;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Version':\n\t\t\t\t\t$value = preg_match('/^[\\.0-9]+$/', $input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Path':\n\t\t\t\t\t$value = Fields\\File::checkFilePath($input) ? static::encodeHtml(static::purify($input)) : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Url':\n\t\t\t\t\t$value = Validator::url($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'MailId':\n\t\t\t\t\t$value = preg_match('/^[\\sA-Za-z0-9\\<\\>\\_\\[\\.\\]\\=\\-\\+\\@\\$\\!\\#\\%\\&\\'\\*\\+\\/\\?\\^\\_\\`\\{\\|\\}\\~\\-]+$/', $input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ClassName':\n\t\t\t\t\t$value = preg_match('/^[a-z\\\\\\_]+$/i', $input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase self::SQL:\n\t\t\t\t\t$value = $input && Validator::sql($input) ? $input : null;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Text':\n\t\t\t\tdefault:\n\t\t\t\t\t$value = self::purify($input);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (null === $value) {\n\t\t\t\t\\App\\Log::error('purifyByType: ' . $input, 'IllegalValue');\n\t\t\t\tthrow new \\App\\Exceptions\\IllegalValue('ERR_NOT_ALLOWED_VALUE||' . $input, 406);\n\t\t\t}\n\t\t}\n\t\treturn $value;\n\t}", "private function parse($input) {\n $tokens= [];\n foreach (new Tokens(new StringTokenizer($input)) as $type => $value) {\n $tokens[]= [$type, $value];\n }\n return $tokens;\n }", "public function parse($input)\n {\n return [];\n }", "public function parseValue();", "function validate_string($input) {\n if (!is_string($input) || empty($input)) return false;\n\n return true;\n}", "function parse_string($string, $data = array(), $options = array()) {\n\n if (!$this->string_has_params($string)) {\n return $string;\n }\n\n //check if string is once param\n if ($this->parse_string_is_once_param($string)) {\n $param_key = $this->parse_string_extract_param($string);\n //print_r(compact('param_key'));\n if ($this->parse_param_exists($param_key, $data)) {\n return $this->parse_param_value($param_key, $data);\n }\n return $string; //param_key not exists, return string as is\n }\n\n $string1 = str_replace(\n array(\n $this->parse['before'],\n $this->parse['after']), array(\n '!-=0=-!' . $this->parse['before'],\n $this->parse['after'] . '!-=0=-!'), $string);\n\n $parsed = explode('!-=0=-!', $string1);\n $finded = array();\n foreach ($parsed as $ix => $item) {\n if ($item) {\n if ($this->parse_string_is_once_param($item)) {\n $param_key = $this->parse_string_extract_param($item);\n\n if ($this->parse_param_exists($param_key, $data)) {\n $parsed[$ix] = $this->parse_param_value($param_key, $data);\n }\n }\n }\n }\n return join($parsed);\n }", "private function loadFromString($input) {\n\t//--\n\t$lines = explode(\"\\n\", (string)$input);\n\t//--\n\tforeach($lines as $k => $v) {\n\t\t$lines[$k] = (string) rtrim((string)$v, \"\\r\");\n\t} //end foreach\n\t//--\n\treturn (array) $lines;\n\t//--\n}", "function sanitize($type, $input) {\n\n switch ($type) {\n case 'int':\n $output = (int) strip_tags($input);\n break;\n case 'string':\n $output = (string) strip_tags($input);\n break;\n case 'double':\n $output = (double) strip_tags($input);\n break;\n default:\n echo \"Wrong Type\";\n $output = '';\n }\n \n return $output;\n }", "function twe_db_prepare_input($string) {\n if (is_string($string)) {\n return trim(stripslashes($string));\n } elseif (is_array($string)) {\n reset($string);\n while (list($key, $value) = each($string)) {\n $string[$key] = twe_db_prepare_input($value);\n }\n return $string;\n } else {\n return $string;\n }\n }", "public static function string_input()\n {\n fscanf(STDIN,\"%s\\n\",$string);\n while(!(strlen($string)>0) || (is_numeric($string) || ($string==null))){\n echo \"Enter the Valid String:\\n\";\n $string=Util::string_input();\n }\n return $string;\n }", "private function _comma_separated_to_array($input, $type) {\n\t\t$output = array();\n\t\tif ( empty($input) ) {\n\t\t\treturn $output;\n\t\t}\n\t\tif ( is_array($input) ) {\n\t\t\t$output = $input;\n\t\t}\n\t\telse {\n\t\t\t$output = explode(',', $input);\n\t\t}\n\n\t\tforeach ($output as $i => $item) {\n\t\t\t$output[$i] = trim($item);\n\t\t\t$item = trim($item);\n\t\t\t\n\t\t\t// Remove quotes, e.g. $input = '\"1\",\"2\",\"3\"'\n\t\t\t$item = preg_replace('/^\"/', '', $item);\n\t\t\t$item = preg_replace('/\"$/', '', $item);\n\t\t\t$item = preg_replace(\"/^'/\", '', $item);\n\t\t\t$item = preg_replace(\"/'$/\", '', $item);\n\t\t\t\n\t\t\tif (empty($item)) {\n\t\t\t\tunset($output[$i]); // this covers the nefarious empty arrays!\n\t\t\t\tcontinue; \n\t\t\t}\n\t\t\tswitch ($type) {\n\t\t\t\tcase 'integer':\n\t\t\t\t\t$output[$i] = (int) $item;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// Only a-z, _, - is allowed.\n\t\t\t\tcase 'alpha':\n\t\t\t\t\tif ( !preg_match('/[a-z_\\-]/i', $item) ) {\n\t\t\t\t\t\t$this->errors[] = __('Invalid alpha input:') . $item;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'post_type':\n\t\t\t\t\tif ( !empty($item) && !post_type_exists($item) ) {\n\t\t\t\t\t\t$this->errors[] = __('Invalid post_type:') . $item;\n\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'post_status':\n\t\t\t\t\tif ( !in_array($item, array('inherit', 'publish', 'auto-draft', 'draft')) ) {\n\t\t\t\t\t\t$this->errors[] = __('Invalid post_status:') . $item;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'search_columns':\n\t\t\t\t\t// Taking this on: http://code.google.com/p/wordpress-summarize-posts/issues/detail?id=27\n\t\t\t\t\tif ( !preg_match('/[a-z_0-9]/i', $item) ) {\n\t\t\t\t\t\t$this->errors[] = __('Invalid column name. Column names may only contain alphanumeric characters and underscores: ') . $item;\n\t\t\t\t\t}\n\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'no_tags':\n\t\t\t\t\t$output[$i] = strip_tags($item);\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "public static function _clean($source, $type) {\n switch (strtoupper($type)) {\n case 'INT' :\n case 'INTEGER' :\n // Only use the first integer value\n preg_match('/-?[0-9]+/', (string) $source, $matches);\n $result = @ (int) $matches[0];\n break;\n\n case 'FLOAT' :\n case 'DOUBLE' :\n // Only use the first floating point value\n preg_match('/-?[0-9]+(\\.[0-9]+)?/', (string) $source, $matches);\n $result = @ (float) $matches[0];\n break;\n\n case 'BOOL' :\n case 'BOOLEAN' :\n $result = (bool) $source;\n break;\n\n case 'WORD' :\n $result = (string) preg_replace('/[^A-Z_]/i', '', $source);\n break;\n\n case 'ALNUM' :\n $result = (string) preg_replace('/[^A-Z0-9]/i', '', $source);\n break;\n\n case 'CMD' :\n $result = (string) preg_replace('/[^A-Z0-9_\\.-]/i', '', $source);\n $result = ltrim($result, '.');\n break;\n\n case 'BASE64' :\n $result = (string) preg_replace('/[^A-Z0-9\\/+=]/i', '', $source);\n break;\n\n case 'STRING' :\n $result = (string) $source;\n break;\n\n case 'ARRAY' :\n $result = (array) $source;\n break;\n\n case 'PATH' :\n $pattern = '/^[A-Za-z0-9_-]+[A-Za-z0-9_\\.-]*([\\\\\\\\\\/][A-Za-z0-9_-]+[A-Za-z0-9_\\.-]*)*$/';\n preg_match($pattern, (string) $source, $matches);\n $result = @ (string) $matches[0];\n break;\n\n case 'USERNAME' :\n $result = (string) preg_replace('/[\\x00-\\x1F\\x7F<>\"\\'%&]/', '', $source);\n break;\n\n\n\n default :\n $result = $source;\n break;\n }\n\n return $result;\n }", "function tep_parse_input_field_data($data, $parse) {\n return strtr(trim($data), $parse);\n }", "function check_parse($jsonStr)\n\t\t{\n\t\t\tif($jsonStr)\n\t\t\t{\n\t\t\t $arr = json_decode($jsonStr,true); \n\t\t\t\t $langType = $arr['responseData']['language'];\n\t\t\t\t $typeArr = explode(\"-\",$langType);\n\t\t\t\t \n\t\t\t\t if(count($typeArr)>1)\n\t\t\t\t\t{\n\t\t\t\t\t return $typeArr[0];\n\t\t\t\t\t}\n\t\t\t\t else\n\t\t\t\t\t{\n\t\t\t\t\t return $langType;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\t\t}", "function validate_input($input, $input_type=NULL){\n\t\n\tswitch($input_type){\n\t\tcase 'first_name':\n\t\t\treturn preg_match('/^[A-Z\\'.-]{2,20}$/i', $input);\n\t\t\tbreak;\n\t\tcase 'last_name':\n\t\t\treturn preg_match('/^[A-Z\\'.-]{2,40}$/i', $input);\n\t\t\tbreak;\n\t\tcase 'email':\n\t\t\treturn preg_match('/^[\\w.-]+@[\\w.-]+\\.[A-Za-z]{2,8}$/', $input);\n\t\t\tbreak;\n\t\tcase 'password':\n\t\t\treturn preg_match('/^\\w{4,20}$/', $input);\n\t\t\tbreak;\n\t\tcase 'profile_link':\n\t\t\treturn preg_match('/^[a-z0-9_.-]{4,100}$/', $input);\n\t\t\tbreak;\n\t\tcase 'location':\n\t\t\treturn preg_match('|^[A-Z /\\',.-]{2,40}$|i', $input);\n\t\t\tbreak;\n\t\tcase 'group_name':\n\t\t\treturn preg_match('/^[A-Z0-9 \\'.)(&-]{2,100}$/i', $input);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn preg_match('|^[\\w /\\',.)(:+?&-=]+$|', $input);\n\t\t\tbreak;\n\t}\n\treturn;\n}", "function test_input($data) {\n\t $data \t= trim($data);\n\t $data \t= stripslashes($data);\n\t $data \t= htmlspecialchars($data);\n\t return \t$data;\n\t}", "public function ifStr($str);", "function sanitizeType( $input ) {\n\t\t$input = preg_replace( '|[^\\w\\s\\(\\)]+|', '', $input );\n\t\t\n\t\t// Remove excess white-spaces\n\t\t$input = preg_replace( '|[\\s]+|', ' ', $input );\n\t\t\n\t\treturn trim( $input );\n\t}", "function clean_input($input){\n\n\t$clean;\t//clean version of variable\n\n\tif (is_string($input)){\n\t\t$clean = mysql_real_escape_string(stripslashes(ltrim(rtrim($input))));\n\t}\n\telse if (is_numeric($input)){\n\t\t$clean = mysql_real_escape_string(stripslashes(ltrim(rtrim($input))));\n\t}\n\telse if (is_bool($input)){\n\t\t$clean = ($input) ? true : false;\n\t}\n\telse if (is_array($input)){\n\t\tforeach ($input as $k=>$i){\n\t\t\t$clean[$k] = clean_input($i);\n\t\t}\n\t}\n\t\n\treturn $clean;\n\t\n}", "function _safe_unserialize($str)\n{\n\tif(strlen($str) > MAX_SERIALIZED_INPUT_LENGTH)\n\t{\n\t\tthrow new Exception('safe_unserialize: input exceeds ' . MAX_SERIALIZED_INPUT_LENGTH);\n\t}\n\n\tif(empty($str) || !is_string($str))\n\t{\n\t\treturn false;\n\t}\n\n\t$stack = array();\n\t$expected = array();\n\n\t/*\n\t * states:\n\t * 0 - initial state, expecting a single value or array\n\t * 1 - terminal state\n\t * 2 - in array, expecting end of array or a key\n\t * 3 - in array, expecting value or another array\n\t */\n\t$state = 0;\n\twhile($state != 1)\n\t{\n\t\t$type = isset($str[0]) ? $str[0] : '';\n\n\t\tif($type == '}')\n\t\t{\n\t\t\t$str = substr($str, 1);\n\t\t}\n\t\telse if($type == 'N' && $str[1] == ';')\n\t\t{\n\t\t\t$value = null;\n\t\t\t$str = substr($str, 2);\n\t\t}\n\t\telse if($type == 'b' && preg_match('/^b:([01]);/', $str, $matches))\n\t\t{\n\t\t\t$value = $matches[1] == '1' ? true : false;\n\t\t\t$str = substr($str, 4);\n\t\t}\n\t\telse if($type == 'i' && preg_match('/^i:(-?[0-9]+);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'd' && preg_match('/^d:(-?[0-9]+\\.?[0-9]*(E[+-][0-9]+)?);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (float)$matches[1];\n\t\t\t$str = $matches[3];\n\t\t}\n\t\telse if($type == 's' && preg_match('/^s:([0-9]+):\"(.*)/s', $str, $matches) && substr($matches[2], (int)$matches[1], 2) == '\";')\n\t\t{\n\t\t\t$value = substr($matches[2], 0, (int)$matches[1]);\n\t\t\t$str = substr($matches[2], (int)$matches[1] + 2);\n\t\t}\n\t\telse if($type == 'a' && preg_match('/^a:([0-9]+):{(.*)/s', $str, $matches) && $matches[1] < MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t{\n\t\t\t$expectedLength = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'O')\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: objects not supported');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: unknown/malformed type: '.$type);\n\t\t}\n\n\t\tswitch($state)\n\t\t{\n\t\t\tcase 3: // in array, expecting value or another array\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$stack[] = &$list;\n\t\t\t\t\t$list[$key] = array();\n\t\t\t\t\t$list = &$list[$key];\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$list[$key] = $value;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: missing array value');\n\n\t\t\tcase 2: // in array, expecting end of array or a key\n\t\t\t\tif($type == '}')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) < end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size less than expected ' . $expected[0]);\n\t\t\t\t\t}\n\n\t\t\t\t\tunset($list);\n\t\t\t\t\t$list = &$stack[count($stack)-1];\n\t\t\t\t\tarray_pop($stack);\n\n\t\t\t\t\t// go to terminal state if we're at the end of the root array\n\t\t\t\t\tarray_pop($expected);\n\t\t\t\t\tif(count($expected) == 0) {\n\t\t\t\t\t\t$state = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type == 'i' || $type == 's')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) >= MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds ' . MAX_SERIALIZED_ARRAY_LENGTH);\n\t\t\t\t\t}\n\t\t\t\t\tif(count($list) >= end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds expected length');\n\t\t\t\t\t}\n\n\t\t\t\t\t$key = $value;\n\t\t\t\t\t$state = 3;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: illegal array index type');\n\n\t\t\tcase 0: // expecting array or value\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$data = array();\n\t\t\t\t\t$list = &$data;\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$data = $value;\n\t\t\t\t\t$state = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: not in array');\n\t\t}\n\t}\n\n\tif(!empty($str))\n\t{\n\t\tthrow new Exception('safe_unserialize: trailing data in input');\n\t}\n\treturn $data;\n}", "function test_input($data) {\r\n $data = trim($data);\r\n //removes backslashes from input\r\n $data = stripslashes($data);\r\n //converts html to special characters\r\n $data = htmlspecialchars($data);\r\n return $data;\r\n}", "function validate_input(string $data) :string\n{\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}", "function test_input($data)\n\t{\n\t $data = trim($data);\n\t //on supprime les antislashs\n\t $data = stripslashes($data);\n\t //on utilise les codes HTML pour les caractéres spéciaux\n\t $data = htmlentities($data);\n\t return $data;\n\t}", "function isStr($str) {\n return new Parser(function($s) use($str){\n $cnt = strlen($str);\n $cmp = substr($s, 0, $cnt);\n if(!$cmp or $cmp === \"\") {\n return new Maybe(null);\n } else {\n if($str !== $cmp){\n return new Maybe(null);\n } else {\n return new Maybe(new Tuple(substr($s, $cnt), $str));\n }\n }\n });\n }", "public static function poify($input_string)\n {\n }", "private static function parseValue($val)\n {\n $parsedVal = null;\n\n // Cleanup\n $val = trim($val);\n\n if($val === '')\n {\n throw new Exception('Empty value not allowed');\n }\n\n // Boolean\n if($val == 'true' || $val == 'false')\n {\n $parsedVal = ($val == 'true');\n }\n // Literal multi-line string\n elseif(substr($val, 0, 3) == \"'''\" && substr($val, -3) == \"'''\")\n {\n $parsedVal = substr($val, 3, -3);\n\n // Trim first newline on multi-line string definition\n if($parsedVal[0] == \"\\n\")\n {\n $parsedVal = substr($parsedVal, 1);\n }\n }\n // Literal string\n elseif($val[0] == \"'\" && substr($val, -1) == \"'\")\n {\n // No newlines allowed\n if(strpos($val, \"\\n\") !== false)\n {\n throw new Exception('New lines not allowed on single line string literals.');\n }\n\n $parsedVal = substr($val, 1, -1);\n }\n // Multi-line string\n elseif(substr($val, 0, 3) == '\"\"\"' && substr($val, -3) == '\"\"\"')\n {\n $parsedVal = substr($val, 3, -3);\n\n // Trim first newline on multi-line string definition\n if($parsedVal[0] == \"\\n\")\n {\n $parsedVal = substr($parsedVal, 1);\n }\n\n // Use json_decode to finally parse the string.\n $parsedVal = json_decode('\"' . str_replace(\"\\n\", '\\n', $parsedVal) . '\"');\n }\n // String\n elseif($val[0] == '\"' && substr($val, -1) == '\"')\n {\n // TOML's specification says it's the same as for JSON format... so\n $parsedVal = json_decode($val);\n }\n // Numbers\n elseif(is_numeric(str_replace('_', '', $val)))\n {\n $val = str_replace('_', '', $val);\n\n $intVal = filter_var($val, FILTER_VALIDATE_INT);\n if($intVal !== false)\n {\n $parsedVal = $intVal;\n }\n else\n {\n $parsedVal = (float) $val;\n }\n }\n // Datetime. Parsed to UNIX time value.\n elseif(self::isISODate($val))\n {\n $parsedVal = new DateTime($val);\n }\n // Single line array (normalized)\n elseif($val[0] == '[' && substr($val, -1) == ']')\n {\n $parsedVal = self::parseArray($val);\n }\n // Inline table (normalized)\n elseif($val[0] == '{' && substr($val, -1) == '}')\n {\n $parsedVal = self::parseInlineTable($val);\n }\n else\n {\n throw new Exception('Unknown value type: ' . $val);\n }\n\n return $parsedVal;\n }", "public static function tryParse(string $string): ?self;", "public function detectFromString( $string )\n {\n }", "function wp_parse_str( $string, &$array ) {\n\tparse_str( $string, $array );\n\t$array = apply_filters( 'wp_parse_str', $array );\n}", "function check_input($data)\n{\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n\t$data = strtolower($data);\n return $data;\n}", "public function testRequestParsingFromInput() {\n\n\t\t$router = new Nether\\Avenue\\Router(static::$RequestData['Index']);\n\n\t\t(new Verify(\n\t\t\t'parsed domain from input',\n\t\t\t$router->GetDomain()\n\t\t))->equals('nether.io');\n\n\t\t(new Verify(\n\t\t\t'parsed path from input',\n\t\t\t$router->GetPath()\n\t\t))->equals('/index');\n\n\t\treturn;\n\t}", "static public function load($value) {\n\t\t$value = trim ( $value );\n\t\t\n\t\tif (0 == strlen ( $value )) {\n\t\t\treturn '';\n\t\t}\n\t\t\n\t\tswitch ($value [0]) {\n\t\t\tcase '[' :\n\t\t\t\treturn self::parseSequence ( $value );\n\t\t\tcase '{' :\n\t\t\t\treturn self::parseMapping ( $value );\n\t\t\tdefault :\n\t\t\t\treturn self::parseScalar ( $value );\n\t\t}\n\t}", "function tep_parse_input_field_data($data, $parse) {\n return strtr(trim($data), $parse);\n}", "function sanitizeInput($input, $type = \"string\", $max = NULL, $min = NULL, $padding = \"_\"){\r\n\r\n \r\n switch($type){\r\n\r\n case \"string\":\r\n if(!is_string($input)){\r\n $input = strval($input);\r\n }\r\n \r\n if($min && strlen($input) < $min){\r\n $input = str_pad($input, $min, $padding);\r\n }\r\n\r\n if($max && strlen($input) > $max){\r\n $input = mb_substr($input, 0, $max);\r\n }\r\n\r\n break;\r\n\r\n case \"integer\":\r\n if(!is_int($input)){\r\n $input = intval($input);\r\n }\r\n\r\n if($min !== NULL && $input < $min){\r\n $input = $min;\r\n }\r\n\r\n if($max !== NULL && $input > $max){\r\n $input = $max;\r\n }\r\n\r\n break;\r\n\r\n case \"float\":\r\n if(!is_float($input)){\r\n $input = floatval($input);\r\n }\r\n\r\n if($min !== NULL && $input < $min){\r\n $input = $min;\r\n }\r\n\r\n if($max !== NULL && $input > $max){\r\n $input = $max;\r\n }\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n\r\n return $input;\r\n}" ]
[ "0.7826728", "0.69849175", "0.69031763", "0.6446347", "0.6369607", "0.6347991", "0.62561387", "0.62323385", "0.6208592", "0.616453", "0.61327237", "0.61275005", "0.6066773", "0.60617614", "0.6013526", "0.6011265", "0.6011265", "0.6011265", "0.6011265", "0.59944946", "0.5982778", "0.59781295", "0.5966112", "0.5902168", "0.58452916", "0.58445346", "0.58034545", "0.5784262", "0.57581335", "0.5757248", "0.5748379", "0.57463175", "0.5743014", "0.57360333", "0.5719737", "0.56876785", "0.5683274", "0.5681452", "0.56424665", "0.5642223", "0.5640758", "0.56160355", "0.56160355", "0.56160355", "0.56005794", "0.55981874", "0.55953115", "0.5590624", "0.55883235", "0.55621535", "0.5559689", "0.5559684", "0.5541654", "0.5540734", "0.5535381", "0.5529094", "0.5520137", "0.5513028", "0.5511613", "0.5500821", "0.54915464", "0.5481337", "0.5481337", "0.54721284", "0.54621947", "0.5457217", "0.5453969", "0.5453588", "0.5449264", "0.5448023", "0.5442632", "0.54394424", "0.5436151", "0.5433645", "0.54262847", "0.5418486", "0.5410601", "0.54009676", "0.53743553", "0.5372441", "0.5372013", "0.53686947", "0.5362341", "0.5355785", "0.535093", "0.5347143", "0.533719", "0.5335948", "0.53305656", "0.5330235", "0.5300236", "0.5292011", "0.52880496", "0.5284135", "0.52775043", "0.5275355", "0.52632946", "0.5258091", "0.52567077", "0.5254341", "0.52473277" ]
0.0
-1
xand, one or more, but not all single true is false, single false is false
private function some($a) { return $this->any($a) && !$this->all($a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAnd();", "protected static function logicalAND(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('AND', $values);\n\t}", "static function logicalAnd()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalAnd', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public static function and_() {\n $result = new qti_variable('single', 'boolean', array('value' => true));\n $params = func_get_args();\n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\r\n foreach($params as $param) {\n if (!$param->value) {\n $result->value = false;\n return $result;\n }\n }\n return $result;\n }", "function yy_r145(){ $this->_retvalue = new Stmt\\Expr('and', $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor); }", "function variant_and($left, $right) {}", "public function assertAllTrue()\n {\n $bools = func_get_args();\n\n if (is_array(func_get_arg(0))) {\n $bools = func_get_arg(0);\n }\n\n return ! collect($bools)->contains(false);\n }", "private function truthValue($current_item, $mutual, $table, $negate, $xor, $xand) {\n if (!is_array($current_item)) {\n // see if translation table is given\n if ($table && isset($table[$current_item])) {\n $current_item = $table[$current_item];\n }\n // cast to string and lower case for easier comparison\n $v = strtolower(\"\".$current_item);\n if ($v == 'true' || $v == '1') {\n return !$negate;\n }\n return $negate;\n }\n // item is a list\n $a = array();\n // should we negate next item, was it a list or values\n $next_item_negate = FALSE;\n $next_item_xor = FALSE;\n $next_item_xand = FALSE;\n\n foreach ($current_item as $item) {\n // negation marker\n if ($item == -1) {\n $next_item_negate = TRUE;\n // xor marker\n } else if ($item == -2) {\n $next_item_xor = TRUE;\n // xand marker\n } else if ($item == -3) {\n $next_item_xand = TRUE;\n } else {\n $a[] = $this->truthValue($item, !$mutual, $table, $next_item_negate, $next_item_xor, $next_item_xand);\n // reset negation and xor\n $next_item_negate = FALSE;\n $next_item_xor = FALSE;\n $next_item_xand = FALSE;\n }\n }\n // is group AND / OR / XOR\n // take care of negation for the list result too\n if ($xor) {\n // if only one of the values is true, but not more\n if ($negate) {\n return !$this->one($a);\n }\n return $this->one($a);\n } else if ($xand) {\n // if any of the values is true, but not all\n if ($negate) {\n return !$this->some($a);\n }\n return $this->some($a);\n } else if ($mutual) {\n // if all values are true\n if ($negate) {\n return !$this->all($a);\n }\n return $this->all($a);\n } else {\n // if some of the values is true\n if ($negate) {\n return !$this->any($a);\n }\n return $this->any($a);\n }\n }", "public function conditionalAndExpression(){\n try {\n // Sparql11query.g:389:3: ( valueLogical ( AND valueLogical )* ) \n // Sparql11query.g:390:3: valueLogical ( AND valueLogical )* \n {\n $this->pushFollow(self::$FOLLOW_valueLogical_in_conditionalAndExpression1326);\n $this->valueLogical();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:390:16: ( AND valueLogical )* \n //loop49:\n do {\n $alt49=2;\n $LA49_0 = $this->input->LA(1);\n\n if ( ($LA49_0==$this->getToken('AND')) ) {\n $alt49=1;\n }\n\n\n switch ($alt49) {\n \tcase 1 :\n \t // Sparql11query.g:390:17: AND valueLogical \n \t {\n \t $this->match($this->input,$this->getToken('AND'),self::$FOLLOW_AND_in_conditionalAndExpression1329); \n \t $this->pushFollow(self::$FOLLOW_valueLogical_in_conditionalAndExpression1331);\n \t $this->valueLogical();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop49;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function booleanLiteral(){\n try {\n // Sparql11query.g:578:3: ( TRUE | FALSE ) \n // Sparql11query.g: \n {\n if ( ($this->input->LA(1)>=$this->getToken('TRUE') && $this->input->LA(1)<=$this->getToken('FALSE')) ) {\n $this->input->consume();\n $this->state->errorRecovery=false;\n }\n else {\n $mse = new MismatchedSetException(null,$this->input);\n throw $mse;\n }\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public static function static_logicalAnd($a = null, $b = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "public function expressionListWithNotInIsConcatenatedWithAnd() {}", "public function wAnd()\n {\n $this->setDefaultOperator(PredicateSet::OP_AND);\n \n if (func_num_args()) {\n call_user_func_array([$this, 'condition'], func_get_args());\n $this->endAnd();\n }\n \n return $this;\n }", "public function isOr();", "function is_logical($x){\n\t//note blank is interpreted as false\n\tif(in_array(strtolower(trim($x)),array(/*true: */'y','yes','1','true','t', /*false: */'n','no','0','false','f','')))return true;\n}", "Function largearray_and($a, $b) {\r\n $indexes = min(count($a), count($b));\r\n $c = array();\r\n for ($i=0; $i<$indexes; $i++) {\r\n array_push($c, $a[$i] & $b[$i]);\r\n }\r\n return $c;\r\n}", "public function testAndRule()\n {\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n 'true'\n ), 'and');\n $this->assertFalse($rule->validate());\n\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'true',\n 'true'\n ), 'and');\n $this->assertTrue($rule->validate());\n }", "public static function ox()\n {\n for ($i = 0; $i < func_num_args(); $i++) {\n $arg = func_get_arg($i);\n if (self::x(@$arg)) {\n return true;\n }\n }\n return false;\n }", "public static function or_() {\n $result = new qti_variable('single', 'boolean', array('value' => false));\r\n $params = func_get_args();\n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\r\n foreach($params as $param) {\r\n if ($param->value) {\r\n $result->value = true;\r\n return $result;\r\n }\r\n }\r\n return $result;\n }", "function pseudoTypeFalseAndBool(bool|false $var = false) {}", "function mAND(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$AND;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:606:3: ( '&&' ) \n // Tokenizer11.g:607:3: '&&' \n {\n $this->matchString(\"&&\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function addAnd($what,$was)\n{\n\tif (!empty($was)) return \"$was AND $what\"; else return $what;\n}", "public static function anyN() {\n $result = new qti_variable('single', 'boolean');\r\n $params = func_get_args();\r\n $min = array_shift($params);\n $max = array_shift($params);\n \n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\n $false = $true = $null = 0;\n foreach($params as $param) {\n if ($param->_isNull()) {\n $null++;\n } else if ($param->value == true) {\n $true++;\n } else if ($param->value == false) {\n $false++;\n } \n }\n \n if ($false > (count($params) - $min)) {\n $result->value = false;\n } else if ($true > $max) {\n $result->value = false;\n } else if (($min <= $true) && ($true <= $max)) {\n $result->value = true;\n }\n \n return $result;\n }", "public function termsAndConditionAccpeted()\n\t{\n\n\t}", "function isNotNull($x, $y='null', $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _notNULL, $y, $and, ...$args);\n return $expression;\n }", "function isNotNull($x, $y='null', $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _notNULL, $y, $and, ...$args);\n return $expression;\n }", "protected function evaluateBoolStatement()\n {\n /**\n * If expression contains only 1 math block - return as math expression result,\n * otherwise cast type of result to boolean\n */\n $result = $this->evaluateBoolExpression();\n while ($booleanOp = $this->readChar(true)) {\n switch ($booleanOp) {\n case '|':\n $nextChar = $this->readChar();\n if ($nextChar == '|') {\n if ($result->toBool()) {\n // in order to reduce amount of calculations,\n // skip the rest of expression and return result\n $this->rewindUntil([';', ')'], '(');\n $this->unreadChar();\n return $result;\n }\n $result->join('||', $this->evaluateBoolExpression());\n } else {\n throw new \\Exception('Unexpected token \"' . $booleanOp . $nextChar . '\".');\n }\n break;\n case '&':\n $nextChar = $this->readChar();\n if ($nextChar == '&') {\n if (!$result->toBool()) {\n // in order to reduce amount of calculations,\n // skip the rest of expression and return result\n $this->rewindUntil([';', ')'], '(');\n $this->unreadChar();\n return $result;\n }\n $result->join('&&', $this->evaluateBoolExpression());\n } else {\n throw new \\Exception('Unexpected token \"' . $booleanOp . $nextChar . '\".');\n }\n break;\n // end of argument\n case ',':\n // end of subexpression\n case ')':\n // end of statement\n case ';':\n $this->unreadChar();\n // return result from recursive call\n return $result;\n break;\n default:\n throw new \\Exception('Unexpected token \"' . $booleanOp . '\".');\n break;\n }\n }\n return $result;\n }", "public function isTrue();", "public function isAndPosition($position) {\n if ($this->isNull($position)) {\n return false;\n }\n if ($this->dictionary->get(RestoDictionary::AND_MODIFIER, $this->words[$position]['word']) === 'and') {\n return true;\n }\n return false;\n }", "function is_boolexpression($value) {\n preg_match('/^(([ \\-+><!01])|(&&)|(==)|(\\x7C\\x7C)|(!=)|(<=)|(>=)|(true)||(false))+$/i', $value, $result);\n\n return is_array($result) && !is_empty($result);\n }", "public static function mx()\n {\n for ($i = 0; $i < func_num_args(); $i++) {\n $arg = func_get_arg($i);\n if (self::nx(@$arg)) {\n return false;\n }\n }\n return true;\n }", "function neq($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, NEQ, $y, $and, ...$args);\n return $expression;\n }", "function neq($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, NEQ, $y, $and, ...$args);\n return $expression;\n }", "public static function logicalAnd(Matcher $matcher /*...*/)\n {\n return new Matcher\\LogicalAnd(func_get_args());\n }", "public function whereAND()\n {\n $this->where_clause .= \" AND \";\n }", "static function logicalXor()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalXor', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public static function BitwiseAnd($left_operand, $right_operand)\r {\r $val1 = BigNumber::Dec2Bin($left_operand);\r $val2 = BigNumber::Dec2Bin($right_operand);\r $len1 = strlen($val1);\r $len2 = strlen($val2);\r $maxlen = max($len1, $len2);\r \r for($i = $len1; $i < $maxlen; $i++) $val1 = \"0\".$val1;\r for($i = $len2; $i < $maxlen; $i++) $val2 = \"0\".$val2;\r \r $result = \"\";\r for($i = 0; $i < $maxlen; $i++)\r {\r $char = \"0\";\r if($val1[$i] == \"1\" && $val2[$i] == \"1\") $char = \"1\";\r $result = $result.$char;\r }\r \r return BigNumber::Bin2Dec($result);\r }", "public function simulateEnabledMatchAllConditionsSucceeds() {}", "public function simulateEnabledMatchAllConditionsSucceeds() {}", "static function logicalOr()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalOr', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "function yy_r147(){ $this->_retvalue = new Stmt\\Expr('not', $this->yystack[$this->yyidx + 0]->minor); }", "public static function andOp($left, $right)\n {\n self::checkParameter($left, $right);\n $f = self::checkMathFunc('and');\n $bignumber = $f || self::operIsBig($left, $right);\n if($f) {\n return $f($left, $right);\n } elseif($bignumber) {\n $len = self::bitLen($left, $right);\n return self::strBitOp($left, $right, $len, function ($l, $r) {\n return $l & $r;\n });\n }\n return $left & $right;\n }", "public function assertQueryTrue($prop, ...$props)\n {\n global $wp_query;\n $all = array(\n 'is_404',\n 'is_admin',\n 'is_archive',\n 'is_attachment',\n 'is_author',\n 'is_category',\n 'is_comment_feed',\n 'is_date',\n 'is_day',\n 'is_embed',\n 'is_feed',\n 'is_front_page',\n 'is_home',\n 'is_month',\n 'is_page',\n 'is_paged',\n 'is_post_type_archive',\n 'is_posts_page',\n 'is_preview',\n 'is_robots',\n 'is_search',\n 'is_single',\n 'is_singular',\n 'is_tag',\n 'is_tax',\n 'is_time',\n 'is_trackback',\n 'is_year',\n );\n\n $props = array_merge((array)$prop, ...$props);\n\n foreach ($props as $true_thing) {\n $this->assertContains($true_thing, $all, \"{$true_thing}() is not handled by assertQueryTrue().\");\n }\n\n $passed = true;\n $not_false = $not_true = array(); // properties that were not set to expected values\n\n foreach ($all as $query_thing) {\n $result = is_callable($query_thing) ? $query_thing() : $wp_query->$query_thing;\n\n if (in_array($query_thing, $props, true)) {\n if (!$result) {\n $not_true[] = $query_thing;\n $passed = false;\n }\n } elseif ($result) {\n $not_false[] = $query_thing;\n $passed = false;\n }\n }\n\n $message = '';\n if (count($not_true)) {\n $message .= implode(', ', $not_true) . ' is expected to be true. ';\n }\n if (count($not_false)) {\n $message .= implode(', ', $not_false) . ' is expected to be false.';\n }\n $this->assertTrue($passed, $message);\n }", "private function xs_true($xs_bool) {\n return ($xs_bool == '1' || strtoupper($xs_bool) == 'TRUE');\n }", "function all(callable ...$functions) : \\Closure\n{\n return function (...$args) use ($functions) {\n foreach ($functions as $function) {\n if (!$function(...$args)) {\n return false;\n }\n }\n\n return true;\n };\n}", "function isNull($x, $y='null', $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _isNULL, $y, $and, ...$args);\n return $expression;\n }", "function isNull($x, $y='null', $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _isNULL, $y, $and, ...$args);\n return $expression;\n }", "function read_logical($x){\n\t$x=strtolower(trim($x));\n\tif(!is_logical($x))return NULL;\n\t$r=(in_array($x,array(/*true: */'y','yes','1','true','t'))?true:false);\n\treturn $r;\n}", "function consecutive(callable ...$predicates)\n{\n return function (...$arguments) use ($predicates) {\n foreach ($arguments as $index => $value) {\n if(!$predicates[$index]($value)) {\n return false;\n }\n }\n\n return true;\n };\n}", "function wpsl_bool_check( $atts ) {\n\n foreach ( $atts as $key => $val ) {\n if ( in_array( $val, array( 'true', '1', 'yes', 'on' ) ) ) {\n $atts[$key] = true;\n } else if ( in_array( $val, array( 'false', '0', 'no', 'off' ) ) ) {\n $atts[$key] = false;\n }\n }\n\n return $atts;\n}", "public function apply(&$values): bool;", "private static function checkValues($input) {\n if (empty($input)) {\n return FALSE;\n }\n\n $result = TRUE;\n foreach ($input as $value) {\n $result = $result && $value != false;\n }\n\n return $result;\n }", "protected function evaluateBoolExpression()\n {\n $result = $this->evaluateMathBlock();\n while ($mathOp = $this->readChar(true)) {\n switch ($mathOp) {\n case '+':\n $result->join('+', $this->evaluateMathBlock());\n break;\n case '-': \n $result->join('-', $this->evaluateMathBlock());\n break;\n case '=':\n $nextChar = $this->readChar();\n if ($nextChar == '=') { \n $result->join('==', $this->evaluateMathBlock());\n } elseif ($nextChar == '>') {\n $this->unreadChar(2);\n return $result;\n break;\n } else {\n throw new \\Exception('Unexpected token \"' . $mathOp . $nextChar . '\".');\n }\n break;\n case '!':\n $nextChar = $this->readChar();\n if ($nextChar == '=') {\n $result->join('!=', $this->evaluateMathBlock());\n } else {\n throw new \\Exception('Unexpected token \"' . $mathOp . $nextChar . '\".');\n }\n break;\n case '>':\n $nextChar = $this->readChar();\n if ($nextChar == '=') { \n $result->join('>=', $this->evaluateMathBlock());\n } else {\n $this->unreadChar(); \n $result->join('>', $this->evaluateMathBlock());\n }\n break;\n case '<':\n $nextChar = $this->readChar();\n if ($nextChar == '=') { \n $result->join('<=', $this->evaluateMathBlock());\n } else {\n $this->unreadChar(); \n $result->join('<', $this->evaluateMathBlock());\n }\n break;\n case 'i': // find in set\n $nextChar = $this->readChar(true);\n if ($nextChar == 'n') { \n $result->join('in', $this->evaluateMathBlock());\n } else {\n throw new \\Exception('Unexpected token \"' . $mathOp . $nextChar . '\".');\n }\n break;\n case 'l': // check against regex\n $this->evaluateLikeExpression($result);\n break;\n // Lower lever operators\n case '&': // boolean \"and\" &&\n case '|': // boolean \"or\" ||\n // end of argument or statement\n case ',':\n // end of subexpression\n case ')':\n // end of statement\n case ';': \n // array value parsed\n case ']':\n $this->unreadChar();\n // return result from recursive call\n return $result;\n break;\n default:\n throw new \\Exception('Unexpected token \"' . $mathOp . '\".');\n break;\n }\n }\n return $result;\n }", "public function is(...$values): bool;", "public function hasAnyGroup(...$groups): bool;", "public function bitAnd(BitArray $x) {\n if($this->size() != $x->size()) {\n throw new Exception('Arguments must be of the same length');\n }\n \n foreach($this as $key => $value) {\n $this[$key] = $value & $x[$key];\n }\n \n return $this;\n }", "function all(callable $callback, iterable $items) : bool\n{\n return !any(complement($callback), $items);\n}", "public function andWhere($conditions);", "function yy_r128(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }", "protected function compileAnd()\n {\n if ($this->firstClause) {\n return '';\n }\n\n $operator = $this->and ? ' & ' : ' | ';\n\n return $operator;\n }", "public function &havingConditions();", "public function globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues() {}", "public function globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues() {}", "public static function bitwise_and($self, $a, $b)\n {\n return $a & $b;\n }", "public function havingAnd()\n {\n $this->having .= \" AND \";\n }", "public function conditionalOrExpression(){\n try {\n // Sparql11query.g:382:3: ( conditionalAndExpression ( OR conditionalAndExpression )* ) \n // Sparql11query.g:383:3: conditionalAndExpression ( OR conditionalAndExpression )* \n {\n $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1301);\n $this->conditionalAndExpression();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:383:28: ( OR conditionalAndExpression )* \n //loop48:\n do {\n $alt48=2;\n $LA48_0 = $this->input->LA(1);\n\n if ( ($LA48_0==$this->getToken('OR')) ) {\n $alt48=1;\n }\n\n\n switch ($alt48) {\n \tcase 1 :\n \t // Sparql11query.g:383:29: OR conditionalAndExpression \n \t {\n \t $this->match($this->input,$this->getToken('OR'),self::$FOLLOW_OR_in_conditionalOrExpression1304); \n \t $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1306);\n \t $this->conditionalAndExpression();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop48;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public static function aox($var)\n {\n if (!is_array($var)) {\n return false;\n }\n foreach ($var as $key => $value) {\n if (self::x(@$value)) {\n return true;\n }\n }\n return false;\n }", "function willYou($young, $beautiful, $loved) {\n if ($young && $beautiful && $loved) {\n return false;\n } elseif ($loved && (!$young || !$beautiful)) {\n return true;\n } elseif (!$loved && !$young && !$beautiful) {\n return false;\n } elseif (!$loved && $young && $beautiful) {\n return true;\n } else {\n return false;\n }\n}", "public static function booleans()\n {\n return self::elements(false, true);\n }", "function _isTruthy($a = null)\n{\n $argCount = func_num_args();\n\n if ($argCount < 1) {\n $initialArgs = func_get_args();\n return partial(\n function (...$args) {\n return _isTruthy(...$args);\n },\n $initialArgs\n );\n }\n\n if ($a === null) {\n return false;\n }\n if (empty($a)) {\n return false;\n }\n if (is_array($a) && count($a) === 0) {\n return false;\n }\n if ($a === false) {\n return false;\n }\n if (is_string($a) && $a === \"\") {\n return false;\n }\n if (is_object($a) && count(array_keys(get_object_vars($a))) === 0) {\n return false;\n }\n return true;\n}", "function conditions( $conds = array())\n\t{\n\t\t// if condition is empty, return true\n\t\tif ( empty( $conds )) return true;\n\t}", "function isTruthy( $input )\n{\n if ( empty( $input ) ) return FALSE;\n\n $isTrue = FALSE;\n\n if ( is_string( $input ) ) $input = strtolower( $input );\n\n $synonyms = array\n (\n 'ok', TRUE, 'true', 'yes', 'on', 1\n );\n\n if (in_array( $input, $synonyms ) ) $isTrue = TRUE;\n\n return $isTrue;\n}", "protected function parseBooleanOperatorToken(TokenStream $tokenStream, ExpressionNode $expression)\n {\n $token = $tokenStream->consumeToken();\n\n $expression[] = new BooleanOperatorNode($token->getValue() == 'AND');\n }", "function emailAndUserExist($username, $email)\n{\n return (userExist($username) & emailExist($email));\n}", "public function passes($attribute, $values)\n {\n// if ( $value == 'ADMIN' || $value == 'DOCTOR' || $value == 'NURSE' ) return true;\n// return false;\n try{\n foreach ($values as $value) {\n if ($value != 1 && $value != 2 && $value != 3) return false;\n }\n return true;\n } catch (\\Exception $e){\n return false;\n }\n }", "public function andWhere(){\r\n\t\t$tb = call_user_func_array(array($this->mask(), 'where'), func_get_args());\r\n\t\treturn $this;\r\n\t}", "public function valueLogical(){\n try {\n // Sparql11query.g:396:3: ( relationalExpression ) \n // Sparql11query.g:397:3: relationalExpression \n {\n $this->pushFollow(self::$FOLLOW_relationalExpression_in_valueLogical1351);\n $this->relationalExpression();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function containsOr()\n\t{\n\t\t$args = (new static(func_get_args()))->flattenIt();\n\n\t\t$found = $args->detect(function($value) {\n\t\t\treturn in_array($value, $this->attributes);\n\t\t});\n\n\t\treturn !is_null($found);\n\t}", "public function testImplicitAnd()\n {\n $constraint = $this->parser->parse('benchmark: \"foobar\", subject: \"barfoo\", name: \"daniel\"');\n $this->assertEquals(\n new Composite(\n '$and',\n new Composite(\n '$and',\n new Comparison('$eq', 'benchmark', 'foobar'),\n new Comparison('$eq', 'subject', 'barfoo')\n ),\n new Comparison('$eq', 'name', 'daniel')\n ),\n $constraint\n );\n }", "function yy_r147(){$this->_retvalue = '&&'; }", "public function hasTrueMutations(){\n return $this->_has(4);\n }", "public static function checkValues($input) {\n if (empty($input)) {\n return FALSE;\n }\n\n $result = TRUE;\n foreach ($input as $value) {\n $result = $result && $value != false;\n }\n\n return $result;\n }", "function evaluateANDSeries($series, $msgOffset)\n {\n // 1 4 5\n $ret = 0;\n \n $ids = explode(' ', trim($series));\n foreach ($ids as $childId) {\n $result = $this->evaluateRule($childId, $msgOffset + $ret);\n\n if (0 == $result) {\n // This AND series failed, no characters consumed\n return 0;\n } else {\n $ret += $result;\n }\n }\n\n return $ret;\n }", "private function expressionGen_AND($key, $value){\n \n $pattern = \"/\\|\\*\\|LIKE\\|\\*\\|/\";\n $pattern2 = \"/\\|\\*\\|NOT LIKE\\|\\*\\|/\";\n $pattern3 = \"/\\|\\*\\|NOT EQUAL\\|\\*\\|/\";\n \n for($i=0;$i<count($key);$i++){\n if ($i+1 == count($key)){\n if (preg_match($pattern, $value[$i])){\n $match = preg_split($pattern, $value[$i]);\n $str .= $key[$i].\" LIKE '\".$match[1].\"'\";\n }\n else if (preg_match($pattern2, $value[$i])){\n $match = preg_split($pattern2, $value[$i]);\n $str .= $key[$i].\" NOT LIKE '\".$match[1].\"'\";\n }\n else if (preg_match($pattern3, $value[$i])){\n $match = preg_split($pattern3, $value[$i]);\n $str .= $key[$i].\" != '\".$match[1].\"'\";\n } \n else{\n $str .= $key[$i].\"='\".$value[$i].\"'\"; \n }\n \n }\n else{\n if (preg_match($pattern, $value[$i])){\n $match = preg_split($pattern, $value[$i]);\n $str .= $key[$i].\" LIKE '\".$match[1].\"'\".\" AND \";\n }\n else if (preg_match($pattern2, $value[$i])){\n $match = preg_split($pattern2, $value[$i]);\n $str .= $key[$i].\" NOT LIKE '\".$match[1].\"'\".\" AND \"; \n }\n else if (preg_match($pattern3, $value[$i])){\n $match = preg_split($pattern3, $value[$i]);\n $str .= $key[$i].\" !='\".$match[1].\"'\".\" AND \"; \n }\n else{\n $str .= $key[$i].\"='\".$value[$i].\"'\".\" AND \"; \n }\n \n }\n }\n \n return $str;\n }", "public static function andX(Condition ...$conditions): Condition\n {\n $self = new Condition();\n $count = count($conditions);\n foreach ($conditions as $index => $condition) {\n $self->condition($condition);\n if ($index < $count - 1) {\n $self->and();\n }\n }\n\n return $self;\n }", "public static function buildAnd(array $criteria)\n {\n return new LogicalAnd($criteria);\n }", "protected static function logicalOR(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('OR', $values);\n\t}", "public function andWhere($field, $operator, $value);", "function yy_r75()\n {\n $this->_retvalue = '(1 & ' . $this->yystack[$this->yyidx + - 1]->minor . ')';\n }", "public function and()\n {\n $this->logicQueue = 'and';\n\n return $this;\n }", "function emptyInputRegister($fname,$lname,$contact,$uname,$pass,$pass2){\n $result = true;\n if(empty($fname) || empty($lname) || empty($contact) || empty($uname) || empty($pass) || empty($pass2)){\n $result = true;\n }else{\n $result = false;\n }\n return $result;\n}", "function ne($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, NE, $y, $and, ...$args);\n return $expression;\n }", "function ne($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, NE, $y, $and, ...$args);\n return $expression;\n }", "public function isTrue()\n {\n \n return !!$this->value;\n \n }", "public function hasFalseMutations(){\n return $this->_has(5);\n }", "public function and_where_open()\n {\n $this->_where[] = array('AND' => '(');\n return $this;\n }", "function yy_r131(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }", "public static function true(): self\n {\n return self::fromValue(Value::true());\n }", "private function whereBoolean($matches) {\n\n $field = underscore($matches['field']);\n $not = isset($matches['not']) ? (strcasecmp('not', $matches['not']) == 0) : false;\n\n return $this->where(array($field => $not ? 0 : 1));\n }", "static function isTrue()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::isTrue', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }" ]
[ "0.74021274", "0.70463425", "0.6942415", "0.69396913", "0.6837641", "0.6666485", "0.6411244", "0.63768554", "0.63559246", "0.6050755", "0.60026705", "0.59410304", "0.5855419", "0.5771337", "0.57544744", "0.5744675", "0.5730817", "0.5711116", "0.57043093", "0.5642526", "0.5558906", "0.5554235", "0.55524486", "0.55434835", "0.5534425", "0.5534425", "0.55130315", "0.5511655", "0.5483261", "0.5465479", "0.5445665", "0.53679585", "0.53679585", "0.5360468", "0.5343695", "0.5338052", "0.5318086", "0.53051627", "0.53050625", "0.5287466", "0.52683806", "0.5266311", "0.52613115", "0.52432287", "0.52272624", "0.5224245", "0.5224245", "0.52153474", "0.51907945", "0.51815885", "0.517999", "0.51766104", "0.5166198", "0.5159783", "0.51356685", "0.51347625", "0.5133826", "0.5116814", "0.51131153", "0.5108994", "0.51070505", "0.5077966", "0.5075853", "0.5062439", "0.5055895", "0.5055578", "0.50519294", "0.50488394", "0.5043325", "0.5040785", "0.50277317", "0.502763", "0.5017537", "0.5013968", "0.5010797", "0.5006678", "0.50062734", "0.49921086", "0.49854627", "0.49800885", "0.4977147", "0.49743137", "0.49675807", "0.4963649", "0.49544483", "0.49536756", "0.4953559", "0.49495113", "0.49249017", "0.49238488", "0.4916962", "0.4907574", "0.4907574", "0.4907271", "0.4903148", "0.49016345", "0.49013433", "0.4891224", "0.48746324", "0.48714155" ]
0.56146514
20
or, at least one, may be all, maybe one
private function any($a) { return !empty(array_filter($a)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function all();", "public function isOr();", "protected function isMulti()\n\t{\n \treturn isset($this->results[0]);\n\t}", "public function getIsMultiple();", "function _eor() {\r\n\tforeach(func_get_args() as $a) { if (!empty($a)) return $a; }\r\n\treturn null;\r\n}", "public abstract function findAny(): Optional;", "private function some($a) {\n return $this->any($a) && !$this->all($a);\n }", "public static function all();", "public static function all();", "public static function all();", "function tf_first_set()\r\n {\r\n $args = func_get_args();\r\n foreach ($args as $v) {\r\n if (isset($v)) {\r\n return $v;\r\n }\r\n }\r\n return null;\r\n }", "function yy_r146(){ $this->_retvalue = new Stmt\\Expr('or', $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor); }", "function has_one() {\n System::$assocs_temp['has_one'][] = func_get_args();\n}", "public function containsOr()\n\t{\n\t\t$args = (new static(func_get_args()))->flattenIt();\n\n\t\t$found = $args->detect(function($value) {\n\t\t\treturn in_array($value, $this->attributes);\n\t\t});\n\n\t\treturn !is_null($found);\n\t}", "public function testlOrSingleImpl()\n {\n $this->q->select( '*' )->from( 'query_test' )\n ->where( $this->e->lOr( $this->e->eq( 1, 1 ) ) );\n $stmt = $this->db->query( $this->q->getQuery() );\n $rows = 0;\n foreach ( $stmt as $row )\n {\n $rows++;\n }\n $this->assertEquals( 4, $rows );\n }", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function hasAllOf() {\n return isset($this->field['allOf']);\n }", "public static function any()\n {\n }", "static function logicalOr()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalOr', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "function check_empty(){\n foreach(func_get_args() as $arg){\n if(empty($arg))\n return 1;\n else\n return false;\n }\n}", "public function hasAutopos(){\n return $this->_has(2);\n }", "public function all($array = array());", "public function multiple(): bool\n {\n return count($this->queries) > 1;\n }", "public function orNull();", "public function testIfBagHasAtLeastOneElements()\n {\n $this->assertFalse($this->bag->hasRules());\n $this->populateBag();\n $this->assertTrue($this->bag->hasRules());\n }", "public function canUseAnyOf() {\n\t\t$loader = new DummySchemaLoader();\n\t\t$loader->lower = '{\n\t\t\t\"type\":\"integer\",\n\t\t\t\"minimum\":2,\n\t\t\t\"maximum\":3\n\t\t}';\n\t\t$loader->upper = '{\n\t\t\t\"type\":\"integer\",\n\t\t\t\"minimum\":3,\n\t\t\t\"maximum\":4\n\t\t}';\n\t\t$loader->either = '{\n\t\t\t\"anyOf\":[\n\t\t\t\t{\"$ref\":\"lower\"},\n\t\t\t\t{\"$ref\":\"upper\"}\n\t\t\t]\n\t\t}';\n\n\t\t$this->sut = new JSONSchemaBuilder($loader);\n\t\t$schema = $this->sut->build('either');\n\n\t\t$this->assertFalse($schema->validate('object'));\n\t\t$this->assertFalse($schema->validate(3.5));\n\t\t$this->assertFalse($schema->validate(TRUE));\n\t\t$this->assertFalse($schema->validate(new \\stdClass()));\n\t\t$this->assertFalse($schema->validate(array('a'=>123)));\n\t\t$this->assertFalse($schema->validate(NULL));\n\n\t\t// Below both.\n\t\t$this->assertFalse($schema->validate(1));\n\t\t// Matches lower schema.\n\t\t$this->assertTrue($schema->validate(2));\n\t\t// Matches both.\n\t\t$this->assertTrue($schema->validate(3));\n\t\t// Matches upper.\n\t\t$this->assertTrue($schema->validate(4));\n\t\t// Above both.\n\t\t$this->assertFalse($schema->validate(5));\n\t}", "function yy_r207(){ $this->_retvalue = new Stmt\\Expr(\"ALL\"); }", "private function one($a) {\n return count($a) == 1 || count(array_filter($a)) == 1;\n }", "function isAllSelected($all_country, $country)\n{\n if ($all_country || empty($country)) {\n return [\"ALL\"];\n }\n\n return $country;\n}", "function pick(){\n $args = func_get_args();\n $val = first(array_filter($args));\n return $val ? $val : end($args);\n}", "public function firstOr($default = null);", "protected static function logicalOR(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('OR', $values);\n\t}", "public function testOrCondition() {\n\t\t$products = $this->productsManager->find(Q::orfilter(Attr::id()->eq(5), Attr::id()->eq(3)));\n\t\t$this->assertCount(2, $products);\n\t}", "function _field_checkarray_or($fval) \n {\n return $this->_field_checkarray($fval, 1);\n }", "public function hasFirstItem() {}", "public function hasValues(){\n return $this->_has(1);\n }", "private function all($a) {\n return count(array_filter($a)) == count($a);\n }", "private function generateAtLeastOne()\n {\n $needToThrowException = false;\n $element = 'author';\n\n $data = $this->$element;\n\n if ( is_null( $data ) )\n {\n $entries = $this->item;\n if ( $entries === null )\n {\n throw new ezcFeedAtLeastOneItemDataRequiredException( array( '/feed/author' ) );\n }\n\n foreach ( $entries as $entry )\n {\n $authors = $entry->author;\n if ( $authors === null )\n {\n throw new ezcFeedAtLeastOneItemDataRequiredException( array( '/feed/entry/author' ) );\n }\n }\n\n throw new ezcFeedAtLeastOneItemDataRequiredException( array( '/feed/author' ) );\n }\n }", "public function isMulti()\n {\n return $this->filter('is_scalar')->length !== $this->length;\n }", "public function any()\n {\n return \"<h1>Disparou ação de ANY</h1>\";\n }", "abstract public function is_have();", "public function validateFields($par)\n {\n $i=0;\n foreach ($par as $key => $value){\n if(empty($value)){\n $i++;\n }\n }\n if($i==0){\n return true;\n }else{\n $this->setErro(\"Preencha todos os dados!\");\n return false;\n }\n }", "private function checkParams($params){\n\n if(count($params) == 3)\n return true;\n else\n return false;\n }", "public function canUseOneOf() {\n\t\t$loader = new DummySchemaLoader();\n\t\t$loader->lower = '{\n\t\t\t\"type\":\"integer\",\n\t\t\t\"minimum\":2,\n\t\t\t\"maximum\":3\n\t\t}';\n\t\t$loader->upper = '{\n\t\t\t\"type\":\"integer\",\n\t\t\t\"minimum\":3,\n\t\t\t\"maximum\":4\n\t\t}';\n\t\t$loader->one = '{\n\t\t\t\"oneOf\":[\n\t\t\t\t{\"$ref\":\"lower\"},\n\t\t\t\t{\"$ref\":\"upper\"}\n\t\t\t]\n\t\t}';\n\n\t\t$this->sut = new JSONSchemaBuilder($loader);\n\t\t$schema = $this->sut->build('one');\n\n\t\t$this->assertFalse($schema->validate('object'));\n\t\t$this->assertFalse($schema->validate(3.5));\n\t\t$this->assertFalse($schema->validate(TRUE));\n\t\t$this->assertFalse($schema->validate(new \\stdClass()));\n\t\t$this->assertFalse($schema->validate(array('a'=>123)));\n\t\t$this->assertFalse($schema->validate(NULL));\n\n\t\t// Below both.\n\t\t$this->assertFalse($schema->validate(1));\n\t\t// Matches lower schema.\n\t\t$this->assertTrue($schema->validate(2));\n\t\t// Matches both.\n\t\t$this->assertFalse($schema->validate(3));\n\t\t// Matches upper.\n\t\t$this->assertTrue($schema->validate(4));\n\t\t// Above both.\n\t\t$this->assertFalse($schema->validate(5));\n\t}", "function is_multiple($name)\n\t{\n\t\treturn $this->allow_multiple_values && in_array($this->customfields[$name]['type'],array('select','select-account')) &&\n\t\t\t$this->customfields[$name]['rows'] > 1;\n\t}", "public function allowed_group_any()\n\t{\n\t\t$which = func_get_args();\n\n\t\tif ( ! count($which))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Super Admins always have access\n\t\tif (ee()->session->userdata('group_id') == 1)\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t$result = FALSE;\n\n\t\tforeach ($which as $w)\n\t\t{\n\t\t\t$k = ee()->session->userdata($w);\n\n\t\t\tif ($k === TRUE OR $k == 'y')\n\t\t\t{\n\t\t\t\t$result = TRUE;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "public static function or_() {\n $result = new qti_variable('single', 'boolean', array('value' => false));\r\n $params = func_get_args();\n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\r\n foreach($params as $param) {\r\n if ($param->value) {\r\n $result->value = true;\r\n return $result;\r\n }\r\n }\r\n return $result;\n }", "public function hasOneOfIds( $id_list = array() ) {\r\n \tif ( empty( $id_list ) ) {\r\n \t\treturn false;\r\n\t }\r\n\r\n\t if ( $this->doc == null ) {\r\n \t\treturn false;\r\n\t }\r\n\r\n\t foreach ( $id_list as $element_id ) {\r\n\t\t if ( $this->doc->getElementById( $element_id ) != null ) {\r\n\t\t \treturn true;\r\n\t\t }\r\n\t }\r\n\t return false;\r\n }", "public function any(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }", "function all(callable $callback, iterable $items) : bool\n{\n return !any(complement($callback), $items);\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}", "private function sql_resAllItems()\n {\n $arr_return = null;\n\n // SWITCH : filter without any relation versus filter with relation\n switch ( true )\n {\n case( $this->ts_countHits() ):\n// case( in_array( $this->curr_tableField, $this->get_selectedFilters( ) ) ):\n $arr_return = $this->sql_resAllItemsFilterWiRelation();\n break;\n default:\n // #41754.03, 121010\n $arr_return = $this->sql_resAllItemsFilterWoRelation();\n break;\n }\n\n return $arr_return;\n }", "public static function anyN() {\n $result = new qti_variable('single', 'boolean');\r\n $params = func_get_args();\r\n $min = array_shift($params);\n $max = array_shift($params);\n \n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\n $false = $true = $null = 0;\n foreach($params as $param) {\n if ($param->_isNull()) {\n $null++;\n } else if ($param->value == true) {\n $true++;\n } else if ($param->value == false) {\n $false++;\n } \n }\n \n if ($false > (count($params) - $min)) {\n $result->value = false;\n } else if ($true > $max) {\n $result->value = false;\n } else if (($min <= $true) && ($true <= $max)) {\n $result->value = true;\n }\n \n return $result;\n }", "function get_all_exists($parameters){\n foreach($parameters as $parameter){\n if(!get_exists($parameter)) return false;\n }\n return true;\n}", "function isEmpty(){\n\t\tif($this->first==null) return true;\n\t\telse return false;\n\t}", "function hasMore();", "public function select(bool $all = true) : array;", "static function all($collection, $function)\n {\n foreach($collection as $item) {\n if(!$function($item)) {\n return FALSE;\n }\n }\n return TRUE;\n }", "public function hasBepro1Time(){\n return $this->_has(3);\n }", "public function isMultivalue();", "public function hasMust() {\n return $this->_has(1);\n }", "private function categoriesMoreThanOne()\n {\n\n // RETURN : method is called twice at least\n if ( $this->boolMoreThanOneCategory != null )\n {\n return $this->boolMoreThanOneCategory;\n }\n // RETURN : method is called twice at least\n\n $categories = $this->categoriesGet();\n\n if ( count( $categories[ 'labels' ] ) > 1 )\n {\n $this->boolMoreThanOneCategory = true;\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'There is more than one category.';\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n else\n {\n $this->boolMoreThanOneCategory = false;\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'There isn\\'t more than one category.';\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n return $this->boolMoreThanOneCategory;\n }", "public function isEmpty()\n {\n \t$empty = $this->getHousingCount() == 0;\n \t$empty = $empty && is_null($this->getHousingDescription());\n \t$empty = $empty && $this->getOtherCount() == 0;\n \t$empty = $empty && is_null($this->getOtherDescription());\n \t$empty = $empty && $this->getPhotoCount() == 0;\n \t$empty = $empty && is_null($this->getPhotoDescription());\n \t$empty = $empty && $this->getSheetCount() == 0;\n \t$empty = $empty && is_null($this->getSheetDescription());\n \t$empty = $empty && $this->getVolumeCount() == 0;\n \t$empty = $empty && is_null($this->getVolumeDescription());\n \t\t$empty = $empty && $this->getBoxCount() == 0;\n \t$empty = $empty && is_null($this->getBoxDescription());\n \t\treturn $empty;\n }", "function checkAllData($f,$new = 0){\n\t\tif(empty($f['partno'])) return \"The field Part No does not have to be null\";\n if(empty($f['description'])) return \"The field Type does not have to be null\";\n\t \treturn 0;\n\t}", "public function testWithAnyTags(): void\n {\n /** @var Collection $models */\n $models = TestModel::withAnyTags('Apple,Banana')->get();\n $keys = $models->modelKeys();\n\n self::assertArrayValuesAreEqual(\n [\n $this->testModel2->getKey(),\n $this->testModel3->getKey(),\n $this->testModel4->getKey(),\n $this->testModel6->getKey(),\n $this->testModel7->getKey(),\n $this->testModel8->getKey(),\n ],\n $keys\n );\n }", "function required_params()\n {\n $params = func_get_args();\n foreach ($params as $value) {\n if (is_array($value)) {\n if (empty($value)) {\n return false;\n }\n } else {\n if ($value === null || strlen(trim($value)) == 0) {\n return false;\n }\n }\n }\n\n return true;\n }", "function hayErrores()\n {\n return (0 != count($this->_errores));\n }", "function checkforempty($valuearray) {\n\n\t$check = Array();\n\tforeach($valuearray as $value) {\n\t\t$check[] = $_REQUEST[$value];\n\t}\n\n\tif(countempty($check) > 0) return false;\n\treturn true;\n\n}", "public function all(): \\Iterator;", "public function first(): OptionalInterface;" ]
[ "0.58283746", "0.57536", "0.55696625", "0.5467285", "0.544191", "0.5361271", "0.5272775", "0.5247004", "0.5247004", "0.5247004", "0.52318573", "0.5212341", "0.5198526", "0.5178096", "0.5157721", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5155324", "0.5127537", "0.51237506", "0.5105234", "0.5075889", "0.5072184", "0.5069729", "0.5061018", "0.5052669", "0.503469", "0.49880657", "0.49864143", "0.49570388", "0.49432707", "0.4939972", "0.49356678", "0.49183372", "0.49180046", "0.48953432", "0.48652577", "0.48311895", "0.48301744", "0.48260602", "0.48251915", "0.48205638", "0.4819922", "0.4817934", "0.48134822", "0.4784896", "0.47718412", "0.47717032", "0.47652873", "0.4757558", "0.4756528", "0.47500744", "0.47495767", "0.4731973", "0.47176075", "0.47111306", "0.47084966", "0.4705346", "0.47016433", "0.46779394", "0.46774113", "0.4661894", "0.46587363", "0.46575245", "0.46558964", "0.46549428", "0.46528947", "0.46516493", "0.46514657", "0.46487653", "0.46482775", "0.46442512" ]
0.4729498
82
all, may be one
private function all($a) { return count(array_filter($a)) == count($a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function all();", "public static function all();", "public static function all();", "public static function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all()\n {\n }", "public function all()\n {\n }", "public function all()\n {\n }", "public function all()\n {\n }", "public function all() : array;", "public function all() {\n \n }", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all()\n {\n // TODO: Implement all() method.\n }", "public function all()\n {\n // TODO: Implement all() method.\n }", "public function all()\n {\n\n }", "public function all($array = array());", "public function all(): \\Iterator;", "public function afficherAll()\n {\n }", "public function select(bool $all = true) : array;", "public static function any()\n {\n }", "function getAll()\r\n {\r\n\r\n }", "public function all() : Collection;", "public function all(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }", "function yy_r207(){ $this->_retvalue = new Stmt\\Expr(\"ALL\"); }", "protected static function getAll()\n {\n }", "private function doAll($all) {\n\n /**\n * Add the connecting tags to the comment object.\n */\n $all = $this->tagsToComment($all);\n\n /**\n * Add user infromation for the comments to the $all object.\n */\n $all = $this->userDataFromDB($all);\n\n /**\n * Filter markdown on object.\n */\n $all = $this->filterMarkdown($all);\n return $all;\n }", "public function all($params = array());", "abstract public function getAll();", "abstract public function getAll();", "abstract public function getAll();", "function refresh_all()\r\n\t{\r\n\t\tif ( ! empty($this->all))\r\n\t\t{\r\n\t\t\t$all = array();\r\n\r\n\t\t\tforeach ($this->all as $item)\r\n\t\t\t{\r\n\t\t\t\tif ( ! empty($item->id))\r\n\t\t\t\t{\r\n\t\t\t\t\t$all[] = $item;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$this->all = $all;\r\n\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\r\n\t\treturn FALSE;\r\n\t}", "public function all(): Collection;", "public function all(): Collection;", "public function all(): Collection;", "public function all(): Collection;", "static public function all_object($a1, $a2 = null, $a3 = null){ return self::all_obj($a1,$a2,$a3);}", "public function fALL()\n {\n $fetch_all_data = $this->query->fetchAll(PDO::FETCH_OBJ);\n if($fetch_all_data)\n {\n return $fetch_all_data;\n }else{\n return false;\n }\n \n }", "public function getIsAll()\n {\n return $this->isAll;\n }", "public function hasAllOf() {\n return isset($this->field['allOf']);\n }", "public function fromAll(): self;", "public function all($params)\n {\n }", "public function all()\n\t{\n\t\techo \"All\";\n\t}", "public function any(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }", "public function allAction() {}", "abstract public function infoAll();", "function getAll();", "function getAll();", "public function Do_Allselect_Example1(){\n\n\t}", "public abstract function getAll();", "protected function getAll() {}", "public function get_all ();", "public static function all(array $self) : bool\n {\n foreach ($self as $val) {\n if ($val === null) {\n return false;\n }\n }\n return true;\n }", "protected function fetchFlagsAllergen() {\n return null;\n }", "public final function get_all()\n {\n }", "public function clear_all()\n {\n }", "private function sql_resAllItems()\n {\n $arr_return = null;\n\n // SWITCH : filter without any relation versus filter with relation\n switch ( true )\n {\n case( $this->ts_countHits() ):\n// case( in_array( $this->curr_tableField, $this->get_selectedFilters( ) ) ):\n $arr_return = $this->sql_resAllItemsFilterWiRelation();\n break;\n default:\n // #41754.03, 121010\n $arr_return = $this->sql_resAllItemsFilterWoRelation();\n break;\n }\n\n return $arr_return;\n }" ]
[ "0.76775575", "0.7456108", "0.7456108", "0.7456108", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.72935855", "0.66595244", "0.66595244", "0.66595244", "0.66595244", "0.66336244", "0.66123325", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.6541958", "0.65088445", "0.65088445", "0.6450684", "0.6307278", "0.61975", "0.614793", "0.59520036", "0.5939252", "0.5852443", "0.58302194", "0.5816543", "0.58067495", "0.5790215", "0.5775542", "0.5773041", "0.5756647", "0.5756647", "0.5756647", "0.5729542", "0.57247895", "0.57247895", "0.57247895", "0.57247895", "0.57161653", "0.56892514", "0.5681508", "0.56528467", "0.56320304", "0.5602855", "0.5601026", "0.5592207", "0.5589528", "0.5576849", "0.5573655", "0.5573655", "0.55406886", "0.5523364", "0.5512375", "0.5511576", "0.55064946", "0.5473269", "0.544794", "0.5446445", "0.5436941" ]
0.0
-1
xor, only one of many single true is true, single false is true
private function one($a) { return count($a) == 1 || count(array_filter($a)) == 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function variant_xor($left, $right) {}", "public function testXorRule()\n {\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n 'true',\n 'false'\n ), 'xor');\n $this->assertTrue($rule->validate());\n\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n 'false'\n ), 'xor');\n $this->assertFalse($rule->validate());\n\n $rule = $this->getRuleBuilder()->fromArray(array(\n 'false',\n 'true',\n 'true'\n ), 'xor');\n $this->assertFalse($rule->validate());\n }", "function xxor($x,$y) {\n return $x ^ $y;\n}", "static function logicalXor()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalXor', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public function testXor()\n {\n $this->assertEquals(0x7998bfda, ChaCha20Block::xor(0x01020304, 0x789abcde));\n }", "function yy_r149(){$this->_retvalue = ' XOR '; }", "public static function static_logicalXor($a = null, $b = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function _binxor($l, $r)\n {\n $x = (($l < 0) ? (float)($l + 4294967296) : (float)$l)\n ^ (($r < 0) ? (float)($r + 4294967296) : (float)$r);\n\n return (float)(($x < 0) ? $x + 4294967296 : $x);\n }", "private function xorOperation(string $message, string $key)\n\t{\n\t\tif (($length = strlen($message)) !== strlen($key)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$result = '';\n\n\t\tfor ($i=0; $i<$length; $i++) { \n\t\t\t$m = substr($message, $i, 1);\n\t\t\t$k = substr($key, $i, 1);\n\t\t\t$xorResult = (boolval($m) xor boolval($k));\n\t\t\t$bit = $xorResult ? '1' : '0';\n\t\t\t$result .= $bit;\n\t\t}\n\n\t\treturn $result;\n\t}", "public static function logicalXor(Matcher $matcher /*...*/)\n {\n return new Matcher\\LogicalXor(func_get_args());\n }", "function fixed_xor($str1, $str2, $bit=4) {\n\n\t$str1 = strtolower($str1);\n\t$str2 = strtolower($str2);\n\n\t$xor_hex = '';\n\tfor($i=0; $i<strlen($str1); $i++) {\n\t\t$char_str1_hex_to_bin = sprintf('%0'.$bit.'d', base_convert($str1[$i], 16, 2));\n\t\t$char_str2_hex_to_bin = sprintf('%0'.$bit.'d', base_convert($str2[$i], 16, 2));\n\n\t\t$xor_bin_partial = '';\n\t\tfor($j=0; $j<$bit; $j++) {\n\t\t\t$xor_bin_partial .= ($char_str1_hex_to_bin[$j] xor $char_str2_hex_to_bin[$j]) ? '1' : '0';\n\n\t\t\tif ((($j+1)%4) == 0) {\n\t\t\t\t$xor_hex .= base_convert($xor_bin_partial, 2, 16);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $xor_hex;\n}", "private function truthValue($current_item, $mutual, $table, $negate, $xor, $xand) {\n if (!is_array($current_item)) {\n // see if translation table is given\n if ($table && isset($table[$current_item])) {\n $current_item = $table[$current_item];\n }\n // cast to string and lower case for easier comparison\n $v = strtolower(\"\".$current_item);\n if ($v == 'true' || $v == '1') {\n return !$negate;\n }\n return $negate;\n }\n // item is a list\n $a = array();\n // should we negate next item, was it a list or values\n $next_item_negate = FALSE;\n $next_item_xor = FALSE;\n $next_item_xand = FALSE;\n\n foreach ($current_item as $item) {\n // negation marker\n if ($item == -1) {\n $next_item_negate = TRUE;\n // xor marker\n } else if ($item == -2) {\n $next_item_xor = TRUE;\n // xand marker\n } else if ($item == -3) {\n $next_item_xand = TRUE;\n } else {\n $a[] = $this->truthValue($item, !$mutual, $table, $next_item_negate, $next_item_xor, $next_item_xand);\n // reset negation and xor\n $next_item_negate = FALSE;\n $next_item_xor = FALSE;\n $next_item_xand = FALSE;\n }\n }\n // is group AND / OR / XOR\n // take care of negation for the list result too\n if ($xor) {\n // if only one of the values is true, but not more\n if ($negate) {\n return !$this->one($a);\n }\n return $this->one($a);\n } else if ($xand) {\n // if any of the values is true, but not all\n if ($negate) {\n return !$this->some($a);\n }\n return $this->some($a);\n } else if ($mutual) {\n // if all values are true\n if ($negate) {\n return !$this->all($a);\n }\n return $this->all($a);\n } else {\n // if some of the values is true\n if ($negate) {\n return !$this->any($a);\n }\n return $this->any($a);\n }\n }", "function xorimg($imagick1, $imagick2){\n\t$iter1 = new ImagickPixelIterator($imagick1);\n\t$iter2 = new ImagickPixelIterator($imagick2);\n\t$count = 0;\n\n\tforeach ($iter1 as $pixelRow1){\n\t\tif (!$iter2->valid()){\n\t\t\tbreak; // make sure iter2 is still valid\n\t\t}\n\t\t$pixelRow2 = $iter2->current();\n\n\t\tforeach($pixelRow1 as $column=>$pixel1){\n\t\t\t$pixel2 = $pixelRow2[$column];\n\n\t\t\t$color1 = $pixel1->getColor();\n\t\t\t$color2 = $pixel2->getColor();\n\n\t\t\t$newcolor = array();\n\t\t\t$newR = $color1['r'] ^ $color2['r'];\n\t\t\t$newG = $color1['g'] ^ $color2['g'];\n\t\t\t$newB = $color1['b'] ^ $color2['b'];\n\t\t\t$pixel1->setColor(\"rgb($newR, $newG, $newB)\");\n\t\t\t$count++;\n\t\t}\n\t\t$iter2->next();\n\t\t$iter1->syncIterator();\n\t}\n\n\treturn $imagick1;\n}", "public function xorDataProvider()\n {\n // A, B, expected result\n return [\n [[], [], []],\n [['a'], ['b'], ['a', 'b']],\n [['a', 'b'], ['b'], ['a']],\n [['a', 'b'], ['b', 'a'], []],\n ];\n }", "public function modif_boolbin() \r\n\t{\r\n\t\t$this->boolbin = abs($this->boolbin-1);\t\r\n\t}", "static private function champGaloisSum($a, $b){\n return $a ^ $b;\n }", "function repeatingKeyXOR($data, $key)\n{\n $dataLen = strlen($data);\n $keyLen = strlen($key);\n\n for ($i = 0; $i < $dataLen; $i++) {\n $data[$i] = $data[$i] ^ $key[$i % $keyLen];\n }\n\n return $data;\n}", "function calc_checksum2($cmd1,$cmd2,$bytes){\n $xor_value = 0;\n $xor_value = $xor_value ^ $cmd1;\n $xor_value = $xor_value ^ $cmd2;\n foreach($bytes as $byte) {\n $xor_value = $xor_value ^ $byte;\n }\n /*\n If value is less than 0x20 then add 0x20\n Eg If xor of CMD and DATA results in 0x0A then CHECKSUM = 0x2A\n */\n if ($xor_value < CHECKSUM_OFFSET) {\n $xor_value = $xor_value + CHECKSUM_OFFSET;\n }\n return $xor_value;\n}", "function _xorMerge($string, $key)\n {\n $hash = $this->hash($key);\n $str = '';\n for ($i = 0; $i < strlen($string); $i++) {\n $str .= substr($string, $i, 1) ^ substr($hash, ($i % strlen($hash)), 1);\n }\n\n return $str;\n }", "protected function BinaryXOR( $strBin1, $strBin2 )\n\t{\n\t\t$strBinaryFinal = '';\n\t\tfor( $intPos = 1 ; $intPos <= \\strlen( $strBin1 ) ; $intPos = $intPos + 1 )\n\t\t{\n\t\t\tswitch( substr( $strBin1, intval( $intPos ) - 1, 1 ) )\n\t\t\t{\n\t\t\t\tcase substr( $strBin2, intval( $intPos ) - 1, 1 ) :\n\t\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"0\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"1\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $strBinaryFinal;\n\t}", "function break_repeating_key_XOR($args = NULL) {\n\n\n\tif ($args==NULL) {\n\t\treturn false;\n\t}\n\n\t// INIT PARAMETERS\n\t$kl_min = 2;\n\t$kl_max = 10;\n\tif (isset($args['kl_min'])) {\n\t\t$kl_min = $args['kl_min'];\n\t}\n\tif (isset($args['kl_max'])) {\n\t\t$kl_max = $args['kl_max'];\n\t}\n\n\t// Recupero il testo cifrato a seconda che venga passato direttamente\n\t// o sia passato l'url di un file\n\t$cypher = '';\n\tif ($args['file']!=NULL) {\n\t\t$lines = file($args['file'], FILE_IGNORE_NEW_LINES);\n\n\t\tset_time_limit(0);\n\t\tforeach($lines as $line) {\n\t\t\t$cypher .= $line;\n\t\t}\n\t\tset_time_limit(30);\n\t}\n\telse if ($args['string']) {\n\t\t$cypher = $args['string'];\n\t}\n\n\t//echo $cypher.\"<br><br>\";\n\n\t$cypher = $this->base64_to_hex($cypher);\n\t$array_norm_keylegth = array();\n\tfor ($keylength=2; $keylength <= 40; $keylength++) { \n\t\t$sum = 0;\n\t\t$keylength_byte = $keylength*2;\n\t\t//echo $keylength.\"<br>\";\n\t\tfor ($i=0; $i < 4; $i++) { \n\t\t\t$str1 = substr($cypher, ($keylength_byte*2)*$i, $keylength_byte);\n\t\t\t$str2 = substr($cypher, (($keylength_byte*2)*$i)+$keylength_byte, $keylength_byte);\n\t\t\t//echo \"#### \".$str1.\"<br>\";\n\t\t\t//echo \"#### \".$str2.\"<br>\";\n\t\t\t//echo \"#### \".$this->helper->hamming_distance($str1, $str2)/$keylength.\"<br><br>\";\n\t\t\t$sum = $sum + $this->helper->hamming_distance($str1, $str2)/$keylength_byte;\n\t\t}\n\n\t\t//echo \"######## \".$sum.\"<br>\";\n\t\t//echo \"######## \".($sum/4).\"<br>\".\"<br>\";\n\n\t\t//echo \"###################################<br><br>\";\n\t\t\n\t\t$array_norm_keylegth[] = array('norm_keylength' => $sum/4, 'keylength' => $keylength_byte);\n\t\t\n\t}\n\n\tusort($array_norm_keylegth, function($a, $b) {\n\t\t$el1 = $a['norm_keylength'];\n\t\t$el2 = $b['norm_keylength'];\n\n\t\tif ($el1 == $el2) return 0;\n\n\t\treturn ($el1 < $el2) ? -1 : 1;\n\t});\n\n\t//echo \"<pre>\";\n\t//print_r($array_norm_keylegth);\n\t//echo \"</pre>\";\n\n\t$keylength_candidata = $array_norm_keylegth[0]['keylength'];\n\n\t$array_blocchi_testo_keylength = $this->helper->unique_split_to_array($cypher, $keylength_candidata*2);\n\n\t//echo \"<pre>\";\n\t//print_r($array_blocchi_testo_keylength);\n\t//echo \"</pre>\";\n\n\t$array_string = array();\n\tfor ($i=0; $i<(($keylength_candidata*2)); $i += 2) { \n\t\t$partial_string = '';\n\t\tforeach ($array_blocchi_testo_keylength as $string) {\n\t\t\t$partial_string .= substr($string, $i, 2);\n\t\t}\n\t\t$array_string[] = $partial_string;\n\n\t\techo \"<pre>\";\n\t\tprint_r($this->single_byte_xor_cipher($partial_string, \n\t\t\t\t\t\t\t\t\t\t \t 16, \n\t\t\t\t\t\t\t\t\t\t \t array('min'=>0, 'max'=>255),\n\t\t\t\t\t\t\t\t\t\t \t array('total_letter'=>1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'first_letter'=>0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'second_letter'=>0)));\n\t\techo \"</pre>\";\n\n\t\techo \"<br>################################################</br>\";\n\t}/**/\n\n\techo \"<pre>\";\n\tprint_r($array_string);\n\techo \"</pre>\";\n\n\t// Controllo le ripetizioni di sottostrighe\n\t/*set_time_limit(0);\n\t$array_text = array();\n\n\t$dim_cypher = strlen($cypher);\n\t$occurences = array();\n\n\tfor ($i = floor($dim_cypher/2); $i>0; $i--) {\n\t\t$offset_sx = 0;\n\t\t$offset_dx = $dim_cypher-$i;\n\t\t$finito = false;\n\t\twhile ((($i <= $offset_sx)||($i<=$offset_dx))\n\t\t\t &&($offset_sx<=$dim_cypher)\n\t\t\t &&($offset_dx>=0)) {\n\n\t\t\t$text = substr($cypher, $offset_sx, $i);\n\n\t\t\t$occurences = $this->helper->strpos_all($cypher, $text);\n\t\t\tif (count($occurences)>1) {\n\t\t\t\t$finito = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$offset_sx++;\n\t\t\t$offset_dx--;\n\t\t}\n\n\t\tif ($finito) {\n\t\t\tbreak;\n\t\t}\n\t}\n\tset_time_limit(30);\n\n\t/*echo $text.\"<br>\";\n\tprint_r($occurences);*/\n\n\n\t// Possibili keylengths e valutazione con distanza di hemming\n\t/*set_time_limit(0);\n\t$distance = $occurences[1] - $occurences[0];\n\t//echo \"<br>distance: \".$distance.\"<br>\";\n\n\t$keylengths = 0;\n\t$array_somme = array();\n\t$smaller_avarage_dist = 0;\n\t$guessed_keylength = 0;\n\tfor ($i=1; $i <= $distance; $i++) { \n\t\t//echo \"<br>#### distance%i: \".($distance%$i).\"<br>\";\n\t\tif (($distance%$i)==0) {\n\t\t\t$keylength = $distance/$i; // sottomultipli $distance\n\n\t\t\tif ($keylength>2) {\n\t\t\t\t//echo \"<br>######## keylengths: \".($keylengths).\"<br>\";\n\t\t\t\t$array_blocchi_testo = $this->helper->unique_split_to_array($cypher, $keylength);\n\t\t\t\t//print_r($array_blocchi_testo);\n\t\t\t\t$d_crypt = 0;\n\t\t\t\t$somma_d_crypt = 0;\n\t\t\t\tfor ($j=0; $j < count($array_blocchi_testo)-1; $j += 2) { \n\t\t\t\t\t$str1 = $array_blocchi_testo[$j];\n\t\t\t\t\t$str2 = $array_blocchi_testo[$j+1];\n\n\t\t\t\t\tif (strlen($str1) == strlen($str2)) {\n\t\t\t\t\t\t$d_crypt = $this->helper->hamming_distance($str1, $str2)/$keylength;\n\t\t\t\t\t}\n\n\t\t\t\t\t$somma_d_crypt = $somma_d_crypt + $d_crypt;\n\n\t\t\t\t}\n\t\t\t\t//echo \"<br>######## j-2\".($j-2).\"<br>\";\n\t\t\t\t$array_somme[] = array(\"avar_norm\"=>$somma_d_crypt/($j-2), \"keylength\"=>$keylength);\n\t\t\t}\n\t\t}\n\n\t}\n\tset_time_limit(30);\n\n\tusort($array_somme, function($a, $b) {\n\t\t$el1 = $a['avar_norm'];\n\t\t$el2 = $b['avar_norm'];\n\n\t\tif ($el1 == $el2) return 0;\n\n\t\treturn ($el1 < $el2) ? -1 : 1;\n\t});\n\n\t$keylength_candidata = $array_somme[0]['keylength'];\n\n\t$array_blocchi_testo_keylength = $this->helper->unique_split_to_array($cypher, $keylength_candidata);\n\n\t/*echo \"<pre>\";\n\tprint_r($array_blocchi_testo_keylength);\n\techo \"</pre>\";*/\n\n\t/*$array_string = array();\n\tfor ($i=0; $i<$keylength_candidata; $i++) { \n\t\t$partial_string = '';\n\t\tforeach ($array_blocchi_testo_keylength as $string) {\n\t\t\t$partial_string .= $string[$i];\n\t\t}\n\t\t$array_string[$i] = $this->base64_to_hex($partial_string);\n\n\t\techo \"<pre>\";\n\t\tprint_r($this->single_byte_xor_cipher($array_string[$i], \n\t\t\t\t\t\t\t\t\t\t \t 16, \n\t\t\t\t\t\t\t\t\t\t \t array('min'=>0, 'max'=>255),\n\t\t\t\t\t\t\t\t\t\t \t array('total_letter'=>1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'first_letter'=>0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'second_letter'=>0))[0]);\n\t\techo \"</pre>\";\n\n\t\techo \"<br>################################################</br>\";\n\t}\n\n\t/*echo \"<pre>\";\n\tprint_r($array_string);\n\techo \"</pre>\";*/\n\n}", "function hash_equals ($a, $b) {\n\t\t$a_length = strlen($a);\n\t\tif ($a_length !== strlen($b)) { return false; }\n\n\t\t$result = 0;\n\t\tfor ($i = 0; $i < $a_length; $i++) {\n\t\t\t$result |= ord($a[$i]) ^ ord($b[$i]);\n\t\t}\n\n\t\treturn $result === 0;\n\t}", "function calc_checksum($cmd,$data){\n $xor_value = 0;\n $xor_value = $xor_value ^ $cmd;\n foreach($data as $byte) {\n $xor_value = $xor_value ^ $byte;\n }\n /*\n If value is less than 0x20 then add 0x20\n Eg If xor of CMD and DATA results in 0x0A then CHECKSUM = 0x2A\n */\n if ($xor_value < CHECKSUM_OFFSET) {\n $xor_value = $xor_value + CHECKSUM_OFFSET;\n }\n return $xor_value;\n}", "public function bitXor(BitArray $x) {\n if($this->size() != $x->size()) {\n throw new Exception('Arguments must be of the same length');\n }\n \n foreach($this as $key => $value) {\n $this[$key] = $value ^ $x[$key];\n }\n \n return $this;\n }", "function simpleXor($InString, $Key) {\n\n // Initialise key array\n\n $KeyList = array();\n\n // Initialise out variable\n\n $output = \"\";\n\n \n\n // Convert $Key into array of ASCII values\n\n for($i = 0; $i < strlen($Key); $i++){\n\n $KeyList[$i] = ord(substr($Key, $i, 1));\n\n }\n\n\n\n // Step through string a character at a time\n\n for($i = 0; $i < strlen($InString); $i++) {\n\n // Get ASCII code from string, get ASCII code from key (loop through with MOD), XOR the two, get the character from the result\n\n // % is MOD (modulus), ^ is XOR\n\n $output.= chr(ord(substr($InString, $i, 1)) ^ ($KeyList[$i % strlen($Key)]));\n\n }\n\n\n\n // Return the result\n\n return $output;\n\n}", "private function imageXorOperation($keyImg, $messageImg)\n\t{\n\t\t$width = imagesx($keyImg);\n\t\t$height = imagesy($keyImg);\n\n\t\t$size = $width * $height;\n\n\t\t$result = \"\";\n\t\t$nullByteTest = \"\";\n\n\t\tfor ($i=0; $i<$size ; $i++) { \n\t\t\t$xCoord = $i % $width;\n\t\t\t$yCoord = (int)floor($i / $width);\n\n\t\t\t$keyIndex = imagecolorat($keyImg, $xCoord, $yCoord);\n\t\t\t$keyRgba = imagecolorsforindex($keyImg, $keyIndex);\n\t\t\t$keyR = $keyRgba['red'];\n\n\t\t\t$messageIndex = imagecolorat($messageImg, $xCoord, $yCoord);\n\t\t\t$messageRgba = imagecolorsforindex($messageImg, $messageIndex);\n\t\t\t$messageR = $messageRgba['red'];\n\n\t\t\t// We have four cases, they are summarized bellow (b is background value):\n\t\t\t// key, message, difference, xorResult\n\t\t\t// 1) b+1, b+0, 1, 1\n\t\t\t// 2) b+1, b+1, 0, 0\n\t\t\t// 3) b+0, b+0, 0, 0\n\t\t\t// 4) b+0, b+1, -1, 1\n\t\t\t// The xor result is the absolute value of the difference.\n\t\t\t$difference = $keyR - $messageR;\n\t\t\t$xorResult = abs($difference);\n\n\t\t\t// If we have a null byte, we consider that it is the end of the string (with reason).\n\t\t\tif ($i%8 == 0) {\n\t\t\t\tif ($nullByteTest == '00000000') {\n\t\t\t\t\t// Null byte is taken out of the result befor return\n\t\t\t\t\t$result = substr($result, 0, -8);\n\t\t\t\t\treturn $result;\n\t\t\t\t}\n\n\t\t\t\t$nullByteTest = \"\";\n\t\t\t}\n\n\t\t\t$nullByteTest .= (string)$xorResult;\n\t\t\t$result .= (string)$xorResult;\n\t\t}\n\n\t\treturn $result;\n\t}", "function update_r1115() {\n\t// won't be able to login.\n\n\t$r = q(\"update account set account_flags = (account_flags ^ 1) where (account_flags & 1) \");\n\treturn UPDATE_SUCCESS;\n}", "function slow_equals($a, $b)\n{\n $diff = strlen($a) ^ strlen($b);\n for($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $diff === 0; \n}", "Function largearray_and($a, $b) {\r\n $indexes = min(count($a), count($b));\r\n $c = array();\r\n for ($i=0; $i<$indexes; $i++) {\r\n array_push($c, $a[$i] & $b[$i]);\r\n }\r\n return $c;\r\n}", "function o_ne($a, $b) {\n\t\t\treturn Obj::singleton()->notEqual($a, $b);\n\t\t}", "function yy_r128(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }", "function xor_encrypt($string, $key)\n\t{\n\t\tfor ($a=0; $a < strlen($string); $a++)\n\t\t{\n\t\t\tfor ($b=0; $b < strlen($key); $b++)\n\t\t\t{\n\t\t\t\t$string[$a] = $string[$a]^$key[$b];\n\t\t\t}\n\t\t}\n\t\n\t\treturn $string; \n\t}", "function neparan($b)\n{\n if($b%2==0)\n {\n return false;\n }\n else\n {\n return true;\n }\n}", "function pseudoTypeFalseAndBool(bool|false $var = false) {}", "public function isOr();", "function flippingBits($n)\n{\n return $n ^ 0xFFFFFFFF;\n}", "public function andNot(BitSet $set)\n {\n for ($i = min(count($this->words), count($set->words)) - 1; $i >= 0; $i--) {\n $this->words[$i] &= ~$set->words[$i];\n }\n }", "function mirrorBits($a) {\n return bindec(strrev(decbin($a)));\n}", "function simpleXor($InString, $Key) {\n // Initialise key array\n $KeyList = array();\n // Initialise out variable\n $output = \"\";\n \n // Convert $Key into array of ASCII values\n for($i = 0; $i < strlen($Key); $i++){\n $KeyList[$i] = ord(substr($Key, $i, 1));\n }\n\n // Step through string a character at a time\n for($i = 0; $i < strlen($InString); $i++) {\n // Get ASCII code from string, get ASCII code from key (loop through with MOD), XOR the two, get the character from the result\n // % is MOD (modulus), ^ is XOR\n $output.= chr(ord(substr($InString, $i, 1)) ^ ($KeyList[$i % strlen($Key)]));\n }\n\n // Return the result\n return $output;\n}", "public function bitAllx() {\n\t\t\t$db = new database();\n\t\t\t$results = $db->getAll(\"SELECT id, clientid, timestamp FROM claimants_data ORDER BY id DESC ;\");\n\t\t\t\n\t\t\tforeach ($results AS $result) {\n\t\t\t\n\t\t\t\t$check = claimants::checkCallTimes($result['id']);\n\t\t\t\t$thisBit = 0;\n\t\t\t\t\n\t\t\t\tif ($check['morning1']) $thisBit = $thisBit + self::morning1;\n\t\t\t\tif ($check['morning2']) $thisBit = $thisBit + self::morning2;\n\t\t\t\tif ($check['afternoon1']) $thisBit = $thisBit + self::afternoon1;\n\t\t\t\tif ($check['afternoon2']) $thisBit = $thisBit + self::afternoon2;\n\t\t\t\tif ($check['evening1']) $thisBit = $thisBit + self::evening1;\n\t\t\t\tif ($check['evening2']) $thisBit = $thisBit + self::evening2;\n\t\t\t\t\n\t\t\t\tprint $result['id'] . \" - \" . $thisBit . \"<br />\";\n\t\t\t\t\n\t\t\t\t$db->query(\"UPDATE claimants_data SET `bit` = '\".$thisBit.\"' WHERE `claimants_data`.`id` ='\".$result['id'].\"';\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "function emailAndUserExist($username, $email)\n{\n return (userExist($username) & emailExist($email));\n}", "function isOdd($num){\r\n\treturn (is_numeric($num)&($num&1));\r\n}", "function time_constant_equal($a, $b)\n\t{\n\t\t// Must be at least same length.\n\t\t$result = strlen($a) ^ strlen($b);\n\t\t\n\t\t// Go trough each char of $a and XOR it with the corresponding\n\t\t// char in $b, the result is zero only if they are equal.\n\t\t// We OR the comparison result with the final result since OR\n\t\t//\tfinal result is zero only if both operands are zero.\n\t\t// In other words if only one of the XORs returns 1 the overall\n\t\t//\tresult is 1.\n\t\tfor($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n\t\t{\n\t\t\t$result |= ord($a[$i]) ^ ord($b[$i]);\n\t\t}\n\t\t\n\t\t// Result is true (string equal) only if we got zeros at every step before.\n\t\treturn $result === 0;\n\t}", "public function hasFalseMutations(){\n return $this->_has(5);\n }", "public function hasTrueMutations(){\n return $this->_has(4);\n }", "public static function ni(IInt32\\Type $x, Core\\Type $y) : IBool\\Type { // !==\n\t\t\treturn IBool\\Module::not(IInt32\\Module::id($x, $y));\n\t\t}", "public function xorWhere($field, $op = null, $value = null) {\n return $this->_modifyPredicate($this->_where, Predicate::MAYBE, $field, $op, $value);\n }", "public static function hash_equals($a, $b) {\n\t\t$a_length = wfWAFUtils::strlen($a);\n\t\tif ($a_length !== wfWAFUtils::strlen($b)) {\n\t\t\treturn false;\n\t\t}\n\t\t$result = 0;\n\n\t\t// Do not attempt to \"optimize\" this.\n\t\tfor ($i = 0; $i < $a_length; $i++) {\n\t\t\t$result |= ord($a[$i]) ^ ord($b[$i]);\n\t\t}\n\n\t\treturn $result === 0;\n\t}", "public static function ne(IInt32\\Type $x, Core\\Type $y) : IBool\\Type { // !=\n\t\t\treturn IBool\\Module::not(IInt32\\Module::eq($x, $y));\n\t\t}", "public function isTrue()\n {\n \n return !!$this->value;\n \n }", "function xorffswapnibbleencrypt($inputstring)\n\t{\n\t\t$outputstring = \"\";\n\t\t$arrayOfInputCharacters = str_split($inputstring);\n\t\tfor($ii=0;$ii<count($arrayOfInputCharacters);$ii++)\n\t\t\t$outputstring .= dechex((ord($arrayOfInputCharacters[$ii]) ^ 0x0f) & 0x0f).dechex((ord($arrayOfInputCharacters[$ii]) ^ 0xf0) >> 4);\n\t\treturn $outputstring;\n\t}", "function build_bitwise_swap($profilefieldid, $loc1, $loc2)\n{\n\n\tglobal $vbulletin;\n\n\t$loc1value = pow(2, $loc1 - 1);\n\t$loc2value = pow(2, $loc2 - 1);\n\n\t// Zero loc1 in temp field\n\t$vbulletin->db->query_write(\"\n\t\tUPDATE \" . TABLE_PREFIX . \"userfield\n\t\tSET temp = temp - $loc1value\n\t\tWHERE temp & $loc1value\n\t\");\n\t// Copy loc2 to loc1\n\t$vbulletin->db->query_write(\"\n\t\tUPDATE \" . TABLE_PREFIX . \"userfield\n\t\tSET temp = temp + $loc1value\n\t\tWHERE temp & $loc2value\n\t\");\n\t// Zero loc2 in temp field\n\t$vbulletin->db->query_write(\"\n\t\tUPDATE \" . TABLE_PREFIX . \"userfield\n\t\tSET temp = temp - $loc2value\n\t\tWHERE temp & $loc2value\n\t\");\n\t// Copy loc1 from perm field to loc2 temp field\n\t$vbulletin->db->query_write(\"\n\t\tUPDATE \" . TABLE_PREFIX . \"userfield\n\t\tSET temp = temp + $loc2value\n\t\tWHERE field$profilefieldid & $loc1value\n\t\");\n\n}", "public function booleanLiteral(){\n try {\n // Sparql11query.g:578:3: ( TRUE | FALSE ) \n // Sparql11query.g: \n {\n if ( ($this->input->LA(1)>=$this->getToken('TRUE') && $this->input->LA(1)<=$this->getToken('FALSE')) ) {\n $this->input->consume();\n $this->state->errorRecovery=false;\n }\n else {\n $mse = new MismatchedSetException(null,$this->input);\n throw $mse;\n }\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function testNonsuppliedBitflagsAreLeftAlone()\n {\n $bit = new Formulaic\\Bitflag('superhero', [\n 'spidey' => 'Spiderman',\n 'hulk' => 'The Hulk',\n 'daredevil' => 'Daredevil',\n ]);\n $bit->setDefaultValue(['superman']);\n $bit->setValue(['hulk']);\n yield assert($bit->getValue()->hulk);\n yield assert(!isset($bit->getValue()->superman));\n }", "public function getTennisSet($arrMatchIds)\n {\n return FALSE;\n }", "public function operatorNco()\n\t{\n\t\treturn $this->getValue() != $this->recordModel->get('assigned_user_id');\n\t}", "static function checkNetworkRelativity($firstAddress, $firstNetmask, $secondAddress,\n $secondNetmask, $version = 0) {\n\n if ($firstAddress instanceof IPAddress) {\n if ($version == 0) {\n $version = $firstAddress->getVersion();\n }\n if ($version != $firstAddress->getVersion()) {\n return \"different version\";\n }\n $firstAddress = $firstAddress->getBinary();\n }\n\n if ($firstNetmask instanceof IPAddress) {\n if ($version != $firstNetmask->getVersion()) {\n return \"different version\";\n }\n $firstNetmask = $firstNetmask->getBinary();\n }\n\n if ($secondAddress instanceof IPAddress) {\n if ($version != $secondAddress->getVersion()) {\n return \"different version\";\n }\n $secondAddress = $secondAddress->getBinary();\n }\n\n if ($secondNetmask instanceof IPAddress) {\n if ($version != $secondNetmask->getVersion()) {\n return \"different version\";\n }\n $secondNetmask = $secondNetmask->getBinary();\n }\n\n $startIndex = (($version == 4) ? 3 : 0);\n $first = true;\n $second = true;\n for ($i = $startIndex; $i < 4; ++$i) {\n $and = ($firstNetmask[$i] & $secondNetmask[$i]);\n // Be carefull : php integers are 32 bits SIGNED.\n // Thus, checking equality must be done by XOR ...\n $first &= (($and ^ $firstNetmask[$i]) == 0);\n $second &= (($and ^ $secondNetmask[$i]) == 0);\n }\n\n if (!$first && !$second) {\n return \"?\";\n }\n\n if ($first && $second) {\n $result = \"equals\";\n $mask = &$firstNetmask;\n } else if ($first) {\n $result = \"first contains second\";\n $mask = &$firstNetmask;\n } else { // $second == true\n $result = \"second contains first\";\n $mask = &$secondNetmask;\n }\n\n for ($i = $startIndex; $i < 4; ++$i) {\n if ((($firstAddress[$i] & $mask[$i]) ^ ($secondAddress[$i] & $mask[$i])) != 0) {\n return \"different\";\n }\n }\n return $result;\n }", "public static function calculate(Expression $expr): Expression\n {\n $triangle = self::buildTriangle($expr->toVectorValuedFunction());\n\n $table = TruthTable::tabulate($expr);\n $rows = $table->getRows();\n\n $prev = null;\n\n foreach ($triangle as $i => $triangleRow) {\n if ($triangleRow[0]) {\n if ($prev === null) {\n $prev = self::buildConjunctives(array_values($rows[$i]), $table->getVariables());\n continue;\n }\n\n $prev = new BinaryExpression(\n self::buildConjunctives(array_values($rows[$i]), $table->getVariables()),\n BinaryOperators::XOR,\n $prev\n );\n }\n }\n\n return $prev;\n }", "public static function BitwiseAnd($left_operand, $right_operand)\r {\r $val1 = BigNumber::Dec2Bin($left_operand);\r $val2 = BigNumber::Dec2Bin($right_operand);\r $len1 = strlen($val1);\r $len2 = strlen($val2);\r $maxlen = max($len1, $len2);\r \r for($i = $len1; $i < $maxlen; $i++) $val1 = \"0\".$val1;\r for($i = $len2; $i < $maxlen; $i++) $val2 = \"0\".$val2;\r \r $result = \"\";\r for($i = 0; $i < $maxlen; $i++)\r {\r $char = \"0\";\r if($val1[$i] == \"1\" && $val2[$i] == \"1\") $char = \"1\";\r $result = $result.$char;\r }\r \r return BigNumber::Bin2Dec($result);\r }", "function comp($a,$b) {\n if ((count($a == count($b))) && ($a !== \"\")) { \n foreach ($a as $check) {\n // if !exists $a ~ $b\n if (!in_array($check*$check, $b)) {\n return false;\n }\n }\n return true;\n }\n return false;\n}", "public static function true(): self\n {\n return self::fromValue(Value::true());\n }", "function add($x, $y) {\n while($x) {\n int t = ($x & y) <<1;\n y ^= $x;\n $x = t;\n }\n return y;\n}", "public static function same($a,$b)\n\t{\n\t\tif(!is_string($a) || !is_string($b))\n\t\t\treturn false;\n\n\t\t$mb=function_exists('mb_strlen');\n\t\t$length=$mb ? mb_strlen($a,'8bit') : strlen($a);\n\t\tif($length!==($mb ? mb_strlen($b,'8bit') : strlen($b)))\n\t\t\treturn false;\n\n\t\t$check=0;\n\t\tfor($i=0;$i<$length;$i+=1)\n\t\t\t$check|=(ord($a[$i])^ord($b[$i]));\n\n\t\treturn $check===0;\n\t}", "public function testAddCommutative()\n {\n $this\n ->given(\n $a = $this->fromNative($this->randomNativeNumber())->toInteger(),\n $b = $this->fromNative($this->randomNativeNumber())->toReal(),\n $c = $this->fromNative($this->randomNativeNumber())->toDecimal()\n )\n ->then\n ->boolean(\n $a->add($b)->equals($b->add($a))\n )->isTrue()\n ->boolean(\n $a->add($c)->equals($c->add($a))\n )->isTrue()\n ->boolean(\n $b->add($c)->equals($c->add($b))\n )->isTrue()\n ;\n }", "static protected function BinaryNOT( $strBinary )\n\t{\n\t\t$strBinaryFinal = '';\n\t\tfor( $intPos = 1 ; $intPos <= \\strlen( $strBinary ) ; $intPos = $intPos + 1 )\n\t\t{\n\t\t\tif ( substr( $strBinary, intval( $intPos ) - 1, 1 ) == \"1\" )\n\t\t\t{\n\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"0\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"1\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $strBinaryFinal;\n\t}", "public function testIsSameParity()\n\t{\n\t\t$this->assertTrue(ParityGame\\isSameParity([2, 4, 6]));\n\t\t$this->assertTrue(ParityGame\\isSameParity([-1, 5, -23]));\n\n\t\t$this->assertFalse(ParityGame\\isSameParity([1, 2, 7, 11]));\n\t\t$this->assertFalse(ParityGame\\isSameParity([-21, 10, -4]));\n\t}", "function yy_r147(){ $this->_retvalue = new Stmt\\Expr('not', $this->yystack[$this->yyidx + 0]->minor); }", "public static function or_() {\n $result = new qti_variable('single', 'boolean', array('value' => false));\r\n $params = func_get_args();\n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\r\n foreach($params as $param) {\r\n if ($param->value) {\r\n $result->value = true;\r\n return $result;\r\n }\r\n }\r\n return $result;\n }", "function inverse(){\n return (long2ip(~(ip2long(\"255.255.255.255\")\n << (32-$this->netbits))));\n }", "public function isTrue();", "function intersect($a, $b, $c, $d) {\n \n // Eliminates improper cases\n if (isColinear($a, $b, $c) || isColinear($a, $b, $d) || isColinear($c, $d, $a) || isColinear($c, $d, $b)) {\n return false;\n }\n \n return xxor(isLeft($a, $b, $c), isLeft($a, $b, $d)) && xxor(isLeft($c, $d, $a), isLeft($c, $d, $b));\n \n}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "public function getTrueIterator();", "public function hasDifference() {return !!$this->_calculateDifference();}", "function variant_and($left, $right) {}", "function CorrectPass($mdp_v , $pass_v, $pseudo, $login){\n\t$result=false;\n\tif ($mdp_v == crypt($pass_v, \"abcd\")){\n if ($pseudo == $login) {\n\t\t$result=true;\n\t}\n}\nreturn $result;\n}", "public function symmetric() : bool\n {\n if (!$this->isSquare()) {\n return false;\n }\n\n for ($i = 0; $i < $this->m - 1; ++$i) {\n $rowA = $this->a[$i];\n\n for ($j = $i + 1; $j < $this->n; ++$j) {\n if ($rowA[$j] != $this->a[$j][$i]) {\n return false;\n }\n }\n }\n\n return true;\n }", "public function testCadesSignAndCoSignFromResult()\r\n {\r\n $this->_testCadesSignAndCoSignFromResult(false);\r\n }", "private function _xorDecode($string, $key)\n {\n $string = $this->_xorMerge($string, $key);\n\n $dec = '';\n for ($i = 0; $i < strlen($string); $i++) {\n $dec .= (substr($string, $i++, 1) ^ substr($string, $i, 1));\n }\n\n return $dec;\n }", "public function invert();", "public function passwordEqual() {\n if($this->getPassword() == $this->getPasswordRepeat()) return TRUE;\n else return FALSE;\n }", "function pwdMatch($password, $pwdRepeat) {\n $result=true;\n if($password !== $pwdRepeat){\n $result =false;\n } else {\n $result = true;\n }\n return $result;\n}", "public function test_bool_variable_and_even_or_odd_method()\n {\n $parameter_one = 'first';\n $parameter_two = 'second';\n \n for ($i=0; $i<10; $i++)\n {\n $string = math::even_or_odd($parameter_one, $parameter_two);\n \n $this->assertInternalType('string', $string);\n $this->assertNotEmpty($string);\n \n if ($i % 2 == 0)\n {\n $this->assertEquals($string, $parameter_one);\n $this->assertNotEquals($string, $parameter_two);\n }\n else\n {\n $this->assertNotEquals($string, $parameter_one);\n $this->assertEquals($string, $parameter_two);\n }\n }\n }", "static protected function BinaryOR( $strBin1, $strBin2 )\n\t{\n\t\t$strBinaryFinal = '';\n\t\tfor( $intPos = 1 ; $intPos <= \\strlen( $strBin1 ) ; $intPos = $intPos + 1 )\n\t\t{\n\t\t\tif ( substr( $strBin1, intval( $intPos ) - 1, 1 ) == \"1\" || substr( $strBin2, intval( $intPos ) - 1, 1 ) == \"1\" )\n\t\t\t{\n\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"1\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$strBinaryFinal = $strBinaryFinal . \"0\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $strBinaryFinal;\n\t}", "function bcpowmod($left_operand, $right_operand, $modulus, $scale = false)\n{\n}", "public function equals(ByteString $bs)\n {\n $expected = (string) $bs->getBytes();\n $actual = (string) $this->bytes;\n $lenExpected = strlen($expected);\n $lenActual = strlen($actual);\n $len = min($lenExpected, $lenActual);\n\n $result = 0;\n for ($i = 0; $i < $len; $i++) {\n $result |= ord($expected[$i]) ^ ord($actual[$i]);\n }\n $result |= $lenExpected ^ $lenActual;\n\n return ($result === 0);\n }", "public function get_boolbin($valeur)\r\n\t{\r\n\t\treturn ($this->boolbin == $valeur);\r\n\t}", "function CheckTurn($n)\r\n {\r\n $turn_1=CheckSquare(5 * $n * $n + 4);\r\n $turn_2=CheckSquare(5 * $n * $n - 4);\r\n //check if any of the value was already \r\n if($turn_1||$turn_2)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "private function getFinalKey($t_keyA, $t_keyB) {\n // Build our final key using XOR\n return $t_keyA ^ $t_keyB;\n }", "public function testConvertToBoolean() {\r\n $data = array(\r\n true => true,\r\n false => false,\r\n 'true' => true,\r\n 'false' => false,\r\n 'test' => true,\r\n 0 => false,\r\n '0' => false,\r\n 1 => true\r\n );\r\n\r\n foreach ($data as $value => $expected) {\r\n $this->assertSame($expected, $this->_utils->convertToBoolean($value));\r\n }\r\n }", "function yy_r130(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }", "function variant_or($left, $right) {}", "public function testSetAndRetrieveBoolean(): void\n {\n $key = \"A test key\";\n $this->testNotStrict->set($key, true);\n $actual = $this->testNotStrict->get($key);\n $this->assertTrue($actual);\n $this->testNotStrict->set($key, false);\n $actual = $this->testNotStrict->get($key);\n $this->assertFalse($actual);\n }", "public static function bitwise_and($self, $a, $b)\n {\n return $a & $b;\n }", "public static function booleans()\n {\n return self::elements(false, true);\n }", "public function isFalse();", "function _encipher(&$Xl, &$Xr)\n {\n if ($Xl < 0) {\n $Xl += 4294967296;\n }\n if ($Xr < 0) {\n $Xr += 4294967296;\n }\n\n for ($i = 0; $i < 16; $i++) {\n $temp = $Xl ^ $this->_P[$i];\n if ($temp < 0) {\n $temp += 4294967296;\n }\n\n $Xl = fmod((fmod($this->_S[0][($temp >> 24) & 255]\n + $this->_S[1][($temp >> 16) & 255], 4294967296) \n ^ $this->_S[2][($temp >> 8) & 255]) \n + $this->_S[3][$temp & 255], 4294967296) ^ $Xr;\n $Xr = $temp;\n }\n $Xr = $this->_binxor($Xl, $this->_P[16]);\n $Xl = $this->_binxor($temp, $this->_P[17]);\n }", "private static function slowEquals($a, $b)\n {\n $diff = strlen($a) ^ strlen($b);\n for ($i = 0; $i < strlen($a) && $i < strlen($b); $i++) {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n\n return $diff === 0;\n }", "public function isAnd();", "private static function getMaskOnes(int $n): int {\n // so (1 << 63) - 1 gets converted to float and loses precision (leading to incorrect result)\n // 2. (1 << 64) - 1 works fine, because (1 << 64) === 0 (it overflows) and -1 is exactly what we want\n // (`php -r 'var_dump(decbin(-1));'` => string(64) \"111...11\")\n $bit = 1 << $n;\n return $bit === PHP_INT_MIN ? ~$bit : $bit - 1;\n }", "public static function and_() {\n $result = new qti_variable('single', 'boolean', array('value' => true));\n $params = func_get_args();\n // Allow a single array as well as a parameter list\r\n if (count($params) == 1 && is_array($params[0])) {\r\n $params = $params[0];\r\n }\r\n foreach($params as $param) {\n if (!$param->value) {\n $result->value = false;\n return $result;\n }\n }\n return $result;\n }" ]
[ "0.74873817", "0.71788675", "0.7095928", "0.6982807", "0.69719154", "0.6579137", "0.65178514", "0.61088914", "0.5910252", "0.5815082", "0.578028", "0.5679187", "0.5663545", "0.56599814", "0.56169987", "0.5572195", "0.55670065", "0.5481009", "0.5461369", "0.541034", "0.52987975", "0.52903986", "0.5228289", "0.5197942", "0.5160382", "0.5088276", "0.5081617", "0.50019217", "0.4989962", "0.49845535", "0.4954385", "0.49297738", "0.4918227", "0.48917043", "0.4856357", "0.4853045", "0.4832296", "0.48315936", "0.48199564", "0.4798403", "0.4797527", "0.47493035", "0.47337916", "0.4711172", "0.46994764", "0.46953312", "0.4693033", "0.46499923", "0.46413362", "0.45943758", "0.45510128", "0.4546605", "0.45456815", "0.4531445", "0.45312476", "0.4521719", "0.44832253", "0.44742453", "0.4451283", "0.4449194", "0.44442236", "0.44382146", "0.44305456", "0.44270048", "0.4424378", "0.44235045", "0.44216388", "0.44173986", "0.44135314", "0.44100752", "0.44077027", "0.43909824", "0.43897426", "0.43881473", "0.43873048", "0.4384618", "0.4373928", "0.4372886", "0.4372573", "0.4364879", "0.43558446", "0.43553236", "0.4326499", "0.43153846", "0.43128395", "0.42949587", "0.4284091", "0.4280969", "0.42726594", "0.42711878", "0.42690992", "0.42653084", "0.42647636", "0.42581964", "0.4248179", "0.42344898", "0.42337343", "0.4225526", "0.42235637", "0.4220916", "0.42120874" ]
0.0
-1
if item is not a list, check the truth value
private function truthValue($current_item, $mutual, $table, $negate, $xor, $xand) { if (!is_array($current_item)) { // see if translation table is given if ($table && isset($table[$current_item])) { $current_item = $table[$current_item]; } // cast to string and lower case for easier comparison $v = strtolower("".$current_item); if ($v == 'true' || $v == '1') { return !$negate; } return $negate; } // item is a list $a = array(); // should we negate next item, was it a list or values $next_item_negate = FALSE; $next_item_xor = FALSE; $next_item_xand = FALSE; foreach ($current_item as $item) { // negation marker if ($item == -1) { $next_item_negate = TRUE; // xor marker } else if ($item == -2) { $next_item_xor = TRUE; // xand marker } else if ($item == -3) { $next_item_xand = TRUE; } else { $a[] = $this->truthValue($item, !$mutual, $table, $next_item_negate, $next_item_xor, $next_item_xand); // reset negation and xor $next_item_negate = FALSE; $next_item_xor = FALSE; $next_item_xand = FALSE; } } // is group AND / OR / XOR // take care of negation for the list result too if ($xor) { // if only one of the values is true, but not more if ($negate) { return !$this->one($a); } return $this->one($a); } else if ($xand) { // if any of the values is true, but not all if ($negate) { return !$this->some($a); } return $this->some($a); } else if ($mutual) { // if all values are true if ($negate) { return !$this->all($a); } return $this->all($a); } else { // if some of the values is true if ($negate) { return !$this->any($a); } return $this->any($a); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkItem($item)\n {\n if ($item && !(is_array($item) || ($item instanceof \\ArrayAccess && $item instanceof \\Traversable))) {\n throw new UnexpectedTypeException($item, 'false or array');\n }\n }", "protected function is_array_item($item) {\n if (is_object($item)) {\n if (property_exists($item, 'type') && $item->type == 'function') {\n if (property_exists($item, 'name') && $item->name == 'ARRAY_ITEM') {\n if (property_exists($item, 'arguments') && is_array($item->arguments)) {\n return (count($item->arguments) <= 2);\n }\n }\n }\n }\n return false;\n }", "private function process_array($value) {\n return is_array($value);\n }", "function is_list(mixed $var): bool\n{\n return is_array($var) && array_is_list($var);\n}", "private function _isList($value)\n\t{\n\t\t// objects that are not explicitly traversable could never have integer keys, therefore they are not a list\n\t\tif (is_object($value) && !($value instanceof \\Traversable)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// check if the array/object has only integer keys.\n\t\t$i = 0;\n\t\tforeach ($value as $key => $element) {\n\t\t\tif ($key !== $i) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t\treturn true;\n\t}", "protected function is_single($data){\n foreach ($data as $value){\n if (is_array($value)){\n return false;\n }\n return true;\n }\n }", "function isItem( $var );", "public function isList() {\n \t\treturn false;\n \t}", "private function _isArray($items)\n {\n $items = (array) $items;\n if (!is_array($items) or count($items) == 0)\n {\n throw new \\Exception('The method takes an array.');\n return FALSE;\n }\n }", "function array_is_list(array $arr): bool\n {\n if ($arr === []) {\n return true;\n }\n return array_keys($arr) === range(0, count($arr) - 1);\n }", "function validate_fishbowl_item($mysqli, $item)\n{\n\tif ( empty($item[\"date\"])\n\t || !is_numeric($item[\"log_type\"]) ) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "public function isListOfNonNulls(): bool\n {\n return $this->isList && $this->isListOfNonNulls;\n }", "public static function isValidValue($value) {\n return is_array($value);\n }", "public function isArray()\n {\n return \\is_array($this->value);\n }", "protected function validateArray($value){\n\t\treturn is_array($value);\n\t}", "public function testRejectsANonTypesAsItemTypeOfList()\n {\n $notTypes = [\n 'Object' => new \\stdClass(),\n 'Array' => [],\n 'Function' => function () {\n return null;\n },\n '(empty string)' => '',\n 'null' => null,\n 'true' => true,\n 'false' => false,\n 'String' => 'String',\n ];\n\n foreach ($notTypes as $string => $notType) {\n $this->expectException(InvariantException::class);\n $this->expectExceptionMessage(\\sprintf('Expected %s to be a GraphQL type.', $string));\n\n /** @noinspection PhpUnhandledExceptionInspection */\n newList($notType);\n $this->addToAssertionCount(1);\n }\n }", "function acf_is_array($array)\n{\n}", "function isArray ($value)\r\n{\r\n\treturn is_array ($value);\r\n}", "public function isCorrect()\n\t{\n\t\treturn ($this->m_items) || ($this->m_item);\n\t}", "function rest_is_array($maybe_array)\n {\n }", "function _is_valid_nav_menu_item($item)\n {\n }", "function wpsl_is_multi_array( $array ) {\n\n foreach ( $array as $value ) {\n if ( is_array( $value ) ) return true;\n }\n\n return false;\n}", "public function valid(): bool\n {\n return (current($this->items) !== false);\n }", "public function isMultivalue();", "function check_value($input) { \n\t\tif (is_array($input)) {\n\t\t\t$retval=$this->flatten($input);\n\t\t} else {\n\t\t\t$retval=$input;\n\t\t\t$this->output[]=$retval;\n\t\t}\n\t}", "function hasUncheckedLinks($list)\n\t{\n\t\t//only checking one list side per call\n\t\tforeach($list as $l)\n\t\t{\n\t\t\tif($l['done'] == 0)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t\t\n\t}", "public function testAcceptsTypesAsItemOfList()\n {\n /** @noinspection PhpUnhandledExceptionInspection */\n $types = [\n stringType(),\n $this->scalarType,\n $this->objectType,\n $this->unionType,\n $this->interfaceType,\n $this->enumType,\n $this->inputObjectType,\n newList(stringType()),\n newNonNull(stringType()),\n ];\n\n foreach ($types as $type) {\n /** @noinspection PhpUnhandledExceptionInspection */\n newList($type);\n $this->addToAssertionCount(1);\n }\n }", "public function hasListValue(){\n return $this->_has(6);\n }", "public function if_item_is_in_list( $user_id, $list, $item ) {\n \n // Verify if list's meta exists\n $this->db->select('*');\n $this->db->from('lists_meta');\n $this->db->where(['user_id' => $user_id, 'list_id' => $list, 'body' => $item]);\n $query = $this->db->get();\n \n if ( $query->num_rows() > 0 ) {\n \n return true;\n \n } else {\n \n $this->db->select('*');\n $this->db->from($this->table);\n $this->db->where(['user_id' => $user_id, 'list_id' => $list]);\n $query = $this->db->get();\n \n if ( $query->num_rows() > 0 ) {\n \n return false;\n \n } else {\n \n return true;\n \n }\n \n }\n \n }", "protected function arrayIsList(array $array): bool\n {\n $encoded = json_encode($array);\n\n return false !== $encoded && $encoded[0] === '[';\n }", "public function is_listable() {\n\t\treturn isset( $this->data['listable'] ) && $this->data['listable'];\n\t}", "private function _isCartArray($items = array())\n {\n if (!is_array($items) or count($items) == 0)\n {\n return FALSE;\n }\n return TRUE;\n }", "protected function _check($data)\n {\n if ($this->_count != 0) {\n $this->_type($data);\n } elseif (is_array($data)) {\n $this->_type($data);\n }\n }", "function hasArray($arr) {\r\n\tforeach ($arr as $value) {\r\n\t\tif(is_array($value))\r\n\t\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}", "public function isList(): bool\n {\n return $this->list;\n }", "private static function checkArg(np_array $data, &$arg, &$isScalar=false)\n {\n $arg = self::formatArg($arg)->flatten();\n \n $isScalar = (count($arg) == 1);\n }", "protected function isSpecialFieldtype(array $item): bool\n {\n $specialFieldtypes = ['bard', 'grid', 'replicator', 'table'];\n\n if (in_array($item['field']['type'], $specialFieldtypes)) {\n return true;\n }\n\n return false;\n }", "protected function hasListsOrObjects( OODBBean $bean )\n\t{\n\t\t$processLists = FALSE;\n\t\tforeach ( $bean as $value ) {\n\t\t\tif ( is_array( $value ) || is_object( $value ) ) {\n\t\t\t\t$processLists = TRUE;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $processLists;\n\t}", "public function canPresent($value)\n {\n $item = current($value);\n return is_array($value) &&\n is_object($item) &&\n property_exists($item, 'user') &&\n property_exists($item, 'text');\n }", "public function testIsMultiTypeInvalid()\n {\n $this->assertFalse($this->annotation->isMultiValuedType(Field::TYPE_BOOLEAN));\n }", "public function containsValue ($item)\n {\n if ($item === NULL) {\n throw new NullPointerException();\n }\n\n return in_array($item, $this->data);\n }", "public function isNotArray($value)\n {\n return !is_array($value);\n }", "private function validateArrayElement($element, $type) {\n\n return gettype($element) == $type ? true : false;\n\n }", "private function _isArray($value) {\n return is_array($value) && array_keys($value) === range(0, sizeof($value) - 1);\n }", "public function testIsArray() {\n\t\t$array = array('one' => 1, 'two' => 2);\n\t\t$result = _::isArray($array);\n\t\t$this->assertTrue($result);\n\n\t\t// test that an object is not an array\n\t\t$object = (object)$array;\n\t\t$result = _::isArray($object);\n\t\t$this->assertFalse($result);\n\t}", "public function addItem($item)\n\t{\n\t\tif(is_array($item))\n\t\t{\n\t\t\t$this->items[] = $item;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "function _field_checkarray_or($fval) \n {\n return $this->_field_checkarray($fval, 1);\n }", "public function isValid($value): bool\n {\n return is_array($value) || method_exists($value, 'toArray');\n }", "public function isArray($value)\n {\n return is_array($value);\n }", "protected function _istestValid($item)\n {\n if ((!$item instanceof stdClass)\n || !isset($item->type)\n || !isset($item->modifiers))\n {\n return false;\n }\n\n if (!isset($item->content)\n && (! $this->view->doctype()->isHtml5()\n || (! $this->view->doctype()->isHtml5() && $item->type !== 'charset'))) {\n return false;\n }\n\n // <meta property= ... /> is only supported with doctype RDFa\n if (!$this->view->doctype()->isRdfa()\n && !$this->view->doctype()->isHtml5()\n && $item->type === 'property') {\n return false;\n }\n\n return true;\n }", "public function hasItemtype(){\n return $this->_has(40);\n }", "public static function arrayIsList(array $array): bool\n\t{\n\t\t$expectedKey = 0;\n\t\tforeach ($array as $i => $value) {\n\t\t\tif ($i !== $expectedKey) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$expectedKey++;\n\t\t}\n\n\t\treturn true;\n\t}", "protected function isList($array)\n {\n return array_keys($array) === range(0, count($array) - 1);\n }", "private static function checkValues($input) {\n if (empty($input)) {\n return FALSE;\n }\n\n $result = TRUE;\n foreach ($input as $value) {\n $result = $result && $value != false;\n }\n\n return $result;\n }", "public function inListForItemNotContainedReturnsFalseDataProvider() {}", "public function isMulti()\n {\n return $this->filter('is_scalar')->length !== $this->length;\n }", "public function testHandlesNullableLists()\n {\n $type = Type::listOf(Type::int());\n\n // Contains values\n $this->check(\n $type,\n [ 1, 2 ],\n [ 'data' => [ 'nest' => [ 'test' => [ 1, 2 ] ] ] ]\n );\n\n // Contains null\n $this->check(\n $type,\n [ 1, null, 2 ],\n [ 'data' => [ 'nest' => [ 'test' => [ 1, null, 2 ] ] ] ]\n );\n\n // Returns null\n $this->check(\n $type,\n null,\n [ 'data' => [ 'nest' => [ 'test' => null ] ] ]\n );\n }", "private function is_param_array($param){\n\t\tif(!is_array($param)){\n\t\t\t$this->text(\"Invalid parameter, cannot reply with appropriate message\");\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "private function isInvalidArray($input) {\n\n return !is_array($input) || empty($input);\n }", "public function isValidItem($item) {\n\t\treturn $item instanceof Fieldgroup;\n\t}", "public function isValue()\n {\n return\n $this->type === 'string' ||\n $this->type === 'number' ||\n $this->type === 'null' ||\n $this->type === 'boolTrue' ||\n $this->type === 'boolFalse';\n }", "public function testIsValid()\n {\n $this\n ->abstract\n ->expects($this->any())\n ->method('isValidType')\n ->with($this)\n ->will(\n $this->returnCallback(\n function ($object, $value) {\n return is_array($value);\n }\n )\n );\n\n $this->assertFalse(\n $this->abstract->isValid($this, null),\n 'A null value should not be valid.'\n );\n\n // force null as acceptable\n Property::set($this->abstract, 'nullable', true);\n\n $this->assertTrue(\n $this->abstract->isValid($this, null),\n 'A null value should be valid.'\n );\n\n $this->assertFalse(\n $this->abstract->isValid($this, 'This is a test.'),\n 'A string value should not be valid.'\n );\n\n $this->assertTrue(\n $this->abstract->isValid($this, array('This is a test.')),\n 'An array value should be valid.'\n );\n }", "public function testEmptyArrayCastedToBoolGivesFalse() {\n\t\t$this->assertFalse((bool)array());\n\t}", "function CheckShowListAccess($item=array())\n {\n if (empty($item)) { return TRUE; }\n\n $res=$this->HasModuleAccess();\n \n return $res;\n }", "function isArray($token) {\n $len = strlen($token);\n return $len >= 2 && '[' == $token[0] && ']' == $token[$len - 1];\n }", "function isArray($obj)\n {\n return is_array($obj) || isArrayAccess($obj);\n }", "private function isArrayElement($line) {\n\t//--\n\tif(!$line) {\n\t\treturn false;\n\t} //end if\n\t//--\n\tif($line[0] != '-') {\n\t\treturn false;\n\t} //end if\n\t//--\n\tif(strlen($line) > 3) {\n\t\tif(substr($line, 0, 3) == '---') {\n\t\t\treturn false;\n\t\t} //end if\n\t} //end if\n\t//--\n\treturn true;\n\t//--\n}", "public static function isValueType($value)\n {\n if (is_scalar($value) || $value === null) {\n return true;\n } elseif (is_array($value)) {\n $isScalar = true;\n array_walk_recursive($value,\n function ($value) use (&$isScalar) {\n if ($isScalar && !(is_scalar($value) || $value === null)) {\n $isScalar = false;\n }\n });\n\n return $isScalar;\n } else {\n return false;\n }\n }", "public function test_array_returns_true_when_not_optional_and_input_array() {\n\t\t$optional = false;\n\n\t\t$result = self::$validator->validate( array('test','test2'), $optional );\n\t\t$this->assertTrue( $result );\n\t}", "protected function checkItem($value)\n {\n return $value instanceof MezzoModel;\n }", "private function validateItemLists(string $list)\n {\n $valid = true;\n\n $explodedItemsList = explode('/', $list);\n foreach ($explodedItemsList as $item) {\n $item = (int)$item;\n if (is_int($item) && $item > 0 && $item <= 1000000) {\n continue;\n }\n $valid = false;\n }\n\n if ($valid) {\n return $explodedItemsList;\n } else {\n return false;\n }\n }", "public function hasItemType(): bool\n {\n return $this->itemTypeAttr !== NULL;\n }", "function isValid()\n\t{\n\t\t// Non-user entries are always valid\n\t\t// TO DO Validate individual merged items. \n\t\tif ($this->type == 'static' || $this->type == 'hidden' || $this->type == 'merged')\n\t\t\treturn true;\n\t\t\t\n\t\t// For multi-item lists, should be at least one value\n\t\tif ($this->type == 'checkboxlist') \n\t\t{\n\t\t\tif ($this->required) {\n\t\t\t\t$listValid = is_array($this->value) && count($this->value) > 0;\n\t\t\t\tif (!$listValid) {\n\t\t\t\t\t$this->renderWithErrors = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Continue validaitng lists if not required, or required, but valid so far.\n\t\t}\n\t\t// Not multi-item lists\n\t\telse \n\t\t{\t\t\n\t\t\t// For file uploading, check $_FILES instead\n\t\t\tif ($this->type == 'uploadfile') \n\t\t\t{\t\t\t\t\n\t\t\t\t// Always true if not required\n\t\t\t\tif (!$this->required) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t$fileValid = isset($_FILES[$this->name]) && (isset($_FILES[$this->name]['tmp_name'])) && ($_FILES[$this->name]['tmp_name'] != false);\n\t\t\t\t\n\t\t\t\t// If we want the field to be valid if the form has a value or a file is uploaded,\n\t\t\t\t// then the field is valid if there's any kind of value.\n\t\t\t\tif ($this->validIfValue && $this->value) {\n\t\t\t\t\treturn true;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!$fileValid) {\n\t\t\t\t\t$this->renderWithErrors = true;\n\t\t\t\t}\n\t\t\t\treturn $fileValid;\n\t\t\t}\n\t\t\t\t\n\t\t\t// Field is required, but empty\n\t\t\tif ($this->required && $this->value == false) {\n\t\t\t\t$this->renderWithErrors = true;\n\t\t\t\treturn false; \n\t\t\t}\n\t\t\t\t\n\t\t\t// Field is not required, and empty\n\t\t\tif (!$this->required && $this->value == false) \n\t\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\t\n\t\t// Validation functions override internal validation\n\t\tif ($this->validationFn) \t\t\n\t\t{\n\t\t\t// Abort if function doesn't exist.\n\t\t\tif (!function_exists($this->validationFn)) {\n\t\t\t\terror_log('FormBuilder: Function \"'.$this->validationFn.'\" doesn\\'t exist');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// Allow the function to change the error message if required\n\t\t\t// function HL_validate_CountyField($county, $fieldName = false, $customError = false) {}\n\t\t\t// Setting $customError = 'String' makes the 'String' the error message.\n\t\t\t$customError = false;\n\t\t\t\t\t\t\n\t\t\t$validVal = call_user_func($this->validationFn, $this->value, $this->name, $customError);\n\t\t\t$this->renderWithErrors = !$validVal;\n\n\t\t\t// Have we been passed a different error message?\n\t\t\tif ($customError) {\n\t\t\t\t$this->errorMessage = $customError;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn $validVal;\n\t\t}\n\t\t\n\t\t// No validation function, see if we have any internal validation\n\t\t// rules. If so, validate the value against those.\n\t\tif ($this->validationRules)\n\t\t{\n\t\t\t$customError = false;\n\t\t\t\n\t\t\t$validVal = $this->validateValueUsingRules($this->value);\n\t\t\t$this->renderWithErrors = !$validVal; \n\t\t\t\t\t\t\n\t\t\treturn $validVal;\n\t\t}\n\t\t\t\n\t\t// No validation rules or functions, so it's all fine.\n\t\treturn true;\n\t}", "function arrayAccessible($value)\n {\n return is_array($value);\n }", "public static function isIterable($value)\n {\n return $value instanceof \\Traversable || is_array($value);\n }", "public function hasSubItems() {\n return count($this->subItems) > 0;\n }", "function any(callable $callback, iterable $items) : bool\n{\n foreach ($items as $item) {\n if ($callback($item)) {\n return true;\n }\n }\n return false;\n}", "public function valid()\n {\n return ( current( $this->data ) !== false );\n }", "private static function checkDataType($array)\n {\n if(count($array) <= 1)\n {\n return true;\n }\n\n $last = count($array) - 1;\n\n $type = self::getCustomDataType($array[$last]);\n\n if ($type != self::getCustomDataType($array[0]))\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "function has_js_condition($item) {\n\t\treturn isset($item['condition']) && is_array($item['condition']);\n\t}", "public function isValid() {\n\t\treturn !is_array($this->data) && count($this->data->getRawData()) > 0;\n\t}", "public static function is_type( $mf, $type ) {\n\t\treturn is_array( $mf ) && ! empty( $mf['type'] ) && is_array( $mf['type'] ) && in_array( $type, $mf['type'], true );\n\t}", "public function check_meta_is_array($value, $request, $param)\n {\n }", "private function isPlainArray($line) {\n\t//--\n\treturn (($line[0] == '[') && (substr($line, -1, 1) == ']'));\n\t//--\n}", "final protected function shouldBeFlatArray ($value) {\n\t\t$arguments = func_get_args();\n\t\tforeach ($arguments as $argument) {\n\t\t\tif (!is_array($argument)) {\n\t\t\t\treturn $this->fail();\n\t\t\t} else {\n\n\t\t\t\t// Fail if child array key found\n\t\t\t\tforeach ($argument as $child) {\n\t\t\t\t\tif (is_array($child)) {\n\t\t\t\t\t\treturn $this->fail();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn $this->pass();\n\t}", "private function isTypeValid($param)\n {\n return is_array($param) || is_string($param) || is_null($param);\n }", "function contains($item) {\r\n return in_array($item, $this->list);\r\n }", "public function test_array_returns_true_when_optional_and_input_array() {\n\t\t$optional = true;\n\n\t\t$result = self::$validator->validate( array('test','test2'), $optional );\n\t\t$this->assertTrue( $result );\n\t}", "public static function isArrayable($value)\n {\n return is_array($value) or $value instanceof Arrayable;\n }", "public static function isArray($value): bool\n {\n if (is_array($value))\n {\n // Definitely an array\n return TRUE;\n }\n\n // Possibly a Traversable object, functionally the same as an array\n return (is_object($value) && $value instanceof Traversable);\n }", "public function inList( $mVarVal = NULL ) {\n\t\treturn FALSE;\n\t}", "public function supports($item)\n {\n return isset($item->term_id)\n && is_int($item->term_id)\n && isset($item->taxonomy)\n && $item->taxonomy === $this->taxonomy;\n }", "public function contains ($item)\n {\n return in_array($item, $this->data);\n }", "public function valid() {\n\t\treturn (current($this->_data) !== false);\n\t}", "public function valid(){\n\t\treturn (is_array($this->data) ? key($this->data) !== null : false);\n\t}", "public function checkItem(Varien_Object $item)\n {\n if (!$item instanceof Aoe_LogViewer_Model_Command_Abstract) {\n return false;\n }\n return $item->checkItem();\n }", "public static function checkValues($input) {\n if (empty($input)) {\n return FALSE;\n }\n\n $result = TRUE;\n foreach ($input as $value) {\n $result = $result && $value != false;\n }\n\n return $result;\n }", "public function if_user_has_list($user_id, $list, $type) {\n \n $this->db->select('*');\n $this->db->from('lists');\n $this->db->where(['user_id' => $user_id, 'list_id' => $list, 'type' => $type]);\n $query = $this->db->get();\n \n if ($query->num_rows() > 0) {\n \n return true;\n \n } else {\n \n return false;\n \n }\n \n }", "private function isTrueArray($array) {\n if (is_array($array) && isset($array) && count($array)) {\n return TRUE;\n } else {\n return FALSE;\n }\n }", "public function canHandle(TypedValueInterface $value): bool;" ]
[ "0.7022458", "0.6522862", "0.6434926", "0.64278257", "0.61383533", "0.6054842", "0.6050075", "0.60213923", "0.59726304", "0.59271574", "0.5921141", "0.591758", "0.5915323", "0.5911135", "0.591046", "0.5876615", "0.5862566", "0.5848603", "0.5837345", "0.5809014", "0.5770026", "0.571642", "0.5695699", "0.5694634", "0.56794626", "0.5650832", "0.56344074", "0.5601027", "0.55868864", "0.5568833", "0.5560181", "0.55549544", "0.5552833", "0.55527693", "0.5548361", "0.5522038", "0.5521277", "0.5509318", "0.5505885", "0.5501688", "0.5495704", "0.5490327", "0.54875344", "0.5462607", "0.5457977", "0.5454405", "0.545091", "0.54456675", "0.54371333", "0.54260445", "0.5420768", "0.53947043", "0.53899664", "0.5386769", "0.5377695", "0.5373333", "0.53725034", "0.5359815", "0.535824", "0.535118", "0.5341265", "0.5339231", "0.53321517", "0.5328184", "0.53210235", "0.53172934", "0.53075933", "0.53071165", "0.53037065", "0.5295281", "0.52844524", "0.5275781", "0.52596945", "0.52576065", "0.52561915", "0.5248123", "0.5244131", "0.52424794", "0.52365446", "0.523424", "0.52328163", "0.52261174", "0.52256304", "0.52248603", "0.52195734", "0.52138704", "0.5211611", "0.5210059", "0.52098125", "0.52088785", "0.52068824", "0.5193754", "0.5182811", "0.51802856", "0.517928", "0.5174468", "0.5168929", "0.5160787", "0.5156401", "0.51530623" ]
0.5185566
92
check parentheses and wrappers characters that they match
public function validate($input_string, $open=NULL, $close=NULL, $wrappers=NULL, $escape_char=NULL) { // for example (, [, { $open = $open ? $open : $this->OPEN_PARENTHESES; // for example: }, ], ) $close = $close ? $close : $this->CLOSE_PARENTHESES; // multiple wrapper chars accepted, for example ['"', "'", "´"] $wrappers = $wrappers ? $wrappers : $this->wrappers; // is is possible to pass a different escape char, but it is probably // not a good idea because many of the string processors use the same $escape_char = $escape_char ? $escape_char : '\\'; $stack = array(); $previous = NULL; // loop over all characters in a string $chars = preg_split('/(?<!^)(?!$)/u', $input_string); foreach ($chars as $current) { // if previous character was escape character, then // swap it with the current one and continue to the next char if ($previous == $escape_char) { // see if current character is escape char, then there are // two of them in row and we should reset previous marker if ($current == $escape_char) $previous = NULL; else $previous = $current; continue; } // last stacked char. not that this differs from the previous value which // is the previous char from string. last is the last char from stack $last = @array_slice($stack, -1)[0]; // if we are inside a wrapper accept ANY character // until the next unescaped wrapper char occurs if (in_array($last, $wrappers) && $current != $last) { // swap the current so that we can escape wrapper inside wrappers: "\"" $previous = $current; continue; } // push open parenthesis or wrapper to the stack if ($current == $open || (in_array($current, $wrappers) && $current != $last)) { $stack[] = $current; // prepare to pop last parenthesis or wrapper } else if ($current == $close || in_array($current, $wrappers)) { // if there is nothing on stack, should already return false if (count($stack) == 0) { return FALSE; } else { // if we encounter wrapper char take the last wrapper char out from stack if (in_array($last, $wrappers) || // or if the last char was open and current close parenthsis ($last == $open && $current == $close)) { array_pop($stack); } else { return FALSE; } } } // update previous char $previous = $current; } // if there is something on stack then no closing char was found return count($stack) == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_escape_2($char)\n{\n\tif ($char === \".\" || $char === \"|\" || $char === \"(\" || $char === \")\" || $char === \"*\" || $char === \"+\")\n\t\treturn true;\n\treturn false;\n}", "public function testMatchesWithSurroundingLatinCharsAndLeadingPunctuation()\n {\n // insert start with punctuation, but trailing characters are still not allowed.\n $possibleOnlyContexts = array();\n $possibleOnlyContexts[] = array('abc', 'def');\n $possibleOnlyContexts[] = array('', 'def');\n $possibleOnlyContexts[] = array('', \"\\xC3\\x89\");\n\n // Numbers should not be considered valid, if they have trailing Latin characters, but should be\n // considered possible.\n $numberWithPlus = '+14156667777';\n $numberWithBrackets = '(415)6667777';\n $this->findMatchesInContexts($possibleOnlyContexts, false, true, RegionCode::US, $numberWithPlus);\n $this->findMatchesInContexts($possibleOnlyContexts, false, true, RegionCode::US, $numberWithBrackets);\n\n $validContexts = array();\n $validContexts[] = array('abc', '');\n $validContexts[] = array(\"\\xC3\\x89\", '');\n $validContexts[] = array(\"\\xC3\\x89\", '.'); // Trailing punctuation.\n $validContexts[] = array(\"\\xC3\\x89\", ' def'); // Trailing white space.\n\n // Numbers should be considered valid, since they start with punctuation.\n $this->findMatchesInContexts($validContexts, true, true, RegionCode::US, $numberWithPlus);\n $this->findMatchesInContexts($validContexts, true, true, RegionCode::US, $numberWithBrackets);\n }", "protected function syntaxCheck(&$str)\n {\n $errors = false;\n $current_file = 'file://' . end($this->process->sources);\n $balanced_parens = substr_count($str, \"(\") === substr_count($str, \")\");\n $balanced_curlies = substr_count($str, \"{\") === substr_count($str, \"}\");\n\n $validate_pairings = function ($str, $pairing) use ($current_file)\n {\n if ($pairing === '{}') {\n $opener_patt = '~\\{~';\n $balancer_patt = Regex::make('~^{{block}}~');\n }\n else {\n $opener_patt = '~\\(~';\n $balancer_patt = Regex::make('~^{{parens}}~');\n }\n\n // Find unbalanced opening brackets.\n preg_match_all($opener_patt, $str, $matches, PREG_OFFSET_CAPTURE);\n foreach ($matches[0] as $m) {\n $offset = $m[1];\n if (! preg_match($balancer_patt, substr($str, $offset), $m)) {\n $substr = substr($str, 0, $offset);\n $line = substr_count($substr, \"\\n\") + 1;\n $column = strlen($substr) - strrpos($substr, \"\\n\");\n return \"Unbalanced '{$pairing[0]}' in $current_file, Line $line, Column $column.\";\n }\n }\n\n // Reverse the string (and brackets) to find stray closing brackets.\n $str = strtr(strrev($str), $pairing, strrev($pairing));\n\n preg_match_all($opener_patt, $str, $matches, PREG_OFFSET_CAPTURE);\n foreach ($matches[0] as $m) {\n $offset = $m[1];\n $substr = substr($str, $offset);\n if (! preg_match($balancer_patt, $substr, $m)) {\n $line = substr_count($substr, \"\\n\") + 1;\n $column = strpos($substr, \"\\n\");\n return \"Stray '{$pairing[1]}' in $current_file, Line $line, Column $column.\";\n }\n }\n\n return false;\n };\n\n if (! $balanced_curlies) {\n $errors = true;\n warning($validate_pairings($str, '{}') ?: \"Unbalanced '{' in $current_file.\");\n }\n if (! $balanced_parens) {\n $errors = true;\n warning($validate_pairings($str, '()') ?: \"Unbalanced '(' in $current_file.\");\n }\n\n return $errors ? false : true;\n }", "public function areCharsCovered($chars) {}", "protected function check_string()\n {\n $string_regex = \"/^string@.*/\";\n $backslash_regex = \"/\\\\\\/\";\n $escape_regex = \"/\\\\\\[0-9]{3}/\";\n $test = preg_match($escape_regex, $this->token);\n $result = preg_match($string_regex, $this->token);\n // checks if token is string\n if($result)\n {\n $backslashes = preg_match_all($backslash_regex, $this->token);\n // if token has backslashes\n if($backslashes > 0)\n {\n // get count of sequences\n $escapes = preg_match_all($escape_regex, $this->token);\n // if there is not same number of escapes and sequences = error\n if($escapes != $backslashes)\n {\n fwrite(STDERR, \"Error, wrong escape sequence!\\n\");\n exit(23);\n }\n }\n }\n }", "function aturan23($word)\n {\n if (substr($word, 0, 3) == 'per' and preg_match('/^[raiuoe]/', substr($word, 3, 1)) == 0 and substr($word, 5, 2) == 'er' and preg_match('/^[aiuoe]/', substr($word, 7, 1))) {\n return true;\n } else {\n return false;\n }\n }", "function _hasUnclosedBrackets($string, $chars)\n {\n $num_angle_start = substr_count($string, $chars[0]);\n $num_angle_end = substr_count($string, $chars[1]);\n\n $this->_hasUnclosedBracketsSub($string, $num_angle_start, $chars[0]);\n $this->_hasUnclosedBracketsSub($string, $num_angle_end, $chars[1]);\n\n if ($num_angle_start < $num_angle_end) {\n $this->error = 'Invalid address spec. Unmatched quote or bracket (' . $chars . ')';\n return false;\n } else {\n return ($num_angle_start > $num_angle_end);\n }\n }", "function hasSpecial($str){\nreturn preg_match('/[\\'\\^\\.\\£\\$\\%\\&\\*\\(\\)\\}\\{\\@\\#\\~\\?\\>\\<\\>\\,\\|\\=\\_\\+\\¬\\-]/', $string);\n}", "function consecutiveCharacters($telephone) \n\t{\n\t\tif ((preg_match('/\\-\\-+/', $telephone)) || (preg_match('/\\.\\.+/', $telephone)) || (preg_match('/\\s\\s+/', $telephone)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function aturan22($word)\n {\n if (substr($word, 0, 3) == 'per' and preg_match('/^[raiuoe]/', substr($word, 3, 1)) == 0 and substr($word, 5, 2) != 'er') {\n return true;\n } else {\n return false;\n }\n }", "function check_element_validity($key,$opt){\n\n if (preg_match(STARTCHARRGX, $key) === 1 ) { //check first character\n preg_match(STARTCHARRGX,$key,$matches);\n if ($matches[0] == \"_\") {\n return false;\n }\n return true;\n }\n if ( preg_match(INVALIDCHARSRGX, $key) === 1) { //check other chars validity\n return true;\n }\n return false;\n }", "function is_sign($char)\r\n{\r\n if($char == \"-\" || $char == \"+\")\r\n {\r\n return true;\r\n }\r\n else\r\n return false;\r\n}", "function _splitCheck($parts, $char)\n {\n $string = $parts[0];\n\n for ($i = 0; $i < count($parts); $i++) {\n if ($this->_hasUnclosedQuotes($string)\n || $this->_hasUnclosedBrackets($string, '<>')\n || $this->_hasUnclosedBrackets($string, '[]')\n || $this->_hasUnclosedBrackets($string, '()')\n || substr($string, -1) == '\\\\') {\n if (isset($parts[$i + 1])) {\n $string = $string . $char . $parts[$i + 1];\n } else {\n $this->error = 'Invalid address spec. Unclosed bracket or quotes';\n return false;\n }\n } else {\n $this->index = $i;\n break;\n }\n }\n\n return $string;\n }", "function isValidCharacter ($string)\n{\n return (preg_match ('/[^a-z0-9\\-_:\\.=;]/i', $string) ? 0 : 1);\n}", "public function isOpeningParenthesis() {\n return ($this->code === '(');\n }", "function aturan9($word = '')\n {\n if (substr($word, 0, 2) == 'te' and preg_match('/^[aiueo]/', substr($word, 2, 1)) == 0) {\n if (substr($word, 2, 1) != 'r' and substr($word, 3, 2) == 'er' and preg_match('/^[aiueo]/', substr($word, 5, 1)) == 0) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "function aturan3($word = '')\n {\n if (substr($word, 0, 3) == 'ber' and preg_match('/^[aiueo]/', substr($word, 3, 1)) == 0 and substr($word, 3, 1) != 'r' and substr($word, 5, 2) == 'er' and preg_match('/^[aiueo]/', substr($word, 7, 1)) == 1) {\n return true;\n } else {\n return false;\n }\n }", "public function isClosingParenthesis() {\n return ($this->code === ')');\n }", "function aturan7($word = '')\n {\n if (substr($word, 0, 3) == 'ter' and preg_match('/^[aiueo]/', substr($word, 3, 1)) == 0 and substr($word, 3, 1) != 'r') {\n if (substr($word, 4, 2) == 'er' and preg_match('/^[aioue]/', substr($word, 6, 1))) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "public function CharacterCheck($string=\"\"){\n\t\t if (preg_match('/[\\'^£$%&*0-9()}{@#~?><>,|=_+¬-]/', $string))\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t}", "function SimpleSymbols($str) {\r\n\t //a \"+\" character before and after it\r\n\t preg_match_all('/\\+[a-zA-Z]\\+/', $str, $matches);\r\n \r\n echo count($matches). \"</br>\";\r\n echo PHP_EOL;\r\n print_r($matches);\r\n \r\n\t /*if (count($matches) > 0) {\r\n\t $str = true;\r\n\t }\r\n\t else {\r\n\t $str = false;\r\n\t }*/\r\n \r\n\t//Return a value\r\n\treturn $str;\r\n\t}", "function SimpleSymbols($str) {\r\n\t //a \"+\" character before and after it\r\n\t preg_match_all('/\\+[a-zA-Z]\\+/', $str, $matches);\r\n \r\n\t if (count($matches) > 0) {\r\n\t $str = true;\r\n\t }\r\n\t else {\r\n\t $str = false;\r\n\t }\r\n \r\n\t//Return a value\r\n\treturn $str;\r\n\t}", "function hasValidFormat($u, $p){\n $pattern = \"/[<>]/\";\n if (preg_match($pattern, $u)){\n echo \"<p style='color:red;font-style:italic'>\".htmlentities($u).\" contains illegal characters. Try again.</p>\";\n return false;\n }\n else if (preg_match($pattern, $p)){\n echo \"<p style='color:red;font-style:italic'>Password contains illegal characters. Try again.</p>\";\n return false;\n }\n else {\n return true;\n }\n}", "function testIfmatchWithModifiers(){\n\t\t#mdx:ifmatch2\n\t\tParam::get('phone')\n\t\t\t->filters()\n\t\t\t->ifmatch('/[a-z]/i', 'Phone cannot contain letters');\n\n\t\t$error = Param::get('phone')->process(['phone'=>'9829574K'])->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Phone cannot contain letters\", $error);\n\n\t}", "function horse_thatbooks_balance_parens( $output ) {\n\tif ( false !== strpos( $output, '(' ) || false !== strpos( $output, ')' ) ) {\n\t\tpreg_match_all( '|\\(|', $output, $os, PREG_OFFSET_CAPTURE );\n\t\tpreg_match_all( '|\\)|', $output, $cs, PREG_OFFSET_CAPTURE );\n\n\t\t$count_os = isset( $os[0] ) && is_array( $os[0] ) ? count( $os[0] ) : 0;\n\t\t$count_cs = isset( $cs[0] ) && is_array( $cs[0] ) ? count( $cs[0] ) : 0;\n\n\t\t// Case 1: We have both open and close parens\n\t\tif ( $count_os && $count_cs ) {\n\t\t\t// Nuke all the close parens\n\t\t\t$output = str_replace( ')', '', $output );\n\n\t\t\t// Take just the first open paren\n\t\t\t$output_a = explode( '(', $output );\n\t\t\t$output = $output_a[0] . '(' . implode( '', array_slice( $output_a, 1 ) );\n\n\t\t\t// Reset counts. This'll make it fall through to Case 2\n\t\t\t$count_cs = 0;\n\t\t\t$count_os = 1;\n\t\t}\n\n\t\t// Case 2: We have only open parens\n\t\tif ( $count_os && !$count_cs ) {\n\t\t\t// If we have more than one open paren, nuke all but the first\n\t\t\tif ( $count_os > 1 ) {\n\t\t\t\t$output_a = explode( '(', $output );\n\t\t\t\t$output = $output_a[0] . '(' . implode( '', array_slice( $output_a, 1 ) );\n\t\t\t}\n\n\t\t\t$output_a = explode( '(', $output );\n\n\t\t\t// Attach a close paren to a random word after the open paren\n\t\t\t// Sanity check. We should always pass this test\n\t\t\tif ( isset( $output_a[1] ) ) {\n\t\t\t\t// Break into words\n\t\t\t\t$output_a_1 = explode( ' ', $output_a[1] );\n\t\t\t\t$rand_key = array_rand( $output_a_1 );\n\t\t\t\t$output_a_1[$rand_key] .= ')';\n\t\t\t\t$output_a[1] = implode( ' ', $output_a_1 );\n\t\t\t}\n\n\t\t\t$output = implode( '(', $output_a );\n\n\t\t\t// Reset counts. This will ensure that the next case does *not* run\n\t\t\t$count_cs = 0;\n\t\t\t$count_os = 0;\n\t\t}\n\n\t\t// Case 3: We have only close parens\n\t\tif ( !$count_os && $count_cs ) {\n\t\t\t// If we have more than one close paren, nuke all but the last\n\t\t\tif ( $count_cs > 1 ) {\n\t\t\t\t$output_a = explode( ')', $output );\n\t\t\t\t$last_word = array_pop( $output_a );\n\t\t\t\t$output = implode( '', $output_a ) . ')' . $last_word;\n\t\t\t}\n\n\t\t\t$output_a = explode( ')', $output );\n\n\t\t\t// Attach an open paren to a random word before the close paren\n\t\t\t// Sanity check. We should always pass this test\n\t\t\tif ( isset( $output_a[1] ) ) {\n\t\t\t\t// Break into words\n\t\t\t\t$output_a_0 = explode( ' ', $output_a[0] );\n\t\t\t\t$rand_key = array_rand( $output_a_0 );\n\t\t\t\t$output_a_0[$rand_key] = '(' . $output_a_0[$rand_key];\n\t\t\t\t$output_a[0] = implode( ' ', $output_a_0 );\n\t\t\t}\n\n\t\t\t$output = implode( ')', $output_a );\n\n\t\t\t// Reset counts\n\t\t\t$count_cs = 0;\n\t\t\t$count_os = 0;\n\t\t}\n\n\t\t// Cleanup <3\n\t\tunset( $count_cs, $count_os, $cs, $os, $output_a );\n\t}\n\n\treturn $output;\n}", "public function testMatchingSubstringContainingRegexMetachars() {\n\t\techo 'This will match (me). Will it ? And \\[not\\] break on regex metachars';\n\n\t\t$this->expectOutputContains( 'match (me). Will it ? And \\[' );\n\t}", "function isnumincorrect($str = null){\n if ($str) {\n if (strlen($str)==13) \n if (($str[0]==\"+\") && ($str[1]==6) && ($str[2]==3) && ($str[3]==9)){\n echo \"is valid<br>\";\n return false;\n }else{\n echo \"input is Incorrect Number or Incorrect Format<br>\";\n return true;\n }else{\n echo \"input is Incorrect format<br>\";\n return true;\n }\n }\n}", "public function isCurrentByteRegularCharacter() {}", "public static function validCharacter($input)\n {\n $charInvalid = [\"<\", \">\", \";\", \"|\", \"\\\"\", \"'\", \"/\"];\n\n foreach ($charInvalid as $char) {\n if (strpos($input, $char) === true) {\n return false;\n }\n }\n return true;\n }", "public static function isBalanced($strLength,$expression)\n {\n $character1=\"\";$character2=\"\";$result=0;\n $stack = new Stack();\n for($i=0;$i<$strLength;$i++)\n {\n if($expression[$i]==\"(\")\n {\n $stack->push($expression[$i]); \n }\n else if($expression[$i]==\")\")\n {\n $character2 = $expression[$i];\n $character1 = $stack->pop(); \n }\n\n if($character1 == \"(\" && $character2 == \")\"){\n $result = 1;\n }\n else{\n $result = 0;\n }\n }\n \n if($result == 1 && $stack->isEmpty()){\n return true;\n }\n else{\n return false;\n }\n }", "function validate_capture_phrases($keywords) {\n $illegal_chars = array( \"\\t\", \"\\n\", \";\", \"(\", \")\" );\n foreach ($illegal_chars as $c) {\n if (strpos($keywords, $c) !== FALSE) {\n return FALSE;\n }\n }\n return TRUE;\n}", "function is_valid_for_label( $char, $pos=-1 ){\n // except for the first character that cannot be a numeral or an hyphen or a period.\n if( ($char>='A' && $char<='Z') || ($char>='a' && $char<='z') || ($char=='_') || (($char=='-')&&($pos!=0)) || (($char>='0' && $char<='9')&&($pos!=0)) || (($char=='.')&&($pos!=0)) ){\n return true;\n }\n return false;\n }", "function anyChar(){\n return satisfy(cnst(true));\n}", "function _checkAt($entry) {\n\t\t$ret = false;\n\t\t$opening = array_keys($this->_delimiters);\n\t\t$closing = array_values($this->_delimiters);\n\t\t//Getting the value (at is only allowd in values)\n\t\tif (strrpos($entry, '=') !== false) {\n\t\t\t$position = strrpos($entry, '=');\n\t\t\t$proceed = true;\n\t\t\tif (substr($entry, $position - 1, 1) == '\\\\') {\n\t\t\t\t$proceed = false;\n\t\t\t}\n\t\t\twhile (!$proceed) {\n\t\t\t\t$substring = substr($entry, 0, $position);\n\t\t\t\t$position = strrpos($substring, '=');\n\t\t\t\t$proceed = true;\n\t\t\t\tif (substr($entry, $position - 1, 1) == '\\\\') {\n\t\t\t\t\t$proceed = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$value = trim(substr($entry, $position + 1));\n\t\t\t$open = 0;\n\t\t\t$char = '';\n\t\t\t$lastchar = '';\n\t\t\tfor ($i = 0; $i < strlen($value); $i++) {\n\t\t\t\t$char = substr($this->content, $i, 1);\n\t\t\t\tif (in_array($char, $opening) && ('\\\\' != $lastchar)) {\n\t\t\t\t\t$open++;\n\t\t\t\t} elseif (in_array($char, $closing) && ('\\\\' != $lastchar)) {\n\t\t\t\t\t$open--;\n\t\t\t\t}\n\t\t\t\t$lastchar = $char;\n\t\t\t}\n\t\t\t//if open is grater zero were are inside an entry\n\t\t\tif ($open > 0) {\n\t\t\t\t$ret = true;\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "public function isCharCovered($char, $encoding = 'UTF-16BE') {}", "public function checkMatchingQuotes($query){\n\t\t//initialize stack\n\t\t$stack=array();//stack variable\n\t\t$msg=\"\";//variable for storing error message\n\n\t\t$quotectr1 = 0;//count number of single quotes\n\t\t$quotectr2 = 0;//count number of double quotes\n\n\t\t//end of the statement is not a \";\" character\n\t\tif($query[strlen($query)-1]!=\";\"){\n\t\t\t$_SESSION['error']=1;\n\t\t\treturn \"<br/>Syntax error: expected ';' at the end of input\";\n\t\t}\n\t\n\t\tfor($i=0;$i<strlen($query);$i++){\n\t\t\t//if symbol is an opening single quote\n\t\t\tif(($query[$i]==\"'\")&&($quotectr1%2==0)){\n\t\t\t\tarray_push($stack,$query[$i]);\n\t\t\t\t$quotectr1+=1;\n\t\t\t}\n\t\t\t//if symbol is an opening double quote\n\t\t\telse if(($query[$i]=='\"')&&($quotectr2%2==0)){\n\t\t\t\tarray_push($stack,$query[$i]);\n\t\t\t\t$quotectr2+=1;\n\t\t\t}\n\t\t\t/* Check if closing quotes */\n\t\t\t//if closing symbol, check if it matches at the top of stack\n\t\t\telse if((($query[$i]==\"'\")&&($quotectr1%2!=0))//closing single quote\n\t\t\t\t\t||(($query[$i]=='\"')&&($quotectr2%2!=0))//closing double quote\n\t\t\t\t\t){\n\n\t\t\t\t//error in single quotes\n\t\t\t\tif(($query[$i]==\"'\")&&(array_pop($stack)!=\"'\")){\n\t\t\t\t\t$_SESSION['error']=1;\n\t\t\t\t\treturn \"<br/>Syntax error: expected ' or identifier before ' \";\n\t\t\t\t}\n\t\t\t\t//error in double quotes\n\t\t\t\telse if(($query[$i]=='\"')&&(array_pop($stack)!='\"')){\n\t\t\t\t\t$_SESSION['error']=1;\n\t\t\t\t\treturn '<br/>Syntax error: expected \" or identifier before \" ';\n\t\t\t\t}\n\t\t\t\telse if($query[$i]==\"'\") $quotectr1+=1;//increment number of single quotes\n\t\t\t\telse if($query[$i]=='\"') $quotectr2+=1;//increment number of double quotes\n\t\t\t}\n\t\t}\n\n\t\t//stack is not empty and there is an unclosed opening symbol\n\t\tif(!empty($stack)) $msg=\"<br/>Syntax error: unclosed ' or \\\"\";\n\n\t\treturn $msg;\n\t}", "function checkChars($input) {\n\t\tfor ($i = 0; $i < strlen($input); $i++) {\n\t\t\t$char = ord($input[$i]);\n\t\t\tif(!($char == 32 || ($char >= 97 && $char <= 122) || ($char >= 65 && $char <= 90) || ($char >= 48 && $char <= 57)))\n\t\t\t\treturn 0;\n\t\t}\n\t\treturn 1;\n\t}", "static function validateEspecialChars($val) {\n\t\t$res = false;\n\t\tif (isset($val) && ($val != \"\") && preg_match(\"/^[a-zA-Záéíóúñ()0-9\\s]+$/i\",$val)){\n\t\t\t$res = true;\n\t\t}\n\t\treturn ($res);\n\t}", "public function testNonMatchingBracketsAreInvalid()\n {\n // there was a non-matching bracket present.\n $this->assertTrue($this->hasNoMatches($this->phoneUtil->findNumbers(\n '80.585 [79.964, 81.191]',\n RegionCode::US\n )));\n\n // The trailing \"]\" is thrown away before parsing, so the resultant number, while a valid US\n // number, does not have matching brackets.\n $this->assertTrue($this->hasNoMatches($this->phoneUtil->findNumbers(\n '80.585 [79.964]',\n RegionCode::US\n )));\n\n $this->assertTrue($this->hasNoMatches($this->phoneUtil->findNumbers(\n '80.585 ((79.964)',\n RegionCode::US\n )));\n\n // This case has too many sets of brackets to be valid.\n $this->assertTrue($this->hasNoMatches($this->phoneUtil->findNumbers(\n '(80).(585) (79).(9)64',\n RegionCode::US\n )));\n }", "function character_validations($value, $isPhone, $isEmail, $isUsername){\n //Possible regex expressions for:\n //phone: -> '/^[0-9]{3}[-][0-9]{3}[-][0-9]{4}$/'\n //email: -> '/^[^0-9.\\_][A-Za-z0-9]+[@][A-Za-z0-9_]+[.][a-z]{3}'\n if($isPhone){\n //if the string mathces this pattern then it will return true or\n return preg_match('/^[0-9]{3}[-][0-9]{3}[-][0-9]{4}$/', $value);\n } elseif($isEmail){\n //this condition is if its for an email\n return preg_match(\"/^[A-Za-z0-9._\\%-]+@[A-Za-z0-9.-]+\\.[a-z]{3}$/\", $value);\n } elseif($isUsername){\n //check if username has proper characters\n return !(preg_match(\"/[\\W]/\", $value));\n }\n }", "public function testRegexes()\n {\n $grammar1 = $this->grammar->parse(\" S ::= /(ab)*/ \");\n $this->assertEquals(array(\"ababab\"), $grammar1->parse(\"ababab\"));\n $grammar = $this->grammar->parse(\" number ::= /a\\\\.b/ \");\n $this->assertEquals(array(\"a.b\"), $grammar->parse(\"a.b\"));\n\n $this->expectException(ParseFailureException::_CLASS);\n $grammar1->parse(\"aXb\");\n }", "function alpha_dash_diagonales($str)\n\t{\t\t\n\t\t$this->CI->form_validation->set_message('alpha_dash_diagonales', \"El campo %s debe contener una combinaci&oacute;n de caracteres alfanum&eacute;ricos, guiones (-) y diagonales (/ \\).\");\n\t\treturn (bool) preg_match(\"/(^[a-zA-Z0-9\\xF1\\xD1\\-\\/\\\\\\\\ñÑ]+$)|^$/\", $str);\n\t}", "function checkIfBalanced($expression): bool\n{\n $stack = [];\n $startSymbols = ['('];\n $pairs = ['()'];\n $expression = preg_replace([\"/\\s/\", \"/\\+/\", \"/[0-9]/\", \"[\\*]\", \"[-]\", \"[/]\"], '', $expression);\n for ($i = 0, $len = strlen($expression); $i < $len; $i++) {\n $curr = $expression[$i];\n if (in_array($curr, $startSymbols)) {\n array_push($stack, $curr);\n } else {\n $prev = array_pop($stack);\n $pair = \"{$prev}{$curr}\";\n if (!in_array($pair, $pairs)) {\n return false;\n }\n };\n }\n return count($stack) == 0;\n}", "private static function getOperatorsMatchingRE(): string {\n return '/^\\s(' . implode('|', array_map('preg_quote', self::OPERATORS)) . ')\\s/';\n }", "function esEntero($val){\r\n\t\treturn preg_match_all(\"/[\\D]/\",$val,$l)==0;\r\n\t}", "function checkChar($ch){\n\t//error code\n\t$res= \"LOGIN_CHECKCHAR_FAILED\";\n\tif(strlen($ch) <= 16 && preg_match ( \"$^[a-zA-Z0-9_]{3,16}$\" , $ch )){\n\t\t$res= NULL;\n\t}\n\treturn $res;\n}", "public function isValid($cek){\n\t\tif($cek==null || $cek==\"\"){\n\t\t\treturn \"null\";\n\t\t}\n\n\t\telse if(preg_match('/[^a-z0-9]/i', $cek)){\n\t\t\treturn \"symbolerror\";\n\t\t}\t\t\n\t}", "function test_names($data){\n\tif (!preg_match(\"/^[a-zA-Z-' ]*$/\",$data)) {\n \t\treturn \"Only letters and white space allowed\";\n\t}\n\treturn $data;\n}", "public function testValidateSpecialChars(): void\n {\n $this->assertFalse($this->validate('some-text-123'));\n }", "public function testCharacterFieldValidation()\n {\n // Field should only allow 50 characters\n $field = $this->table->getField('stringone');\n\n $testStr = str_repeat('x', 56);\n $this->assertEquals(56, strlen($testStr));\n $cleanStr = $field->getPHPValue($testStr);\n $this->assertEquals(50, strlen($cleanStr));\n\n\n $testStr = str_repeat('z', 50);\n\n $fieldVal = $field->getSqlBoundValue($testStr);\n $key = $fieldVal->getValueMarker();\n\n $this->assertEquals($key, $fieldVal->getValueMarker());\n $this->assertEquals($testStr, $fieldVal->getBoundValues()[$key]);\n }", "public function checkSafety($expression) {\n\t\tif (preg_match('/\\b(\\w+)\\s*\\(/', $expression, $m)) {\n\t\t\tif (!in_array($m[1], array_keys($this->allowed)) && ! strcasecmp($m[1], 'and') && ! strcasecmp($m[1], 'or')) {\n\t\t\t\t// A not allowed function is found\n\t\t\t\tthrow new SQLSelectTokenizerException(\"syntax error near : \".$m[1]);\n\t\t\t}\n\t\t}\n\t\tif (strpos($expression, chr(10))) {\n\t\t\t// newline is forbidden\n\t\t\tthrow new SQLSelectTokenizerException(\"syntax error\");\n\t\t}\n\t\tif (preg_match('/[`\\{\\}\\[\\]\\;]/', $expression, $m)) {\n\t\t\t// metacharacters are forbidden\n\t\t\tthrow new SQLSelectTokenizerException(\"syntax error near : \".$m[1]);\n\t\t}\n\t\tif (preg_match('/\\$\\$([^\\s]+)/', $expression, $m)) {\n\t\t\t// $$ is forbidden\n\t\t\tthrow new SQLSelectTokenizerException(\"syntax error near : \".$m[1]);\n\t\t}\n\t}", "function checkRealEscapeString($value);", "function is_boolexpression($value) {\n preg_match('/^(([ \\-+><!01])|(&&)|(==)|(\\x7C\\x7C)|(!=)|(<=)|(>=)|(true)||(false))+$/i', $value, $result);\n\n return is_array($result) && !is_empty($result);\n }", "function isSpecialValue($value)\n {\n return strlen($value)>3 && $value[0]=='!' && $value[1]=='!' && $value[2]=='!';\n }", "function ValidateName($name)\n{\n $chars = str_split($name);\n\n // Assess each character\n foreach ($chars as $char) {\n if (!ValidateChar($char)) {\n return false;\n }\n }\n\n // // Check for empty\n // if (empty($name)) {\n // return false;\n // }\n\n return true;\n}", "function is_usefull($text) //good\r\n { \r\n $text=trim($text);\r\n $value = preg_replace('#\\s\\s#' , \" \" , $text);\r\n $value = preg_replace('#\\s+,#' , \", \" , $text);\r\n $value = preg_replace('#,\\s+#' , \",\" , $text);\r\n $value = preg_replace('#\\s+\\'#' , \"'\" , $text);\r\n $value = preg_replace('#\\'\\s+#' , \"'\" , $text);\r\n $value = preg_replace('#\\s+\\.#' , \".\" , $text);\r\n $value = preg_replace('#\\.\\s+#' , \" \" , $text);\r\n $value = preg_replace('#\\.[a-z]{1}#' , \".strtouppe[a-z]{1}\" , $text);\r\n $value = preg_replace('#\\s\\)#' , \")\" , $text);\r\n $value = preg_replace('#\\)\\s#' , \")\" , $text);\r\n $value = preg_replace('#\\(\\s#' , \"(\" , $text);\r\n $value = preg_replace('#\\s\\(#' , \"(\" , $text);\r\n $value = preg_replace('#;\\s+#' , \"; \" , $text);\r\n $value = preg_replace('#s+\\;#' , \"; \" , $text);\r\n $value = preg_replace('#s+\\:#' , \" :\" , $text);\r\n return $text;\r\n is_usefull(\"$text\");\r\n }", "function _o( $word )\n {\n if ( strlen($word) >= 3 ) {\n if ( $this->is_consonant($word, -1) && !$this->is_consonant($word, -2) &&\n $this->is_consonant($word, -3) ) {\n\t\t $last_char = substr($word, -1);\n\t\t if ( $last_char == 'w' || $last_char == 'x' || $last_char == 'y' ) {\n\t\t return false;\n\t\t }\n return true;\n }\n }\n return false;\n }", "function valid($valid)\n{\n if ($valid == \"\") \n return false;\n \n\n $split = preg_split('//u', $valid, null, PREG_SPLIT_NO_EMPTY);\n $allowed_chars = \"абвгдежзийклмнопрстуфхцчшщъьюяАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪѝЮЯ ,\";\n\n for ($i = 0; $i < mb_strlen($valid); ++$i) {\n if (mb_strpos($allowed_chars, $split[$i]) === false) \n return false;\n }\n\n return true;\n}", "function allLegalLetters($pass)\n{\n\n\tif(preg_match('/[iol]/', $pass)) return false;\n\treturn true;\n\n}", "private function ods_is_string_expression($string){\n $string = str_replace(array(\n ' ',\n '+',\n '-',\n '*',\n '/',\n '(',\n ')'\n ), array(\n '',\n '<BR>',\n '<BR>',\n '<BR>',\n '<BR>',\n '<BR>',\n '<BR>',\n ), $string);\n $parts = explode('<BR>', $string);\n return count($parts) > 1;\n \n }", "function is($char) {\n return Satisfy(function($c) use($char){return $c === $char;});\n }", "public function validateNesting($str): bool\n {\n $str = preg_replace(\"/[ \\t\\n\\r]+/\", '', $str);\n\n while (preg_match('/\\(\\)/', $str)) {\n $str = preg_replace('/\\(\\)/', '', $str);\n }\n\n return empty($str);\n }", "function texto_simple($str)\n\t{\t\t\n\t\t$this->CI->form_validation->set_message('texto_simple', \"El campo %s debe contener una combinaci&oacute;n de caracteres alfanum&eacute;ricos, espacios, comas (,) y puntos (.), guión medio (-).\");\n\t\treturn (bool) preg_match(\"/(^[a-zA-Z0-9\\xF1\\xD1\\s.,-ñÑ]+$)|^$/\", $str);\n\t}", "function test_pcre_unicode() {\n\tstatic $pcre_ok = 0;\n\n\tif (!$pcre_ok) {\n\t\t$s = \" \".chr(195).chr(169).\"t\".chr(195).chr(169).\" \";\n\t\tif (preg_match(',\\W\\w\\w\\w\\W,uS', $s)) $pcre_ok = 1;\n\t\telse $pcre_ok = -1;\n\t}\n\treturn $pcre_ok == 1;\n}", "function validateSpecial($string)\n\t\t{\n\t\t\t$specials=\tarray(\"!\",\"@\",\"#\",\"$\",\"%\",\"^\",\"&\",\"*\",\"(\",\")\",\"_\",\"-\",\"=\",\"+\",\"'\",\"\\\"\",\".\",\",\",\":\",\";\");\n\t\t\t$string\t=\ttrim($string);\n\t\t\t$count\t=\t0;\n\t\t\tfor($i=0;$i<strlen($string);$i++){\n\t\t\t\tif(in_array($string[$i],$specials)){\n\t\t\t\t\t$count++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif($count>0){\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 static function hasChars($str, $charlist) {}", "function check_for_sonderziechen($strLike, $sonderzeichen) {\r\n\tif (\"?\" === $sonderzeichen) {\r\n\t\treturn preg_match(\"/.{0,}[\\?]{1,}.{0,}/\", $strLike);;\r\n\t}elseif (\"*\" === $sonderzeichen){\r\n\t\treturn preg_match(\"/.{0,}[\\*]{1,}.{0,}/\", $strLike);\r\n\t}elseif (\"%\" === $sonderzeichen){\r\n\t\treturn preg_match(\"/.{0,}[\\%]{1,}.{0,}/\", $strLike);\r\n\t}elseif (\"_\" === $sonderzeichen){\r\n\t\treturn preg_match(\"/.{0,}[\\_]{1,}.{0,}/\", $strLike);\r\n\t}else{\r\n\t\treturn preg_match(\"/.{0,}[\\*]{1,}.{0,}|.{0,}[\\?]{1,}.{0,}/\", $strLike);\r\n\t}\r\n}", "function isPostcodeValid($postcode)\n{\n //remove all whitespace\n $postcode = preg_replace('/\\s/', '', $postcode);\n \n //make uppercase\n $postcode = strtoupper($postcode);\n \n if(preg_match(\"/^[A-Z]{1,2}[0-9]{2,3}[A-Z]{2}$/\",$postcode)\n || preg_match(\"/^[A-Z]{1,2}[0-9]{1}[A-Z]{1}[0-9]{1}[A-Z]{2}$/\",$postcode)\n || preg_match(\"/^GIR0[A-Z]{2}$/\",$postcode))\n {\n return true;\n }\n else {\n return false;\n }\n}", "function is_escape($char)\n{\n\tif ($char === \"\\\\\" || $char === \"^\" || $char === \"$\" || $char === \"[\" || $char === \"]\" || $char === \"{\" || $char === \"}\" || $char === \"?\" || $char === \"~\")\n\t\treturn true;\n\treturn false;\n}", "function containsBadCharacters($string) {\r\n\tif(preg_match('/[^a-z_\\A-Z\\0-9]/', $string)) {\r\n\t\treturn true;\r\n\t}\r\n\telse {\r\n\t\treturn false;\r\n\t}\r\n}", "function non_karakter($a){\n if(preg_match(\"/^[A-Za-z0-9 -]*$/\",$a)){\n return false;\n }\n return true;\n}", "function aturan19($word)\n {\n if (substr($word, 0, 4) == 'memp' and preg_match('/^[aiuo]/', substr($word, 4, 1))) {\n return true;\n } else {\n return false;\n }\n }", "protected function _has_operator($str) {\n\t\treturn (bool) preg_match('/(<|>|!|=|\\sIS NULL|\\sIS NOT NULL|\\sEXISTS|\\sBETWEEN|\\sLIKE|\\sIN\\s*\\(|\\s)/i', trim($str));\n\t}", "function string_contains_scripting_chars( $p_string ) {\r\n\tif ( ( strstr( $p_string, '<' ) !== false ) || ( strstr( $p_string, '>' ) !== false ) ) {\r\n\t\treturn true;\r\n\t}\r\n\r\n\treturn false;\r\n}", "protected function check_symb()\n {\n $var_regex = \"/^TF@[a-zA-Z_\\-$&%*!?]{1}[a-zA-Z0-9_\\-$&%*!?]*$|^LF@[a-zA-Z_\\-$&%*!?]{1}[a-zA-Z0-9_\\-$&%*!?]*$|^GF@[a-zA-Z_\\-$&%*!?]{1}[a-zA-Z0-9_\\-$&%*!?]*$/\";\n\n $result = preg_match($var_regex, $this->token);\n\n if($result)\n {\n return Instructions::varr;\n }\n\n $val_regex = \"/^int@[-+]?[0-9]+$|^bool@true$|^bool@false$|^string@.*|^nil@nil$/\";\n\n $result = preg_match($val_regex, $this->token);\n\n $this->check_string();\n\n if($result)\n {\n return Instructions::val;\n }\n else\n {\n return false;\n }\n }", "public function testRegistrationValuesContainSpecialCharacters(): void { }", "function specialChar($password)\n{\n $specialChars = array('!', '@', '#', '$', '%', '^', '&', '*', '(', ')');\n foreach ($specialChars as $char) {\n if (strpos($password, $char) != 0) {\n return true;\n }\n }\n return false;\n}", "function buscar($x, $z) {\n $zlong = strlen($z);\n $xlong = strlen($x);\n $w_start = $xlong-$zlong-1;\n //substr devuelve parte de una cadena\n if(substr($x, $xlong-$zlong, $zlong) == $z){\n return \"true\";\n } \n else{\n return \"false\";\n }\n}", "function isCommitValid(string $commit)\n{\n return preg_match(\"/[a-z0-9]{40}/\", $commit);\n}", "public static function isCharacterEncodingValid(string $name): bool;", "protected static function _escapeChar($matches) {}", "function mycheck_phone( $string ) {\n if ( preg_match( '/^[+]?([\\d]{0,3})?[\\(\\.\\-\\s]?([\\d]{3})[\\)\\.\\-\\s]*([\\d]{3})[\\.\\-\\s]?([\\d]{4})$/', $string ) ) {\n return TRUE;\n } else {\n return FALSE;\n }\n}", "function verifyAlphaNum ($testString)\n\t{\n return (preg_match(\"/^([[:alnum:]]|-|\\.| |')+$/\", $testString));\n }", "function _validateDliteral($dliteral)\n {\n return !preg_match('/(.)[][\\x0D\\\\\\\\]/', $dliteral, $matches) && $matches[1] != '\\\\';\n }", "function checkPostcode(&$toCheck) {\n\t$alpha1 = \"[abcdefghijklmnoprstuwyz]\"; // Character 1\n\t$alpha2 = \"[abcdefghklmnopqrstuvwxy]\"; // Character 2\n\t$alpha3 = \"[abcdefghjkpmnrstuvwxy]\"; // Character 3\n\t$alpha4 = \"[abehmnprvwxy]\"; // Character 4\n\t$alpha5 = \"[abdefghjlnpqrstuwxyz]\"; // Character 5\n\t// Expression for postcodes: AN NAA, ANN NAA, AAN NAA, and AANN NAA with a space\n\t$pcexp[0] = '/^(' . $alpha1 . '{1}' . $alpha2 . '{0,1}[0-9]{1,2})([[:space:]]{0,})([0-9]{1}' . $alpha5 . '{2})$/';\n\n\t// Expression for postcodes: ANA NAA\n\t$pcexp[1] = '/^(' . $alpha1 . '{1}[0-9]{1}' . $alpha3 . '{1})([[:space:]]{0,})([0-9]{1}' . $alpha5 . '{2})$/';\n\n\t// Expression for postcodes: AANA NAA\n\t$pcexp[2] = '/^(' . $alpha1 . '{1}' . $alpha2 . '{1}[0-9]{1}' . $alpha4 . ')([[:space:]]{0,})([0-9]{1}' . $alpha5 . '{2})$/';\n\n\t// Exception for the special postcode GIR 0AA\n\t$pcexp[3] = '/^(gir)(0aa)$/';\n\n\t// Standard BFPO numbers\n\t$pcexp[4] = '/^(bfpo)([0-9]{1,4})$/';\n\n\t// c/o BFPO numbers\n\t$pcexp[5] = '/^(bfpo)(c\\/o[0-9]{1,3})$/';\n\n\t// Overseas Territories\n\t$pcexp[6] = '/^([a-z]{4})(1zz)$/';\n\n\t// Load up the string to check, converting into lowercase\n\t$postcode = strtolower($toCheck);\n\n\t// Assume we are not going to find a valid postcode\n\t$valid = false;\n\n\t// Check the string against the six types of postcodes\n\tforeach ($pcexp as $regexp) {\n\t\tif (preg_match($regexp, $postcode, $matches)) {\n\n\t\t\t// Load new postcode back into the form element\n\t\t\t$postcode = strtoupper($matches[1] . ' ' . $matches [3]);\n\n\t\t\t// Take account of the special BFPO c/o format\n\t\t\t$postcode = str_replace('C\\/O', 'c/o ', $postcode);\n\n\t\t\t// Remember that we have found that the code is valid and break from loop\n\t\t\t$valid = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return with the reformatted valid postcode in uppercase if the postcode was\n\t// valid\n\tif ($valid) {\n\t\t$toCheck = $postcode;\n\t\t$data['post_code'] = $postcode;\n\t\t$_POST['post_code'] = $postcode;\n\t\treturn true;\n\t} else\n\t\treturn false;\n}", "public function testRegexResult1()\n {\n $this->assertEquals(Str::regexResult('/([\\w]+)/', 'foo bar', 0), ['foo', 'bar']);\n }", "private function isSquareBracket()\n {\n if ($this->opener === $this->closer) {\n // Parse error (unclosed bracket) or live coding. Bow out.\n return \\true;\n }\n // Check if this is a bracket we need to examine or a mistokenization.\n return $this->isShortArrayBracket() === \\false;\n }", "public function checkSpecialCharacter($value)\n {\n $illegal = \"#$%^&*()+=-[]';,./{}|:<>?~\";\n // 1: ko có chứa ký tự đặc biệt\n return (false === strpbrk($value, $illegal)) ? 1 : 0;\n }", "function checkForB($old){\n //TODO rozsirenie NQS\n /*\n if (strpos($old, '++') !== false)\n error(\"Chyba v regularnom vyraze\", 4);\n if (strpos($old, '*+') !== false)\n error(\"Chyba v regularnom vyraze\", 4);\n if (strpos($old, '+*') !== false)\n error(\"Chyba v regularnom vyraze\", 4);\n if (strpos($old, '**') !== false)\n error(\"Chyba v regularnom vyraze\", 4);\n */\n $old = preg_replace('/(\\+*\\*+\\+*)+/', '*', $old);\n $old = preg_replace('/(\\\\++)/', '+', $old);\n return $old;\n\n }", "function alphanumeric_space($str)\n\t{\t\t\n\t\t$this->CI->form_validation->set_message('alphanumeric_space', \"El campo %s debe contener una combinaci&oacute;n de caracteres alfanum&eacute;ricos y espacios.\");\n\t\treturn (bool) preg_match(\"/(^[a-zA-Z0-9\\xF1\\xD1\\sñÑ]+$)|^$/\", $str);\n\t}", "function validInfo($info)\r\n{\r\n return !empty($info) //&& ctype_alpha($name)\r\n ;\r\n}", "function rawpheno_valid_trait_format($trait) {\n $is_valid = TRUE;\n $trait = trim($trait);\n // Test if the trait uses parenthesis.\n // ( and ) indicate that unit is supplied with the trait name,\n // otherwise, ignore this check (e.g. comments)\n if (preg_match('/[(|)]/', $trait) === 1 && $trait != 'Lodging (Scale: 1-5) upright - lodged') {\n // With these characters present, test if the format is trait name (unit).\n\n // Pattern: first string can be any chars but ( and ) followed by 0 or more space then 1 ( then any chars and )\n // plus optional any chars but ( and ) as the end of string.\n $is_valid = (preg_match('/\\A[^()]+\\s*\\({1}[^)(]+\\)[^)(]*\\z/i', $trait) === 1) ? TRUE : FALSE;\n }\n\n return $is_valid;\n}", "function find_special($string){\r\n\t$string = utf8_decode($string);\r\n\tfor($i = 0; $i < strlen($string); $i++){\r\n\t\t$o = ord(substr($string, $i, 1));\r\n\t\tif($o >= 192 && $o <= 255){\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t}\r\n\treturn FALSE;\r\n}", "static function checkNames($input)\r\n {\r\n if (preg_match('/^[\\w\\W][\\w\\W]{1,20}$/', $input)) {\r\n return true; //Illegal Character found!\r\n } else {\r\n echo PageBuilder::printError(\"Please enter alphabets only in name fields.\");\r\n return false;\r\n }\r\n }", "public function hasOperator(string $token): bool;", "function checkMultiple($name)\n\t{\n\t\t$name1 = strlen($name);\n\t\t$name2 = mb_strlen($name);\n\t\tif ($name1!=$name2)\n\t\t{\n\t\t\techo \"True\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"False\";\n\t\t}\n\t}", "function validar_dni($dni){\n $letra = substr($dni, -1);\n $numeros = substr($dni, 0, -1);\n if ( substr(\"TRWAGMYFPDXBNJZSQVHLCKE\", $numeros%23, 1) == $letra && strlen($letra) == 1 && strlen ($numeros) == 8 ){\n echo 'valido';\n }else{\n echo 'no valido';\n }\n}", "function hasSpecialCharacters( $string ) {\n return preg_match('/[^a-zA-Z\\d]/', $string);\n}", "function valid_input($myinput, $good_input) {\n if (preg_match(\"/$good_input/\", $myinput, $regs)) {\n return true;\n }\n else {\n return false;\n }\n}", "function valid_input($myinput, $good_input) {\n if (preg_match(\"/$good_input/\", $myinput, $regs)) {\n return true;\n }\n else {\n return false;\n }\n}" ]
[ "0.6375523", "0.62695706", "0.5993317", "0.59751755", "0.5872149", "0.58387923", "0.5814791", "0.57946444", "0.57855535", "0.57797015", "0.5694149", "0.5680376", "0.5659688", "0.5654301", "0.56273216", "0.56207126", "0.5612031", "0.5609077", "0.55909073", "0.55811775", "0.5574043", "0.55697924", "0.554843", "0.553726", "0.55347353", "0.5532378", "0.5516824", "0.5512663", "0.54808193", "0.54701245", "0.54677916", "0.545947", "0.544533", "0.54446065", "0.5409547", "0.5405019", "0.5402049", "0.5377599", "0.5372693", "0.5326817", "0.5307039", "0.5297178", "0.5294854", "0.52749544", "0.5274944", "0.5270687", "0.526513", "0.5264529", "0.5209739", "0.52084965", "0.52029", "0.5202387", "0.5196428", "0.51851285", "0.5184575", "0.51821464", "0.51788676", "0.51784563", "0.5174297", "0.5165868", "0.516503", "0.51615274", "0.51564497", "0.5151444", "0.5150147", "0.51449746", "0.51446927", "0.5143519", "0.5141965", "0.513965", "0.51338136", "0.51297647", "0.5128506", "0.5107428", "0.5100166", "0.5097683", "0.50965375", "0.50957453", "0.509536", "0.50909007", "0.5066374", "0.50636977", "0.50588447", "0.5046029", "0.50357866", "0.50343895", "0.50310445", "0.5028427", "0.501904", "0.5013995", "0.5012409", "0.50069", "0.50038457", "0.49987864", "0.49982256", "0.49956325", "0.49893433", "0.498887", "0.4988284", "0.4988284" ]
0.60404205
2
Increments by 1 the number of assertions
public function incAssertions() { $this->assertions += 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function assertionCount(/* ... */)\n {\n return $this->_assertionCount;\n }", "#[@test]\n public function incActualCalls_increasesBy1() {\n $this->sut->incActualCalls();\n $this->assertEquals(1, $this->sut->getActualCalls());\n }", "public function incrementFailures(): bool;", "public function testIncrement()\n {\n $this->ascendingSequence->setIncrement(1);\n $increment = $this->ascendingSequence->getIncrement();\n $this->assertEquals(1, $increment);\n }", "public function testQuarantineCount()\n {\n\n }", "public function incActualCalls() {\n $this->actualCalls+= 1;\n }", "public function testNextCounter()\n {\n $next = $this->nextCounter();\n $this->assertInstanceOf(InvokedAtIndex::class, $next);\n }", "public function increment() {\n $this->countAnswered++;\n }", "public function incrementErrorCount();", "private function increaseCounter($counterName){\n\t\t$className = $this->currentTest->getDeclaringClass()->getName();\n\t\t$methodName = $this->currentTest->getName();\n\t\t$this->assertions[$className][$methodName][$counterName] += 1;\n\t}", "public function addAssertions($assertions) {\n $total = $this->getAssertions() + $assertions;\n $this->setAssertions($total);\n }", "public function next_step() {\r\n\t\t$this->step ++;\r\n\t}", "function test0()\n {\n $this->assertTrue(true);\n }", "public function testAssertExactlyNumElement(): void\n {\n $element = $this->createMock(NodeElement::class);\n\n $page = $this->createMock(DocumentElement::class);\n $page->expects($this->once())->method('findAll')->with($this->equalTo('css'), $this->equalTo('.foo'))->willReturn([$element, $element]);\n\n $session = $this->createMock(Session::class);\n $session->expects($this->once())->method('getPage')->willReturn($page);\n\n $trait = $this->getExtraWebAssertMock();\n $trait->expects($this->once())->method('getSession')->willReturn($session);\n\n $trait->assertExactlyNumElement(2, '.foo'); // @phpstan-ignore-line\n }", "public function testCount()\n\t{\n\t\t$this->assertEquals(3, count($this->instance));\n\t}", "public function testCasePassed() { PunitAssert::assertEquals(1, 1); }", "function atTestEnd($test_method, &$test) {\n foreach ($this->expected_counts as $method => $expectation) {\n $test->assert($expectation, $this->getCallCount($method));\n }\n foreach ($this->max_counts as $method => $expectation) {\n if ($expectation->test($this->getCallCount($method))) {\n $test->assert($expectation, $this->getCallCount($method));\n }\n }\n }", "protected function pass()\n {\n $this->assertTrue(true);\n }", "public function testCountersDontPersist2()\n {\n $next = $this->nextCounter();\n $this->assertSame('invoked at sequence index 0', $next->toString());\n }", "public function test_do_action_several_times_and_count() {\n $hook = rand_str();\n $this->assertSame( 0, yourls_did_action( $hook ) );\n\n $times = mt_rand( 5, 15 );\n for ( $i = 1; $i <= $times; $i++ ) {\n yourls_do_action( $hook );\n }\n\n $this->assertSame( $times, yourls_did_action( $hook ) );\n\t}", "public function testTimes() {\n\t\t$function = function() {\n\t\t\tstatic $n = null;\n\t\t\tif (is_null($n)) {\n\t\t\t\t$n = 1;\n\t\t\t} else {\n\t\t\t\t++$n;\n\t\t\t}\n\t\t\treturn $n;\n\t\t};\n\t\t$result = _::times(5, $function);\n\t\t$this->assertEquals(array(1, 2, 3, 4, 5), $result);\n\t}", "public function runBare()\n {\n $e = null;\n ha::resetCount();\n\n try {\n parent::runBare();\n } catch (\\Exception $e) { }\n\n $this->addToAssertionCount(ha::getCount());\n\n if ($e !== null) {\n throw $e;\n }\n }", "public function increaseFailedAttemptsCount()\n {\n $this->failedAttemptsCount++;\n }", "#[@test]\n public function canRepeat_isTrue_withRepeatMinus1() {\n $this->sut->setRepeat(-1);\n\n $this->assertTrue($this->sut->canRepeat());\n $this->sut->incActualCalls();\n $this->assertTrue($this->sut->canRepeat());\n $this->sut->incActualCalls();\n $this->assertTrue($this->sut->canRepeat());\n $this->sut->incActualCalls();\n $this->assertTrue($this->sut->canRepeat());\n $this->sut->incActualCalls();\n }", "public function test_validate_deposit_count()\n {\n $deposit = $this->obj->validate_count(1);\n $resp = $this->obj->validate_deposit_count();\n if($deposit < 4){\n $this->assertTrue($resp);\n }else{\n $this->assertFalse($resp);\n }\n }", "public function increment() {\n\t\t$this->amount++;\n\t}", "public function testRegon5()\n{\n\n // Traversed conditions\n // for (...) == true (line 40)\n // for (...) == false (line 40)\n // for (...) == false (line 44)\n // if ($checksum == 10) == true (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testEntryCount()\n {\n //TODO feeds implementing ArrayAccess would be helpful here\n $entryCount = 0;\n foreach ($this->eventFeed as $entry) {\n $entryCount++;\n }\n $this->assertEquals(7, $entryCount);\n $this->assertEquals($entryCount, $this->eventFeed->totalResults->text);\n }", "public function test_validate_withdraw_count()\n {\n $withdraw = $this->obj->validate_count(2);\n $resp = $this->obj->validate_withdraw_count();\n if($withdraw < 3){\n $this->assertTrue($resp);\n }else{\n $this->assertFalse($resp);\n }\n }", "public static function counter() {}", "#[@test]\n public function identity() {\n $this->createAutoIncrementTable('unittest_ai'); \n $this->assertEquals(1, $this->db()->insert('into unittest_ai (username) values (\"kiesel\")'));\n $first= $this->db()->identity('unittest_ai_pk_seq');\n \n $this->assertEquals(1, $this->db()->insert('into unittest_ai (username) values (\"kiesel\")'));\n $this->assertEquals($first+ 1, $this->db()->identity('unittest_ai_pk_seq'));\n }", "#[@test]\n public function repeat_isMinus1_byDefault() {\n $this->assertEquals(-1, $this->sut->getRepeat());\n }", "public function testGetBatchesCount()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function countIterators()\n {\n }", "public function testCount()\n {\n $struct = $this->_newStruct();\n $actual = count($struct);\n $expect = 4;\n $this->assertSame($actual, $expect);\n }", "public function testRegon3()\n{\n\n // Traversed conditions\n // for (...) == false (line 40)\n // for (...) == true (line 44)\n // for (...) == false (line 44)\n // if ($checksum == 10) == true (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testRegon4()\n{\n\n // Traversed conditions\n // for (...) == true (line 40)\n // for (...) == false (line 40)\n // for (...) == false (line 44)\n // if ($checksum == 10) == false (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function incrementStripeAttempts()\n {\n $this->stripe_attempts += 1;\n $this->save();\n }", "public function testRegon1()\n{\n\n // Traversed conditions\n // for (...) == false (line 40)\n // for (...) == false (line 44)\n // if ($checksum == 10) == true (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testRegon6()\n{\n\n // Traversed conditions\n // for (...) == true (line 40)\n // for (...) == false (line 40)\n // for (...) == true (line 44)\n // for (...) == false (line 44)\n // if ($checksum == 10) == false (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testCountersDontPersist()\n {\n $next = $this->nextCounter();\n $this->assertSame('invoked at sequence index 0', $next->toString());\n }", "function testTabindexIncrement() {\n\t\t$this->assertEqual($this->helper->tabindex(), 1);\n\t\t$this->assertEqual($this->helper->tabindex(), 2);\n\t\t$this->assertEqual($this->helper->tabindex(), 3);\n\t}", "public function testAssertAtLeastNumElements(): void\n {\n $element = $this->createMock(NodeElement::class);\n\n $page = $this->createMock(DocumentElement::class);\n $page->expects($this->once())->method('findAll')->with($this->equalTo('css'), $this->equalTo('.foo'))->willReturn([$element, $element, $element]);\n\n $session = $this->createMock(Session::class);\n $session->expects($this->once())->method('getPage')->willReturn($page);\n\n $trait = $this->getExtraWebAssertMock();\n $trait->expects($this->once())->method('getSession')->willReturn($session);\n\n $trait->assertAtLeastNumElements(2, '.foo'); // @phpstan-ignore-line\n }", "public function testStartNextTurn()\n {\n $this->game->startNextTurn();\n $gamestate = $this->game->getGamestate();\n\n $exp = 1;\n $res = $gamestate[\"turnCounter\"];\n $this->assertEquals($exp, $res);\n\n $exp = 0;\n $res = $gamestate[\"currentPoints\"];\n $this->assertEquals($exp, $res);\n\n $exp = false;\n $res = $gamestate[\"turnIsOver\"];\n $this->assertEquals($exp, $res);\n\n $exp = $this->game->getPlayer($gamestate[\"turnCounter\"]);\n $res = $gamestate[\"active\"];\n $this->assertEquals($exp, $res);\n\n $this->game->startNextTurn();\n $gamestate = $this->game->getGamestate();\n\n $exp = 0;\n $res = $gamestate[\"turnCounter\"];\n $this->assertEquals($exp, $res);\n }", "public function testAttempts0()\n{\n\n $actual = $this->sqsJob->attempts();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testRegon7()\n{\n\n // Traversed conditions\n // for (...) == true (line 40)\n // for (...) == false (line 40)\n // for (...) == true (line 44)\n // for (...) == false (line 44)\n // if ($checksum == 10) == true (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testRegon0()\n{\n\n // Traversed conditions\n // for (...) == false (line 40)\n // for (...) == false (line 44)\n // if ($checksum == 10) == false (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function increment()\n {\n $this->record->attempts++;\n\n return $this->record->attempts;\n }", "#[@test]\n public function canRepeat_isTrueOnce_ByDefault() {\n $this->sut->setRepeat(1);\n $this->assertTrue($this->sut->canRepeat());\n $this->sut->incActualCalls();\n $this->assertFalse($this->sut->canRepeat());\n }", "public function testThis(){\n $this->assertSame(2, 1+1);\n }", "protected function markTestAsPassed()\n {\n $this->assertTrue(true, 'Test case did not throw an exception and passed.');\n }", "public function testAssertExactlyNumElementTooMuch(): void\n {\n $element = $this->createMock(NodeElement::class);\n\n $page = $this->createMock(DocumentElement::class);\n $page->expects($this->once())->method('findAll')->with($this->equalTo('css'), $this->equalTo('.foo'))->willReturn([$element, $element, $element]);\n\n $session = $this->createMock(Session::class);\n $session->expects($this->once())->method('getPage')->willReturn($page);\n\n $trait = $this->getExtraWebAssertMock();\n $trait->expects($this->once())->method('getSession')->willReturn($session);\n\n $this->expectException(\\Exception::class);\n $this->expectExceptionMessage(\"3 \\\".foo\\\" found on the page, but should find 2.\");\n\n $trait->assertExactlyNumElement(2, '.foo'); // @phpstan-ignore-line\n }", "public function proceededAt()\n {\n }", "public function test_setup_assert() {\n $this->assertTrue($this->testassertexecuted);\n $this->testassertexecuted = false;\n }", "public function runTestSequence ()\n {\n $this->numberOfAssertions = 0;\n \n try {\n // Run setup\n $this->setUp();\n \n // Run test\n $this->result = $this->runtest();\n \n $this->status = 0; // Passed\n } // Catch for incomplete test\n catch (CIUnit_Framework_Exception_IncompleteTest $e) {\n $this->status = 2; // Incomplete\n $this->statusMessage = $e->getMessage();\n } \n\n // Catch for skipped test\n catch (CIUnit_Framework_Exception_SkippedTest $e) {\n $this->status = 1; // Skipped\n $this->statusMessage = $e->getMessage();\n } \n\n // Catch for Assertion Failure\n catch (CIUnit_Framework_Exception_AssertionFailed $e) {\n $this->status = 3; // Failure\n $this->statusMessage = $e->getMessage();\n } // Catch for Error\n catch (Exception $e) {\n $this->status = 4; // Error\n $this->statusMessage = $e->getMessage();\n }\n \n // revert fictures\n try {\n $this->tearDown();\n } // catch any errors\n catch (Exception $error) {\n if (! isset($e))\n $e = $error;\n }\n \n // If there is exception caught throw it\n if (isset($e))\n throw $e;\n }", "public function testRegon2()\n{\n\n // Traversed conditions\n // for (...) == false (line 40)\n // for (...) == true (line 44)\n // for (...) == false (line 44)\n // if ($checksum == 10) == false (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "#[@test]\n public function canRepeat_withNumericRepeat2_TrueTwice() {\n $this->sut->setRepeat(2);\n $this->assertTrue($this->sut->canRepeat());\n $this->sut->incActualCalls();\n $this->assertTrue($this->sut->canRepeat());\n $this->sut->incActualCalls();\n $this->assertFalse($this->sut->canRepeat());\n }", "public function testDataInsertedCntA()\n {\n $fixture = new Mad_Test_Fixture_Base($this->_conn, 'unit_tests');\n $fixture->load();\n\n $this->assertEquals('6', $this->_countRecords());\n }", "public function passedAssertions(/* ... */)\n {\n return $this->_assertionPass;\n }", "public function testCycle()\n {\n $this->ascendingSequence->setCycle(true);\n $cycle = $this->ascendingSequence->isCycle(true);\n $this->assertTrue($cycle);\n }", "function iterateInstruction(){\n $this->instructionNumber += 1;\n }", "protected function childAssertion()\n {\n $this->reloadBFoos();\n\n $position = 1;\n foreach($this->bfoos as $bfoo)\n {\n Assert::eq($position, $bfoo->getListifyPosition());\n $position++;\n }\n }", "public function count(): int\n {\n return count($this->testCases);\n }", "public function pass($msg) {\n $this->tests++;\n $this->pass++;\n echo \"[PASS] {$msg}\\n\";\n }", "function myTest33( ) {\n global $a; // visi veiksmai zemiau eilutese\n $a++;\n}", "public function next(): void\n {\n $this->_index++;\n }", "public function increase()\n {\n $reservedIds = [];\n if ($this->reserved !== null) {\n $reservedIds = explode(',', $this->reserved);\n }\n $this->next++;\n while (in_array($this->next, $reservedIds)) {\n $this->next++;\n }\n $this->save();\n }", "public function testAssertAtLeastNumElementsExactly(): void\n {\n $element = $this->createMock(NodeElement::class);\n\n $page = $this->createMock(DocumentElement::class);\n $page->expects($this->once())->method('findAll')->with($this->equalTo('css'), $this->equalTo('.foo'))->willReturn([$element, $element]);\n\n $session = $this->createMock(Session::class);\n $session->expects($this->once())->method('getPage')->willReturn($page);\n\n $trait = $this->getExtraWebAssertMock();\n $trait->expects($this->once())->method('getSession')->willReturn($session);\n\n $trait->assertAtLeastNumElements(2, '.foo'); // @phpstan-ignore-line\n }", "public function testCount()\n {\n //$this->assertTrue(true);\n $user = User::all();\n $count= $user->count();\n $this->assertEquals(50,$count);\n }", "public function testIncrementing()\n {\n $category = new Category(); \n $this->assertFalse($category->incrementing);\n }", "public function testCheckDigitIncrements($password, $expected)\n {\n $output = $this->VenusFuelDepot->CheckDigitIncrements($password);\n $this->assertEquals(\n $expected,\n $output,\n \"When the {$password} contains same or incremental digits return {$password}\"\n );\n }", "public function incrementRowsSkipped(): void\n {\n $this->rowsSkipped++;\n }", "function test_countRepeats_oneLetter()\n {\n $test_Repeat = new RepeatCounter;\n $input1 = 'a';\n $input2 = 'a';\n\n $result = $test_Repeat->countRepeats($input1, $input2);\n\n $this->assertEquals(1, $result);\n }", "function Step1_IntegrityHard() { return( $this->stepTest( 'integ_') ); }", "function ydintIncr($incr)\n{\n\treturn $incr+1;\n}", "public function testCountReturnsInt(): void\n {\n self::assertSame(0, $this->sut->count());\n \n $this->sut->addParameterDeclaration(\n ConceptDoubleBuilder::createParameterDeclaration($this)->getDouble()\n );\n self::assertSame(1, $this->sut->count());\n \n $this->sut->addParameterDeclaration(\n ConceptDoubleBuilder::createParameterDeclaration($this)->getDouble()\n );\n self::assertSame(2, $this->sut->count());\n \n $this->sut->addParameterDeclaration(\n ConceptDoubleBuilder::createParameterDeclaration($this)->getDouble()\n );\n self::assertSame(3, $this->sut->count());\n }", "public function incrementImportCount();", "public function benchThisWillBeSkipped()\n {\n }", "public function testCount()\n {\n $this->assertEquals(1, $this->container->count());\n }", "public function next(){\n $this->index ++;\n }", "private function next()\n {\n $this->m++;\n $this->init();\n }", "public function testExample()\n {\n $this->assertTrue(True);\n $arr=[];\n $this->assertEmpty($arr);\n $msg=\"Hello\";\n $this->assertEquals('Hello',$msg);\n $n= random_int(0,100);\n $this->assertLessThan(100,$n);\n }", "public function testNext()\n {\n $this->collection->next();\n $this->assertEquals(1, $this->collection->key());\n $this->assertEquals(2, $this->collection->current());\n\n $this->collection->last();\n $this->collection->next();\n $this->assertNull($this->collection->key());\n $this->assertFalse($this->collection->current());\n }", "public function testGetHistoricBatchesCount()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function it_should_be_countable()\n {\n $this->count()->shouldBeInt();\n $this->count()->shouldBe(0);\n }", "public function count()\n {\n return $this->timesRepeat * count($this->test);\n }", "public function testPingTreeResetCount()\n {\n }", "public function testRuns()\n {\n $this->assertTrue(true);\n }", "public function testRowsCantBeInsertedOnceDone()\n {\n $this->expectException(RuntimeException::class);\n\n $batch_insert = $this->connection->batchInsert('writers', ['name', 'birthday'], 350);\n\n $batch_insert->insert('Leo Tolstoy', new DateTime('1828-09-09'));\n $batch_insert->insert('Alexander Pushkin', new DateTime('1799-06-06'));\n\n $this->assertEquals(0, $this->connection->executeFirstCell('SELECT COUNT(`id`) AS \"row_count\" FROM `writers`'));\n\n $batch_insert->done();\n\n $this->assertEquals(2, $this->connection->executeFirstCell('SELECT COUNT(`id`) AS \"row_count\" FROM `writers`'));\n\n $batch_insert->insert('Fyodor Dostoyevsky', new DateTime('1821-11-11'));\n }", "public static function PassingTests(){\r\n\t\t\r\n\t\t$check = $val = \"abc is def\";\r\n\t\tTestExecuter::AssertAreEqual($check, $val);\r\n\r\n\t\t$check = $val = 157382;\r\n\t\tTestExecuter::AssertAreEqual($check, $val);\r\n\r\n\t\t$check = $val = (4763 - 324) . \" seconds\";\r\n\t\tTestExecuter::AssertAreEqual($check, $val);\r\n\t}", "public function testRegonLocal5()\n{\n\n // Traversed conditions\n // for (...) == true (line 65)\n // for (...) == false (line 65)\n // for (...) == false (line 69)\n // if ($checksum == 10) == true (line 73)\n\n $actual = $this->company->regonLocal();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testReportsSkillv1reportsbenchcount()\n {\n\n }", "public function testGetGroupCount()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function retryAttempted()\n {\n $this->attempts++;\n }", "public function testAssertExactlyNumElementNotEnough(): void\n {\n $element = $this->createMock(NodeElement::class);\n\n $page = $this->createMock(DocumentElement::class);\n $page->expects($this->once())->method('findAll')->with($this->equalTo('css'), $this->equalTo('.foo'))->willReturn($element);\n\n $session = $this->createMock(Session::class);\n $session->expects($this->once())->method('getPage')->willReturn($page);\n\n $trait = $this->getExtraWebAssertMock();\n $trait->expects($this->once())->method('getSession')->willReturn($session);\n\n $this->expectException(\\Exception::class);\n $this->expectExceptionMessage(\"1 \\\".foo\\\" found on the page, but should find 2.\");\n\n $trait->assertExactlyNumElement(2, '.foo'); // @phpstan-ignore-line\n }", "public function count()\n {\n return ++$this->count;\n }", "public function count()\n {\n return ++$this->count;\n }", "public function count()\n {\n return ++$this->count;\n }", "public function count()\n {\n return ++$this->count;\n }", "public function testCountRecords()\n {\n\n $exhibit = $this->_exhibit();\n $record1 = $this->_record($exhibit);\n $record2 = $this->_record($exhibit);\n $record3 = $this->_record($exhibit);\n\n // Limit to 2 records.\n $result = $this->_records->queryRecords(array(\n 'exhibit_id' => $exhibit->id, 'limit' => 2, 'offset' => 0\n ));\n\n $this->assertEquals(3, $result['numFound']);\n\n }" ]
[ "0.6779922", "0.6744223", "0.6716259", "0.6409548", "0.6282011", "0.6221124", "0.62100166", "0.61761993", "0.61443913", "0.60896987", "0.588711", "0.5808428", "0.57891285", "0.57549226", "0.57466", "0.5738516", "0.56915593", "0.5687001", "0.56814003", "0.5667603", "0.56671506", "0.565981", "0.56581324", "0.5655283", "0.56487954", "0.5604369", "0.55843925", "0.55556726", "0.5554657", "0.55523247", "0.55186963", "0.55120075", "0.55085766", "0.55083877", "0.5500575", "0.5497287", "0.54889977", "0.54885554", "0.54846126", "0.54827905", "0.54817414", "0.5481052", "0.5474117", "0.54674846", "0.5463803", "0.5462323", "0.54463375", "0.5422132", "0.5421524", "0.54171264", "0.5412667", "0.5401685", "0.5401552", "0.53962386", "0.53923804", "0.53870934", "0.5383527", "0.53772867", "0.5358207", "0.5345249", "0.53423405", "0.53368413", "0.5335833", "0.53308576", "0.5322909", "0.53214025", "0.53194284", "0.5308852", "0.52912056", "0.5290389", "0.52844775", "0.5279179", "0.5260802", "0.5253008", "0.52454615", "0.5239731", "0.5231908", "0.5230875", "0.5224829", "0.5206047", "0.52024263", "0.5201123", "0.5200665", "0.51997656", "0.5186452", "0.5186281", "0.5184295", "0.51791734", "0.5177694", "0.51741326", "0.5169671", "0.5169481", "0.51625055", "0.51599324", "0.51594007", "0.5148152", "0.5148152", "0.5148152", "0.5148152", "0.5142392" ]
0.84521425
0
prints out the necessary content of this page
public function displayContent(){ include('/includes/homepage.inc.php'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function printContent()\t{\n\n\t\t$this->content .= $this->doc->endPage();\n\t\techo $this->content;\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() {}", "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 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\t\t\t$this->content.=$this->doc->endPage();\n\t\t\t\t\techo $this->content;\n\t\t\t\t}", "function printContent()\t{\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}", "public function printHtmlPage(){\n\n // Change the content headers to that of HTML\n header('Content-type: text/html; charset=utf8');\n\n // Include the HTML wrapper and collect output\n ob_start();\n require_once(LEGACY_MMRPG_ROOT_DIR.'markup/html-wrapper.php');\n $html_markup = ob_get_clean();\n\n // Print out the collected markup and exit\n echo($html_markup);\n exit();\n\n }", "public function printPage()\n {\n $this->printDoctype();\n $this->printOpenHtml();\n $this->printHead(' ');\n $this->printBody(' ');\n $this->printCloseHtml();\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}", "public function printContent()\n {\n echo $this->content;\n }", "function printContent()\t{\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\t\techo $this->content;\n\t}", "protected function displayContent()\n\t{\n\t\t$html = \"\\t\\t\\t\\t\".'<div id=\"content\">'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\".'<h2 class=\"title\">'.$this->pageInfo['pageHeading'].'</h2>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\".'<div class=\"fineprint\">'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'<ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>What information do we collect?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We collect information from you when you register on our site. When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address or phone number. You may, however, visit our site anonymously.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>What do we use your information for?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">Any of the information we collect from you may be used in one of the following ways:<br />\n\t\t\t<strong>To personalize your experience:</strong><br />\n\t\t\tYour information helps us to better respond to your individual needs.<br /> \n\t\t\t<strong>To improve our website:</strong><br />\n\t\t\tWe continually strive to improve our website offerings based on the information and feedback we receive from you.<br /> \n\t\t\t<strong>To improve customer service:</strong><br />\n\t\t\tYour information helps us to more effectively respond to your customer service requests and support needs.<br />\n\t\t\t<strong>To process transactions</strong><br />\n\t\t\tYour information, whether public or private, will not be sold, exchanged, transferred, or given to any other company for any reason whatsoever, without your consent, other than for the express purpose of delivering the purchased product or service requested.<br />\n\t\t\t<strong>To administer a site feature</strong><br />\n\t\t\tThis may include a contest, promotion, survey or other<br />\n\t\t\t<strong>To send periodic emails</strong><br />\n\t\t\tThe email address you provide for order processing, may be used to send you information and updates pertaining to your order, in addition to receiving occasional company news, updates, related product or service information, etc.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>How do we protect your information?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We implement a variety of security measures to maintain the safety of your personal information when you place an order or enter, submit, or access your personal information.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'</ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'<ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Do we use cookies?</li>'.\"\\n\";\t\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We do not use cookies.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Do we disclose any information to outside parties?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information. This does not include trusted third parties who assist us in operating our website, conducting our business, or servicing you, so long as those parties agree to keep this information confidential. We may also release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others rights, property, or safety. However, non-personally identifiable visitor information may be provided to other parties for marketing, advertising, or other uses.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Registered Users</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">All registered users of our site may make any changes to their information at anytime by logging in and going to the \\'Your Account\\' page.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Terms and Conditions</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">Please also visit our Terms and Conditions section establishing the use, disclaimers, and limitations of liability governing the use of our website at <a href=\"index.php?page=terms\">terms and conditions</a></li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Your consent</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">By using our site, you consent to our online privacy policy.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Changes to our Privacy Policy</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">If we decide to change our privacy policy, we will post those changes on this page. This policy was last modified on 7 May 2013</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Contacting us</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">If there are any questions regarding this privacy policy you may <a href=\"index.php?page=contact\">contact us</a></li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'</ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\".'</div><!-- fineprint -->'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\".'</div><!-- home_text -->'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\".'</div><!-- content -->'.\"\\n\";\n\t\treturn $html;\n\t}", "private function printContent()\n {\n $deserialized = $this->getContent();\n var_dump($deserialized);\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 }", "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 }", "private function setupPage ()\n {\n $output = '<!DOCTYPE html><html lang=\"en\"><head>';\n $output .= $this->setCharacterEncoding();\n $output .= $this->setPageTitle();\n $output .= $this->setBasePath();\n $output .= $this->fixHTML5();\n $output .= $this->registerCustomResources();\n $output .= '</head><body>';\n echo $output;\n }", "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 showContents() {\n\t\techo $this -> getContents();\n\t\texit ;\n\t}", "private function setupPage ()\n {\n $output = '<!DOCTYPE html><html lang=\"en\"><head>';\n $output .= $this->setCharacterEncoding();\n $output .= $this->setPageTitle();\n $output .= $this->setBasePath();\n $output .= $this->registerResource('css', $this->cssResource);\n $output .= $this->registerResource('js', $this->jsResource);\n $output .= $this->fixHTML5();\n $output .= '</head><body>';\n echo $output;\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 }", "public function show() {\n $this->buildPage();\n echo $this->_page;\n }", "private function printStartPage() {\n\t\treadfile ( 'html/start.html' );\n\t}", "public function Display()\n\t\t{\n\t\t\techo \"<html>\\n<head>\\n\";\n\t\t\t$this -> DisplayTitle();\n\t\t\t$this -> DisplayKeywords();\n\t\t\t$this -> DisplayStyles();\n\t\t\techo \"</head>\\n<body>\\n\";\n\t\t\t$this -> DisplayHeader();\n\t\t\t$this -> DisplayMenu($this->buttons);\n\t\t\techo $this->content;\n\t\t\t$this -> DisplayFooter();\n\t\t\techo \"</body>\\n</html>\\n\";\n\t\t}", "function MainBodyContent()\n\t{\n\t\t$this->VarDump($this->cat->details);\n\t}", "abstract protected function displayContent();", "public function main()\n {\n // Produce browse-tree:\n $tree = $this->pagetree->getBrowsableTree();\n // Outputting page tree:\n $this->content .= $tree;\n\n $docHeaderButtons = $this->getButtons();\n\n $markers = array(\n 'IMG_RESET' => '',\n 'WORKSPACEINFO' => '',\n 'CONTENT' => $this->content,\n );\n\n // Build the <body> for the module\n $this->content = $this->doc->startPage(\n $this->getLanguageService()->sl(\n 'LLL:EXT:commerce/Resources/Private/Language/locallang_be.xml:mod_orders.navigation_title'\n )\n );\n\n $subparts = array();\n // Build the <body> for the module\n $this->content .= $this->doc->moduleBody(array(), $docHeaderButtons, $markers, $subparts);\n $this->content .= $this->doc->endPage();\n $this->content = $this->doc->insertStylesAndJS($this->content);\n }", "private function printToolHead() {\n\t\t\t$this->page->openBlock('div', 'iw-content');\n\t\t\t$this->page->addInline('p', 'This tool generates reports about wikilinks in one article:');\n\t\t\t$this->page->openBlock('ul');\n\t\t\t$this->page->addInline('li', 'Links from given article which have no backlinks from target article');\n\t\t\t$this->page->addInline('li', 'Backlinks from other articles which have no links from given article');\n\t\t\t$this->page->addInline('li', 'Links from given article with backlinks from other articles');\n\t\t\t$this->page->closeBlock();\n\t\t\t$this->page->addInline('h2', 'Options');\n\t\t\t\n\t\t\t// options\n\t\t\t$optionForm = new HtmlForm('index.php', 'GET');\n\t\t\t$optionForm->addHTML('<table class=\"iw-nostyle\">');\n\t\t\t\n\t\t\t// lang/project\n\t\t\t$optionForm->addHTML('<tr><td>');\n\t\t\t$optionForm->addLabel('lang', 'Project');\n\t\t\t$optionForm->addHTML('</td><td>');\n\t\t\t$optionForm->addInput('lang', $this->par['lang'], '', 7, true);\n\t\t\t$optionForm->addHTML('&nbsp;.&nbsp;');\n\t\t\t$optionForm->addInput('project', $this->par['project'], '', 20, true);\n\t\t\t$optionForm->addHTML('&nbsp;.org</td></tr>');\n\t\t\t\n\t\t\t// page\n\t\t\t$optionForm->addHTML('<tr><td>');\n\t\t\t$optionForm->addLabel('page', 'Page title');\n\t\t\t$optionForm->addHTML('</td><td>');\n\t\t\t$optionForm->addInput('page', $this->par['page'], 'A page title in the main namespace (0)', 0, true);\n\t\t\t$optionForm->addHTML('</td></tr>');\n\t\t\t\n\t\t\t// submit button\n\t\t\t$optionForm->addHTML('<tr><td colspan=\"2\">');\n\t\t\t$optionForm->addButton('submit', 'View page conjunction');\n\t\t\t$optionForm->addHTML('</td></tr>');\n\t\t\t\n\t\t\t$optionForm->addHTML('</table>');\n\t\t\t$optionForm->output();\n\t\t\t\n\t\t\t$this->page->closeBlock();\n\t\t}", "public function print() {\n $output = Util::outputBufferSafe(function() {\n /** @noinspection PhpIncludeInspection */\n include $this->page_info->getSourceAbsolutePath();\n });\n $this->minifier->add($output);\n echo $this->minifier->minify();\n }", "private function pageheader_print() {\n\t\tif (defined('DEBUG_ENABLED') && DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))\n\t\t\tdebug_log('Entered (%%)',129,0,__FILE__,__LINE__,__METHOD__,$fargs);\n\n\t\t# HTML prepage requirements.\n\t\tforeach ($this->_pageheader as $line)\n\t\t\techo $line.\"\\n\";\n\n\t\t# Page Title\n\t\techo '<head>';\n\t\tprintf('<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />');\n\n\t\t$DNs = get_request('dn','REQUEST');\n\t\tif (is_array($DNs))\n\t\t\t$DNs = '';\n\n\t\tif (isset($_SESSION[APPCONFIG]))\n\t\t\tprintf('<title>%s (%s) - %s%s</title>',\n\t\t\t\t$this->_app['title'],\n\t\t\t\tapp_version(),\n\t\t\t\t$DNs ? htmlspecialchars($DNs).' ' : '',\n\t\t\t\t$_SESSION[APPCONFIG]->getValue('appearance','page_title'));\n\t\telse\n\t\t\tprintf('<title>%s - %s</title>',$this->_app['title'],app_version());\n\n\t\techo '<link rel=\"shortcut icon\" href=\"images/favicon.ico\" type=\"image/vnd.microsoft.icon\" />';\n\t\t# Style sheet.\n\t\tprintf('<link type=\"text/css\" rel=\"stylesheet\" href=\"%s\" />',$this->_app['urlcss']);\n\n\t\tif (defined('JSDIR')) {\n\t\t\tprintf('<link type=\"text/css\" rel=\"stylesheet\" media=\"all\" href=\"%sjscalendar/calendar-blue.css\" title=\"blue\" />',JSDIR);\n\t\t\techo \"\\n\";\n\t\t\tprintf('<script type=\"text/javascript\" src=\"%sajax_functions.js\"></script>',JSDIR);\n\t\t\tprintf('<script type=\"text/javascript\" src=\"%sjscalendar/calendar.js\"></script>',JSDIR);\n\t\t\techo \"\\n\";\n\t\t}\n\n\t\t# HTML head requirements.\n\t\tif (is_array($this->_head) && count($this->_head))\n\t\t\tforeach ($this->_head as $line)\n\t\t\t\techo $line.\"\\n\";\n\n\t\techo '</head>';\n\t\techo \"\\n\";\n\t}", "private function printTaskPage() {\n\t\treadfile ( 'html/task.html' );\n\t}", "public function displayPage()\n {\n\n $this->model->checkUserSession();\n $html = $this->displayHeader();\n $html .= $this->displayContent();\n $html .= $this->displayFooter();\n\n return $html;\n }", "public function getInfo()\n {\n ob_start();\n echo '<h3>ForWeb framework Page package</h3>';\n echo '<p>Contain main page rendering functions and database tables:</p>';\n echo '<ul>';\n echo '<li>Pages table</li>';\n echo '<li>Templates table</li>';\n echo '<li>Blocks table</li>';\n echo '<li>Includes table</li>';\n echo '</ul>';\n $out = ob_get_contents();\n ob_end_clean();\n return $out;\n }", "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 }", "public function display()\n {\n return $this->page->output();\n }", "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 }", "public function printHTML()\n {\n\n $html = '<main style=\"margin-top:20px \">\n <div class=\"container-md\">';\n echo $_SESSION['error'];\n $html .= $this->errorHandler();\n\n if ($this->e == null) {\n $html .= $this->htmlFormHead();\n $html .= $this->htmlFavoriteGames();\n $html .= $this->htmlGameTime();\n }\n\n if ($this->e == \"updatePassword\") {\n $html .= $this->htmlFormUpdatePassword();\n }\n\n $html .= \"</div></main> \";\n\n echo $html;\n }", "public function createPage()\n {\n echo $this->output;\n }", "function dumpContents()\r\n {\r\n\r\n $attributes = $this->_getCommonAttributes();\r\n\r\n //TODO [Perez][JLeon] Do we leave this method?\r\n // call the OnShow event if assigned so the Text property can be changed\r\n if ($this->_onshow != null)\r\n {\r\n $this->callEvent('onshow', array());\r\n }\r\n\r\n $avalue = $this->_text;\r\n $avalue=str_replace('\"','&quot;',$avalue);\r\n $type = \"progress\";\r\n if ($this->_type == pbsMeterBar)\r\n $type = \"meter\";\r\n echo \"<$type id=\\\"$this->_name\\\" value=\\\"$avalue\\\" $attributes>$this->_text</$type>\";\r\n\r\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}", "function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}", "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 printContent()\n {\n $this->includeFieldComponent('baseselect');\n }", "abstract protected function view_generatePageContent();", "function main()\n {\n $this->page_id = 113;\n $this->get_text();\n $this->body .= \"<table cellpadding=5 cellspacing=1 border=0 width=\\\"100%\\\">\\n\";\n if (strlen(trim($this->messages[500021])) > 0) {\n $this->body .= \"<tr class=\\\"browse_sellers_main_page_title\\\">\\n\\t<td valign=top height=20>\" . $this->messages[500021] . \"</td>\\n</tr>\\n\";\n }\n if (strlen(trim($this->messages[500022])) > 0) {\n $this->body .= \"<tr class=\\\"browse_sellers_main_page_message\\\">\\n\\t<td valign=top height=20>\" . $this->messages[500022] . \"</td>\\n</tr>\\n\";\n }\n $this->body .= \"<tr>\\n\\t<td valign=top>\\n\\t\";\n if (!$this->browse_main()) {\n $this->browse_error();\n }\n $this->body .= \"</td>\\n</tr>\\n\";\n $this->body .= \"</table>\\n\";\n $this->display_page();\n return true;\n }", "abstract protected function render_page_content(): void;", "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}", "function show() {\n // Abort if empty file\n if($this->oParser->oManager->tsCurDate < 1) {\n return;\n }\n \n // We want to process the output later\n ob_start();\n\n $this->printHeading();\n $this->printDailyMessages();\n $this->printAbsentTeachers();\n $this->printStandInTable();\n $this->printStandInTableFooter();\n\n $str = ob_get_clean();\n #debugPrint($str);\n echo vpBeautifyString($str);\n }", "function printHTML() \n {\n $this->openBlockHeader(\"CASPSR Help &amp; Support\");\n?>\n <table>\n <tr>\n <td>\n <a href=\"https://docs.google.com/document/d/1TqPdFopf5TkQ4uFGPWRfsaxd9zsex4YbDtzDr0NO7bI/edit?hl=en&authkey=CJuapdQO\">CASPSR Observer's Guide</a>\n </td>\n <td>Basic information on the use of CASPSR</td>\n </tr>\n <tr>\n <td>\n <a href=\"http://psrdada.sf.net/support.shtml\" style=\"text-decoration: none\"> <font color=green>PSR</font>DADA Support</a>\n </td>\n <td>To report bugs and/or request features</td>\n </tr>\n </table>\n\n<?\n $this->closeBlock();\n }", "public static function outputPage() {\n\t\tself::phpSetup();\n\t\t// Set the session\n global $clsession;\n $clsession =new SessionV4;\n //--------------------------------------------------------------\n // Exit if the web is closed for maintenance except\n // when the user is the master\n if( self::ISCLOSED && $_SESSION['usr'] != 'master' )\n exit(pageMaintenance::show());\n # --------------------------------------------------------------\n \t# Show the parameters entered with the request\n self::see();\n\t\tif( self::SEEPHPINFO ) phpinfo();\n\t\t# --------------------------------------------------------------\n\t\t# Reset the session if requested\n\t\tif( isset($_POST['reset']) && $_POST['reset'] == 'XRESET')\n\t\t\t$clsession->logout(sessionV4::NOACT);\n # --------------------------------------------------------------\n\t\t# Open the main class of the system\n\t\trequire_once('main.php');\n $clmain=new main;\n $s=$clmain->execute();\n $shses=(singleton::SHOWSESSION ? $clsession->getSession() : '');\n\t\treturn $s.$shses;\n\t}", "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 }", "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 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 }", "public function show()\n {\n require_once BFT_PATH_BASE.DS.'templates'.DS.'html-header.php';\n if ($this->section != 'start' and $this->template != 'infos') require_once BFT_PATH_BASE.DS.'templates'.DS.'box-header.php';\n require_once BFT_PATH_BASE.DS.'templates'.DS.$this->template.'.php';\n if ($this->section != 'start' and $this->template != 'infos') require_once BFT_PATH_BASE.DS.'templates'.DS.'box-footer.php';\n require_once BFT_PATH_BASE.DS.'templates'.DS.'html-footer.php';\n }", "public function displayPage()\n {\n return $this->sBody;\n }", "public function printContent()\n {\n GeneralUtility::logDeprecatedFunction();\n echo $this->moduleTemplate->renderContent();\n }", "public function display() {\r\n\t\t$this->script();\r\n\t\t$this->html();\r\n\t\t\r\n\t}", "public function display_page_contents() {\n\t\tif ( ! $this->upgrader->table_is_ready() ) {\n\t\t\t// Page header.\n\t\t\t$this->display_error_page_header();\n\t\t\treturn;\n\t\t}\n\n\t\t// Get everything that is in the table.\n\t\t$this->table_contents = ( new CRUD( $this->table->get_table_definition() ) )->get( [ '*' ], [], OBJECT_K );\n\n\t\t// Page header.\n\t\t$this->display_page_header();\n\n\t\t// Display buttons to add/delete entries.\n\t\t$this->display_page_actions();\n\n\t\t// Display what is in the table.\n\t\t$this->display_table_contents();\n\t}", "public function printAction() {\r\n $this->_helper->layout->setLayout('default-simple');\r\n //GET PAGE ID AND PAGE OBJECT\r\n $this->view->page_id = $page_id = $this->_getParam('page_id', $this->_getParam('id', null));\r\n $this->view->sitepage = $sitepage = Engine_Api::_()->getItem('sitepage_page', $page_id);\r\n if (empty($sitepage))\r\n return $this->_forwardCustom('notfound', 'error', 'core');\r\n //AUTHORIZATION CHECK FOR PRINTING\r\n $isManageAdmin = Engine_Api::_()->sitepage()->isManageAdmin($sitepage, 'print');\r\n if (empty($isManageAdmin)) {\r\n return $this->_forwardCustom('requireauth', 'error', 'core');\r\n }\r\n\r\n if ($sitepage->category_id != 0)\r\n $this->view->category = Engine_Api::_()->getDbTable('categories', 'sitepage')->getCategory($sitepage->category_id);\r\n\r\n if ($sitepage->subcategory_id != 0)\r\n $this->view->subcategory = Engine_Api::_()->getDbTable('categories', 'sitepage')->getCategory($sitepage->subcategory_id);\r\n\r\n if ($sitepage->subsubcategory_id != 0)\r\n $this->view->subsubcategory = Engine_Api::_()->getDbTable('categories', 'sitepage')->getCategory($sitepage->subsubcategory_id);\r\n }", "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 }", "public function render() {\n\t\t$this->render_page_content();\n\t}", "public function displayContentOverview() {}", "public static function renderContent() {}", "public function writePage()\n\t{\n\t\t$this->SetHeaderMargin(5);\n\t\t$this->SetFooterMargin(30);\n if($this->PageNo() > 1) {\n } else {\n }\n\t\t$this->AddPage('','',true);\n// $t = $this->getCellMargins();\n// var_dump($t);\n $this->setCellPaddings(0,0,0,0);\n\n\t\t$this->writeHTML($this->content, true, false, true, false, '');\n\t}", "public function pageContent()\r\n\t{\r\n\t\t$this->displayList();\r\n\t\t$content = '\r\n<div align=\"center\"><table width=\"60%\" border=\"1\" class=\"infoView\">\r\n <tbody>\r\n <tr>\r\n <th scope=\"col\">Manage a Department</th>\r\n </tr>\r\n \t '.$this->dList.'\r\n </tbody>\r\n</table></div>\r\n\t\t';\r\n\t\treturn $content;\r\n\t}", "function CoursesBodyContent()\n\t{\tif ($this->can_resources)\n\t\t{\techo $this->course->HeaderInfo(), \"<div class='clear'></div>\\n\", $this->resource->InputForm($this->course->id);\n\t\t}\n\t}", "public function print () : void {\r\n echo $this->getTitle(), PHP_EOL, PHP_EOL;\r\n echo $this->getInfo(), PHP_EOL, PHP_EOL;\r\n\r\n foreach ($this->items as $index => $value) {\r\n echo ($index + 1) . '. ' . $value->getText(), PHP_EOL;\r\n }\r\n\r\n echo PHP_EOL;\r\n }", "function body()\n {\n print($this->_body);\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 }" ]
[ "0.7768717", "0.77353793", "0.77353793", "0.77353793", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.7735166", "0.77350867", "0.77350867", "0.77350867", "0.77350867", "0.77350867", "0.7732249", "0.7731941", "0.7731941", "0.7731941", "0.77001554", "0.7690753", "0.7677617", "0.7641991", "0.7568929", "0.7525253", "0.75081486", "0.7504901", "0.7504901", "0.7187971", "0.7154512", "0.71294516", "0.7125518", "0.7080287", "0.7067671", "0.70514375", "0.7049949", "0.7040781", "0.7032598", "0.70156825", "0.70065635", "0.6974623", "0.69391227", "0.69298434", "0.6900052", "0.6895048", "0.6877829", "0.68724805", "0.68696433", "0.6867042", "0.6856766", "0.6854064", "0.6826101", "0.67907506", "0.67872995", "0.67539763", "0.6743362", "0.6739103", "0.6703775", "0.6694155", "0.6684211", "0.66758394", "0.6664698", "0.6653792", "0.6651873", "0.6641952", "0.66419196", "0.66393", "0.6625023", "0.66235334", "0.66092175", "0.6608126", "0.6605851", "0.6584805", "0.6577473", "0.6568433", "0.6558221", "0.65360075", "0.6533249", "0.65275306", "0.6516938", "0.6503203", "0.6482564", "0.6468352", "0.64629734", "0.64534354", "0.64534354", "0.64534354", "0.64534354", "0.64534354", "0.64534354", "0.64534354", "0.64534354", "0.64534354" ]
0.6595331
79
Add income associated with user and update balance on account
public function addIncome($amount, $username) { $account = Account::findOne([ 'username' => $username, ]); $account->balance += $amount; $account->update(true, ['balance']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addBalance(KittyInterface $kitty, UserInterface $user, $balance);", "private function updateBalance()\n {\n if (!auth()->user()->hasRole('admin')) {\n auth()->user()->update([\n 'credit' => auth()->user()->credit - $this->totalCost()\n ]);\n }\n }", "public function update_user_balance($user_id)\n\t\t{\n\t\t\t$this->is_login();\n\t\t\t$form_field = 'user_balance_'.$user_id;\n\t\t\tif($this->input->post($form_field))\n\t\t\t{\n\t\t\t\t$user_data['credit'] = $this->input->post($form_field);\n\t\t\t\t$this->load->model('user_profiles', 'up');\n\t\t\t\t$this->up->update($user_id, $user_data);\n\t\t\t}\n\t\t\tredirect('/admin/user_list','refresh');\n\t\t}", "function updateUserBalance($user, $sum){\r\n global $pdo;\r\n $stmt = $pdo->prepare('UPDATE users SET UserBalance = UserBalance + :UserBalance WHERE UserID = :UserID');\r\n $stmt->execute(array(':UserBalance' => $sum, ':UserID' => $user));\r\n}", "public function update(User $user) {\n \t$this->validate(request(), [\n \t\t'balance' => array('required', 'regex:/^\\d*(\\.\\d{2})?$/')\n \t]);\n\n \t$req = request()->all()['balance'];\n \t$new = $user->balance + $req;\n\n \t$user->update(['balance' => $new]);\n \treturn redirect('users/');\n }", "public function update($amount)\n {\n $currentBalance = auth()->user()->balance->amount;\n $newAmount = $currentBalance + $amount;\n auth()->user()->balance()->update(['amount' => $newAmount]);\n }", "protected function updateUserProfileInfo($user_id, $bid_amount){\n\t\t$user_model=UserInfo::model()->findByPk($user_id);\n\t\tif($user_model!==null){\n\t\t\t$user_model->total_debits = ($user_model->total_debits + $bid_amount);\n\t\t\t$user_model->closing_balance = ($user_model->closing_balance - $bid_amount);\n\t\t\t$user_model->save();\n\t\t\treturn $user_model->closing_balance;\n\t\t}\n\t}", "public function updateUserAccountBalance($targetUser, $addedAmt, $userID){\n //get user's accout balance\n $accBal = intval($this->UserAaccBalance($targetUser));\n //add it to the amount funded\n $newBal = $accBal + $addedAmt;\n //update back the user bal\n $newBalFields=[\n 'balance'=>$newBal\n ];\n if(!$this->update($userID, $newBalFields)) //LOG ERROR ACTION\n return false;\n return true;\n }", "function _updateTransaction($ItemUser)\r\n {\r\n //add amount to wallet\r\n $data['Transaction']['user_id'] = $ItemUser['user_id'];\r\n $data['Transaction']['foreign_id'] = ConstUserIds::Admin;\r\n $data['Transaction']['class'] = 'SecondUser';\r\n $data['Transaction']['amount'] = $ItemUser['discount_amount'];\r\n $data['Transaction']['transaction_type_id'] = ConstTransactionTypes::AddedToWallet;\r\n $data['Transaction']['payment_gateway_id'] = $ItemUser['payment_gateway_id'];\r\n $transaction_id = $this->User->Transaction->log($data);\r\n if (!empty($transaction_id)) {\r\n $this->User->updateAll(array(\r\n 'User.available_balance_amount' => 'User.available_balance_amount +' . $ItemUser['discount_amount']\r\n ) , array(\r\n 'User.id' => $ItemUser['user_id']\r\n ));\r\n }\r\n //Buy item transaction\r\n $transaction['Transaction']['user_id'] = $ItemUser['user_id'];\r\n $transaction['Transaction']['foreign_id'] = $ItemUser['id'];\r\n $transaction['Transaction']['class'] = 'ItemUser';\r\n $transaction['Transaction']['amount'] = $ItemUser['discount_amount'];\r\n $transaction['Transaction']['transaction_type_id'] = (!empty($ItemUser['is_gift'])) ? ConstTransactionTypes::ItemGift : ConstTransactionTypes::BuyItem;\r\n $transaction['Transaction']['payment_gateway_id'] = $ItemUser['payment_gateway_id'];\r\n if (!empty($ItemUser['rate'])) {\r\n $transaction['Transaction']['currency_id'] = $ItemUser['currency_id'];\r\n $transaction['Transaction']['converted_currency_id'] = $ItemUser['converted_currency_id'];\r\n $transaction['Transaction']['converted_amount'] = $ItemUser['authorize_amt'];\r\n $transaction['Transaction']['rate'] = $ItemUser['rate'];\r\n }\r\n $this->User->Transaction->log($transaction);\r\n //user update\r\n $this->User->updateAll(array(\r\n 'User.available_balance_amount' => 'User.available_balance_amount -' . $ItemUser['discount_amount']\r\n ) , array(\r\n 'User.id' => $ItemUser['user_id']\r\n ));\r\n }", "public function updateUserCashAndIncome($cashChange, $incomeChange) {\n\t\t$cashparams = array();\n $cashparams['cash'] = $cashChange;\n\t\t$cashparams['income'] = $incomeChange;\n\t\n\t\t$conditions = array();\n\t\t$conditions['id'] = $this->id;\n\t\t\n\t\t$success = ConnectionFactory::updateTableRowRelativeBasic(\"users\", $cashparams, $conditions);\n\t\tif ($success) {\n\t\t\t$this->cash += $cashChange;\n\t\t\t$this->income += $incomeChange;\n\t\t}\n\t\treturn $success;\n\t}", "public function addExpense($amount)\n {\n $account = Account::findOne([\n 'username' => $this->getCurrentUser()->username,\n ]);\n\n $account->balance -= $amount;\n\n $account->update(true, ['balance']);\n }", "public function updateBankerCredit()\n {\n $user = User::whereHas(\"roles\", function($q){$q->where(\"name\", \"Banker\");})->first();\n\n $total = Credit::where('credit_type', 0)->sum('value');\n $user->free_credits = $total;\n $total = Credit::where('credit_type', 1)->sum('value');\n $user->paid_credits = $total;\n $user->save();\n }", "public function insertIncomeInfo($user_id, $income) {\n\n//\t\t$user_id = '1';\n\n $userIncomeInfo = \"INSERT into income VALUES ('','$user_id',$income->inc_gross,$income->inc_investment,$income->inc_spouse,$income->inc_retirement,$income->inc_pension,$income->inc_social_security,$income->inc_disability,$income->inc_veteran,'','')\";\n\n //print_r($income->{'inc_gross'});die;\n\n $connection = Yii::app()->db3;\n $command = $connection->createCommand($userIncomeInfo)->execute();\n\n return 1;\n }", "function payNOw(){\n $from = $_SESSION['user']['id'];\n $to = $_POST['to_user'];\n $amount = $_POST['amount'];\n $description= $_POST['description'];\n\n //from user money update(-)\n $fromUserDetail = user($from);\n $leftMoney = $fromUserDetail['money']-$amount;\n if($fromUserDetail['money'] >= $amount || $fromUserDetail['money'] >= 0){\n $sql = \"UPDATE users SET money=$leftMoney WHERE id=$from\";\n mysqli_query(con(),$sql);\n\n //to user money update(+)\n $toUserDetail =user($to);\n $newMoney = $toUserDetail['money']+$amount;\n $sql = \"UPDATE users SET money=$newMoney WHERE id=$to\";\n mysqli_query(con(),$sql);\n\n //add to transitoion table\n $sql =\"INSERT INTO transition (from_user,to_user,amount,description) VALUES ('$from','$to','$amount','$description')\";\n run_query($sql);\n }\n else{\n echo alert(\"Error\");\n }\n}", "function add_money($account,$total_money,$input_money){\n\t\t$total_money += $input_money;\n\t\tglobal $connection;\n\t\t$query_mn = mysqli_query($connection,\"UPDATE khachhang SET `money`=$total_money WHERE account='$account'\" );\n\t\treturn $total_money;\n\t}", "function withdrawal($account, $amount, $id_user) {\r\n\r\n //Crear la conexión\r\n $base = conection();\r\n\r\n //Verificar que el usuario tenga disponible ese dinero\r\n $sql = \"SELECT balance, pending FROM users WHERE id = :id_user\";\r\n\r\n //Preparar consulta\r\n $result = $base->prepare($sql);\r\n\r\n //Ejecutar consulta\r\n $result->execute(array(\":id_user\"=>$id_user));\r\n\r\n //Contar registros encontrados\r\n $count = $result->rowCount();\r\n \r\n //Verificar si se ingresó el registro\r\n if ($count > 0) {\r\n\r\n while ($row=$result->fetch(PDO::FETCH_ASSOC)) {\r\n $balance = $row[\"balance\"];\r\n $pending = $row[\"pending\"];\r\n }\r\n\r\n if ($balance >= $amount) {\r\n\r\n //Restamos el dienro al usuario\r\n $new_balance = $balance - $amount;\r\n $new_pending = $pending + $amount;\r\n \r\n //Actualizamos el balance del usuario y agregamos el dinero pendiente\r\n $sql_new_balance = \"UPDATE `users` SET `balance`= :balance, `pending`= :pending WHERE id = :id_user\";\r\n\r\n //Preparar consulta\r\n $result_new_balance = $base->prepare($sql_new_balance);\r\n\r\n //Ejecutar consulta\r\n $result_new_balance->execute(array(\":balance\"=>$new_balance, \":pending\"=>$new_pending, \":id_user\"=>$id_user));\r\n\r\n //Actualizamos el balance del usuario y agregamos el dinero pendiente\r\n $sql_withdrawal = \"INSERT INTO `withdrawal`(`account`, `amount`, `date`, `id_user`) VALUES (:account, :amount , NOW(), :id_user)\";\r\n\r\n //Preparar consulta\r\n $result_withdrawal = $base->prepare($sql_withdrawal);\r\n\r\n //Ejecutar consulta\r\n $result_withdrawal->execute(array(\":account\"=>$account, \":amount\"=>$amount, \":id_user\"=>$id_user));\r\n\r\n $count_withdrawal = $result_withdrawal->rowCount();\r\n\r\n if ($count_withdrawal > 0) {\r\n\r\n //Enviar email\r\n $msg = \"The user with the id $id_user has requested a withdrawal in the amount of $amount for their Payeer account $account\";\r\n \r\n mail(\"[email protected]\", \"New Withdrawal request - $id_user\", $msg);\r\n\r\n return \"<b>Your withdrawal request has been sent</b>\\nIn less than 24 hours your order will be processed\";\r\n }\r\n\r\n }else {\r\n return \"You don't have enough funds\";\r\n }\r\n \r\n }else {\r\n return \"fatal error 3\";\r\n }\r\n\r\n}", "public function testaddCoinsToUser(){\n $old_coins = R::getCell('SELECT coins FROM user WHERE id = 1');\n addCoinsToUser(1, 50);\n $new_coins = R::getCell('SELECT coins FROM user WHERE id = 1');\n $this->assertEquals($old_coins + 50, $new_coins);\n R::exec('UPDATE user SET coins = '.$old_coins.' WHERE id = 1');\n }", "public function createAccount(User $user){\n $this->accountList[$user->accountNumber][] = $user->userName;\n $this->accountList[$user->accountNumber][] = $user->balance;\n $this->totalAmount += $user->balance;\n }", "function charge_deposit($acc_number,$sum)\n\t{\n\t $this->db->query(\"UPDATE pamm_summaries SET deposit = deposit+$sum WHERE acc_number=$acc_number\");\n\t}", "function update_user_credits_by_amount($id_user='', $amount=''){\t\n\t\ttry{\n\t\t\t$this->db->set('credits','credits+'.$amount, FALSE);\n\t\t\t$this->db->where('id', $id_user);\n\t\t\t$result = $this->db->update('user');\n\t\t\tif($this->db->affected_rows()>0){\n\t\t\t\treturn TRUE;\n\t\t\t}else{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}catch(Exception $e){\n\t\t\tlog_message('debug','Error en la función update_user_credits_by_amount');\n\t\t\treturn FALSE;\n\t\t}\n\t}", "private static function logTransactionUpdateBalance($userId,$transactionType,$amount){\n if($transactionType != 'charge'){\n // Update User Balance\n $User = User::where('id',$userId)->select('id','balance')->first();\n if($transactionType == 'withdraw'){\n $User->balance = $User->balance - $amount;\n }\n if(in_array($transactionType,['refund','profit'])){\n $User->balance = $User->balance + $amount;\n }\n if($User->balance < 0){\n $User->balance = 0;\n }\n $User->save();\n }\n }", "public function updateInvoiceBalance(\\PDO $dbh, $paymentAmount, $user) {\n\t\t// positive payment amounts reduce a balance.\n\t\t// Neg payments increase a bal.\n\t\tif ($this->idInvoice > 0) {\n\n\t\t\t$balAmt = $this->invRs->Balance->getStoredVal ();\n\t\t\t$newBal = $balAmt - $paymentAmount;\n\n\t\t\t$this->invRs->Balance->setNewVal ( $newBal );\n\n\t\t\t$attempts = $this->invRs->Payment_Attempts->getStoredVal ();\n\t\t\t$this->invRs->Payment_Attempts->setNewVal ( ++ $attempts );\n\n\t\t\tif ($newBal == 0) {\n\t\t\t\t$this->invRs->Status->setNewVal ( InvoiceStatus::Paid );\n\t\t\t} else {\n\t\t\t\t$this->invRs->Status->setNewVal ( InvoiceStatus::Unpaid );\n\t\t\t}\n\n\t\t\t$this->invRs->Last_Updated->setNewVal ( date ( 'Y-m-d H:i:s' ) );\n\t\t\t$this->invRs->Updated_By->setNewVal ( $user );\n\n\t\t\tEditRS::update ( $dbh, $this->invRs, array (\n\t\t\t\t\t$this->invRs->idInvoice\n\t\t\t) );\n\t\t\tEditRS::updateStoredVals ( $this->invRs );\n\t\t} else {\n\t\t\tthrow new PaymentException( 'Cannot make payments on a blank invoice record. ' );\n\t\t}\n\t}", "function addToAccountBalance($username,$soldValue,$stockTicker)\n{\n \n $mysql_server = '192.168.1.101';\n \n $mysqli = new mysqli($mysql_server, \"badgers\", \"honey\", \"user_info\");\n \n $findBalQry = \"SELECT * FROM bank WHERE username='$username'\";\n $findBalResult = $mysqli->query($findBalQry);\n \n $oldBalance = 0;\n \n if($findBalResult->num_rows > 0){\n while ($row = $findBalResult->fetch_assoc()){\n \n $oldBalance = $row['balance'];\n }\n }\n $newBalance = $oldBalance + $soldValue;\n \n $UpdateQry = \"UPDATE bank SET balance='$newBalance' where username='$username'\";\n $result = $mysqli->query($UpdateQry);\n \n //Print Values for Tests\n //var_dump($oldBalance);\n //var_dump($newBalance);\n \n}", "function deposit($amount) {\n $this->balance += $amount;\n }", "public function update_finance_total( $amount )\n\t{\n\t\t$new_total = $this->finance_total + $amount;\n\t\n\t\t//Insert the new user into the database.\n\t\t$mysqlConnection = new Mysql;\n\t\t\n\t\t$column_headers = array( \"finance_total\" );\n\t\t\n\t\t$values = array( $new_total );\n\t\t\n\t\t$queryDescription = \"Update User finance total\";\n\t\t\n\t\tif( $mysqlConnection->mysql_update( \"user\", $column_headers, $values, \"ID\", $this->get_id(), $queryDescription ) )\n\t\t{\t\t\n\t\t\t//Updated the local finance total\n\t\t\t$this->finance_total = $new_total;\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "function updateYearlyUserOvertime(User $user, Contract $contract, $year, $overtimeBalance)\n{\n // Get a user report for the year\n $userReport = UserReport::byYear($user, $year);\n $startDay = ($contract->getDate()->format('Y') == $year) ? $contract->getDate()->format('z') : 0;\n $endDay = (date('Y') == $year) ?\n\n // \"now\" should be \"tomorrow\" to have realtime calculations\n (new \\DateTimeImmutable('now', $GLOBALS['timezone']))->format('z') :\n (365 + intval((new \\DateTimeImmutable($year.'-01-01', $GLOBALS['timezone']))->format('L')));\n\n // Run through the relevant user report range\n /** @var DayReport $dayReport */\n foreach ($userReport->getRange($startDay, $endDay) as $dayReport) {\n\n // If this is a working day (and not a true holiday) for the user\n if ($dayReport->isWorkingDay() && !$dayReport->isHoliday(true) && !$dayReport->isExcused()) {\n // Subtract the daily working hours\n $overtimeBalance -= $contract->getWorkingHoursPerDay();\n }\n\n // Add the captured time\n $overtimeBalance += $dayReport->getTimeActual() / 3600;\n }\n\n return $overtimeBalance;\n}", "public function actionWithdrawMoney()\n {\n // Recevei the POST params\n $request = Yii::$app->request;\n $user_id = $request->post('user_id');\n $amount_currency = $request->post('amount_currency');\n $wallet_currency = $request->post('wallet_currency');\n $amount = $request->post('amount');\n\n // Check the mandatory fields\n if (empty($user_id)) {\n throw new BadRequestHttpException('The user ID must be informed.');\n } else if (empty($amount_currency)) {\n throw new BadRequestHttpException('The amount currency must be informed.');\n } else if (empty($wallet_currency)) {\n throw new BadRequestHttpException('The wallet currency must be informed.');\n } else if (empty($amount)) {\n throw new BadRequestHttpException('The amount must be informed.');\n } else {\n // Prepare the input\n $amount = floatval($amount);\n $amount_currency = strtoupper($amount_currency);\n $wallet_currency = strtoupper($wallet_currency);\n\n // Try to retrieve the wallet info\n $wallet = Wallet::find()->where(['user_id' => $user_id])->andWhere(['currency' => $wallet_currency])->one();\n\n // Check if the wallet exists\n if (isset($wallet) && !empty($wallet)) {\n // Check if needs to convert\n if (strcmp($amount_currency, $wallet_currency) != 0) {\n // Gets the new currency quotation\n $result = $this->actionConvertCurrency($amount_currency, $wallet_currency, $amount);\n\n // Check if the conversion happend succesfully\n if (isset($result) && !empty($result)) {\n // Check if the wallet have enough fund\n if ($wallet->balance >= $result['converted_amount']) {\n // Perform the balance withdraw with conversion\n $wallet->balance -= $result['converted_amount'];\n } else {\n // Log the transaction as complete\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' does not have enough fund for this operation.');\n }\n } else {\n throw new HttpException('It was not possible to contact the currency exchange server.');\n }\n } else {\n // Check if the wallet have enough fund\n if ($wallet->balance >= $amount) {\n // Perform the balance withdraw without conversion\n $wallet->balance -= $amount;\n } else {\n // Log the transaction as incomplete\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' does not have enough fund for this operation.');\n }\n }\n\n // Update the the wallet balance\n if ($wallet->save()) {\n // Log the transaction as complete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n } else {\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n }\n\n // Return the wallet updated\n return $wallet;\n } else {\n // Log the transaction as incomplete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n } else {\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n }\n\n throw new ServerErrorHttpException(\"It wasn't possible to complete the withdraw\");\n }\n } else {\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' was not found.');\n }\n }\n }", "public function incrementUserUpkeep($upkeepAmount) {\n\t\t$this->upkeep += $upkeepAmount;\n\t\tConnectionFactory::updateTableRowAbsoluteBasic(\"users\",array('upkeep' => $this->upkeep),array('id' => $this->id));\n\t}", "public function update(Request $request, Expense $expense)\n { \n $this->validate($request, [\n 'amount' => 'numeric|required',\n 'date' => 'required|date_format:d/m/Y'\n ]);\n $account_id = $request->input('account');\n $amount = str_replace(',', '.', $request->input('amount'));\n\n $amount_old = $expense->amount;\n $account_id_old = $expense->account_id;\n $account_old = Account::find($account_id_old);\n\n //Rollback to old balance\n $old_balance = $account_old->balance + abs($amount_old);\n $account_old->balance = $old_balance;\n $account_old->save();\n\n $account = Account::find($account_id);\n\n if($account->balance >= $amount)\n { \n\n //Update Expense\n $expense->account_id = $account_id;\n $expense->category_id = $request->input('category');\n $expense->amount = $amount;\n $expense->date = Carbon::createFromFormat('d/m/Y', $request->input('date'));\n $expense->save();\n \n //Update the balance\n $new_balance = $account->balance - abs($amount);\n $account->balance = $new_balance;\n $account->save();\n\n return redirect('/operations')->with('success','<strong>'.$account->name.'</strong> balance is now: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>');\n }\n else\n {\n //Undo the rollback\n $old_balance = $account_old->balance - abs($amount_old);\n $account_old->balance = $old_balance;\n $account_old->save();\n //\n return redirect()->route('expenses.edit', $expense->id)->with('error','You don’t have enough funds in this account. <strong>'.$account->name.'</strong> balance is: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>')->withInput();\n }\n }", "public function subHandleBonusIndecated($userId, $amount)\n {\n $wallet = $this->wallet->findWhere(['user_id' => $userId])->first();\n $walletExpire = $this->walletExpire->findWhere(['wallet_id' => $wallet->id])->sortByDesc('id')->first();\n $periodExpire = $this->periodExpire->first();\n $dateExpire = Carbon::now()->addMonths($periodExpire->sum_month);\n if (!$walletExpire) {\n $this->subBonusTransaction($userId, $amount, $dateExpire, $wallet, $periodExpire, StatusConstant::BONUS_TYPE_ADMIN);\n } else {\n // check expire wallet\n if (Carbon::now()->lte($walletExpire->expire_date)) {\n $total = (float) $amount + (float) $walletExpire->amount;\n $this->walletExpire->updateDateExpire($walletExpire->id, $total, $dateExpire, $periodExpire->id);\n $idWalletTrans = $this->walletTrans->createWalletTrans($wallet->id, $amount, StatusConstant::TRANSACTION_TYPE_WALLET_EXPIRE, $walletExpire->id, null, StatusConstant::TRANSACTION_BONUS);\n $this->bonusRepo->createBonus($userId, null, $amount, $idWalletTrans, $walletExpire->id, StatusConstant::BONUS_TYPE_ADMIN);\n } else {\n $this->subBonusTransaction($userId, $amount, $dateExpire, $wallet, $periodExpire, StatusConstant::BONUS_TYPE_ADMIN);\n }\n }\n\n // send notifications when bonus\n $this->noticesService->noticeBonusUser($userId, $amount, $dateExpire);\n }", "protected function updateInvoiceAmount(\\PDO $dbh, $user) {\n\t\t$stmt = $dbh->query ( \"Select sum(Amount) from invoice_line where Deleted = 0 and Invoice_Id = \" . $this->idInvoice );\n\t\t$rows = $stmt->fetchAll ();\n\n\t\tif (count ( $rows ) == 1) {\n\n\t\t\t$newAmount = $rows [0] [0];\n\t\t\t$oldAmount = $this->invRs->Amount->getStoredVal ();\n\t\t\t$oldBalance = $this->invRs->Balance->getStoredVal ();\n\n\t\t\t$difAmount = $newAmount - $oldAmount;\n\t\t\t$newBalance = $oldBalance + $difAmount;\n\n\t\t\t$this->invRs->Amount->setNewVal ( $newAmount );\n\t\t\t$this->invRs->Balance->setNewVal ( $newBalance );\n\t\t\t$this->invRs->Last_Updated->setNewVal ( date ( 'Y-m-d H:i:s' ) );\n\t\t\t$this->invRs->Updated_By->setNewVal ( $user );\n\n\t\t\tEditRS::update ( $dbh, $this->invRs, array (\n\t\t\t\t\t$this->invRs->Invoice_Number\n\t\t\t) );\n\n\t\t\tEditRS::updateStoredVals ( $this->invRs );\n\t\t}\n\t}", "public function actionDepositMoney()\n {\n // Recevei the POST params\n $request = Yii::$app->request;\n $user_id = $request->post('user_id');\n $amount_currency = $request->post('amount_currency');\n $wallet_currency = $request->post('wallet_currency');\n $amount = $request->post('amount');\n\n // Check the mandatory fields\n if (empty($user_id)) {\n throw new BadRequestHttpException('The user ID must be informed.');\n } else if (empty($amount_currency)) {\n throw new BadRequestHttpException('The amount currency must be informed.');\n } else if (empty($wallet_currency)) {\n throw new BadRequestHttpException('The wallet currency must be informed.');\n } else if (empty($amount)) {\n throw new BadRequestHttpException('The amount must be informed.');\n } else {\n // Prepare the input\n $amount = floatval($amount);\n $amount_currency = strtoupper($amount_currency);\n $wallet_currency = strtoupper($wallet_currency);\n\n // Try to retrieve the wallet info\n $wallet = Wallet::find()->where(['user_id' => $user_id])->andWhere(['currency' => $wallet_currency])->one();\n\n // Check if the wallet exists\n if (isset($wallet) && !empty($wallet)) {\n // Check if needs to convert\n if (strcmp($amount_currency, $wallet_currency) != 0) {\n // Gets the new currency quotation\n $result = $this->actionConvertCurrency($amount_currency, $wallet_currency, $amount);\n\n // Check if the conversion happend succesfully\n if (isset($result) && !empty($result)) {\n // Set the new wallet balance with conversion\n $wallet->balance += $result['converted_amount'];\n } else {\n throw new HttpException('It was not possible to contact the currency exchange server.');\n }\n } else {\n // Set the new wallet balance without conversion\n $wallet->balance += $amount;\n }\n\n // Update the the wallet balance\n if ($wallet->save()) {\n // Log the transaction as complete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::DEPOSIT, $amount, $result['converted_amount'], '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n } else {\n $this->logTransaction(Transaction::DEPOSIT, $amount, 0, '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n }\n\n // Return the wallet updated\n return $wallet;\n } else {\n // Log the transaction as incomplete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::DEPOSIT, $amount, $result['converted_amount'], '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n } else {\n $this->logTransaction(Transaction::DEPOSIT, $amount, 0, '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n }\n\n throw new ServerErrorHttpException(\"It wasn't possible to complete the deposit\");\n }\n } else {\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' was not found.');\n }\n }\n }", "public function update(Request $request, $id)\n {\n $a=$request['balance'];\n $amount= str_replace(',','',$a) ;\n $account = AccountModel::find($id); //find the primary key of User table\n $action= $account->update ([\n 'ACCOUNT_NAME' => $request['name'],\n 'PARENT_ACCOUNT' => $request['type'],\n 'ACCOUNT_DESCRIPTION' => $request['naration'],\n 'AFFECTS' => implode(\",\",$request['affects']),\n 'ACCOUNT_BALANCE' => $amount,\n \n 'BALANCE_TYPE' => $request['balance_type'],\n 'BUSINESS_PERSON' => $request['people'],\n \n\n ]);\n \n if (!$action) {\n return redirect()->back()->with(\"error_message', 'Account successfully updated!\");\n \n }\n \n \n return \\Redirect::to('view_accounts');\n }", "public function add_income()\n {\n if ( $this->input->is_ajax_request() ) { // user is requesting page from left navigation\n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $this->load->view('app/create_income', $data);\n } else {\n\n if ( $this->input->post('submitBtn') ) { // form is submitted\n $this->form_validation->set_rules('income', 'Income', 'trim|required|is_natural_no_zero|integer|min_length[3]|max_length[11]');\n $this->form_validation->set_rules('bonus', 'Bonus', 'trim|is_natural_no_zero|integer|min_length[3]|max_length[11]');\n $this->form_validation->set_rules('allowance', 'Allowance', 'trim|is_natural_no_zero|integer|min_length[3]|max_length[11]');\n\n if ($this->form_validation->run() == FALSE) { //invalid values in one or more input fields\n \n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['error_message'] = validation_errors();\n $data['main_content'] = 'app/create_income';\n $this->load->view('app/includes/template', $data);\n \n } else { // insert/update user's income record\n \n $income = trim(strip_tags(htmlentities($this->input->post('income'))));\n $bonus = trim(strip_tags(htmlentities($this->input->post('bonus'))));\n $allowance = trim(strip_tags(htmlentities($this->input->post('allowance'))));\n $user_id = $this->ion_auth->get_user_id();\n \n $user_data = array(\n 'user_id' => $user_id,\n 'income' => $income,\n 'bonus' => $bonus,\n 'additional_allowance' => $allowance,\n 'created_date' => date('Y-m-d H:i:S')\n );\n\n $insert = $this->Expense_model->insert_income($user_id,$user_data);\n \n if ($insert) {\n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['success_message'] = 'Income Added Succesfully';\n } else {\n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['success_message'] = 'Income Updated Succesfully';\n }\n \n \n $data['main_content'] = 'app/create_income';\n $this->load->view('app/includes/template', $data);\n\n }\n\n } else { // user is accessing page directly from url\n \n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['main_content'] = 'app/create_income';\n $this->load->view('app/includes/template', $data);\n \n }\n \n }\n }", "public function update_tutor_fee($tid,$fee) {\n\t\t$sql = \"UPDATE profile SET money = money + {$fee} WHERE uid = {$tid} \";\n\t\t$query = $this->db->query($sql);\n\t}", "public function deposit($amount)\n {\n $this->balance += $amount;\n $this->save();\n }", "function add_money() {\n\t\t$coupon_id = $_REQUEST['coupon_id'];\n\t\t$coupon_amount = $_REQUEST['coupon_amount'];\n\t\t$user_id = $_REQUEST['recharge_user_id'];\n\t\t$user_amount = $_REQUEST['recharge_amount'];\n\t\t$transaction_id = $_REQUEST['transection_id'];\n\t\t$final_amount = $coupon_amount + $user_amount;\n\t\t//\t$wt_type=$_POST['wt_type']; //1- debit in account, 2- credit in account\n\t\t$wt_type = 1;\n\t\t// credit\n\t\t$current_date = date(\"Y-m-d h:i:sa\");\n\t\t$wt_category = 1;\n\t\t// 1-Add moeny, 2-Recharge\n\t\t$w_category = 6;\n\t\t$w_desc = \"Amount Recieved when add money \" . $user_amount . \" with get amount \" . $coupon_amount;\n\t\t$wt_desc = \"Add Money\";\n\t\tif (!empty($user_id) && !empty($user_amount) && !empty($transaction_id)) {\n\t\t\t$records = $this -> conn -> get_table_row_byidvalue('user', 'user_id', $user_id);\n\t\t\t$wallet_amount = $records['0']['wallet_amount'];\n\t\t\t$user_wallet = $wallet_amount + $final_amount;\n\t\t\t$add_money = $this -> conn -> insertnewrecords('wallet_transaction', 'wt_user_id, wt_datetime,wt_type,wt_amount,wt_category,transaction_id,wt_desc', '\"' . $user_id . '\",\"' . $current_date . '\",\"' . $wt_type . '\",\"' . $user_amount . '\",\"' . $wt_category . '\",\"' . $transaction_id . '\",\"' . $wt_desc . '\"');\n\t\t\tif (!empty($add_money)) {\n\t\t\t\tif (!empty($coupon_id)) {\n\n\t\t\t\t\t$add_money = $this -> conn -> insertnewrecords('coupon_details', 'coupon_id, user_id,coupon_apply_date', '\"' . $coupon_id . '\",\"' . $user_id . '\",\"' . $current_date . '\"');\n\t\t\t\t\tif ($add_money) {\n\t\t\t\t\t\t$records_coupon = $this -> conn -> get_table_row_byidvalue('offer_coupon', 'coupon_id', $coupon_id);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$coupon_count = $records_coupon['0']['coupon_limit'];\n\t\t\t\t\t\tif($coupon_count>0){\n\t\t\t\t\t\t\t$data_coupon['coupon_limit'] = $coupon_count - 1;\n\t\t\t\t\t\t$update_toekn = $this -> conn -> updatetablebyid('offer_coupon', 'coupon_id', $coupon_id, $data_coupon);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$transaction_ids = strtotime(\"now\") . mt_rand(10000000, 99999999);\n\t\t\t\t\t\t$walletrecharge = $this -> conn -> insertnewrecords('wallet_transaction', 'wt_user_id,wt_datetime,wt_type,wt_amount,wt_category,transaction_id,wt_desc,cashbackrecord_id', '\"' . $user_id . '\",\"' . $current_date . '\",\"' . $wt_type . '\",\"' . $coupon_amount . '\",\"' . $w_category . '\",\"' . $transaction_ids . '\",\"' . $w_desc . '\",\"' . $transaction_id . '\"');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$data['wallet_amount'] = $user_wallet;\n\t\t\t\t$update_toekn = $this -> conn -> updatetablebyid('user', 'user_id', $user_id, $data);\n\t\t\t\t$post = array(\"status\" => \"true\", 'message' => \"Add amount successfully\", \"transaction_id\" => $transaction_id, 'add_amount' => $user_amount, 'wallet_amount' => $user_wallet, 'transaction_date' => $current_date);\n\n\t\t\t} else {\n\t\t\t\t$post = array('status' => \"false\", \"message\" => \"Transaction Failed\");\n\t\t\t}\n\t\t} else {\n\t\t\t$post = array('status' => \"false\", \"message\" => \"Missing parameter\", 'recharge_user_id' => $user_id, 'recharge_amount' => $user_amount, 'transection_id' => $transection_id);\n\t\t}\n\t\techo $this -> json($post);\n\t}", "public function increaseBalance($amount, $user)\n {\n Stripe::setApiKey(config('services.stripe.secret'));\n\n $intent = PaymentIntent::create([\n 'amount' => $amount,\n 'currency' => 'eur',\n 'metadata' => ['user_id' => $user->id],\n ]);\n\n return $intent;\n }", "public static function syncAccountBalance($user){\n if (!($user instanceof \\Users)) {\n $user = \\Users::retrieveById($user);\n }\n\n if (!$user) {\n return false;\n }\n\n if (!$user->getAccountNo()) {\n return false;\n }\n\n $logger = \\SeuDo\\Logger::factory('accountant');\n\n $accountInfo = \\SeuDo\\Accountant\\Util::getUserAccountDetail($user);\n\n if ($accountInfo['balance'] != $user->getAccountBalance()) {\n $user->setAccountBalance($accountInfo['balance']);\n if ($user->save()) {\n $user->dispatch('onAccountBalanceChanged', new \\SeuDo\\Event\\User($user));\n $logger->info('Sync user accountant balance. Account no: ' .$user->getAccountNo());\n return true;\n } else {\n $context = (!$user->isValid())? $user->getValidationFailuresMessage(\"\\n\") : '';\n $logger->error('Fail to save user account balance. ' .$context);\n return false;\n }\n }\n\n return true;\n }", "public function payForInvitedUsers(){\n \n $userService = parent::getService('user','user');\n \n $refererUsers = $userService->getUsersWithRefererNotPaid();\n foreach($refererUsers as $user):\n // if created at least 30 days ago\n if(strtotime($user['created_at'])>strtotime('-30 days')){\n continue;\n }\n // if logged within last 5 days ago\n if(!(strtotime($user['last_active'])>strtotime('-7 days'))){\n $user->referer_not_active = 1;\n $user->save();\n continue;\n }\n \n $values = array();\n $values['description'] = 'Referencing FastRally to user '.$user['username'];\n $values['income'] = 1;\n \n \n if($user['gold_member_expire']!=null){\n $amount = 100;\n }\n else{\n $amount = 10;\n }\n \n \n $userService->addPremium($user['referer'],$amount,$values);\n $user->referer_paid = 1;\n $user->save();\n endforeach;\n echo \"done\";exit;\n }", "public function employeeaccount(Request $request){\n\n\t\tif($request->isMethod('post')){\n\n\n\t\t\t$request->validate([\n\n\t\t\t\t'employeeid' => 'required',\n\t\t\t\t'amount' => 'required|integer',\n\t\t\t\t'type' => 'required',\n\n\t\t\t]);\n\n\t\tDB::beginTransaction();\n\t\ttry {\n\n\t\t\t$pastrecord = EmployeeAccount::where('employeeid', $request->employeeid)->orderBy('empaccountid', 'desc')->first();\n\t\t\tif(!empty($pastrecord)){\n\t\t\t\t$amountcal = $pastrecord->amount;\n\t\t\t} else {\n\t\t\t\t$amountcal = 0;\n\t\t\t}\n\n\t\t\tif($request->type == 'Loan'){\n\n\t\t\t\t$amount = $amountcal + $request->amount;\n\n\t\t\t}else{\n\n\t\t\t\tif($amountcal == 0){\n\n\t\t\t\t\tSession::flash('message', 'No loan found');\n \t\t\t\tSession::flash('alert-type', 'error');\n\n\t\t\t\t\treturn redirect()->back();\n\t\t\t\t}\n\n\t\t\t\t$amount = $amountcal - $request->amount;\n\n\t\t\t\tif($amount < 0){\n\n\t\t\t\t\tSession::flash('message', 'Please add valid amount');\n \t\t\t\tSession::flash('alert-type', 'error');\n\n\t\t\t\t\treturn redirect()->back();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$employeeaccount = new EmployeeAccount();\n\t\t\t$employeeaccount->employeeid = $request->employeeid;\n\t\t\t$employeeaccount->amount = $amount;\n\t\t\t$employeeaccount->type = $request->type;\n\t\t\t$employeeaccount->empaccountdate = date('Y-m-d h:i:s');\n\t\t\t$employeeaccount->actionby = session()->get('admin_id');\n\t\t\t$employeeaccount->save();\n\n\t\t\t$salary = Salary::where('employeeid', $request->employeeid)->where('ispaid', 0)->orderBy('salaryid', 'desc')->first();\n\t\t\tif(!empty($salary)){\n\n\t\t\t\t$emi = $salary->salaryemi;\n\t\t\t\t$currentsalary = $salary->currentsalary;\n\n\t\t\t\t$updateemi = $emi - $request->amount;\n\t\t\t\t$updatesalary = $currentsalary + $request->amount;\n\n\t\t\t\t$salary->salaryemi = $updateemi;\n\t\t\t\t$salary->currentsalary = $updatesalary;\n\n\t\t\t\t$salary->save();\n\n\t\t\t}\n\n\t\t\tDB::commit();\n\t\t\t$success = true;\n\n\t\t\tSession::flash('message', 'Amount is added successfully');\n \t\tSession::flash('alert-type', 'success');\n\n\t\t\treturn redirect()->route('viewemployeeaccount');\n\n\t\t} catch(\\Exception $e) {\n\t\t Helper::errormail('HR', 'Add Employeeaccount', 'High');\n\t\t $success = false;\n DB::rollback();\n\n\t\t}\n\n\t\tif ($success == false) { \n return redirect('dashboard');\n }\n\n\t\t}\n\n\t\t$employee = Employee::where('status', 1)->get()->all();\n\t\treturn view('hr.account.addemployeeamount', compact('employee'));\n\n\n\t}", "public function store(Request $request)\n {\n $status = $request['result']['paymentIntent']['status'];\n $amount = $request['result']['paymentIntent']['amount'];\n\n if (!auth()->user()->balance()->exists()) {\n auth()->user()->balance()->create(['amount' => $amount]);\n } else {\n $this->update($amount);\n }\n }", "public function userStoreWithdrawal(Request $request)\n {\n // return dd($request);\n $user = User::whereId(auth()->user()->id)->firstOrFail();\n if (!isset($user->withdrawalBank->bank_code) || !isset($user->withdrawalBank->account_name) || !isset($user->withdrawalBank->account_number)) {\n $response['status'] = \"info\";\n $response['message'] = \"Your Withdrawal bank details is not setup, visit your profile to update it.\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n\n $minAmount = 100;\n $maxAmount = $user->available_balance;\n if ($user->available_balance < 100) {\n $response['status'] = \"info\";\n $response['message'] = \"You do not have suffient available balance to withdraw.\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n $this->validate($request, [\n 'amount' => \"required|integer|min:50\",\n ]);\n if ($user->available_balance < $request->amount) {\n $response['status'] = \"info\";\n $response['message'] = \"You do not have suffient available balance for the amount you selected. Please select an amount within your available balance\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n $userBank = $user->withdrawalBank;\n Withdrawal::create([\n 'user_id' => $user->id,\n 'amount' => $request->amount,\n 'status' => 'pending',\n 'completed_at' => null,\n 'bank_code' => $userBank->bank_code,\n 'account_name' => $userBank->account_name,\n 'account_number' => $userBank->account_number,\n ]);\n $user->available_balance -= $request->amount;\n $user->update();\n $response['status'] = \"success\";\n $response['message'] = \"Your Withdrawal of #{$request->amount} has been placed.\";\n return redirect()->route('withdrawal_history')->with($response['status'], $response['message']);\n }", "public function UpdateMoney($id, $type, $money){\n $roles = Yii::app() -> user -> roles;\n $uid = Yii::app() -> user -> id;\n if ($type == 1) {\n $sql = 'UPDATE user SET user_money = user_money + '.$money.' WHERE user_id = '.$id;\n if ($roles = 3) {\n $sql2 = 'UPDATE user SET user_money = user_money - '.$money.' WHERE user_id = '.$uid;\n Yii::app() -> db -> createCommand($sql2) -> execute();\n }\n } else {\n $sql = 'UPDATE user SET user_money = user_money - '.$money.' WHERE user_id = '.$id;\n if ($roles = 3) {\n $sql2 = 'UPDATE user SET user_money = user_money + '.$money.' WHERE user_id = '.$uid;\n Yii::app() -> db -> createCommand($sql2) -> execute();\n }\n }\n\n if (Yii::app() -> db -> createCommand($sql) -> execute()) {\n return true;\n } else {\n return false;\n }\n\t}", "public function saveUserDataAction()\n {\n Shopware()->Plugins()->Controller()->ViewRenderer()->setNoRender();\n $Parameter = $this->Request()->getParams();\n\n $customerModel = Shopware()->Models()->getRepository('Shopware\\Models\\Customer\\Customer');\n $userModel = $customerModel->findOneBy(array('id' => Shopware()->Session()->sUserId));\n $user = $userModel->getBilling();\n $debitUser = $userModel->getDebit();\n $config = Shopware()->Plugins()->Frontend()->RpayRatePay()->Config();\n\n $return = 'OK';\n $updateData = array();\n\n if (!is_null($user)) {\n $updateData['phone'] = $Parameter['ratepay_phone'] ? : $user->getPhone();\n $updateData['ustid'] = $Parameter['ratepay_ustid'] ? : $user->getVatId();\n $updateData['company'] = $Parameter['ratepay_company'] ? : $user->getCompany();\n $updateData['birthday'] = $Parameter['ratepay_dob'] ? : $user->getBirthday(\n )->format(\"Y-m-d\");\n try {\n Shopware()->Db()->update('s_user_billingaddress', $updateData, 'userID=' . $Parameter['userid']);\n Shopware()->Log()->Info('Kundendaten aktualisiert.');\n } catch (Exception $exception) {\n Shopware()->Log()->Err('Fehler beim Updaten der Userdaten: ' . $exception->getMessage());\n $return = 'NOK';\n }\n }\n $updateData = array();\n if ($Parameter['ratepay_debit_updatedebitdata']) {\n Shopware()->Session()->RatePAY['bankdata']['account'] = $Parameter['ratepay_debit_accountnumber'];\n Shopware()->Session()->RatePAY['bankdata']['bankcode'] = $Parameter['ratepay_debit_bankcode'];\n Shopware()->Session()->RatePAY['bankdata']['bankname'] = $Parameter['ratepay_debit_bankname'];\n Shopware()->Session()->RatePAY['bankdata']['bankholder'] = $Parameter['ratepay_debit_accountholder'];\n if ($config->get('RatePayBankData')) {\n $updateData = array(\n 'account' => $Parameter['ratepay_debit_accountnumber'] ? : $debitUser->getAccount(),\n 'bankcode' => $Parameter['ratepay_debit_bankcode'] ? : $debitUser->getBankCode(),\n 'bankname' => $Parameter['ratepay_debit_bankname'] ? : $debitUser->getBankName(),\n 'bankholder' => $Parameter['ratepay_debit_accountholder'] ? : $debitUser->getAccountHolder()\n );\n try {\n $this->_encryption->saveBankdata($Parameter['userid'], $updateData);\n Shopware()->Log()->Info('Bankdaten aktualisiert.');\n } catch (Exception $exception) {\n Shopware()->Log()->Err('Fehler beim Updaten der Bankdaten: ' . $exception->getMessage());\n Shopware()->Log()->Debug($updateData);\n $return = 'NOK';\n }\n }\n }\n echo $return;\n }", "public function userConsolidatedBalances($userid){\n\n //recalculate loan Balances\n $consolidatedLoanDeductions = Userconsolidatedloan::\n where('user_id',$userid)\n ->orderBy('date_entry', 'asc')\n ->orderBy('entry_time', 'asc')\n ->get();\n\n //loop to update balances to zero\n foreach($consolidatedLoanDeductions as $item){\n $deductItem = Userconsolidatedloan::find($item->id);\n $deductItem->balance = 0.0;\n $deductItem->save();\n }\n\n //loop to update actual Balances\n foreach($consolidatedLoanDeductions as $item){\n\n //1. select all records based on that date\n $loanDeductionsByDate = $consolidatedLoanDeductions\n ->where('date_entry','=',$item->date_entry)\n ->sortBy('id');\n\n //2. check if there is more than 1 records\n if($loanDeductionsByDate->count() > 1){\n //find all deductions less than this date\n $loanDeductionsLessDate = $consolidatedLoanDeductions\n ->where('date_entry','<',$item->date_entry)\n ->sortBy('date_entry');\n //find the total balance\n $credit = $loanDeductionsLessDate->sum('credit');\n $debit = $loanDeductionsLessDate->sum('debit');\n $lessDateBalance = $debit - $credit;\n\n //enter foreach loop\n foreach($loanDeductionsByDate as $deduction){\n $loanDeductionsByDateFilter = $loanDeductionsByDate->where('id','<',$deduction->id);\n\n $credit = $loanDeductionsByDateFilter->sum('credit');\n $debit = $loanDeductionsByDateFilter->sum('debit');\n $filterDateBalance = $debit - $credit;\n //add filter date balance with less balance and update new balance for that row\n\n //find individual row\n $deductItem = Userconsolidatedloan::find($deduction->id);\n $credit = $deductItem->credit;\n $debit = $deductItem->debit;\n $diffBal = $debit - $credit;\n $deductItem->balance = $lessDateBalance + $filterDateBalance + $diffBal;\n $deductItem->save();\n }\n\n }\n else\n {\n\n //total loan Balances\n $loanBalances = $this->initialConsolidatedLoanBalances($item->user_id,$item->date_entry);\n\n //find individual row\n $deductItem = Userconsolidatedloan::find($item->id);\n $credit = $deductItem->credit;\n $debit = $deductItem->debit;\n $myBal = $debit-$credit;\n $deductItem->balance = $loanBalances + $myBal;\n $deductItem->save();\n }\n\n }\n\n }", "function update_money($account,$total_money,$input_money){\n\t\t$total_money -= $input_money;\n\t\tglobal $connection;\n\t\t$query_mn = mysqli_query($connection,\"UPDATE khachhang SET `money`=$total_money WHERE account='$account'\" );\n\t\treturn $total_money;\n\t}", "public function update_account() {\n global $dbconfig;\n\n $user_id = $this->params['user_id'];\n $status = isset($this->params['status']) ? $this->params['status'] : BLOCKED;\n $account_dbobj = $this->params['account_dbobj'];\n $user_status = BLOCKED;\n $store_status = PENDING;\n\n if($status === ACTIVATED) {\n $user_status = CREATED;\n $store_status = PENDING;\n }\n\n // update users table\n $user_obj = new User($account_dbobj, $user_id);\n $user_obj->setStatus($status);\n $user_obj->save();\n\n $user = BaseModel::findCachedOne($dbconfig->account->name . \".user?id=$user_id\");\n if(!empty($user['store_id'])){\n $store_id = $user['store_id'];\n // store need to manually launch\n $store_obj = new Store($account_dbobj, $store_id);\n if($store_obj->getId()) {\n $store_obj->setStatus($store_status);\n $store_obj->save();\n if($store_status != ACTIVATED){\n GlobalProductsMapper::deleteProductsInStore($account_dbobj, $store_id);\n }\n }\n }\n }", "public function update(Request $request, Income $income)\n {\n //\n }", "public function UpdateAccountBalances () \r\n {\r\n $table = \"BALANCE\";\r\n $query = \"DROP TABLE IF EXISTS ${table}\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't remove old ${table} table\", mysql_error(self::$db));\r\n return (false);\r\n }\r\n $query = \"CREATE TEMPORARY TABLE ${table} SELECT ReceiptID AS AccountID, SUM(Total) As Receipts, (0) AS Payments FROM Transaction GROUP BY ReceiptID ORDER BY ReceiptID\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't compute ${table} table Receipts\", mysql_error(self::$db));\r\n return (false);\r\n }\r\n $query = \"INSERT INTO ${table} SELECT PaymentID AS AccountID, (0) AS Receipts, SUM(Total) AS Payments FROM Transaction GROUP BY PaymentID ORDER BY PaymentID\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't compute ${table} table Payments\", mysql_error(self::$db));\r\n return (false);\r\n }\r\n $query = \"UPDATE Account SET Receipts=(0.00), Payments=(0.00), Balance=(0.00)\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't clear Account table balances\", mysql_error(self::$db));\r\n return (false);\r\n }\r\n $query = \"UPDATE Account INNER JOIN ${table} ON ID=AccountID SET Account.Receipts=${table}.Receipts\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't update Account table Receipts\", mysql_error(self::$db));\r\n return (false);\r\n }\r\n $query = \"UPDATE Account INNER JOIN ${table} ON ID=AccountID SET Account.Payments=${table}.Payments\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't update Account table Payments\", mysql_error(self::$db));\r\n return (false);\r\n }\r\n $query = \"DROP TABLE IF EXISTS ${table}\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't remove new ${table} table\", mysql_error(self::$db));\r\n return (false);\r\n }\r\n return (true);\r\n }", "public function userCreated(User $user)\n {\n $userInformation = new \\App\\UserInformation;\n $userInformation->user_id = $user->id;\n $userInformation->save();\n\n // initialize balance\n $balance = new \\App\\Balance;\n $balance->user_id = $user->id;\n $balance->save();\n }", "public function update(UpdateIncome $request, $id)\n {\n $request->saveIncome($id);\n }", "public function add($user, $params)\n {\n return Income::create([\n \"user\" => $user,\n \"name\" => $params['name'],\n \"steady\" => $params['steady'] ?? false,\n \"pay_schedule\" => $params['pay_schedule'] ?? null,\n \"pay_date\" => $params['pay_date'] ?? null,\n \"tax\" => $params['tax'] ?? 0,\n \"description\" => $params['description'] ?? null,\n ]);\n }", "function releaseMoneyToContractor($userData)\n\t\t{\n\t\t\t$date = date('Y-m-d');\n\t\t\t//checking for milestone id and workroom id\n\t\t\t$milestone = $this->manageContent->getValue_where('milestone_info', '*', 'milestone_id', $userData['milestone']);\n\t\t\tif(!empty($milestone[0]))\n\t\t\t{\n\t\t\t\t//get workroom details\n\t\t\t\t$workroom = $this->manageContent->getValue_where('workroom_info', '*', 'workroom_id', $milestone[0]['workroom_id']);\n\t\t\t\tif($workroom[0]['emp_user_id'] == $_SESSION['user_id'] && $milestone[0]['funding_status'] == 1)\n\t\t\t\t{\n\t\t\t\t\t//update releasing value\n\t\t\t\t\t$update = $this->manageContent->updateMultipleValueMulCondition('milestone_info', array('release_status','release_date'), array(1,$date), array('milestone_id'), array($milestone[0]['milestone_id']));\n\t\t\t\t\t//insert valus to user money info table\n\t\t\t\t\t$column_name = array('specification','user_id','date','credit_amount','total_amount','status');\n\t\t\t\t\t//getting user total amount\n\t\t\t\t\t$user_amount = $this->manageContent->getLastValue('user_money_info', '*', 'user_id', $workroom[0]['con_user_id'], 'id');\n\t\t\t\t\t$new_user_money = $user_amount[0]['total_amount'] + $milestone[0]['amount'];\n\t\t\t\t\t$column_value = array($milestone[0]['milestone_id'],$workroom[0]['con_user_id'],date('Y-m-d h:m:s a'),$milestone[0]['amount'],$new_user_money,1);\n\t\t\t\t\t$insert = $this->manageContent->insertValue('user_money_info', $column_name, $column_value);\n\t\t\t\t\t\n\t\t\t\t\tif($update != 0 && $insert != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get project details\n\t\t\t\t\t\t$proDetails = $this->manageContent->getValue_where('project_info', '*', 'project_id',$workroom[0]['project_id']);\n\t\t\t\t\t\t//get contractor info\n\t\t\t\t\t\t$conInfo = $this->getEmailIdFromUserId($user_id);\n\t\t\t\t\t\t//sending mail\n\t\t\t\t\t\t$this->mailSent->mailForReleasingMoney($conInfo[0], $conInfo[1], $milestone[0]['milestone_name'], $proDetails[0]['title']);\n\t\t\t\t\t\t\n\t\t\t\t\t\techo 'Money Released';\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\techo 'Process Unsuccessfull';\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\techo 'Money Cant Be Released';\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function mint_update_account($session, $token, $account_id, $account_name, $total) {\n $_post = array(\n \"accountId\" => $account_id,\n \"types\" => \"ot\",\n \"accountName\" => $account_name, \n \"accountValue\" => $total,\n \"associatedLoanRadio\" => \"No\", \n \"accountType\" => \"3\", \n \"accountStatus\" => \"1\",\n \"token\" => $token,\n );\n $session->URLFetch(\"https://wwws.mint.com/updateAccount.xevent\", $_post);\n}", "public function profileUpdateBank(Request $request, PaystackApi $paystackApi, AccountUser $accountUser)\n {\n if ($accountUser->isDefaulter()) {\n return response()->json([\n 'errors' => [\n ['You can not change Bank Account information']\n ]\n ], 422);\n }\n\n $user = $request->user();\n\n if ($user->isPartner()) {\n $request->validate([\n 'bvn' => [\n 'required',\n Rule::unique('users')->ignore($user->id),\n ],\n 'account_number' => [\n 'min:10',\n 'max:10',\n Rule::unique('users')->ignore($user->id),\n ],\n 'bank' => 'required|exists:banks,id',\n ]);\n\n $data = $request->only(['account_number', 'bank', 'bvn']);\n }\n else {\n $request->validate([\n 'account_number' => [\n 'required',\n 'min:10',\n 'max:10',\n Rule::unique('users')->ignore($user->id),\n ],\n 'bank' => 'required|exists:banks,id',\n ]);\n\n $data = $request->only(['account_number', 'bank']);\n }\n\n\n\n $bank = Bank::find($request->get('bank'));\n\n try {\n $response = $paystackApi->resolveAccountNumber($request->get('account_number'), $bank->code);\n }\n catch (ClientException $exception) {\n $response = null;\n }\n catch (\\Exception $exception) {\n return response()->json([\n 'errors' => [\n ['Network error. Please, try again.']\n ]\n ], 422);\n }\n\n if ($response AND $response->status) {\n if (! NameMatching::validate($user->name, $response->data->account_name)) {\n return response()->json([\n 'errors' => [\n ['Bank Account Number does not belongs to Account Name. Please, check your inputs.']\n ]\n ], 422);\n }\n }\n\n $user->update($data);\n\n event(new UserUpdatedProfile($user));\n\n $request->session()->flash('success', 'Account updated');\n return ['status' => 'ok', 'message' => 'Account updated'];\n }", "public function update(Request $request, Debt $debt)\n {\n\n\n if ($request->type == 'credit') {\n if ($request->account_id != $debt->account_id) {\n $prev_account = Account::find($debt->account_id);\n $prev_account->total_sum = $prev_account->total_sum + $debt->total_sum;\n $prev_account->save();\n\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum - $request->total_sum;\n $curr_account->save();\n } else {\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum - $request->total_sum;\n $curr_account->save();\n }\n }else {\n if ($request->account_id != $debt->account_id) {\n $prev_account = Account::find($debt->account_id);\n $prev_account->total_sum = $prev_account->total_sum - $debt->total_sum;\n $prev_account->save();\n\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum + $request->total_sum;\n $curr_account->save();\n } else {\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum + $request->total_sum;\n $curr_account->save();\n }\n }\n\n $debt->account_id = $request->account_id;\n $debt->total_sum = $request->total_sum;\n $debt->type = $request->type;\n $debt->currency = $request->currency;\n $debt->agent_id = $request->agent_id;\n $debt->comment = $request->comment;\n\n $debt->save();\n\n return redirect('debts');\n\n }", "public function update(Request $request)\n {\n //dd($request->all());\n //\n //TODO: Validation required\n $member_id = $request->id;\n $installment_id = $request->installment_id;\n //Finding instance of the installment to be updated\n $installmentInDb = Installment::where('id',$installment_id)->first();\n //Storing the previous amount of the installment DB instance before changing\n $previous_amount =$installmentInDb->amount ;\n\n $installmentInDb->amount = $request->amount;\n $installmentInDb->installment_date = $request->installment_date;\n\n if($request->has('late_fee') && $installmentInDb->late_fee===0){\n $installmentInDb->late_fee = 1;\n $installmentInDb->save();\n\n //Adding 50 tk from Reserve Fund because of Late Fee removal\n $fund = Fund::where('name','=','Reserve Fund')->first();\n $fund->balance += 50;\n $fund->save();\n }\n else if($installmentInDb->late_fee===1){\n $installmentInDb->late_fee = 0;\n $installmentInDb->save();\n\n //Deducting 50 tk from Reserve Fund because of Late Fee removal\n $fund = Fund::where('name','=','Reserve Fund')->first();\n $fund->balance -= 50;\n $fund->save();\n }\n else{\n $installmentInDb->save();\n }\n //Checking if installment amount is changed\n if($previous_amount !== $request->amount){\n //Since Amount is changed, the `member_accounts` table's balance and `funds`\n //table's balance need to be updated.\n\n $member_acc = MemberAccount::where('member_id', $member_id)->first();\n $fund = Fund::where('name','=','Saving Fund')->first();\n\n //Checking whether new instance of installment amount is greater than the\n // installment instance in the DB.\n\n if($request->amount >$previous_amount){\n //`member_accounts` table's balance is updated to the increase in\n // installment amount.\n $member_acc->balance += ($request->amount - $previous_amount);\n //`funds` table's balance is updated to the increase in\n // installment amount\n $fund->balance += ($request->amount - $previous_amount);\n }\n else{\n //`member_accounts` table's balance is updated to the decrease in\n // installment amount\n $member_acc->balance -= ($previous_amount - $request->amount );\n //`funds` table's balance is updated to the decrease in\n // installment amount\n $fund->balance -= ($previous_amount - $request->amount );\n }\n //Saving the `member_accounts` and `funds` instances.\n $member_acc->save();\n $fund->save();\n }\n\n return redirect('/admin/installments');\n }", "function deposit($connection,$amount,$accno){\r\n try {\r\n $connection->beginTransaction();\r\n\r\n $accno = $_SESSION['accno'];\r\n $sql = \"UPDATE _accounts SET balance= :balance WHERE accno = :account\";\r\n $statement = $connection->prepare($sql);\r\n\r\n\r\n $final_bal = $amount + Services::getforAccountsBalance($connection,$accno);\r\n //do not deposit to self\r\n if($accno ==$_SESSION['accno']){\r\n return false;\r\n };\r\n //update balance\r\n $statement->execute(array(':balance' => $final_bal,':account'=>$accno));\r\n\r\n if($statement->rowCount()<1){\r\n return false;\r\n }\r\n //update transaction history\r\n $insert_sql = \"INSERT INTO _transactionshistory (accno,date,debit,credit,\r\n balance) VALUES(:accno,:date,:debit,:credit,:balance)\";\r\n $stmt = $connection->prepare($insert_sql);\r\n $stmt->execute(array(':accno'=>$accno,':date'=>date(\"Y/m/d\"),':debit'=>0,':credit'=>$amount,':balance'=>$final_bal));\r\n //$stmt = $connection->prepare($insert_sql);\r\n // if($stmt->rowCount()<1){\r\n // echo \"Insert failed\";\r\n // }else{\r\n // echo \"string\";\r\n // }\r\n $connection->commit();\r\n return true;\r\n } catch (Exception $e) {\r\n\r\n $connection->rollBack();\r\n return false;\r\n }\r\n\r\n }", "public function saveNewBalance($amount)\n {\n return tap($this->fill([\n 'accountBalance' => $this->accountBalance + $amount,\n ]))->save();\n }", "public function add(float $amount)\n {\n $this->balance += $amount;\n }", "public function update(Request $request, User $user)\n {\n $newUserData = $request->only(['firstName', 'secondName', 'middleName', 'debt']);\n $stateFee = $this->calcStateFee($newUserData['debt']);\n $newUserData['stateFee'] = $stateFee;\n $user->update($newUserData);\n return redirect()->route('users.index');\n }", "public function update(User $user, Payer $payer)\n {\n //\n }", "public function Account(Request $request, User $id)\n {\n $userinfo = new User([\n 'user_id' => $request->get('user_id'),\n 'prenom' => $request->get('prenom'),\n 'nom' => $request->get('nom'),\n 'email' => $request->get('email'),\n 'telephone' => $request->get('telephone'),\n ]);\n\n\n $id->update($request->all());\n session()->flash('message','Compte modifier avec succès');\n return redirect()->back();\n\n\n }", "public static function canAddPrice($user, $income)\n {\n return $user == Income::find($income)->user;\n }", "function updateBalance($sender, $recipient, $amount) {\n $senderBalance = selectAccountById($sender)->BALANCE;\n $recipientBalance = selectAccountById($recipient)->BALANCE;\n\n $newSenderBalance = $senderBalance - $amount;\n $newRecipientbalance = $recipientBalance + $amount;\n\n $connection = openDb();\n\n //Using prepared statements and parameterized queries:\n $sql = \"UPDATE accounts SET BALANCE = ? WHERE ID = ?\";\n $stmt = $connection->stmt_init();\n if(!$stmt->prepare($sql)) {\n return false;\n }\n $stmt->bind_param(\"di\",$newSenderBalance,$sender);\n\n if (!executeNonQuery($stmt, $connection)) {\n return false;\n }\n\n $connection = openDb();\n\n //Using prepared statements and parameterized queries:\n $sql = \"UPDATE accounts SET BALANCE = ? WHERE ID = ?\";\n $stmt = $connection->stmt_init();\n if(!$stmt->prepare($sql)) {\n return false;\n }\n $stmt->bind_param(\"ss\",$newRecipientbalance,$recipient);\n\n return executeNonQuery($stmt, $connection);\n}", "public function add_account($id,$balance){\n if(preg_match(\"/^[0-9]+$/\",$id) && preg_match(\"/^[-+]?[0-9]*\\.?[0-9]+$/\",$balance)){\n if(array_key_exists($id,$this->accounts)){\n return 4;\n }else{\n $account = new Account($id,$balance);\n $this->accounts[$account->id] = $account;\n return 0;\n }\n }else{\n return 3;\n }\n }", "public function update(User $user, Bid $bid)\n {\n //\n }", "public function wallet($user_id)\n\t{\n\t\tif(!$this->is_logged_in())\n\t\t{\n\t\t\t$this->session->set_flashdata('error', 'Please login to continue');\n\t\t\tredirect('home/login');\n\t\t}\n\t\t$user_id = $this->getUserId();\n\t\t$user_profile = $this->User->getUserProfile($user_id);\n\t\t$data['sharentoozbonus']=$user_profile->sharentoozbonus;\n\t\t$data['user_earnings'] = $user_profile->user_earnings;\n\t\t$data['user_coins'] = $user_profile->user_coins;\n\t\tif(!$this->User->isMobileVerified($user_id)){\n\t\t\t$this->session->set_flashdata('error', 'Please verify mobile number to continue.');\n\t\t\tredirect('home/profile/'.$user_id,'refresh');\n\t\t}\n\t\t$data['isLoggedin'] = $this->is_logged_in();\n\t\t$data['user_name'] = $this->getUserName();\n\t\t$data['user_id'] = $this->getUserId();\n\t\t$user_id = $this->getUserId();\n\n\t\t\n\t\t//$data['sharentoozbonus'] = $this->User->getsharentoozbonus($user_id)->sharentoozbonus;\n\t\t$this->load->helper('form');\n\t\t$this->load->library('form_validation');\n\t\t$this->load->library('session');\n\n\t\tif(!$this->is_logged_in())\n\t\t{\n\t\t\t$this->session->set_flashdata('error', 'Please login to continue');\n\t\t\tredirect('home/login');\n\t\t}\n\t\t$data['error'] = $this->session->flashdata('error');\n\t\t$data['info'] = $this->session->flashdata('info');\n\n\t\t$cur_user_id = $this->session->userdata['logged_in']['user_id'];\n\t\t$user_profile = $this->User->getUserProfile($user_id);\n\t\tif($user_profile AND $user_id == $cur_user_id)\n\t\t{\n\t\t\t$data['user_id'] = $user_profile->user_id;\n\t\t\t$data['user_earnings'] = $user_profile->user_earnings;\n\t\t\t$data['user_coins'] = $user_profile->user_coins;\n\t\t\t\n\t\t} else {\n\t\t\tshow_404();\n\t\t}\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('home/wallet', $data);\n\t\t$this->load->view('templates/footer', $data);\n\t}", "public function updateUserCash($cashChange) {\n\t\t$cashparams = array();\n\t\t$cashparams['cash'] = $cashChange;\n\t\n\t\t$conditions = array();\n\t\t$conditions['id'] = $this->id;\n\n\t\t$success = ConnectionFactory::updateTableRowRelativeBasic(\"users\", $cashparams, $conditions);\n\t\tif ($success) {\n\t\t\t$this->cash = $this->cash + $cashChange;\n\t\t}\n\t\treturn $success;\n\t}", "public function withdrawImpl($db, $amount){\n $stmt = $db->query(\"SELECT balance FROM account where id = \".$this->id);\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n $balance = $row['balance'];\n $need = $amount - $balance;\n if($need > 0){\n // Get all the other accounts that are owned by the owners of this\n // account\n $sql = \"SELECT DISTINCT(account_id) FROM account JOIN account_owner ON account_id = account_owner.account_id WHERE id <> $id AND (\";\n $first = true;\n foreach($this->getOwners() as $owner){\n if(!$first){\n $ccl.=\" OR \";\n }\n $first = false;\n $ccl .= \"owner = \".$owner->getId();\n }\n $ccl .= \")\";\n $stmt = $db->query($sql);\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n foreach($results as $row){\n if($need <= 0){\n break;\n }\n $toTransfer = $otherBalance > $need ? $need : $otherBalance;\n if($toTransfer > 0 ){\n $other = $row['account_id'];\n $stmt = $db->query(\"SELECT balance FROM account WHERE id = $other\");\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n $otherBalance = $row['balance'];\n $otherBalance -= $toTransfer;\n $balance += $toTransfer;\n $db->exec(\"UPDATE account SET balance = $otherBalance WHERE id = $other\");\n $db->exec(\"UPDATE account SET balance = $balance WHERE id = \".$this->id);\n $db->exec(\"INSERT INTO account_charge (account_id, charge) VALUES ($other, \\\"transfer $toTransfer to account \".$this->id.\"\\\")\");\n $need -= $toTransfer;\n }\n }\n if($need > 0){\n return false;\n }\n }\n $db->exec(\"UPDATE account set balance = \".$balance - $amount.\" WHERE id = \".$this->id);\n return true;\n }", "function financialBalance($userId, $business_id, $conn) {\n $key_balance_info = getKeyFromCatalogue('Financial Summary', 'Balance Sheet', '', 'tbl_business_answer', $conn);\n insertNewTab($key_balance_info, getAnswerByQuery($key_balance_info, $conn), 'key', $userId, $business_id, $conn);\n }", "function updateBalance($balance){\r\n //$db = new Database();\r\n // $conn = $db->getConnect();\r\n \r\n //run query to get balance\r\n $sql = \"UPDATE `SAVING` SET BALANCE= $balance\";\r\n $result = $this->conn->query($sql);\r\n \r\n if ($result){ \r\n //update successful\r\n //$conn->close();\r\n return 1;\r\n }\r\n else{\r\n // update failed\r\n //$conn->close();\r\n return 0;\r\n }\r\n }", "function update_bank_account($form = array(), $userid = 0)\n {\n global $ilance, $ilconfig, $phrase, $ilpage;\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"bankaccounts\n SET beneficiary_account_name = '\" . $ilance->db->escape_string($form['beneficiary_account_name']) . \"',\n\t\t\t destination_currency_id = '\" . intval($form['destination_currency_id']) . \"',\n\t\t\t beneficiary_bank_name = '\" . $ilance->db->escape_string($form['beneficiary_bank_name']) . \"',\n\t\t\t beneficiary_account_number = '\" . $ilance->db->escape_string($form['beneficiary_account_number']) . \"',\n\t\t\t beneficiary_bank_routing_number_swift = '\" . $ilance->db->escape_string($form['beneficiary_bank_routing_number_swift']) . \"',\n\t\t\t bank_account_type = '\" . $ilance->db->escape_string($form['bank_account_type']) . \"',\n\t\t\t beneficiary_bank_address_1 = '\" . $ilance->db->escape_string($form['beneficiary_bank_address_1']) . \"',\n\t\t\t beneficiary_bank_address_2 = '\" . $ilance->db->escape_string($form['beneficiary_bank_address_2']) . \"',\n\t\t\t beneficiary_bank_city = '\" . $ilance->db->escape_string($form['beneficiary_bank_city']) . \"',\n\t\t\t beneficiary_bank_state = '\" . $ilance->db->escape_string($form['beneficiary_bank_state']) . \"',\n\t\t\t beneficiary_bank_zipcode = '\" . $ilance->db->escape_string($form['beneficiary_bank_zipcode']) . \"',\n\t\t\t beneficiary_bank_country_id = '\" . intval($form['beneficiary_bank_country_id']) . \"'\n WHERE bank_id = '\".intval($form['bankid']).\"'\n AND user_id = '\" . intval($userid) . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n return true;\n }", "function updateSavingsBalance($db_link, $cust_id){\n\t\t$sql_savbal_upd = \"UPDATE savbalance SET savbal_balance = (SELECT SUM(sav_amount) FROM savings WHERE cust_id = $cust_id) WHERE cust_id = $cust_id\";\n\t\t$query_savbal_upd = mysqli_query($db_link, $sql_savbal_upd);\n\t\tcheckSQL($db_link, $query_savbal_upd, $db_link);\n\t}", "public function update(WalletRequest $request)\n {\n $validated = $request->validated();\n\n $amount = $request->balance;\n\n try{\n\n $wallet = Wallet::with('user')->where('user_id', Auth::id())->firstOrFail();\n\n if(!(Auth::id() === $wallet->user->id))\n {\n throw new \\Exception('Access Denied');\n }\n\n $wallet->topUpBalance($wallet, $amount, new Transaction);\n\n return redirect()->route('accounts.index');\n\n }catch(\\Exception $e){\n\n return redirect()->back()->withErrors(['error' => $e->getMessage()]);\n\n }\n }", "public function updateTotalAmount($request_id,$total_amount,$is_request = true)\n {\n if ($is_request == true)\n {\n $request = Mp3music_Api_Cart::getPaymentRequest($request_id);\n $table = Engine_Api::_()->getDbtable('paymentAccounts', 'mp3music');\n $data = array(\n 'total_amount' => $total_amount-$request['request_amount']\n );\n $where = $table->getAdapter()->quoteInto('user_id = ?',$request['request_user_id'] );\n $table->update($data, $where); \n }\n else\n {\n $account = Mp3music_Api_Cart::getFinanceAccount($request_id);\n $account_id = 0;\n if ( $account == null )\n {\n $params = array();\n $params['account_username']= Engine_Api::_()->user()->getViewer()->email;\n $params['account_password']='';\n $params['total_amount']= 0;\n $params['account_status']= 1;\n $params['payment_type']= 2;\n $params['user_id']= Engine_Api::_()->user()->getViewer()->getIdentity();\n $account_id = Mp3music_Api_Account::insertAccount($params);\n $table = Engine_Api::_()->getDbtable('paymentAccounts', 'mp3music');\n $data = array(\n 'total_amount' => $total_amount+$account['total_amount']\n );\n $where = $table->getAdapter()->quoteInto('user_id = ?',$account_id);\n $table->update($data, $where); \n }\n else\n {\n $table = Engine_Api::_()->getDbtable('paymentAccounts', 'mp3music');\n $data = array(\n 'total_amount' => $total_amount+$account['total_amount']\n );\n $where = $table->getAdapter()->quoteInto('user_id = ?',$account['user_id']);\n $table->update($data, $where); \n } \n } \n }", "public function update(Request $request, OtherIncome $otherIncome)\n {\n //\n }", "public function update(Request $request, TotalBalance $totalBalance)\n {\n //\n }", "public function balance($user_name)\n {\n $vitals = $this->private_user_data($user_name, 'vitals');\n return $vitals->balance;\n }", "public function store(Requests\\AddAccountFormRequest $request)\n {\n $a=$request['balance'];\n $amount= str_replace(',','',$a) ;\n $ttype=43;\n $period=\\date(\"t/m/Y\");\n $date=date('d/m/Y');\n $year=(date(\"Y\")) .\"/\". (date(\"Y\") + 1);\n $actor=$request->session()->get('flatUser.id');\n $account= AccountModel::create([\n 'ACCOUNT_NAME' => $request['name'],\n 'PARENT_ACCOUNT' => $request['type'],\n 'ACCOUNT_DESCRIPTION' => $request['naration'],\n 'AFFECTS' => @implode(\",\",$request['affects']),\n 'ACCOUNT_BALANCE' => $amount,\n 'ACCOUNT_CODE' => $request['code'],\n 'BALANCE_TYPE' => $request['balance_type'],\n 'BUSINESS_PERSON' => $request['people'],\n 'PERIOD' => $period,\n 'YEAR' => $year,\n \n ])->ACCOUNT_ID;\n \\DB::table('account_code')->increment('NO');\n \n // if accounts have opening balance do this\n if($amount>0){\n \n \n $code = \\DB::table('codes')->lists('TRANSACTION');\n $tcode=$code[0];\n \n $period= date(\"t/m/Y\");\n if($request['balance_type']=='Debit'){\n $year=(date(\"Y\")) .\"/\". (date(\"Y\") + 1);\n $d=$request['date'];\n $date=date(\"d/m/Y\", strtotime($d)); \n $actor=$request->session()->get('flatUser.id');\n GeneralLedgerModel::create([\n 'TRANS_DATE' => $date,\n 'PERIOD' => $period,\n 'ACCOUNT' => $account,\n 'DEBIT' => $amount,\n 'CREDIT' =>'',\n 'NARRATIVE' => 'Openning books of accounts',\n 'TAG'=> $request['tag'],\n 'TRANSACTION_ID'=> $tcode,\n 'TRANSACTION_TYPE'=> $ttype,\n 'YEAR' => $year,\n 'ACTOR' => $actor,\n \n \n ]);\n }\n else{\n GeneralLedgerModel::create([\n 'TRANS_DATE' => $date,\n 'PERIOD' => $period,\n 'ACCOUNT' =>$account,\n 'DEBIT' =>'' ,\n 'CREDIT' =>$amount,\n 'NARRATIVE' => 'Openning books of accounts',\n 'TAG'=> $request['tag'],\n 'TRANSACTION_ID'=> $tcode,\n 'TRANSACTION_TYPE'=> $ttype,\n 'YEAR' => $year,\n 'ACTOR' => $actor,\n \n ]);\n \n }\n }\n \n \n $browser=$_SERVER['HTTP_USER_AGENT'];\n $user=$request->session()->get('flatUser.id');\n $ip= $_SERVER['REMOTE_ADDR'];\n $page= $_SERVER['REQUEST_URI'];\n $hostname=gethostbyaddr($_SERVER['REMOTE_ADDR']);\n $event=$request['type'];\n \n $activity=$request->session()->get('flatUser.username').\" has openned \". $request['name'].\" Account with amount GHC \" .$amount;\n\t \n // logging \n systemLogModel::create([\n 'USERNAME' => $user,\n 'EVENT_TYPE' => $event,\n 'ACTIVITIES' => $activity,\n 'HOSTNAME' =>$hostname ,\n 'IP' =>$ip,\n 'PAGES_VISITED' =>$page,\n 'BROWSER_VERSION' => $browser,\n \n ]);\n \n \n \n \n \n $request->session()->flash('alert-success', 'Data successfully saved!');\n return \\Redirect::to('add_account');\n }", "public function update(User $user, Checkout $checkout)\n {\n //\n }", "public function awardExperience(Request $request){\n\t\t$from = Auth::user();\n\t\t$amount = $request->amount;\n\t\t$user = User::find($request->user['id']);\n\n\t\t$user->load('progression'); \n\t\t$user->progression->awardExperience($amount);\n\n\t\treturn $user;\n\t}", "function classiera_save_extra_profile_fields( $user_id ) {\r\n\tupdate_user_meta( $user_id, 'price_plan' );\r\n\tadd_user_meta( $user_id, 'price_plan_id' );\r\n}", "public function addBalencePost(Request $req, $walletId)\n {\n\n $req->validate([\n 'balence' => 'required|between:0,999999999:999|max:12',\n ]);\n\n // get total balance of wallet from DB\n $total = Auth::user()->wallets()->where('id', $walletId)->get('total');\n $total = $total[0][\"total\"];\n\n // Check + or -\n $balence = $req->balence;\n if($req->input('submit') == \"minus\"){\n // Negetive balance amount\n $balence = -$balence;\n }\n\n // Make new total value\n $total += $balence;\n \n // Flash message\n if($total < 0){\n $req->session()->flash(\"fail\", \"You are Debtor.\");\n }\n else{\n $req->session()->flash(\"success\", \"Your balence successfully stored.\");\n }\n\n // (Manually) Make a transaction for check both Balence and Wallet DB work correctly\n // DB::beginTransaction();\n // try{\n // // Store new balence in Balence\n // $balence = Balence::create([\n // 'wallet_id' => $walletId,\n // 'balance' => $balence,\n // 'total' => $total\n // ]);\n\n // // update 'total' in Wallet\n // Wallet::whereId($walletId)->update(['total' => $total]);\n \n // DB::commit();\n // }\n // catch(\\Exception $ex){\n // DB::rolleback();\n // throw $ex;\n // }\n\n \n // (Automaticlly) Make a transaction for check both Balence and Wallet DB work correctly\n DB::transaction(function() use ($walletId, $balence, $total) {\n // Store new balence in Balence\n $balence = Balence::create([\n 'wallet_id' => $walletId,\n 'balance' => $balence,\n 'total' => $total\n ]);\n\n // update 'total' in Wallet\n Wallet::whereId($walletId)->update(['total' => $total]);\n });\n\n return view('addBalence', [\"walletId\" => $walletId]);\n }", "function getfaircoin_edd_pre_update_user_profile( $user_id, $userdata ) {\r\n $fairaddress = isset( $_POST['edd_fairaddress'] ) ? $_POST['edd_fairaddress'] : '';\r\n $fairsaving = isset( $_POST['edd_fairsaving'] ) ? $_POST['edd_fairsaving'] : '0';\r\n // Make sure user enters a fairaddress number\r\n if ( ! $fairsaving && ! $fairaddress ) {\r\n edd_set_error( 'fairaddress_required', __( 'Please enter a Faircoin Address', 'edd-getfaircoin' ) );\r\n }\r\n // update fairaddress number\r\n update_user_meta( $user_id, '_edd_user_fairaddress', $fairaddress );\r\n update_user_meta( $user_id, '_edd_user_fairsaving', $fairsaving );\r\n}", "public function update(Request $request, $id_balance)\n {\n $constraints = [\n 'balance' => 'required',\n ];\n\n $input = [\n 'balance' => $request['balance'],\n ];\n \n $this->validate($request, $constraints);\n\n UserBalance::where('id_balance', $id_balance)->update($input);\n\n if ($request->wantsJson())\n {\n return response()->json(\"Success\");\n }\n\n return redirect()->intended('/balance-admin');\n }", "public function setUserAccount(?UserAccount $value): void {\n $this->getBackingStore()->set('userAccount', $value);\n }", "public function taskAddCredit($amount,$user=null,$message=null)\n\t{\n\t\t$user=$user?$user:app()->user->model();\n\t\t$credit = $user->credit;\n\t\tif(!$credit)\n\t\t{\n\t\t\t$credit = new MPaymentCredit;\n\t\t\t$credit->id = $user->id;\n\t\t\t$credit->amount = 0;\n\t\t}\n\t\t\n\t\t$credit->amount+= $amount;\n\t\t$credit->save();\n\t\t\n\t\tif($message)\n\t\t{\n\t\t\t$m = new MTransactionHistory;\n\t\t\t$m->userId = $user->id;\n\t\t\t$m->action = $amount >= 0 ? 'plus' : 'minus';\n\t\t\t$m->amount = $amount;\n\t\t\t$m->comment = $message;\n\t\t\t$m->date = time();\n\t\t\t$m->save();\n\t\t}\n\t}", "public function update($user, array $input): void\n {\n $this->authorize(\n 'update',\n $this->user = $user->fresh()\n );\n\n $this->user->update(\n $this->validate($input)\n );\n }", "public function updateUserSpendData($data,$user)\n {\n \n $query=$GLOBALS['$dbFramework']->query(\"\n SELECT \n * \n FROM \n representative_details \n where \n user_id='$user'\n \");\n\n if($query->num_rows()>0)\n {\n $update = $GLOBALS['$dbFramework']->update('representative_details' ,$data, array('LOWER(user_id)' => strtolower($user)));\n return $update;\n }\n else\n {\n $insert = $GLOBALS['$dbFramework']->insert('representative_details',$data);\n return $insert;\n } \n\n }", "public function update_referral_balance_and_bonus_records_transaction($referrer_id, $new_user_id)\r\n\t{\r\n\t\t$current_date = $this->general->get_local_time('time');\r\n\t\t\r\n\t\t//update referrers bonus\r\n\t\t$this->db->set('balance', 'balance+'.REFER_BONUS, FALSE);\r\n\t\t$this->db->where('id', $referrer_id);\r\n\t\t$this->db->update('members');\r\n\t\t\r\n\t\t//add transaction to transaction table\r\n\t\t$txn_data = array(\r\n\t\t 'user_id' => $referrer_id,\t\t \t\t\r\n\t\t 'credit_get' => REFER_BONUS,\r\n\t\t 'credit_debit' => 'CREDIT',\r\n\t\t 'transaction_name' => lang('referral_bonus').' :'.$new_user_id,\r\n\t\t 'transaction_date' => $current_date,\r\n\t\t 'transaction_type' => 'referer_bonus',\r\n\t\t 'transaction_status' => 'Completed',\r\n\t\t 'payment_method' => 'direct',\r\n\t\t 'current_balance' => 'current_balance +'.$user_total_balance\r\n\t\t\t);\r\n\t\r\n\t\t$this->db->insert('transaction', $txn_data);\r\n\t\treturn $this->db->insert_id(); \t\r\n\t}", "function add_interest($amount, $date_start, $date_end, $period, $extra) {\n $extra = $this->earning->interest_extra;\n $this->earning->add_interest($amount, $date_start, $date_end, $period, $extra);\n }", "function addCredit($credit, $id) { // user_charge.php, user_charge_package_10.php\r\n\r\n\tglobal $mysqli,$db_table_prefix; \r\n\r\n\t\t$stmt = $mysqli->prepare(\"UPDATE \".$db_table_prefix.\"user_credits\r\n\r\n\t\t\tSET\r\n\r\n\t\t\tcredits = credits + ?\r\n\r\n\t\t\tWHERE\r\n\r\n\t\t\tuser_id = ?\r\n\t\t\t\r\n\t\t\tAND credits >= 0\");\r\n\r\n\t$stmt->bind_param(\"ii\", $credit, $id);\r\n\r\n\t$result = $stmt->execute();\r\n\r\n\t$stmt->close();\t\r\n\r\n\treturn $result;\r\n\r\n}", "private function editAccount()\n {\n try\n {\n global $userquery; \n\n $request = $_REQUEST;\n\n if(!userid())\n throw_error_msg(\"Please login to perform this action\");\n\n //country\n if(!isset($request['country']) || $request['country']==\"\")\n throw_error_msg(\"provide country\");\n\n //sex\n if(!isset($request['sex']) || $request['sex']==\"\")\n throw_error_msg(\"provide sex\");\n\n if(!in_array($request['sex'], array('male','female')))\n throw_error_msg(\"sex must be male/female\");\n\n //dob\n if(!isset($request['dob']) || $request['dob']==\"\")\n throw_error_msg(\"provide dob\");\n\n if(!isset($request['dob']) || $request['dob']==\"\")\n throw_error_msg(\"provide dob\");\n\n $is_valid_date = DateTime::createFromFormat('Y-m-d', $request['dob']);\n\n if(!$is_valid_date)\n throw_error_msg(\"dob must be in Y-m-d like 1990-11-18 format\");\n\n if(!isset($request['category']) || $request['category']==\"\")\n throw_error_msg(\"provide category\");\n\n $request['userid'] = userid();\n $userquery->update_user($request);\n\n if( error() )\n {\n throw_error_msg(error('single')); \n }\n else\n {\n $user_info = format_users($request['userid']);\n \n $data = array('code' => \"204\", 'status' => \"success\", \"msg\" => \"success\", \"data\" => $user_info);\n $this->response($this->json($data)); \n } \n\n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage());\n }\n }", "function getfaircoin_edd_save_extra_profile_fields( $user_id ) {\r\n if ( ! current_user_can( 'edit_user', $user_id ) )\r\n return false;\r\n update_user_meta( $user_id, '_edd_user_fairaddress', $_POST['_edd_user_fairaddress'] );\r\n update_user_meta( $user_id, '_edd_user_fairsaving', $_POST['_edd_user_fairsaving'] );\r\n}", "public function addIncomeAction()\n\t{\n\t\t$income = new Income($_POST);\n\t\t\n\t\tif ($income->addIncome()) {\n\t\t\tFlash::addMessage('Add income successful!');\n\t\t\t\n\t\t\t$this->redirect('/profile/incomeForm');\n\t\t} else {\n\t\t\tFlash::addMessage('Add income unsuccessful, please try again!', Flash::WARNING);\n\t\t\t\n\t\t\tView::renderTemplate('Income/addIncome.html', [\n\t\t\t'date' => $income->date,\n\t\t\t'incomes' => Income::getIncomesCategories(),\n\t\t\t'income' => $income\n\t\t]);\n\t\t}\n\t}", "public function store(Request $request)\n {\n $request->validate([\n 'email_invoice' => 'nullable|email|max:255',\n 'email_note' => 'nullable|email|max:255',\n ]);\n\n $sale_id = session('sale_id');\n $acc_bal = 0;\n\n if(!$sale_id){\n session(['soldProds' => []]);\n session(['salePrice' => 0]);\n Session::flash('error', env(\"SAVE_SUCCESS_MSG\",\"An error occured! Please contact admin\"));\n return redirect(route('home'));\n }\n\n $sale = Sale::find($sale_id);\n $user = User::find($sale->user_id);\n\n if( $request->paymentMethod != 1 )\n {\n if( $request->amountReceived > 0 ){\n $this->fundUserAcc( $request->amountReceived - abs($request->balance),$user->id);}\n $acc_bal = $this->get_user_acc_bal($user);\n $amountReceived = 0;\n if( $acc_bal >= $request->balance ){ $amountReceived = $request->balance;}\n\n }else{\n\n $amountReceived = $request->amountReceived;\n }\n\n if( $sale->amountDue <= $amountReceived ){$status = 1;}else{$status=0;}\n\n Sale::where('id',$sale_id)->update([\n 'paymentMethod' => $request->paymentMethod,\n 'amountReceived' => $amountReceived,\n 'transacion_code' => $request->transacion_code,\n 'cheque_no' => $request->cheque_no,\n 'status' => $status,\n ]);\n\n //update user account\n if( $request->balance < 0 || $request->paymentMethod == 4){\n $debit = new UserTransactions;\n $debit->user_id = $sale->user_id;\n $debit->debit = abs($request->balance);\n $debit->save();\n if( $acc_bal <= $request->balance || $request->paymentMethod == 1 ){\n $this->create_invoice($user,$sale,$debit->debit,$name='invoice');\n }\n }\n /*else{\n $credit = new UserTransactions;\n $credit->user_id = $sale->user_id;\n //$credit->credit = $request->balance;\n $credit->save();\n }*/\n\n\n\n //save products\n\n if( session('soldProds') != null) {$soldProds = session('soldProds');}\n\n foreach ($soldProds as $soldProd) {\n $product = Product::find($soldProd['id']);\n $revenue = new Revenue;\n $revenue->sale_id = $sale->id;\n $revenue->product_id = $product->id;\n $revenue->soldQuantity = $soldProd['qty'];\n $revenue->description = $product->name.\" \".$product->description;\n $revenue->unitPrice = $product->salePrice;\n $revenue->sellingPrice = $soldProd['cost'];\n $revenue->save();\n\n $prodNewQuantity = $product->inventory->availableQuantity - $soldProd['qty'];\n\n //update quantity\n Inventory::where('product_id',$product->id)->update([\n 'availableQuantity' => $prodNewQuantity,\n ]);\n\n }\n\n //email invoice\n if($request->email_invoice){\n $SALEPRICE = 0;\n if(session('salePrice')){$SALEPRICE = session('salePrice');}\n $this->share_invoice($sale_id,$request->email_invoice,$SALEPRICE);\n }\n\n //email delivery note\n if($request->email_note){\n $this->share_delivery_note($sale_id,$request->email_note);\n }\n\n\n\n session(['soldProds' => []]);\n session(['salePrice' => 0]);\n session(['sale_id'=>'']);\n Session::flash('message', env(\"SAVE_SUCCESS_MSG\",\"Payment recorded successfully!\"));\n return redirect(route('sales.index'));\n\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'account_' => 'integer|required',\n 'category_' => 'integer|required',\n 'amount_' => 'numeric|required',\n 'date_' => 'required|date_format:d/m/Y'\n ]);\n \n $account_id = $request->input('account_');\n $amount = str_replace(',', '.', $request->input('amount_'));\n\n $account = Account::find($account_id);\n\n if($account->balance >= $amount)\n {\n //Create Expense\n $expense = new Expense;\n $expense->user_id = auth()->user()->id;\n $expense->account_id = $account_id;\n $expense->category_id = $request->input('category_');\n $expense->amount = $amount;\n $expense->date = Carbon::createFromFormat('d/m/Y', $request->input('date_'));\n $expense->save();\n\n //Update the balance\n $new_balance = $account->balance - abs($amount);\n $account->balance = $new_balance;\n $account->save();\n\n return redirect('/operations')->with('success','<strong>'.$account->name.'</strong> balance is now: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>');\n }\n else\n {\n return redirect('/operations')->with('error','You don’t have enough funds in this account. <strong>'.$account->name.'</strong> balance is: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>')->withInput();\n }\n \n }", "public function transaction(User $user)\n {\n }" ]
[ "0.7186446", "0.70116407", "0.6971003", "0.682782", "0.6742104", "0.67020196", "0.6411656", "0.6388643", "0.6381214", "0.63696676", "0.6346531", "0.63418406", "0.63284004", "0.6308818", "0.630253", "0.6275052", "0.6158905", "0.6147994", "0.612545", "0.61162007", "0.610759", "0.60941446", "0.6083893", "0.6030999", "0.5954258", "0.5935602", "0.59166515", "0.58961284", "0.5894284", "0.5881687", "0.58703125", "0.5861704", "0.5854014", "0.5847723", "0.57940006", "0.5779738", "0.57743645", "0.5771347", "0.5767347", "0.57582045", "0.57503206", "0.57492006", "0.57490814", "0.5747223", "0.5713447", "0.5708813", "0.57055885", "0.5686114", "0.5676077", "0.5672309", "0.5667269", "0.5663091", "0.56593305", "0.5658101", "0.56453806", "0.56230474", "0.5621012", "0.5618122", "0.5609739", "0.560345", "0.56010383", "0.5590239", "0.5589229", "0.55880576", "0.5584641", "0.5579677", "0.55769897", "0.55733603", "0.55730945", "0.5553885", "0.55481005", "0.5544026", "0.55397713", "0.5537602", "0.55365264", "0.5532446", "0.553054", "0.5528825", "0.55277586", "0.55252427", "0.55216306", "0.5516241", "0.5512058", "0.55099076", "0.54999065", "0.5499588", "0.5498477", "0.54964656", "0.5495121", "0.5493071", "0.548508", "0.54805684", "0.54767513", "0.54760885", "0.5471849", "0.54718333", "0.54557085", "0.54519236", "0.5448288", "0.54435676" ]
0.7166952
1
Add expense associated with user and update balance on account
public function addExpense($amount) { $account = Account::findOne([ 'username' => $this->getCurrentUser()->username, ]); $account->balance -= $amount; $account->update(true, ['balance']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function updateBalance()\n {\n if (!auth()->user()->hasRole('admin')) {\n auth()->user()->update([\n 'credit' => auth()->user()->credit - $this->totalCost()\n ]);\n }\n }", "public function addBalance(KittyInterface $kitty, UserInterface $user, $balance);", "function updateUserBalance($user, $sum){\r\n global $pdo;\r\n $stmt = $pdo->prepare('UPDATE users SET UserBalance = UserBalance + :UserBalance WHERE UserID = :UserID');\r\n $stmt->execute(array(':UserBalance' => $sum, ':UserID' => $user));\r\n}", "public function addIncome($amount, $username)\n {\n $account = Account::findOne([\n 'username' => $username,\n ]);\n\n $account->balance += $amount;\n\n $account->update(true, ['balance']);\n }", "function charge_deposit($acc_number,$sum)\n\t{\n\t $this->db->query(\"UPDATE pamm_summaries SET deposit = deposit+$sum WHERE acc_number=$acc_number\");\n\t}", "public function addExp($user_id, $amount) {\n syslog(LOG_DEBUG, \"addExp($user_id, $amount)\");\n $user_level_config = $this->getGameConfig('user_level');\n if (!$user_level_config) {\n syslog(LOG_ERR, \"updateExp($user_id, $amount) error:user_level_config not configured\");\n return false;\n }\n $user = $this->getUser($user_id);\n $current_level = $user['level'];\n $exp = $user['exp'] + $amount;\n $level_boundary = $user_level_config['level_exp_boundary'];\n $level_config = $user_level_config['level_config'];\n\n $new_level = $current_level;\n $max_level = count($level_boundary);\n $max_exp = $level_boundary[$max_level-1];\n # level1 [0,100) level2 [100,200) ..., level9 [800,900), level10[900,900], \n # level_boundary [0=>0, 1=>100, 2=>200,..., 9=>900]\n if ($exp >= $max_exp) {\n $exp = $max_exp;\n $new_level = $max_level;\n } else {\n // stop condition: $new_level==$max_level or $exp<$level_boundary[$new_level]\n while ($new_level < $max_level && $exp >= $level_boundary[$new_level]) {\n $new_level++;\n }\n }\n syslog(LOG_DEBUG, \"new level $new_level for $user_id\");\n\n $res = array('level'=> $new_level, 'exp'=> $exp);\n\n $resque_lib = $this->_di->getShared('resque_lib');\n if ($new_level != $current_level) {\n // level up\n if (intval($new_level) < intval($current_level)) {\n syslog(LOG_ERR, \"unexpected condition, level $new_level less than old $current_level for $user_id\");\n return false;\n }\n # new mission energy limit\n $current_mission_energy_limit = $level_config[$current_level]['mission_energy_limit'];\n $new_mission_energy_limit = $level_config[$new_level]['mission_energy_limit'];\n // do not set energy to db\n $this->incrProfBy($user_id, self::$USER_PROF_FIELD_EXP, $exp - $user['exp']);\n $this->setProf($user_id, self::$USER_PROF_FIELD_LEVEL, $new_level);\n # done: update db\n $resque_lib->setJob('user', 'profchange', array('uid'=> $user_id, \n 'level'=>$new_level-$current_level, 'exp'=>$exp - $user['exp']));\n // done: add mission energy to redis if exists\n $energy_bonus = ($new_level-$current_level) * 40;\n $res['mission_energy'] = $this->addMissionEnergy($user_id, $energy_bonus);\n /*\n $e_inc = $new_mission_energy_limit - $current_mission_energy_limit;\n if ($e_inc > 0) {\n //$energy = $this->incrProfBy($user_id, self::$USER_PROF_FIELD_ENERGY, $e_inc);\n $energy = $this->addMissionEnergy($user_id, $e_inc);\n syslog(LOG_DEBUG, \"increase mission energy $e_inc to $user_id\");\n $res['mission_energy'] = $energy;\n #$res['mission_energy_limit'] = $new_mission_energy_limit;\n }\n */\n // done: enque job to udpate fragment index\n $resque_lib->setJob('fragindex', 'FragmentIndex', array('cmd'=>'levelup', 'role_id'=> $user_id, 'old_level'=> $current_level, 'new_level'=> $new_level));\n //$resque_lib->setJob('user', 'levelup', array('uid'=> $user_id, 'old_level'=> $current_level, 'new_level'=> $new_level));\n if (isset($user[self::$USER_PROF_FIELD_LAST_LOGIN])) {\n $loginindex_lib = $this->_di->getShared('loginindex_lib');\n $loginindex_lib->levelUpEvent($user_id, $current_level, $new_level, $user[self::$USER_PROF_FIELD_LAST_LOGIN]);\n }\n } else if ($exp != $user['exp']) {\n // done: update new exp to db\n syslog(LOG_DEBUG, \"$user_id add exp $amount level $current_level\");\n $this->incrProfBy($user_id, self::$USER_PROF_FIELD_EXP, $exp - $user['exp']);\n # done: update db\n $resque_lib->setJob('user', 'profchange', array('uid'=> $user_id, 'exp'=> $exp-$user['exp']));\n }\n return $res;\n }", "public function update(Request $request, Expense $expense)\n { \n $this->validate($request, [\n 'amount' => 'numeric|required',\n 'date' => 'required|date_format:d/m/Y'\n ]);\n $account_id = $request->input('account');\n $amount = str_replace(',', '.', $request->input('amount'));\n\n $amount_old = $expense->amount;\n $account_id_old = $expense->account_id;\n $account_old = Account::find($account_id_old);\n\n //Rollback to old balance\n $old_balance = $account_old->balance + abs($amount_old);\n $account_old->balance = $old_balance;\n $account_old->save();\n\n $account = Account::find($account_id);\n\n if($account->balance >= $amount)\n { \n\n //Update Expense\n $expense->account_id = $account_id;\n $expense->category_id = $request->input('category');\n $expense->amount = $amount;\n $expense->date = Carbon::createFromFormat('d/m/Y', $request->input('date'));\n $expense->save();\n \n //Update the balance\n $new_balance = $account->balance - abs($amount);\n $account->balance = $new_balance;\n $account->save();\n\n return redirect('/operations')->with('success','<strong>'.$account->name.'</strong> balance is now: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>');\n }\n else\n {\n //Undo the rollback\n $old_balance = $account_old->balance - abs($amount_old);\n $account_old->balance = $old_balance;\n $account_old->save();\n //\n return redirect()->route('expenses.edit', $expense->id)->with('error','You don’t have enough funds in this account. <strong>'.$account->name.'</strong> balance is: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>')->withInput();\n }\n }", "public function testUpdateExpense()\n {\n $attributes = array(\n 'amount' => 24344,\n 'merchant_id' => 1,\n 'category_id' => 1,\n 'created_at' => date('Y-m-d H:i:s')\n );\n\n $response = $this->call('PUT', 'v1/expenses/1', $attributes);\n $data = json_decode($response->getContent());\n\n $this->assertFalse($data->error);\n $this->assertEquals('Expense has been updated.', $data->message);\n }", "public function update(User $user) {\n \t$this->validate(request(), [\n \t\t'balance' => array('required', 'regex:/^\\d*(\\.\\d{2})?$/')\n \t]);\n\n \t$req = request()->all()['balance'];\n \t$new = $user->balance + $req;\n\n \t$user->update(['balance' => $new]);\n \treturn redirect('users/');\n }", "public function addExpenseAction()\n\t{\n\t\t$expense = new Expense($_POST);\n\t\t\n\t\tif ($expense->addExpense()) {\n\t\t\tFlash::addMessage('Add expense successful!');\n\t\t\t\n\t\t\t$this->redirect('/profile/expenseForm');\n\t\t} else {\n\t\t\tFlash::addMessage('Add expense unsuccessful, please try again!', Flash::WARNING);\n\t\t\t\n\t\t\tView::renderTemplate('Expense/addExpense.html', [\n\t\t\t'date' => $expense->date,\n\t\t\t'payments' => Payment::getPaymentsCategories(),\n\t\t\t'expenses' => Expense::getExpensesCategories(),\n\t\t\t'expense' => $expense\n\t\t]);\n\t\t}\n\t}", "public function add() {\n\t\t$entry = $this->getEntryToAdd('clov_expense');\n\t\t\n\t\t// Default to the logged-in user.\n\t\t$loggedInUser = new User;\n\t\t$entry->setAttribute('clov_expense_payer', $loggedInUser->getUserID());\n\t\t\n\t\t// If the user got here from a project page, pre-fill the project \n\t\t// attribute.\n\t\tLoader::helper('clov_url', 'clov');\n\t\tif($project = ClovUrlHelper::loadReferrerPage('clov_project')) {\n\t\t\t$entry->setAttribute('clov_expense_project', $project->getCollectionID());\n\t\t}\n\t\t\n\t\t$this->set('entry', $entry);\n\t\t$this->set('showSaveDraft', true);\n\t\t$this->render('clov/default/add');\n\t}", "public function updateBankerCredit()\n {\n $user = User::whereHas(\"roles\", function($q){$q->where(\"name\", \"Banker\");})->first();\n\n $total = Credit::where('credit_type', 0)->sum('value');\n $user->free_credits = $total;\n $total = Credit::where('credit_type', 1)->sum('value');\n $user->paid_credits = $total;\n $user->save();\n }", "public function update_user_balance($user_id)\n\t\t{\n\t\t\t$this->is_login();\n\t\t\t$form_field = 'user_balance_'.$user_id;\n\t\t\tif($this->input->post($form_field))\n\t\t\t{\n\t\t\t\t$user_data['credit'] = $this->input->post($form_field);\n\t\t\t\t$this->load->model('user_profiles', 'up');\n\t\t\t\t$this->up->update($user_id, $user_data);\n\t\t\t}\n\t\t\tredirect('/admin/user_list','refresh');\n\t\t}", "public function insertExpensesInfo($user_id, $expenses) {\n\n//\t\t$user_id = '1';\n $userExpensesInfoSql = \"INSERT into expenses VALUES ('',$user_id,$expenses->exp_rent,$expenses->exp_utilities,$expenses->exp_groceries,$expenses->exp_gas,$expenses->exp_entertainment,$expenses->exp_household,$expenses->exp_health,$expenses->exp_travel,$expenses->exp_emi,$expenses->exp_cc_month,$expenses->exp_others,'','')\";\n\n $connection = Yii::app()->db3;\n $command = $connection->createCommand($userExpensesInfoSql)->execute();\n\n return 1;\n }", "public function createAccount(User $user){\n $this->accountList[$user->accountNumber][] = $user->userName;\n $this->accountList[$user->accountNumber][] = $user->balance;\n $this->totalAmount += $user->balance;\n }", "function deposit($amount) {\n $this->balance += $amount;\n }", "function withdrawal($account, $amount, $id_user) {\r\n\r\n //Crear la conexión\r\n $base = conection();\r\n\r\n //Verificar que el usuario tenga disponible ese dinero\r\n $sql = \"SELECT balance, pending FROM users WHERE id = :id_user\";\r\n\r\n //Preparar consulta\r\n $result = $base->prepare($sql);\r\n\r\n //Ejecutar consulta\r\n $result->execute(array(\":id_user\"=>$id_user));\r\n\r\n //Contar registros encontrados\r\n $count = $result->rowCount();\r\n \r\n //Verificar si se ingresó el registro\r\n if ($count > 0) {\r\n\r\n while ($row=$result->fetch(PDO::FETCH_ASSOC)) {\r\n $balance = $row[\"balance\"];\r\n $pending = $row[\"pending\"];\r\n }\r\n\r\n if ($balance >= $amount) {\r\n\r\n //Restamos el dienro al usuario\r\n $new_balance = $balance - $amount;\r\n $new_pending = $pending + $amount;\r\n \r\n //Actualizamos el balance del usuario y agregamos el dinero pendiente\r\n $sql_new_balance = \"UPDATE `users` SET `balance`= :balance, `pending`= :pending WHERE id = :id_user\";\r\n\r\n //Preparar consulta\r\n $result_new_balance = $base->prepare($sql_new_balance);\r\n\r\n //Ejecutar consulta\r\n $result_new_balance->execute(array(\":balance\"=>$new_balance, \":pending\"=>$new_pending, \":id_user\"=>$id_user));\r\n\r\n //Actualizamos el balance del usuario y agregamos el dinero pendiente\r\n $sql_withdrawal = \"INSERT INTO `withdrawal`(`account`, `amount`, `date`, `id_user`) VALUES (:account, :amount , NOW(), :id_user)\";\r\n\r\n //Preparar consulta\r\n $result_withdrawal = $base->prepare($sql_withdrawal);\r\n\r\n //Ejecutar consulta\r\n $result_withdrawal->execute(array(\":account\"=>$account, \":amount\"=>$amount, \":id_user\"=>$id_user));\r\n\r\n $count_withdrawal = $result_withdrawal->rowCount();\r\n\r\n if ($count_withdrawal > 0) {\r\n\r\n //Enviar email\r\n $msg = \"The user with the id $id_user has requested a withdrawal in the amount of $amount for their Payeer account $account\";\r\n \r\n mail(\"[email protected]\", \"New Withdrawal request - $id_user\", $msg);\r\n\r\n return \"<b>Your withdrawal request has been sent</b>\\nIn less than 24 hours your order will be processed\";\r\n }\r\n\r\n }else {\r\n return \"You don't have enough funds\";\r\n }\r\n \r\n }else {\r\n return \"fatal error 3\";\r\n }\r\n\r\n}", "function addExpense($week, $money){\n global $db;\n \n $get = getRecentPurchaseId();\n $idPurchase=$get['idPurchase'];\n $stmt =$db->prepare(\"INSERT INTO invoices (week, expense, idPurchase) VALUES (:week, :expense, :idPurchase)\");\n \n $binds= array(\n \":week\"=> $week,\n \":expense\"=> $money,\n \":idPurchase\"=>$idPurchase\n );\n if($stmt->execute($binds) && $stmt->rowCount()>0){\n return true;\n }\n else{\n return false;\n }\n }", "public function updated(Expense $expense)\n {\n if ($expense->status == 1 && $expense->wallet) {\n $wallet = $expense->wallet;\n $wallet->update([\n 'balance' => ($wallet->balance - $expense->amount)\n ]);\n }\n }", "public function payForInvitedUsers(){\n \n $userService = parent::getService('user','user');\n \n $refererUsers = $userService->getUsersWithRefererNotPaid();\n foreach($refererUsers as $user):\n // if created at least 30 days ago\n if(strtotime($user['created_at'])>strtotime('-30 days')){\n continue;\n }\n // if logged within last 5 days ago\n if(!(strtotime($user['last_active'])>strtotime('-7 days'))){\n $user->referer_not_active = 1;\n $user->save();\n continue;\n }\n \n $values = array();\n $values['description'] = 'Referencing FastRally to user '.$user['username'];\n $values['income'] = 1;\n \n \n if($user['gold_member_expire']!=null){\n $amount = 100;\n }\n else{\n $amount = 10;\n }\n \n \n $userService->addPremium($user['referer'],$amount,$values);\n $user->referer_paid = 1;\n $user->save();\n endforeach;\n echo \"done\";exit;\n }", "public function expenseLedgerEntry()\n {\n $items = $this->getVoucherItems();\n \n $financeLedger = new Core_Model_Finance_Ledger;\n $expenseLedgerRecord = $financeLedger->fetchByName('Indirect expense');\n \n $totalPrice = 0;\n for($i = 0; $i <= sizeof($items)-1; $i += 1) {\n $price = $items[$i]['unit_price'] * $items[$i]['quantity'];\n $totalPrice = $totalPrice + $price;\n }\n $notes = 'Purchase with Purchase Id = '.$this->_purchaseId; \n \n $dataToInsert = array(\n 'debit' => $amount,\n 'credit' => \"0\",\n 'notes' => $notes,\n 'transaction_timestamp' => $this->_transactionTime,\n 'fa_ledger_id' => $expenseLedgerRecord['fa_ledger_id']\n );\n $ledgerEntryModel = new Core_Model_Finance_Ledger_Entry;\n $ledgerEntryId = $ledgerEntryModel->create($dataToInsert);\n return $ledgerEntryId;\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'account_' => 'integer|required',\n 'category_' => 'integer|required',\n 'amount_' => 'numeric|required',\n 'date_' => 'required|date_format:d/m/Y'\n ]);\n \n $account_id = $request->input('account_');\n $amount = str_replace(',', '.', $request->input('amount_'));\n\n $account = Account::find($account_id);\n\n if($account->balance >= $amount)\n {\n //Create Expense\n $expense = new Expense;\n $expense->user_id = auth()->user()->id;\n $expense->account_id = $account_id;\n $expense->category_id = $request->input('category_');\n $expense->amount = $amount;\n $expense->date = Carbon::createFromFormat('d/m/Y', $request->input('date_'));\n $expense->save();\n\n //Update the balance\n $new_balance = $account->balance - abs($amount);\n $account->balance = $new_balance;\n $account->save();\n\n return redirect('/operations')->with('success','<strong>'.$account->name.'</strong> balance is now: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>');\n }\n else\n {\n return redirect('/operations')->with('error','You don’t have enough funds in this account. <strong>'.$account->name.'</strong> balance is: <strong>'.$account->balance.' '.$account->currency()->first()->sign.'</strong>')->withInput();\n }\n \n }", "public function update($amount)\n {\n $currentBalance = auth()->user()->balance->amount;\n $newAmount = $currentBalance + $amount;\n auth()->user()->balance()->update(['amount' => $newAmount]);\n }", "function payNOw(){\n $from = $_SESSION['user']['id'];\n $to = $_POST['to_user'];\n $amount = $_POST['amount'];\n $description= $_POST['description'];\n\n //from user money update(-)\n $fromUserDetail = user($from);\n $leftMoney = $fromUserDetail['money']-$amount;\n if($fromUserDetail['money'] >= $amount || $fromUserDetail['money'] >= 0){\n $sql = \"UPDATE users SET money=$leftMoney WHERE id=$from\";\n mysqli_query(con(),$sql);\n\n //to user money update(+)\n $toUserDetail =user($to);\n $newMoney = $toUserDetail['money']+$amount;\n $sql = \"UPDATE users SET money=$newMoney WHERE id=$to\";\n mysqli_query(con(),$sql);\n\n //add to transitoion table\n $sql =\"INSERT INTO transition (from_user,to_user,amount,description) VALUES ('$from','$to','$amount','$description')\";\n run_query($sql);\n }\n else{\n echo alert(\"Error\");\n }\n}", "function update_user_credits_by_amount($id_user='', $amount=''){\t\n\t\ttry{\n\t\t\t$this->db->set('credits','credits+'.$amount, FALSE);\n\t\t\t$this->db->where('id', $id_user);\n\t\t\t$result = $this->db->update('user');\n\t\t\tif($this->db->affected_rows()>0){\n\t\t\t\treturn TRUE;\n\t\t\t}else{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}catch(Exception $e){\n\t\t\tlog_message('debug','Error en la función update_user_credits_by_amount');\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function subHandleBonusIndecated($userId, $amount)\n {\n $wallet = $this->wallet->findWhere(['user_id' => $userId])->first();\n $walletExpire = $this->walletExpire->findWhere(['wallet_id' => $wallet->id])->sortByDesc('id')->first();\n $periodExpire = $this->periodExpire->first();\n $dateExpire = Carbon::now()->addMonths($periodExpire->sum_month);\n if (!$walletExpire) {\n $this->subBonusTransaction($userId, $amount, $dateExpire, $wallet, $periodExpire, StatusConstant::BONUS_TYPE_ADMIN);\n } else {\n // check expire wallet\n if (Carbon::now()->lte($walletExpire->expire_date)) {\n $total = (float) $amount + (float) $walletExpire->amount;\n $this->walletExpire->updateDateExpire($walletExpire->id, $total, $dateExpire, $periodExpire->id);\n $idWalletTrans = $this->walletTrans->createWalletTrans($wallet->id, $amount, StatusConstant::TRANSACTION_TYPE_WALLET_EXPIRE, $walletExpire->id, null, StatusConstant::TRANSACTION_BONUS);\n $this->bonusRepo->createBonus($userId, null, $amount, $idWalletTrans, $walletExpire->id, StatusConstant::BONUS_TYPE_ADMIN);\n } else {\n $this->subBonusTransaction($userId, $amount, $dateExpire, $wallet, $periodExpire, StatusConstant::BONUS_TYPE_ADMIN);\n }\n }\n\n // send notifications when bonus\n $this->noticesService->noticeBonusUser($userId, $amount, $dateExpire);\n }", "public function actionAutoAddInvites(){\n $users = User::model()->findAll(\"status = :status AND invitations < :invite\",array(\":status\"=>1,\":invite\"=>2));\n $userStats = UserStat::model()->findAll();\n $stat = array();\n foreach ($userStats as $userStat){\n $stat[$userStat->user_id] = $userStat;\n }\n \n // check all users\n foreach ($users as $user){\n if (!isset($stat[$user->id])){\n // not yet calculated %\n $c = new Completeness();\n $c->setPercentage($user->id);\n }else{\n //percentage in now add invitations\n if ($stat[$user->id]->completeness >= PROFILE_COMPLETENESS_MIN){\n if ($stat[$user->id]->invites_send == 0) $user->invitations +=4; // initial 4+1 invites after profile completed\n $user->invitations++;\n }\n if ($stat[$user->id]->invites_send > 5) $user->invitations+=2;\n if ($stat[$user->id]->invites_registered > 5) $user->invitations++;\n $user->save(); \n }\n }\n }", "public function awardExperience(Request $request){\n\t\t$from = Auth::user();\n\t\t$amount = $request->amount;\n\t\t$user = User::find($request->user['id']);\n\n\t\t$user->load('progression'); \n\t\t$user->progression->awardExperience($amount);\n\n\t\treturn $user;\n\t}", "public function deposit($amount)\n {\n $this->balance += $amount;\n $this->save();\n }", "function _updateTransaction($ItemUser)\r\n {\r\n //add amount to wallet\r\n $data['Transaction']['user_id'] = $ItemUser['user_id'];\r\n $data['Transaction']['foreign_id'] = ConstUserIds::Admin;\r\n $data['Transaction']['class'] = 'SecondUser';\r\n $data['Transaction']['amount'] = $ItemUser['discount_amount'];\r\n $data['Transaction']['transaction_type_id'] = ConstTransactionTypes::AddedToWallet;\r\n $data['Transaction']['payment_gateway_id'] = $ItemUser['payment_gateway_id'];\r\n $transaction_id = $this->User->Transaction->log($data);\r\n if (!empty($transaction_id)) {\r\n $this->User->updateAll(array(\r\n 'User.available_balance_amount' => 'User.available_balance_amount +' . $ItemUser['discount_amount']\r\n ) , array(\r\n 'User.id' => $ItemUser['user_id']\r\n ));\r\n }\r\n //Buy item transaction\r\n $transaction['Transaction']['user_id'] = $ItemUser['user_id'];\r\n $transaction['Transaction']['foreign_id'] = $ItemUser['id'];\r\n $transaction['Transaction']['class'] = 'ItemUser';\r\n $transaction['Transaction']['amount'] = $ItemUser['discount_amount'];\r\n $transaction['Transaction']['transaction_type_id'] = (!empty($ItemUser['is_gift'])) ? ConstTransactionTypes::ItemGift : ConstTransactionTypes::BuyItem;\r\n $transaction['Transaction']['payment_gateway_id'] = $ItemUser['payment_gateway_id'];\r\n if (!empty($ItemUser['rate'])) {\r\n $transaction['Transaction']['currency_id'] = $ItemUser['currency_id'];\r\n $transaction['Transaction']['converted_currency_id'] = $ItemUser['converted_currency_id'];\r\n $transaction['Transaction']['converted_amount'] = $ItemUser['authorize_amt'];\r\n $transaction['Transaction']['rate'] = $ItemUser['rate'];\r\n }\r\n $this->User->Transaction->log($transaction);\r\n //user update\r\n $this->User->updateAll(array(\r\n 'User.available_balance_amount' => 'User.available_balance_amount -' . $ItemUser['discount_amount']\r\n ) , array(\r\n 'User.id' => $ItemUser['user_id']\r\n ));\r\n }", "public function updateUserAccountBalance($targetUser, $addedAmt, $userID){\n //get user's accout balance\n $accBal = intval($this->UserAaccBalance($targetUser));\n //add it to the amount funded\n $newBal = $accBal + $addedAmt;\n //update back the user bal\n $newBalFields=[\n 'balance'=>$newBal\n ];\n if(!$this->update($userID, $newBalFields)) //LOG ERROR ACTION\n return false;\n return true;\n }", "function add_money() {\n\t\t$coupon_id = $_REQUEST['coupon_id'];\n\t\t$coupon_amount = $_REQUEST['coupon_amount'];\n\t\t$user_id = $_REQUEST['recharge_user_id'];\n\t\t$user_amount = $_REQUEST['recharge_amount'];\n\t\t$transaction_id = $_REQUEST['transection_id'];\n\t\t$final_amount = $coupon_amount + $user_amount;\n\t\t//\t$wt_type=$_POST['wt_type']; //1- debit in account, 2- credit in account\n\t\t$wt_type = 1;\n\t\t// credit\n\t\t$current_date = date(\"Y-m-d h:i:sa\");\n\t\t$wt_category = 1;\n\t\t// 1-Add moeny, 2-Recharge\n\t\t$w_category = 6;\n\t\t$w_desc = \"Amount Recieved when add money \" . $user_amount . \" with get amount \" . $coupon_amount;\n\t\t$wt_desc = \"Add Money\";\n\t\tif (!empty($user_id) && !empty($user_amount) && !empty($transaction_id)) {\n\t\t\t$records = $this -> conn -> get_table_row_byidvalue('user', 'user_id', $user_id);\n\t\t\t$wallet_amount = $records['0']['wallet_amount'];\n\t\t\t$user_wallet = $wallet_amount + $final_amount;\n\t\t\t$add_money = $this -> conn -> insertnewrecords('wallet_transaction', 'wt_user_id, wt_datetime,wt_type,wt_amount,wt_category,transaction_id,wt_desc', '\"' . $user_id . '\",\"' . $current_date . '\",\"' . $wt_type . '\",\"' . $user_amount . '\",\"' . $wt_category . '\",\"' . $transaction_id . '\",\"' . $wt_desc . '\"');\n\t\t\tif (!empty($add_money)) {\n\t\t\t\tif (!empty($coupon_id)) {\n\n\t\t\t\t\t$add_money = $this -> conn -> insertnewrecords('coupon_details', 'coupon_id, user_id,coupon_apply_date', '\"' . $coupon_id . '\",\"' . $user_id . '\",\"' . $current_date . '\"');\n\t\t\t\t\tif ($add_money) {\n\t\t\t\t\t\t$records_coupon = $this -> conn -> get_table_row_byidvalue('offer_coupon', 'coupon_id', $coupon_id);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$coupon_count = $records_coupon['0']['coupon_limit'];\n\t\t\t\t\t\tif($coupon_count>0){\n\t\t\t\t\t\t\t$data_coupon['coupon_limit'] = $coupon_count - 1;\n\t\t\t\t\t\t$update_toekn = $this -> conn -> updatetablebyid('offer_coupon', 'coupon_id', $coupon_id, $data_coupon);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$transaction_ids = strtotime(\"now\") . mt_rand(10000000, 99999999);\n\t\t\t\t\t\t$walletrecharge = $this -> conn -> insertnewrecords('wallet_transaction', 'wt_user_id,wt_datetime,wt_type,wt_amount,wt_category,transaction_id,wt_desc,cashbackrecord_id', '\"' . $user_id . '\",\"' . $current_date . '\",\"' . $wt_type . '\",\"' . $coupon_amount . '\",\"' . $w_category . '\",\"' . $transaction_ids . '\",\"' . $w_desc . '\",\"' . $transaction_id . '\"');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$data['wallet_amount'] = $user_wallet;\n\t\t\t\t$update_toekn = $this -> conn -> updatetablebyid('user', 'user_id', $user_id, $data);\n\t\t\t\t$post = array(\"status\" => \"true\", 'message' => \"Add amount successfully\", \"transaction_id\" => $transaction_id, 'add_amount' => $user_amount, 'wallet_amount' => $user_wallet, 'transaction_date' => $current_date);\n\n\t\t\t} else {\n\t\t\t\t$post = array('status' => \"false\", \"message\" => \"Transaction Failed\");\n\t\t\t}\n\t\t} else {\n\t\t\t$post = array('status' => \"false\", \"message\" => \"Missing parameter\", 'recharge_user_id' => $user_id, 'recharge_amount' => $user_amount, 'transection_id' => $transection_id);\n\t\t}\n\t\techo $this -> json($post);\n\t}", "public function employeeaccount(Request $request){\n\n\t\tif($request->isMethod('post')){\n\n\n\t\t\t$request->validate([\n\n\t\t\t\t'employeeid' => 'required',\n\t\t\t\t'amount' => 'required|integer',\n\t\t\t\t'type' => 'required',\n\n\t\t\t]);\n\n\t\tDB::beginTransaction();\n\t\ttry {\n\n\t\t\t$pastrecord = EmployeeAccount::where('employeeid', $request->employeeid)->orderBy('empaccountid', 'desc')->first();\n\t\t\tif(!empty($pastrecord)){\n\t\t\t\t$amountcal = $pastrecord->amount;\n\t\t\t} else {\n\t\t\t\t$amountcal = 0;\n\t\t\t}\n\n\t\t\tif($request->type == 'Loan'){\n\n\t\t\t\t$amount = $amountcal + $request->amount;\n\n\t\t\t}else{\n\n\t\t\t\tif($amountcal == 0){\n\n\t\t\t\t\tSession::flash('message', 'No loan found');\n \t\t\t\tSession::flash('alert-type', 'error');\n\n\t\t\t\t\treturn redirect()->back();\n\t\t\t\t}\n\n\t\t\t\t$amount = $amountcal - $request->amount;\n\n\t\t\t\tif($amount < 0){\n\n\t\t\t\t\tSession::flash('message', 'Please add valid amount');\n \t\t\t\tSession::flash('alert-type', 'error');\n\n\t\t\t\t\treturn redirect()->back();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$employeeaccount = new EmployeeAccount();\n\t\t\t$employeeaccount->employeeid = $request->employeeid;\n\t\t\t$employeeaccount->amount = $amount;\n\t\t\t$employeeaccount->type = $request->type;\n\t\t\t$employeeaccount->empaccountdate = date('Y-m-d h:i:s');\n\t\t\t$employeeaccount->actionby = session()->get('admin_id');\n\t\t\t$employeeaccount->save();\n\n\t\t\t$salary = Salary::where('employeeid', $request->employeeid)->where('ispaid', 0)->orderBy('salaryid', 'desc')->first();\n\t\t\tif(!empty($salary)){\n\n\t\t\t\t$emi = $salary->salaryemi;\n\t\t\t\t$currentsalary = $salary->currentsalary;\n\n\t\t\t\t$updateemi = $emi - $request->amount;\n\t\t\t\t$updatesalary = $currentsalary + $request->amount;\n\n\t\t\t\t$salary->salaryemi = $updateemi;\n\t\t\t\t$salary->currentsalary = $updatesalary;\n\n\t\t\t\t$salary->save();\n\n\t\t\t}\n\n\t\t\tDB::commit();\n\t\t\t$success = true;\n\n\t\t\tSession::flash('message', 'Amount is added successfully');\n \t\tSession::flash('alert-type', 'success');\n\n\t\t\treturn redirect()->route('viewemployeeaccount');\n\n\t\t} catch(\\Exception $e) {\n\t\t Helper::errormail('HR', 'Add Employeeaccount', 'High');\n\t\t $success = false;\n DB::rollback();\n\n\t\t}\n\n\t\tif ($success == false) { \n return redirect('dashboard');\n }\n\n\t\t}\n\n\t\t$employee = Employee::where('status', 1)->get()->all();\n\t\treturn view('hr.account.addemployeeamount', compact('employee'));\n\n\n\t}", "protected function updateUserProfileInfo($user_id, $bid_amount){\n\t\t$user_model=UserInfo::model()->findByPk($user_id);\n\t\tif($user_model!==null){\n\t\t\t$user_model->total_debits = ($user_model->total_debits + $bid_amount);\n\t\t\t$user_model->closing_balance = ($user_model->closing_balance - $bid_amount);\n\t\t\t$user_model->save();\n\t\t\treturn $user_model->closing_balance;\n\t\t}\n\t}", "public function addExpense($table, $data)\n {\n\n if (isset($data)) {\n $result=$this->dynamicInsert($table, $data);\n }\n }", "function add_money($account,$total_money,$input_money){\n\t\t$total_money += $input_money;\n\t\tglobal $connection;\n\t\t$query_mn = mysqli_query($connection,\"UPDATE khachhang SET `money`=$total_money WHERE account='$account'\" );\n\t\treturn $total_money;\n\t}", "function user_add_exp(int $user_id, int $exp): array\r\n{\r\n\tglobal $DATABASE;\r\n\t\r\n\t$before_rank_up = $DATABASE->execute_query(\"SELECT level, current_exp, max_lp, max_friend FROM `users` WHERE user_id = $user_id\")[0];\r\n\t$current_level = $before_rank_up[0];\r\n\t$need_exp = user_exp_requirement($before_rank_up[0]);\r\n\t$now_exp = $before_rank_up[1] + $exp;\r\n\t\r\n\twhile($now_exp >= $need_exp)\r\n\t{\r\n\t\tuser_add_lp($user_id, 25 + intdiv(++$current_level, 2));\r\n\t\t$need_exp += user_exp_requirement($current_level);\r\n\t}\r\n\t\r\n\t$now_lp = 25 + intdiv($current_level, 2);\r\n\t$now_friend = 10 + intdiv($current_level, 5);\r\n\t\r\n\t$DATABASE->execute_query(\"UPDATE `users` SET level = $current_level, current_exp = $now_exp, next_exp = $need_exp, max_lp = $now_lp, max_friend = $now_friend WHERE user_id = $user_id\");\r\n\t\r\n\treturn [\r\n\t\t'before' => [\r\n\t\t\t'exp' => $before_rank_up[0],\r\n\t\t\t'level' => $before_rank_up[1],\r\n\t\t\t'max_lp' => $before_rank_up[2],\r\n\t\t\t'max_friend' => $before_rank_up[3]\r\n\t\t],\r\n\t\t'after' => [\r\n\t\t\t'exp' => $now_exp,\r\n\t\t\t'level' => $current_level,\r\n\t\t\t'max_lp' => $now_lp,\r\n\t\t\t'max_friend' => $now_friend\r\n\t\t]\r\n\t];\r\n}", "public function actionDepositMoney()\n {\n // Recevei the POST params\n $request = Yii::$app->request;\n $user_id = $request->post('user_id');\n $amount_currency = $request->post('amount_currency');\n $wallet_currency = $request->post('wallet_currency');\n $amount = $request->post('amount');\n\n // Check the mandatory fields\n if (empty($user_id)) {\n throw new BadRequestHttpException('The user ID must be informed.');\n } else if (empty($amount_currency)) {\n throw new BadRequestHttpException('The amount currency must be informed.');\n } else if (empty($wallet_currency)) {\n throw new BadRequestHttpException('The wallet currency must be informed.');\n } else if (empty($amount)) {\n throw new BadRequestHttpException('The amount must be informed.');\n } else {\n // Prepare the input\n $amount = floatval($amount);\n $amount_currency = strtoupper($amount_currency);\n $wallet_currency = strtoupper($wallet_currency);\n\n // Try to retrieve the wallet info\n $wallet = Wallet::find()->where(['user_id' => $user_id])->andWhere(['currency' => $wallet_currency])->one();\n\n // Check if the wallet exists\n if (isset($wallet) && !empty($wallet)) {\n // Check if needs to convert\n if (strcmp($amount_currency, $wallet_currency) != 0) {\n // Gets the new currency quotation\n $result = $this->actionConvertCurrency($amount_currency, $wallet_currency, $amount);\n\n // Check if the conversion happend succesfully\n if (isset($result) && !empty($result)) {\n // Set the new wallet balance with conversion\n $wallet->balance += $result['converted_amount'];\n } else {\n throw new HttpException('It was not possible to contact the currency exchange server.');\n }\n } else {\n // Set the new wallet balance without conversion\n $wallet->balance += $amount;\n }\n\n // Update the the wallet balance\n if ($wallet->save()) {\n // Log the transaction as complete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::DEPOSIT, $amount, $result['converted_amount'], '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n } else {\n $this->logTransaction(Transaction::DEPOSIT, $amount, 0, '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n }\n\n // Return the wallet updated\n return $wallet;\n } else {\n // Log the transaction as incomplete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::DEPOSIT, $amount, $result['converted_amount'], '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n } else {\n $this->logTransaction(Transaction::DEPOSIT, $amount, 0, '', $wallet->code,\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n }\n\n throw new ServerErrorHttpException(\"It wasn't possible to complete the deposit\");\n }\n } else {\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' was not found.');\n }\n }\n }", "private function sellTrasactionAddsMoney(){\n\n }", "public function increaseBalance($amount, $user)\n {\n Stripe::setApiKey(config('services.stripe.secret'));\n\n $intent = PaymentIntent::create([\n 'amount' => $amount,\n 'currency' => 'eur',\n 'metadata' => ['user_id' => $user->id],\n ]);\n\n return $intent;\n }", "public function update(Request $request, Expense $expense)\n {\n //\n }", "public function newAction()\n {\n $securityContext = $this->get('security.context');\n if ($securityContext->isGranted('IS_AUTHENTICATED_REMEMBERED')) {\n $userEntity = $securityContext->getToken()->getUser();\n } else {\n return $this->redirect($this->generateUrl('fos_user_security_login'));\n }\n\n $entity = new Expense();\n $entity->setUser($userEntity);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function save($user_id)\n {\n $this->validate();\n \n if (empty($this->errors)) {\n\n $sql = 'INSERT INTO expenses VALUES (NULL,\n :user_id, \n :expense_category_assigned_to_user_id, \n :payment_method_assigned_to_user_id,\n :amount, \n :date_of_expense, \n :expense_comment)';\n\n $db = static::getDB();\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':user_id', $user_id, PDO::PARAM_INT);\n $stmt->bindValue(':amount', $this->amount, PDO::PARAM_STR);\n $stmt->bindValue(':date_of_expense', $this->date, PDO::PARAM_STR);\n $stmt->bindValue(':payment_method_assigned_to_user_id', $this->payment, PDO::PARAM_INT);\n $stmt->bindValue(':expense_category_assigned_to_user_id', $this->category, PDO::PARAM_INT);\n $stmt->bindValue(':expense_comment', $this->comment, PDO::PARAM_STR);\n \n return $stmt->execute();\n }\n\n return false;\n }", "public function update(Request $request, Debt $debt)\n {\n\n\n if ($request->type == 'credit') {\n if ($request->account_id != $debt->account_id) {\n $prev_account = Account::find($debt->account_id);\n $prev_account->total_sum = $prev_account->total_sum + $debt->total_sum;\n $prev_account->save();\n\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum - $request->total_sum;\n $curr_account->save();\n } else {\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum - $request->total_sum;\n $curr_account->save();\n }\n }else {\n if ($request->account_id != $debt->account_id) {\n $prev_account = Account::find($debt->account_id);\n $prev_account->total_sum = $prev_account->total_sum - $debt->total_sum;\n $prev_account->save();\n\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum + $request->total_sum;\n $curr_account->save();\n } else {\n $curr_account = Account::find($request->account_id);\n $curr_account->total_sum = $curr_account->total_sum + $request->total_sum;\n $curr_account->save();\n }\n }\n\n $debt->account_id = $request->account_id;\n $debt->total_sum = $request->total_sum;\n $debt->type = $request->type;\n $debt->currency = $request->currency;\n $debt->agent_id = $request->agent_id;\n $debt->comment = $request->comment;\n\n $debt->save();\n\n return redirect('debts');\n\n }", "public function update_finance_total( $amount )\n\t{\n\t\t$new_total = $this->finance_total + $amount;\n\t\n\t\t//Insert the new user into the database.\n\t\t$mysqlConnection = new Mysql;\n\t\t\n\t\t$column_headers = array( \"finance_total\" );\n\t\t\n\t\t$values = array( $new_total );\n\t\t\n\t\t$queryDescription = \"Update User finance total\";\n\t\t\n\t\tif( $mysqlConnection->mysql_update( \"user\", $column_headers, $values, \"ID\", $this->get_id(), $queryDescription ) )\n\t\t{\t\t\n\t\t\t//Updated the local finance total\n\t\t\t$this->finance_total = $new_total;\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "function user_increase_gauge(int $user_id, int $amount = 1): int\r\n{\r\n\tglobal $DATABASE;\r\n\t\r\n\t$temp = user_get_gauge($user_id, true) + $amount;\r\n\t$cycle = 0;\r\n\t\r\n\tfor(; $temp >= 10; $temp -= 10)\r\n\t\t$cycle++;\r\n\t\r\n\t$DATABASE->execute_query('REPLACE INTO `secretbox_gauge` VALUES(?, ?)', 'ii', $user_id, $temp);\r\n\treturn $cycle;\r\n}", "public function updateUserEnergyCashExpCompletedmissions($energyCost, $totalCashGained, $totalExpGained) {\n\t\t$missionCompleteParams = array();\n\t\t$missionCompleteParams['energy'] = $energyCost*-1;\n\t\t$missionCompleteParams['missions_completed'] = 1;\n\t\t$missionCompleteParams['cash'] = $totalCashGained;\n\t\t$missionCompleteParams['experience'] = $totalExpGained;\n\t\t\n\t\t$conditions = array();\n\t\t$conditions['id'] = $this->id;\n\t\t\t\t\n\t\t$success = ConnectionFactory::updateTableRowRelativeBasic(\"users\", $missionCompleteParams, $conditions);\t\t\n\t\tif ($success) {\n\t\t\t//$this->cash += $cashLost;\n $this->cash += $totalCashGained;\n\t\t\t$this->missions_completed += 1;\n\t\t\t$this->energy -= $energyCost;\n\t\t\t$this->experience += $totalExpGained;\t\n\t\t}\n\t\treturn $success;\n\t}", "function addToAccountBalance($username,$soldValue,$stockTicker)\n{\n \n $mysql_server = '192.168.1.101';\n \n $mysqli = new mysqli($mysql_server, \"badgers\", \"honey\", \"user_info\");\n \n $findBalQry = \"SELECT * FROM bank WHERE username='$username'\";\n $findBalResult = $mysqli->query($findBalQry);\n \n $oldBalance = 0;\n \n if($findBalResult->num_rows > 0){\n while ($row = $findBalResult->fetch_assoc()){\n \n $oldBalance = $row['balance'];\n }\n }\n $newBalance = $oldBalance + $soldValue;\n \n $UpdateQry = \"UPDATE bank SET balance='$newBalance' where username='$username'\";\n $result = $mysqli->query($UpdateQry);\n \n //Print Values for Tests\n //var_dump($oldBalance);\n //var_dump($newBalance);\n \n}", "public function userStoreWithdrawal(Request $request)\n {\n // return dd($request);\n $user = User::whereId(auth()->user()->id)->firstOrFail();\n if (!isset($user->withdrawalBank->bank_code) || !isset($user->withdrawalBank->account_name) || !isset($user->withdrawalBank->account_number)) {\n $response['status'] = \"info\";\n $response['message'] = \"Your Withdrawal bank details is not setup, visit your profile to update it.\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n\n $minAmount = 100;\n $maxAmount = $user->available_balance;\n if ($user->available_balance < 100) {\n $response['status'] = \"info\";\n $response['message'] = \"You do not have suffient available balance to withdraw.\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n $this->validate($request, [\n 'amount' => \"required|integer|min:50\",\n ]);\n if ($user->available_balance < $request->amount) {\n $response['status'] = \"info\";\n $response['message'] = \"You do not have suffient available balance for the amount you selected. Please select an amount within your available balance\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n $userBank = $user->withdrawalBank;\n Withdrawal::create([\n 'user_id' => $user->id,\n 'amount' => $request->amount,\n 'status' => 'pending',\n 'completed_at' => null,\n 'bank_code' => $userBank->bank_code,\n 'account_name' => $userBank->account_name,\n 'account_number' => $userBank->account_number,\n ]);\n $user->available_balance -= $request->amount;\n $user->update();\n $response['status'] = \"success\";\n $response['message'] = \"Your Withdrawal of #{$request->amount} has been placed.\";\n return redirect()->route('withdrawal_history')->with($response['status'], $response['message']);\n }", "function mint_update_account($session, $token, $account_id, $account_name, $total) {\n $_post = array(\n \"accountId\" => $account_id,\n \"types\" => \"ot\",\n \"accountName\" => $account_name, \n \"accountValue\" => $total,\n \"associatedLoanRadio\" => \"No\", \n \"accountType\" => \"3\", \n \"accountStatus\" => \"1\",\n \"token\" => $token,\n );\n $session->URLFetch(\"https://wwws.mint.com/updateAccount.xevent\", $_post);\n}", "private function addUser()\n {\n $this->online->addUser($this->user, $this->place, $this->loginTime);\n }", "public function accountActivation($userId,$value)\n\t{\t$user = new User;\n\t\t$user->id=$userId;\n\t\t$user->setAccountDesactivate($value);\n\n\t}", "private function sellTrasactionPendingAddsMoney(){\n\n }", "function edit($expenses_id)\n { \n\t\tif ($this->auth->loggedin()) {\n\t\t\t$id = $this->auth->userid();\n\t\t\t\n\t\t\tif(!($this->User_model->hasPermission('update',$id)&&($this->User_model->hasPermission('accounts',$id)||$this->User_model->hasPermission('WILD_CARD',$id)))){\n\t\t\t\tshow_error('You Don\\'t have permission to perform this operation.');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// check if the expense exists before trying to edit it\n\t\t\t$this->data['expense'] = $this->acc_expenses_model->get_acc_expense($expenses_id);\n\t\t\t$this->data['location'] = $this->Location_model->get_all_location();\n\t\t\t\n\t\t\tif(isset($this->data['expense']['id']))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$this->form_validation->set_rules('expenseItem_id', '<b>Item</b>', 'trim|required|integer|min_length[1]|max_length[100]');\n\t\t\t\t$this->form_validation->set_rules('amount', '<b>Amount</b>', 'trim|required|integer|min_length[1]|max_length[10]');\n\t\t\t\t\t\n\t\t\t\tif(isset($_POST) && count($_POST) > 0 && $this->form_validation->run()) \n\t\t\t\t{ \n\t\t\t\t\t$params = array(\n\t\t\t\t\t\t\n\t\t\t\t\t\t'acc_expense_item_id' => $this->input->post('expenseItem_id'),\n\t\t\t\t\t\t'expense' => $this->input->post('amount'),\n\t\t\t\t\t\t'remark' => $this->input->post('remark'),\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$this->acc_expenses_model->update_acc_expense($expenses_id,$params); \n\t\t\t\t\tredirect('acc_expenses/index');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$user = $this->User_model->get('person_id', $id);\n\t\t\t\t\tunset($user['password']);\n\t\t\t\t\t$user_role = $this->User_model->loadRoles($user['person_id']);\n\t\t\t\t\t\n\t\t\t\t\t$this->data['user'] = $user['username'];\n\t\t\t\t\t$this->data['urole'] = $user_role;\n\t\t\t\t\t$specialPerm = $this->User_model->loadSpecialPermission($id);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$this->data['pp'] = $specialPerm;\n\t\t\t\t\t$this->data['p_role'] = $this->Person_role_model->get_person_role($id);\n\t\t\t\t\t$this->data['expenseItem'] = $this->acc_expensesItem_model->get_all_acc_expense_items();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$this->template\n\t\t\t\t\t\t->title('Welcome','My Aapp')\n\t\t\t\t\t\t->build('acc_expenses/edit',$this->data);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tshow_error('The expense you are trying to edit does not exist.');\n\t\t}\n\t\telse{\n\t\t\t$this->template\n\t\t\t\t\t->title('Login Admin','Login Page')\n\t\t\t\t\t->set_layout('access')\n\t\t\t\t\t->build('access/login');\n\t\t}\n }", "private static function logTransactionUpdateBalance($userId,$transactionType,$amount){\n if($transactionType != 'charge'){\n // Update User Balance\n $User = User::where('id',$userId)->select('id','balance')->first();\n if($transactionType == 'withdraw'){\n $User->balance = $User->balance - $amount;\n }\n if(in_array($transactionType,['refund','profit'])){\n $User->balance = $User->balance + $amount;\n }\n if($User->balance < 0){\n $User->balance = 0;\n }\n $User->save();\n }\n }", "function addTransaction($account, $expensetype, $amount, $type, $date){\n\t\t// check if input data is valid\n\t\tif($expensetype == null || strlen($expensetype) == 0){\n\t\t\tthrow new Exception (\"Please enter a valid transaction type.\");\n\t\t}\n\t\telse if ($amount == null || strlen($amount) == 0 || !(is_numeric($amount))){\n\t\t\tthrow new Exception (\"Please enter a valid amount.\");\n\t\t} \n\t\telse if ($date == null){\n\t\t\tthrow new Exception (\"Please enter a date.\");\n\t\t} else {\n\t\t\t$urlms = $this->urlms;\n\t\t\t$urlmsLab = $urlms->getLab_index(0);\n\t\t\t// find the account that receives a transaction\n\t\t\t$fundingAccount = $this->findFundingAccount($account);\n\t\t\t// create a new expense and add it to the account that was previously found using the input\n\t\t\t$newExpense = new Expense($amount, $date, $expensetype, $fundingAccount);\n\t\t\t$fundingAccount->addExpense($newExpense);\n\t\t\t\n\t\t\t// check if transaction is an expense or a fund\n\t\t\t// and add or substract from balance accordingly\n\t\t\tif($type == \"expense\"){\n\t\t\t\t$fundingAccount->setBalance($fundingAccount->getBalance() - $newExpense->getAmount());\n\t\t\t\t$newExpense->setAmount(-$amount);\n\t\t\t} \n\t\t\telse if ($type == \"fund\"){\n\t\t\t\t$fundingAccount->setBalance($fundingAccount->getBalance() + $newExpense->getAmount());\n\t\t\t}\n\t\t\telse{\n\t\t\t\tthrow new Exception (\"Please choose a valid type of transaction.\");\n\t\t\t}\n\t\t\t// Write data\n\t\t\t//$persistence = new Persistence();\n\t\t\t$this->persistence->writeDataToStore($urlms);\n\t\t\t\n\t\t\t?>\n\t\t\n\t\t\t<!-- Refresh back to funding view -->\n\t\t\t<HTML>\n\t\t\t\t<meta http-equiv=\"refresh\" content=\"0; URL='../view/FundingView.php'\" />\n\t\t\t\t<p>New transation item successfully added!</p>\n\t\t\t\t<a href=\"../view/FundingView.php\">Back</a>\n\t\t\t</HTML><?php\n\t\t}\n\t}", "public function UpdateMoney($id, $type, $money){\n $roles = Yii::app() -> user -> roles;\n $uid = Yii::app() -> user -> id;\n if ($type == 1) {\n $sql = 'UPDATE user SET user_money = user_money + '.$money.' WHERE user_id = '.$id;\n if ($roles = 3) {\n $sql2 = 'UPDATE user SET user_money = user_money - '.$money.' WHERE user_id = '.$uid;\n Yii::app() -> db -> createCommand($sql2) -> execute();\n }\n } else {\n $sql = 'UPDATE user SET user_money = user_money - '.$money.' WHERE user_id = '.$id;\n if ($roles = 3) {\n $sql2 = 'UPDATE user SET user_money = user_money + '.$money.' WHERE user_id = '.$uid;\n Yii::app() -> db -> createCommand($sql2) -> execute();\n }\n }\n\n if (Yii::app() -> db -> createCommand($sql) -> execute()) {\n return true;\n } else {\n return false;\n }\n\t}", "public function userCreated(User $user)\n {\n $userInformation = new \\App\\UserInformation;\n $userInformation->user_id = $user->id;\n $userInformation->save();\n\n // initialize balance\n $balance = new \\App\\Balance;\n $balance->user_id = $user->id;\n $balance->save();\n }", "public function incrementEarnings($value) {\n $this->earnings = ($this->earnings + $value);\n }", "function buy_ticket($id_user,$number,$ticket_price)\n {\n $pdo = PDO2::getInstance();\n \n //Change usr_id column in number row in the table tbl_numbers\n $query = $pdo->prepare(\"UPDATE tbl_numbers SET usr_id = :usr_id WHERE id = :number\");\n $query->bindValue(\":usr_id\",$id_user);\n $query->bindValue(\":number\",$number);\n $query->execute();\n print_r($query->errorInfo());\n \n //Update the balance of the account\n\t$query = $pdo->prepare(\"UPDATE tbl_user SET user_balance = :new_balance WHERE user_id = :id_user\");\n\t$query->bindValue(\":new_balance\",user_balance($id_user)-$ticket_price);\n $query->bindValue(\":id_user\",$id_user);\n $query->execute();\n print_r($query->errorInfo());\n \n update_jackpot();\n }", "public function update( Request $request, Expense $expense )\n {\n $request->validate( [\n 'details' => 'required',\n 'amount' => 'required|numeric',\n ] );\n\n $expense->details = $request->details;\n $expense->amount = $request->amount;\n $expense->save();\n }", "function updateYearlyUserOvertime(User $user, Contract $contract, $year, $overtimeBalance)\n{\n // Get a user report for the year\n $userReport = UserReport::byYear($user, $year);\n $startDay = ($contract->getDate()->format('Y') == $year) ? $contract->getDate()->format('z') : 0;\n $endDay = (date('Y') == $year) ?\n\n // \"now\" should be \"tomorrow\" to have realtime calculations\n (new \\DateTimeImmutable('now', $GLOBALS['timezone']))->format('z') :\n (365 + intval((new \\DateTimeImmutable($year.'-01-01', $GLOBALS['timezone']))->format('L')));\n\n // Run through the relevant user report range\n /** @var DayReport $dayReport */\n foreach ($userReport->getRange($startDay, $endDay) as $dayReport) {\n\n // If this is a working day (and not a true holiday) for the user\n if ($dayReport->isWorkingDay() && !$dayReport->isHoliday(true) && !$dayReport->isExcused()) {\n // Subtract the daily working hours\n $overtimeBalance -= $contract->getWorkingHoursPerDay();\n }\n\n // Add the captured time\n $overtimeBalance += $dayReport->getTimeActual() / 3600;\n }\n\n return $overtimeBalance;\n}", "public function update(User $user, Invest $invest)\n {\n //\n return $user->id === $invest->user_id;\n }", "public function testaddCoinsToUser(){\n $old_coins = R::getCell('SELECT coins FROM user WHERE id = 1');\n addCoinsToUser(1, 50);\n $new_coins = R::getCell('SELECT coins FROM user WHERE id = 1');\n $this->assertEquals($old_coins + 50, $new_coins);\n R::exec('UPDATE user SET coins = '.$old_coins.' WHERE id = 1');\n }", "public function actionWithdrawMoney()\n {\n // Recevei the POST params\n $request = Yii::$app->request;\n $user_id = $request->post('user_id');\n $amount_currency = $request->post('amount_currency');\n $wallet_currency = $request->post('wallet_currency');\n $amount = $request->post('amount');\n\n // Check the mandatory fields\n if (empty($user_id)) {\n throw new BadRequestHttpException('The user ID must be informed.');\n } else if (empty($amount_currency)) {\n throw new BadRequestHttpException('The amount currency must be informed.');\n } else if (empty($wallet_currency)) {\n throw new BadRequestHttpException('The wallet currency must be informed.');\n } else if (empty($amount)) {\n throw new BadRequestHttpException('The amount must be informed.');\n } else {\n // Prepare the input\n $amount = floatval($amount);\n $amount_currency = strtoupper($amount_currency);\n $wallet_currency = strtoupper($wallet_currency);\n\n // Try to retrieve the wallet info\n $wallet = Wallet::find()->where(['user_id' => $user_id])->andWhere(['currency' => $wallet_currency])->one();\n\n // Check if the wallet exists\n if (isset($wallet) && !empty($wallet)) {\n // Check if needs to convert\n if (strcmp($amount_currency, $wallet_currency) != 0) {\n // Gets the new currency quotation\n $result = $this->actionConvertCurrency($amount_currency, $wallet_currency, $amount);\n\n // Check if the conversion happend succesfully\n if (isset($result) && !empty($result)) {\n // Check if the wallet have enough fund\n if ($wallet->balance >= $result['converted_amount']) {\n // Perform the balance withdraw with conversion\n $wallet->balance -= $result['converted_amount'];\n } else {\n // Log the transaction as complete\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' does not have enough fund for this operation.');\n }\n } else {\n throw new HttpException('It was not possible to contact the currency exchange server.');\n }\n } else {\n // Check if the wallet have enough fund\n if ($wallet->balance >= $amount) {\n // Perform the balance withdraw without conversion\n $wallet->balance -= $amount;\n } else {\n // Log the transaction as incomplete\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' does not have enough fund for this operation.');\n }\n }\n\n // Update the the wallet balance\n if ($wallet->save()) {\n // Log the transaction as complete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n } else {\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n }\n\n // Return the wallet updated\n return $wallet;\n } else {\n // Log the transaction as incomplete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n } else {\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n }\n\n throw new ServerErrorHttpException(\"It wasn't possible to complete the withdraw\");\n }\n } else {\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' was not found.');\n }\n }\n }", "public function addBalencePost(Request $req, $walletId)\n {\n\n $req->validate([\n 'balence' => 'required|between:0,999999999:999|max:12',\n ]);\n\n // get total balance of wallet from DB\n $total = Auth::user()->wallets()->where('id', $walletId)->get('total');\n $total = $total[0][\"total\"];\n\n // Check + or -\n $balence = $req->balence;\n if($req->input('submit') == \"minus\"){\n // Negetive balance amount\n $balence = -$balence;\n }\n\n // Make new total value\n $total += $balence;\n \n // Flash message\n if($total < 0){\n $req->session()->flash(\"fail\", \"You are Debtor.\");\n }\n else{\n $req->session()->flash(\"success\", \"Your balence successfully stored.\");\n }\n\n // (Manually) Make a transaction for check both Balence and Wallet DB work correctly\n // DB::beginTransaction();\n // try{\n // // Store new balence in Balence\n // $balence = Balence::create([\n // 'wallet_id' => $walletId,\n // 'balance' => $balence,\n // 'total' => $total\n // ]);\n\n // // update 'total' in Wallet\n // Wallet::whereId($walletId)->update(['total' => $total]);\n \n // DB::commit();\n // }\n // catch(\\Exception $ex){\n // DB::rolleback();\n // throw $ex;\n // }\n\n \n // (Automaticlly) Make a transaction for check both Balence and Wallet DB work correctly\n DB::transaction(function() use ($walletId, $balence, $total) {\n // Store new balence in Balence\n $balence = Balence::create([\n 'wallet_id' => $walletId,\n 'balance' => $balence,\n 'total' => $total\n ]);\n\n // update 'total' in Wallet\n Wallet::whereId($walletId)->update(['total' => $total]);\n });\n\n return view('addBalence', [\"walletId\" => $walletId]);\n }", "public function store(Request $request)\n {\n $user=auth()->user();\n $restaurant=$user->restaurant_profile;\n \n $data=$request->validate([\n 'name'=>'required',\n 'description'=>'required',\n 'amount'=>'required|integer'\n ]);\n $expense=new Expense;\n $expense->name=$request->name;\n $expense->description = $request->description;\n $expense->restaurant_profile_id=$restaurant->id;\n $expense->amount=$request->amount;\n $expense->user=auth()->user()->name;\n $expense->save();\n\n return redirect()->route('expenses')->with('success','Expense added successfully');\n }", "public function generateExpenses()\n {\n \t//Iva\n \t$iva_expense = new Expense();\n \t$iva_expense->type = 'iva';\n \t$iva_expense->value = ($this->value * $this->iva_percetage)/100;\n \t$iva_expense->exchange_rate_cop = $this->exchange_rate_cop;\n \t$iva_expense->income_id = $this->id;\n \t$iva_expense->currency_id = $this->currency_id;\n \t$iva_expense->save();\n\n \t//Trsoft utility, se calcula con el valor después de descontar el iva\n\t\t$trsoft_utility_expense = new Expense();\n\t\t$trsoft_utility_expense->type = 'trsoft utility';\n\t\t//En la compra de una licencia la utilidad de trsoft aumenta\n\t\tif($this->type == 'license'){\n\t\t\t$trsoft_utility_expense->value = (\n\t\t\t\t//Valor despues de restarle el iva\n\t\t\t\t($this->value - $iva_expense->value) \n\t\t\t\t//Se calcula el % de utilidad de TrSoft, se separa la utilidad de socios\n\t\t\t\t* (100 - $this->partners_utility)\n\t\t\t)/100;\n\t\t}else if($this->type == 'commission'){\n\t\t\t//Cuando se paga una comisión la utiliad de TrSoft es la establecida\n\t\t\t$trsoft_utility_expense->value = (($this->value - $iva_expense->value) * $this->trsoft_utility)/100;\n\t\t}\n\n\t\t$trsoft_utility_expense->exchange_rate_cop = $this->exchange_rate_cop;\n\t\t$trsoft_utility_expense->state = 'paid out';\n\t\t$trsoft_utility_expense->income_id = $this->id;\n\t\t$trsoft_utility_expense->currency_id = $this->currency_id;\n\t\t$trsoft_utility_expense->save(); \n\n \t//Partners utility, se calcula con el valor después de descontar el iva\n\t\t$partners_utility_expense = new Expense();\n\t\t$partners_utility_expense->type = 'partners utility';\n\t\t$partners_utility_expense->value = (($this->value - $iva_expense->value) * $this->partners_utility)/100;\n\t\t$partners_utility_expense->exchange_rate_cop = $this->exchange_rate_cop;\n\t\t$partners_utility_expense->income_id = $this->id;\n\t\t$partners_utility_expense->currency_id = $this->currency_id;\n\t\t$partners_utility_expense->save(); \t\n\n\t\t//Si es el pago de una comisión se deben generar los egresos\n\t\t//para pago de comisión de traders y desarrollador\n\t\tif($this->type == 'commission'){\n\n\t\t}\n }", "protected function addDonationToFundraisersTotalRaise()\n {\n $this->fundraiser_profile->addDonation( $this->data['amount'] );\n $this->fundraiser_profile->update();\n }", "public function approveAndEarmark() {\n // Check if user has enough money available on card to pay for amount on authorization request.\n // Assumption: it's enough to check if the available balance is no greater than the amount that has been authorized.\n if ($this->card->availableBalance() > $this->authorizationRequest->getAuthorizedAmount()) {\n // Approve request.\n $this->authorizationRequest->approve();\n // Earmark the amount in the authorization request on the card.\n $this->card->earmark($this->authorizationRequest);\n } else {\n throw new Exception(\"User does not have enough money available on their card.\");\n }\n }", "public function taskAddCredit($amount,$user=null,$message=null)\n\t{\n\t\t$user=$user?$user:app()->user->model();\n\t\t$credit = $user->credit;\n\t\tif(!$credit)\n\t\t{\n\t\t\t$credit = new MPaymentCredit;\n\t\t\t$credit->id = $user->id;\n\t\t\t$credit->amount = 0;\n\t\t}\n\t\t\n\t\t$credit->amount+= $amount;\n\t\t$credit->save();\n\t\t\n\t\tif($message)\n\t\t{\n\t\t\t$m = new MTransactionHistory;\n\t\t\t$m->userId = $user->id;\n\t\t\t$m->action = $amount >= 0 ? 'plus' : 'minus';\n\t\t\t$m->amount = $amount;\n\t\t\t$m->comment = $message;\n\t\t\t$m->date = time();\n\t\t\t$m->save();\n\t\t}\n\t}", "public function store(Request $request)\n {\n $status = $request['result']['paymentIntent']['status'];\n $amount = $request['result']['paymentIntent']['amount'];\n\n if (!auth()->user()->balance()->exists()) {\n auth()->user()->balance()->create(['amount' => $amount]);\n } else {\n $this->update($amount);\n }\n }", "public function update_account() {\n global $dbconfig;\n\n $user_id = $this->params['user_id'];\n $status = isset($this->params['status']) ? $this->params['status'] : BLOCKED;\n $account_dbobj = $this->params['account_dbobj'];\n $user_status = BLOCKED;\n $store_status = PENDING;\n\n if($status === ACTIVATED) {\n $user_status = CREATED;\n $store_status = PENDING;\n }\n\n // update users table\n $user_obj = new User($account_dbobj, $user_id);\n $user_obj->setStatus($status);\n $user_obj->save();\n\n $user = BaseModel::findCachedOne($dbconfig->account->name . \".user?id=$user_id\");\n if(!empty($user['store_id'])){\n $store_id = $user['store_id'];\n // store need to manually launch\n $store_obj = new Store($account_dbobj, $store_id);\n if($store_obj->getId()) {\n $store_obj->setStatus($store_status);\n $store_obj->save();\n if($store_status != ACTIVATED){\n GlobalProductsMapper::deleteProductsInStore($account_dbobj, $store_id);\n }\n }\n }\n }", "function deposit($connection,$amount,$accno){\r\n try {\r\n $connection->beginTransaction();\r\n\r\n $accno = $_SESSION['accno'];\r\n $sql = \"UPDATE _accounts SET balance= :balance WHERE accno = :account\";\r\n $statement = $connection->prepare($sql);\r\n\r\n\r\n $final_bal = $amount + Services::getforAccountsBalance($connection,$accno);\r\n //do not deposit to self\r\n if($accno ==$_SESSION['accno']){\r\n return false;\r\n };\r\n //update balance\r\n $statement->execute(array(':balance' => $final_bal,':account'=>$accno));\r\n\r\n if($statement->rowCount()<1){\r\n return false;\r\n }\r\n //update transaction history\r\n $insert_sql = \"INSERT INTO _transactionshistory (accno,date,debit,credit,\r\n balance) VALUES(:accno,:date,:debit,:credit,:balance)\";\r\n $stmt = $connection->prepare($insert_sql);\r\n $stmt->execute(array(':accno'=>$accno,':date'=>date(\"Y/m/d\"),':debit'=>0,':credit'=>$amount,':balance'=>$final_bal));\r\n //$stmt = $connection->prepare($insert_sql);\r\n // if($stmt->rowCount()<1){\r\n // echo \"Insert failed\";\r\n // }else{\r\n // echo \"string\";\r\n // }\r\n $connection->commit();\r\n return true;\r\n } catch (Exception $e) {\r\n\r\n $connection->rollBack();\r\n return false;\r\n }\r\n\r\n }", "public function addUser()\n {\n\n foreach ($this->employeeStorage->getEmployeeScheme() as $key => $singleUser) {\n\n $userInput = readline(\"$singleUser : \");\n $validate = $this->validateInput($userInput, $key); // Each input is sent for validation using validateInput method\n\n while (!$validate) // loop that forces user to enter valid input\n {\n $userInput = readline(\"Unesite ispravan format : \");\n $validate = $this->validateInput($userInput, $key);\n\n }\n if ($key === 'income'){\n $userInput = number_format((float)$userInput, 2, '.', ''); // formats income input so it always has 2 decimal points\n }\n\n $data[$key] = $userInput;\n\n }\n\n $this->employeeStorage->setEmployee( $data ); // After every input is validated data is stored using setEmployee method\n\n echo \"\\033[32m\". \"## Novi zaposlenik \". $data['name'].\" \". $data['lastname'].\" je dodan! \\n\\n\".\"\\033[0m\";\n\n\n }", "public function add(float $amount)\n {\n $this->balance += $amount;\n }", "function addXP($username, $amount)\n {\n\n // define all the global variables\n global $database, $message, $user, $functions;\n\n // check if current user has the required permission\n if (!$user->hasPermission(\"als_xp_add\")) {\n $message->setError(\"You don't have the permission to perform this action\", Message::Error);\n return false;\n }\n\n // escape the given strings\n $username = $database->secureInput($username);\n $amount = $database->secureInput($amount);\n\n // check for empty username or amount\n if (empty($username) || empty($amount)) {\n $message->setError(\"Both fields are required\", Message::Error);\n return false;\n }\n\n // check if amount is a number\n if (!is_numeric($amount)) {\n $message->setError(\"Only numbers are allowed for the amount\", Message::Error);\n return false;\n }\n\n // check if user exists\n if (!$functions->userExist($username)) {\n $message->setError(\"Username not found\", Message::Error);\n return false;\n }\n\n // initiate the user class\n $getUser = new User();\n // load the user data\n $getUser->initInstance($username);\n // add the new amount to the user xp\n if ($getUser->addXP($amount)) {\n $message->setSuccess(\"You have successfully added \" . $amount . \" XP to \" . $getUser->getUsername() . \"'s account\");\n $message->setSuccess(\"Now, he has \" . $getUser->getXP() . \" XP\");\n return true;\n } else {\n $message->setError(\"An error has occurred\", Message::Error);\n return false;\n }\n }", "public function exp_inc(Request $request){\n $input = $request->all();\n $expenses = Budget::whereBetween('created_at',[$input['start'],$input['end']])->where('type','=','exp')->get();\n $incomes = IncomeNote::whereBetween('created_at',[$input['start'],$input['end']])->get();\n $total_expense = 0;\n $total_income = 0;\n foreach ($expenses as $values){\n $total_expense += $values['amount'];\n }\n foreach ($incomes as $values){\n $total_income += $values['amount'];\n }\n $remain = $total_income-$total_expense;\n return response()->json(['exp'=>money_format('$%i', $total_expense),'inc'=>money_format('$%i', $total_income),'remain'=>money_format('$%i', $remain)]);\n }", "public function update_tutor_fee($tid,$fee) {\n\t\t$sql = \"UPDATE profile SET money = money + {$fee} WHERE uid = {$tid} \";\n\t\t$query = $this->db->query($sql);\n\t}", "protected function updateInvoiceAmount(\\PDO $dbh, $user) {\n\t\t$stmt = $dbh->query ( \"Select sum(Amount) from invoice_line where Deleted = 0 and Invoice_Id = \" . $this->idInvoice );\n\t\t$rows = $stmt->fetchAll ();\n\n\t\tif (count ( $rows ) == 1) {\n\n\t\t\t$newAmount = $rows [0] [0];\n\t\t\t$oldAmount = $this->invRs->Amount->getStoredVal ();\n\t\t\t$oldBalance = $this->invRs->Balance->getStoredVal ();\n\n\t\t\t$difAmount = $newAmount - $oldAmount;\n\t\t\t$newBalance = $oldBalance + $difAmount;\n\n\t\t\t$this->invRs->Amount->setNewVal ( $newAmount );\n\t\t\t$this->invRs->Balance->setNewVal ( $newBalance );\n\t\t\t$this->invRs->Last_Updated->setNewVal ( date ( 'Y-m-d H:i:s' ) );\n\t\t\t$this->invRs->Updated_By->setNewVal ( $user );\n\n\t\t\tEditRS::update ( $dbh, $this->invRs, array (\n\t\t\t\t\t$this->invRs->Invoice_Number\n\t\t\t) );\n\n\t\t\tEditRS::updateStoredVals ( $this->invRs );\n\t\t}\n\t}", "function add_interest($amount, $date_start, $date_end, $period, $extra) {\n $extra = $this->earning->interest_extra;\n $this->earning->add_interest($amount, $date_start, $date_end, $period, $extra);\n }", "public function testStoreExpense()\n {\n $attributes = array(\n 'amount' => 432424,\n 'merchant_id' => 1,\n 'category_id' => 1,\n 'notes' => 'Lorem ipsum set amet.',\n 'attachment_id' => 1,\n 'created_at' => date('Y-m-d H:i:s')\n );\n\n $response = $this->call('POST', 'v1/expenses', $attributes);\n $data = json_decode($response->getContent());\n\n $this->assertFalse($data->error);\n $this->assertEquals('Expense has been created.', $data->message);\n }", "public function update()\n\t{\n\t\t$id = Input::get('id');\n\t\t\n\t\t$validation = Validator::make(Input::all(),\n\t\t[\n\t\t\t'description'\t=>\t'required',\n\t\t\t'memo'\t\t\t=>\t'',\n\t\t\t'amount'\t\t=>\t'required|numeric',\n\t\t\t'quantity'\t\t=>\t'required|numeric'\n\t\t]);\n\t\t\n\t\t$errorMessages = new MessageBag;\n\t\t\n\t\tif($validation->fails()){\n\t\t\t$errorMessages->merge($validation->errors()->toArray());\n\t\t}\n\t\t\n\t\t$data = Input::all();\n\t\t\n\t\t$cashInHand = Expense::cashInHand();\n\t\t\n\t\t$ex = ($data['amount'] * $data['quantity']);\n\t\t\n\t\tif($ex > $cashInHand){\n\t\t\t$errorMessages->add('amount', 'You cannot make an expense exceeding cash in hand');\n\t\t}\n\t\t\n\t\tif(count($errorMessages) > 0){\n\t\t\treturn Redirect::route('getExpenses')\n\t\t\t\t\t->withInput()\n\t\t\t\t\t->withErrors($errorMessages)\n\t\t\t\t\t->with('modal','#myModal');\n\t\t} else {\n\t\t\t$expense = Expense::find($id);\n\t\t\t\n\t\t\t$expense->description = Input::get('description');\n\t\t\t$expense->memo = Input::get('memo');\n\t\t\t$expense->amount = Input::get('amount');\n\t\t\t$expense->quantity = Input::get('quantity');\n\t\t\t\n\t\t\tif($expense->save()){\n\t\t\t\treturn Redirect::route('getExpenses')->with('success', 'Edited successfully');\n\t\t\t} else {\n\t\t\t\treturn Redirect::route('getExpenses')->with('fail', 'An error ocurred while editing the expense');\n\t\t\t}\n\t\t}\n\t}", "function add_points_by_user_id($user_id, $points) \n{\n global $conn;\n \n $q['query'] = \"UPDATE `user_master` SET points=points + $points WHERE user_id = '$user_id'\";\n $q['run'] = $conn->query($q['query']);\n\n return $q['run'];\n}", "public function add_income()\n {\n if ( $this->input->is_ajax_request() ) { // user is requesting page from left navigation\n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $this->load->view('app/create_income', $data);\n } else {\n\n if ( $this->input->post('submitBtn') ) { // form is submitted\n $this->form_validation->set_rules('income', 'Income', 'trim|required|is_natural_no_zero|integer|min_length[3]|max_length[11]');\n $this->form_validation->set_rules('bonus', 'Bonus', 'trim|is_natural_no_zero|integer|min_length[3]|max_length[11]');\n $this->form_validation->set_rules('allowance', 'Allowance', 'trim|is_natural_no_zero|integer|min_length[3]|max_length[11]');\n\n if ($this->form_validation->run() == FALSE) { //invalid values in one or more input fields\n \n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['error_message'] = validation_errors();\n $data['main_content'] = 'app/create_income';\n $this->load->view('app/includes/template', $data);\n \n } else { // insert/update user's income record\n \n $income = trim(strip_tags(htmlentities($this->input->post('income'))));\n $bonus = trim(strip_tags(htmlentities($this->input->post('bonus'))));\n $allowance = trim(strip_tags(htmlentities($this->input->post('allowance'))));\n $user_id = $this->ion_auth->get_user_id();\n \n $user_data = array(\n 'user_id' => $user_id,\n 'income' => $income,\n 'bonus' => $bonus,\n 'additional_allowance' => $allowance,\n 'created_date' => date('Y-m-d H:i:S')\n );\n\n $insert = $this->Expense_model->insert_income($user_id,$user_data);\n \n if ($insert) {\n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['success_message'] = 'Income Added Succesfully';\n } else {\n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['success_message'] = 'Income Updated Succesfully';\n }\n \n \n $data['main_content'] = 'app/create_income';\n $this->load->view('app/includes/template', $data);\n\n }\n\n } else { // user is accessing page directly from url\n \n $data['result']=$this->Expense_model->get_income($this->ion_auth->get_user_id());\n $data['main_content'] = 'app/create_income';\n $this->load->view('app/includes/template', $data);\n \n }\n \n }\n }", "public function points_balance($type, $user_id, $node_type, $node_id = null)\n {\n global $db, $system;\n /* check if points enabled */\n if (!$system['points_enabled']) {\n return;\n }\n switch ($node_type) {\n case 'post':\n $points_per_node = $system['points_per_post'];\n break;\n\n case 'comment':\n $points_per_node = $system['points_per_comment'];\n break;\n\n case 'posts_reactions':\n case 'posts_photos_reactions':\n case 'posts_comments_reactions':\n $points_per_node = $system['points_per_reaction'];\n break;\n }\n switch ($type) {\n case 'add':\n /* check user daily limits */\n if ($this->get_remaining_points($user_id) == 0) {\n return;\n }\n /* add points */\n $db->query(sprintf(\"UPDATE users SET user_points = user_points + %s WHERE user_id = %s\", secure($points_per_node, 'int'), secure($user_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n /* update the node as earned */\n switch ($node_type) {\n case 'post':\n $db->query(sprintf(\"UPDATE posts SET points_earned = '1' WHERE post_id = %s\", secure($node_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n break;\n\n case 'comment':\n $db->query(sprintf(\"UPDATE posts_comments SET points_earned = '1' WHERE comment_id = %s\", secure($node_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n break;\n\n case 'posts_reactions':\n $db->query(sprintf(\"UPDATE posts_reactions SET points_earned = '1' WHERE id = %s\", secure($node_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n break;\n\n case 'posts_photos_reactions':\n $db->query(sprintf(\"UPDATE posts_photos_reactions SET points_earned = '1' WHERE id = %s\", secure($node_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n break;\n\n case 'posts_comments_reactions':\n $db->query(sprintf(\"UPDATE posts_comments_reactions SET points_earned = '1' WHERE id = %s\", secure($node_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n break;\n }\n break;\n\n case 'delete':\n /* delete points */\n $db->query(sprintf('UPDATE users SET user_points = IF(user_points-%1$s<=0,0,user_points-%1$s) WHERE user_id = %2$s', secure($points_per_node, 'int'), secure($user_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n break;\n }\n }", "protected function envelheceAccounting() {\n\t\t\t$sSQL = \"INSERT INTO aged_rdtb_accounting SELECT * FROM rdtb_accounting WHERE login < date_trunc('month',now() - interval '2 month')\";\n\t\t\t$this->bd->consulta($sSQL,false);\n\t\t\t$sSQL = \"DELETE FROM rdtb_accounting WHERE login < date_trunc('month',now() - interval '2 month')\";\n\t\t\t$this->bd->consulta($sSQL,false);\n\t\t\t\n\t\t\t$this->vacuum(\"rdtb_accounting\");\n\t\t}", "public function saveExpensePayment(Request $request)\r\n {\r\n try {\r\n $business_id = $request->session()->get('business.id');\r\n $settlement = Settlement::where('settlement_no', $request->settlement_no)->where('business_id', $business_id)->first();\r\n $data = array(\r\n 'business_id' => $business_id,\r\n 'settlement_no' => $settlement->id,\r\n 'expense_number' => $request->expense_number,\r\n 'category_id' => $request->category_id,\r\n 'reference_no' => $request->reference_no,\r\n 'account_id' => $request->account_id,\r\n 'reason' => $request->reason,\r\n 'amount' => $request->amount,\r\n );\r\n\r\n //Update reference count\r\n $ref_count = $this->transactionUtil->setAndGetReferenceCount('expense');\r\n //Generate reference number\r\n if (empty($request->reference_no)) {\r\n $data['reference_no'] = $this->transactionUtil->generateReferenceNumber('expense', $ref_count);\r\n }\r\n\r\n $settlement_expense_payment = SettlementExpensePayment::create($data);\r\n\r\n $expense_number = $this->getExpenseNumber($request->settlement_no);\r\n\r\n $output = [\r\n 'success' => true,\r\n 'expense_number' => $expense_number,\r\n 'reference_no' => $settlement_expense_payment->reference_no,\r\n 'settlement_expense_payment_id' => $settlement_expense_payment->id,\r\n 'msg' => __('petro::lang.success')\r\n ];\r\n } catch (\\Exception $e) {\r\n Log::emergency('File: ' . $e->getFile() . 'Line: ' . $e->getLine() . 'Message: ' . $e->getMessage());\r\n $output = [\r\n 'success' => false,\r\n 'msg' => __('messages.something_went_wrong')\r\n ];\r\n }\r\n\r\n return $output;\r\n }", "public function updateUserCashAndIncome($cashChange, $incomeChange) {\n\t\t$cashparams = array();\n $cashparams['cash'] = $cashChange;\n\t\t$cashparams['income'] = $incomeChange;\n\t\n\t\t$conditions = array();\n\t\t$conditions['id'] = $this->id;\n\t\t\n\t\t$success = ConnectionFactory::updateTableRowRelativeBasic(\"users\", $cashparams, $conditions);\n\t\tif ($success) {\n\t\t\t$this->cash += $cashChange;\n\t\t\t$this->income += $incomeChange;\n\t\t}\n\t\treturn $success;\n\t}", "public static function redeem($id, $user)\n {\n $reward = Reward::find($id);\n\n if (!$reward) {\n throw SystemException(Lang::get('dma.friends.exceptions.missingReward', ['id' => $id]));\n }\n\n try {\n\n // Check overall inventory\n if ($reward->inventory !== null && $reward->inventory == 0) {\n Session::put('rewardError', Lang::get('dma.friends::lang.rewards.noInventory'));\n return;\n }\n\n // Check a users individual inventory\n $count = $user\n ->rewards()\n ->where('reward_id', $reward->id)\n ->count();\n\n if (!empty($reward->user_redeem_limit) && $count >= $reward->user_redeem_limit) {\n Session::put('rewardError', Lang::get('dma.friends::lang.rewards.alreadyRedeemed'));\n return;\n }\n\n $userExtend = new UserExtend($user);\n\n if ($userExtend->removePoints($reward->points, false)) {\n\n if ($reward->inventory > 0) {\n $reward->inventory--;\n $reward->save();\n }\n \n $user->rewards()->save($reward);\n \n Event::fire('dma.friends.reward.redeemed', [$reward, $user]);\n\n $params = [\n 'user' => $user,\n 'object' => $reward,\n ];\n\n FriendsLog::reward($params);\n // TODO handle printing of reward coupon\n\n Session::put('rewardMessage', Lang::get('dma.friends::lang.rewards.redeemed', ['title' => $reward->title]));\n } else {\n Session::put('rewardError', Lang::get('dma.friends::lang.rewards.noPoints'));\n }\n } catch (Exception $e) {\n throw SystemException(Lang::get('dma.friends.exceptions.rewardFailed'));\n }\n }", "function add_money(){\n\t\t$coupon_id=$_REQUEST['coupon_id'];\n\t\t$coupon_amount=$_REQUEST['coupon_amount'];\n\t\t$user_id=$_REQUEST['recharge_user_id'];\n\t\t$user_amount=$_REQUEST['recharge_amount'];\n\t\t$final_amount=$coupon_amount+$user_amount;\n\t//\t$wt_type=$_POST['wt_type']; //1- debit in account, 2- credit in account\n\t\t$wt_type=1; // credit\n\t\t$current_date=date(\"Y-m-d h:i:sa\");\n\t\t$wt_category=1; // 1-Add moeny, 2-Recharge\n\t\t$w_category=6; // Amount Recieved when coupon code apply\n\t\t//$card_no=$_REQUEST['card_number'];\n\t\t//$cvv_no=$_REQUEST['cvv_no'];\n\t\t$w_desc=\"Amount Recieved when add money \".$user_amount .\" with get amount \".$coupon_amount;\n\t\t\t$transaction_id= strtotime(\"now\").mt_rand(10000000, 99999999);\n\t\t//$transaction_id =$_POST['recharge_transaction_id']; // if wt_category=1 then payment gateway transaction id and 2 for recharge id;\n\t\t$wt_desc=\"Add Money\"; // description of transaction like as add moeny, recharge;\n\t\tif(!empty($user_id) && !empty($user_amount) && !empty($transaction_id)){\n\t\t\t$records = $this -> conn -> get_table_row_byidvalue('user', 'user_id', $user_id);\n\t\t\t$wallet_amount = $records['0']['wallet_amount'];\n\t\t\t$user_wallet=$wallet_amount + $final_amount;\n\t\t\t\t\t$add_money = $this -> conn -> insertnewrecords('wallet_transaction','wt_user_id, wt_datetime,wt_type,wt_amount,wt_category,transaction_id,wt_desc', '\"' . $user_id . '\",\"' . $current_date . '\",\"' . $wt_type . '\",\"' . $user_amount . '\",\"' . $wt_category . '\",\"' . $transaction_id . '\",\"' . $wt_desc . '\"');\n\t\t\tif(!empty($add_money)){\n\t\t\t\tif(!empty($coupon_id)){\n\t\t\t\t\t\n\t\t\t\t\t$add_money = $this -> conn -> insertnewrecords('coupon_details','coupon_id, user_id,coupon_apply_date', '\"' . $coupon_id . '\",\"' . $user_id . '\",\"' . $current_date . '\"');\n\t\t\t\t\tif($add_money){\n\t\t\t\t\t\t$transaction_ids= strtotime(\"now\").mt_rand(10000000, 99999999);\n\t\t\t\t\t\t$walletrecharge = $this -> conn -> insertnewrecords('wallet_transaction','wt_user_id,wt_datetime,wt_type,wt_amount,wt_category,transaction_id,wt_desc,cashbackrecord_id', '\"' . $user_id . '\",\"' . $current_date . '\",\"' . $wt_type . '\",\"' . $coupon_amount . '\",\"' . $w_category . '\",\"' .$transaction_ids . '\",\"' . $w_desc . '\",\"' . $transaction_id . '\"');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t $data['wallet_amount']=$user_wallet;\n\t\t\t\t\t$update_toekn=$this -> conn -> updatetablebyid('user','user_id',$user_id, $data);\n\t\t\t\t\t$post = array(\"status\" => \"true\",'message'=>\"Add amount successfully\", \"transaction_id\" =>$transaction_id,'add_amount'=>$user_amount,'wallet_amount'=>$user_wallet,'transaction_date'=>$current_date,'card_no'=>$card_no);\n\t\t\t\t\t\n\t\t\t}else{\n\t\t\t\t$post = array('status' => \"false\",\"message\" => \"Transaction Failed\");\n\t\t\t}\n\t\t}else{\n\t\t$post = array('status' => \"false\",\"message\" => \"Missing parameter\",'recharge_user_id'=>$user_id,'recharge_amount'=>$user_amount,'card_number'=>$card_no,'cvv_no'=>$cvv_no);\n\t\t}\n\t\techo $this -> json($post);\n\t}", "function classiera_save_extra_profile_fields( $user_id ) {\r\n\tupdate_user_meta( $user_id, 'price_plan' );\r\n\tadd_user_meta( $user_id, 'price_plan_id' );\r\n}", "public function insertIncomeInfo($user_id, $income) {\n\n//\t\t$user_id = '1';\n\n $userIncomeInfo = \"INSERT into income VALUES ('','$user_id',$income->inc_gross,$income->inc_investment,$income->inc_spouse,$income->inc_retirement,$income->inc_pension,$income->inc_social_security,$income->inc_disability,$income->inc_veteran,'','')\";\n\n //print_r($income->{'inc_gross'});die;\n\n $connection = Yii::app()->db3;\n $command = $connection->createCommand($userIncomeInfo)->execute();\n\n return 1;\n }", "public function createRewardForConcurrentDaysLogged(User $user): void\n {\n }", "public function expense()\n {\n\n $self='expense';\n if (\\Auth::user()->user_name!=='admin'){\n $get_perm=permission::permitted($self);\n\n if ($get_perm=='access denied'){\n return redirect('permission-error')->with([\n 'message'=>language_data('You do not have permission to view this page'),\n 'message_important'=>true\n ]);\n }\n }\n\n\n $expense = Expense::all();\n $employee = Employee::where('user_name', '!=', 'admin')->get();\n return view('admin.expense', compact('expense', 'employee'));\n }", "public function postCreateExpense(){\n\t\t$rules = array(\n\t\t\t\"date\" =>\"required|date\",\n\t\t\t\"user_id\" =>\"required|integer\",\n\t\t\t\"amount\" =>\"required|integer|min:1\",\n\t\t\t\"description\" =>\"required\"\n\t\t\t);\n\t\t\n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\tif ($validator->fails()) {\n\t\t\techo \"Validator fails\";\n\t\t} else {\n\t\t\t$expense = New Expense();\n\t\t\t$expense->date = Input::get('date');\n\t\t\t$expense->user_id = Input::get('user_id');\n\t\t\t$expense->amount = Input::get('amount');\n\t\t\tif (Input::get('approved')) $expense->status = 1;\n\t\t\telse $expense->status = 0;\n\t\t\t$expense->description = Input::get('description');\n\t\t\t$expense->save();\n\t\t\tSession::put('notification_expense', 'Expense has been created successful!!');\n\t\t\treturn Redirect::to('expense/create-expense');\n\t\t}\n\t}", "public function store(Request $request, Deposits $deposits,Transactions $transactions)\n {\n $validatedData = $request->validate([\n 'member_id'=>'required|numeric|exists:members,member_id',\n 'amount'=>'required|numeric',\n 'deposit_date' => 'required|date'\n ]);\n if($validatedData['amount'] <= 0){\n return back()->with('message2', 'Transaction Declined!, Invalid Deposit Amount');\n }\n\n $member = Members::where('member_id', $request->member_id)->where('member_status', 1)->firstOrFail();\n\n $member_id = $request->member_id;\n $amount = $request->amount;\n $running_balance = $member->current_balance;\n $balance = $running_balance + $validatedData['amount'];\n\n // dd($request);\n\n // DB::enableQueryLog();\n\n DB::beginTransaction();\n\n try{\n DB::update('update members set current_balance = current_balance + ? where member_id = ?', [$amount,$member_id]);\n\n $posted_by = Auth::id();\n $deposit_id = IdGenerator::generate(['table' => 'deposits','field' => 'deposit_id', 'length' => 8, 'prefix' => 'DT-' ]);\n\n $deposits->deposit_id = $deposit_id;\n $deposits->member_id = $request->member_id;\n $deposits->amount = $request->amount;\n $deposits->deposit_date = $request->deposit_date == null ? null : date(' Y-m-d', strtotime($request->deposit_date));\n $deposits->transID = '2';\n $deposits->naration = $request->naration;\n $deposits->posted_by = $posted_by;\n $deposits->save();\n\n $transactions->member_id = $validatedData['member_id'];\n $transactions->amount = $validatedData['amount'];\n $transactions->transaction_date = $validatedData['deposit_date'] == null ? null : date(' Y-m-d', strtotime($validatedData['deposit_date']));\n $transactions->trans_type_id = '3';\n $transactions->naration = $request->naration;\n $transactions->credit = $validatedData['amount'];\n $transactions->balance = $balance;\n $transactions->save();\n\n DB::commit();\n //$erro = DB::getQueryLog();\n //print_r($erro);\n return back()->with('message', 'Cash Deposit saved successfully');\n } catch (\\Exception $e) {\n DB::rollBack();\n return back()->with('message2', 'Cash Deposit failled');\n }\n\n\n }", "function addCredit($credit, $id) { // user_charge.php, user_charge_package_10.php\r\n\r\n\tglobal $mysqli,$db_table_prefix; \r\n\r\n\t\t$stmt = $mysqli->prepare(\"UPDATE \".$db_table_prefix.\"user_credits\r\n\r\n\t\t\tSET\r\n\r\n\t\t\tcredits = credits + ?\r\n\r\n\t\t\tWHERE\r\n\r\n\t\t\tuser_id = ?\r\n\t\t\t\r\n\t\t\tAND credits >= 0\");\r\n\r\n\t$stmt->bind_param(\"ii\", $credit, $id);\r\n\r\n\t$result = $stmt->execute();\r\n\r\n\t$stmt->close();\t\r\n\r\n\treturn $result;\r\n\r\n}", "function increment_visit($user_id){\n\t$query = \"UPDATE Portfolio as P SET visits += 1 WHERE P.user_id = :user_id\";\n}", "function buyFight()\n{\n\tGlobal $conn;\n\t\n\t$uid = isset($_GET['user']) ? urldecode($_GET['user']): ''; \n\tif($uid == '' || $uid == '2147483647' || $uid == '0') printMsg(MSG_NOT_CORRECT_USER_ID,3);\n\t\n\t$query = \"SELECT `users_fights`.`user_id`, `users_fights`.`lock_fights`, `users_balance`.`balance`\n \tFROM `users_fights`\n \tINNER JOIN `users_balance` ON `users_balance`.`user_id` = `users_fights`.`user_id`\n WHERE `users_fights`.`user_id` = (SELECT `users`.`id` FROM `users` WHERE `users`.`VKuser` = '{$uid}' ORDER by `users`.`id` LIMIT 1) \n\t\t\t\";\n\t\n\t$res = mysql_query($query);\n\tif(mysql_error($conn)) trigger_error(MSG_PROBLEM_WITH_SQL);\n\t$data = mysql_fetch_array($res);\n\t\n\tif ($data['lock_fights'] == 0) \n\t{\n\t\tif ($data['balance'] < 100) printMsg(MSG_NOT_ENOUGH_MONEY_BUY_F,3);\n\t\t$newUserBalance = $data['balance'] - 100;\n\t\t$query = \" UPDATE `users_balance`\n \t\tSET `balance` = {$newUserBalance}\n \tWHERE `users_balance`.`user_id` = '{$data['user_id']}'\n \";\n\t\t\n\t\t$newLockFights = '4';\n\t\t$query2 = \"UPDATE `users_fights`\n \t\tSET `lock_fights` = {$newLockFights},\n \t\t\t`unlock_time` = '0'\n \tWHERE `users_fights`.`user_id` = '{$data['user_id']}' \n\t\t\t \";\n\t\t\n\t\t\n\t\t\n\t\tmysql_query($query, $conn);\n\t\t\n\t\tmysql_query($query2, $conn);\n\t\t\n\t\tif(mysql_error($conn)) trigger_error(MSG_PROBLEM_WITH_SQL);\n\t\t\n\t\t$responce = printMsg(MSG_BUY_FIGHT_OK,5);\n\t}\n}" ]
[ "0.6630428", "0.6629469", "0.6460036", "0.6426899", "0.64147335", "0.64030373", "0.62770855", "0.62143904", "0.6143566", "0.61303705", "0.6088098", "0.60440975", "0.60353595", "0.60353154", "0.60291684", "0.60246396", "0.60186255", "0.6007792", "0.5983248", "0.59716815", "0.59606814", "0.5941621", "0.5941235", "0.59372234", "0.5877587", "0.5857306", "0.58361924", "0.5828137", "0.57897013", "0.57896113", "0.57854426", "0.57530886", "0.57192105", "0.57155436", "0.5712165", "0.569355", "0.56915396", "0.5671095", "0.56565547", "0.5650791", "0.56363845", "0.56327516", "0.56183636", "0.56065285", "0.56022006", "0.55948114", "0.55836433", "0.55646074", "0.55623686", "0.5549334", "0.5538039", "0.5530496", "0.5526637", "0.55054045", "0.54903495", "0.54815567", "0.54784375", "0.54782486", "0.54612464", "0.5447389", "0.5440545", "0.5430847", "0.54290456", "0.5419471", "0.54116", "0.53950655", "0.53926486", "0.5385815", "0.538325", "0.5380302", "0.53767467", "0.5376592", "0.53753805", "0.5374208", "0.5373251", "0.5365391", "0.535749", "0.5354642", "0.5339213", "0.533376", "0.5330743", "0.5327179", "0.5321816", "0.5313795", "0.5302537", "0.528779", "0.5287426", "0.52868587", "0.52838874", "0.5281984", "0.52794343", "0.5278588", "0.5263374", "0.5248614", "0.52392983", "0.52349705", "0.5230132", "0.5228771", "0.522531", "0.52237296" ]
0.7496407
0
Create a new job instance.
public function __construct(Request $request, LoanApplication $application) { $this->request = $request; $this->application = $application; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createJob( $creationParameters ){ return $this->APICallSub( '/jobs', array( 'create' => $creationParameters ), \"Could not create new job with query \" . $creationParameters['query'] . \" and operation \" . $creationParameters['operation'] ); }", "abstract public function makeJob();", "abstract public function makeJob();", "private function createSearchJob() {\n $response = $this->client->request('POST','search/jobs', [\n 'json' => [\n 'query' => $this->getSumoQuery(),\n 'from' => $this->start->format(DateTime::ATOM),\n 'to' => $this->end->format(DateTime::ATOM),\n 'timeZone' => $this->profile->getTimezone()\n ]\n ]);\n $code = $response->getStatusCode();\n if ($code !== 202) {\n throw new \\Exception('Error getting data from Sumologic, error was HTTP ' . $code . ' - ' . $response->getBody() . '.');\n }\n $data = json_decode($response->getBody());\n $this->jobId = $data->id;\n if ($this->output->isVerbose()) {\n $this->output->writeln(\" > Debug: Search job ID {$this->jobId} created.\");\n }\n }", "public function createJobObject($payload)\n {\n $job = new Job([\n 'title' => $payload['title'],\n 'name' => $payload['title'],\n 'description' => $payload['description'],\n 'url' => $payload['url'],\n 'location' => $payload['locations'],\n ]);\n\n $job->setCompany($payload['company'])\n ->setDatePostedAsString($payload['date'])\n ->setBaseSalary($payload['salary']);\n\n return $job;\n }", "public function createJobExecution(JobInstance $job)\n {\n return new JobExecution();\n }", "public function setJobName(string $jobName): JobInstanceInterface;", "public function __construct(Job $job)\n {\n $this->job = $job;\n }", "public static function createJob($project, $jobOptions, $parentJob = null) {\n\n // Check if the job must be CC\n $isCC = ($jobOptions->getProjectJobFileType() && $jobOptions->getProjectJobFileType() == ProjectJobFile::TYPE_CC);\n\n if ($jobOptions->getJobType())\n Subtitle::defineSubtitleExtension($jobOptions->getJobType());\n\n // Get job type service id\n $jobOptionsTypeService = JobTypeService::model()->byJobTypeAndService(\n $jobOptions->getJobType(),\n $jobOptions->getService()\n )->find();\n\n // Set attributes\n $projectJob = new PRMProjectJob();\n $projectJob->source_lang_id = $jobOptions->getSourceLanguage();\n $projectJob->target_lang_id = $jobOptions->getTargetLanguage();\n $projectJob->project_id = $project->id;\n $projectJob->job_type_id = $jobOptions->getJobType();\n $projectJob->job_type_service_id = $jobOptionsTypeService->id;\n $projectJob->subtitle_provided = $jobOptions->isSubtitleProvided() ? 1 : 0;\n $projectJob->status = parent::STATUS_NEW;\n $projectJob->due_date = $jobOptions->getDueDate();\n $projectJob->is_billable = ($jobOptions->getJobType() != JobType::TYPE_ACCEPTANCE) ? 1 : 0;\n $projectJob->is_cc = (int) $isCC;\n $projectJob->forced_subtitle = $jobOptions->getIsForced() ? 1 : 0;\n $projectJob->job_meta_type_id = $jobOptions->getMetaType();\n\n if($projectJob->save(false)) {\n\n $deliverySpecComponent = new DeliverySpecComponent();\n $projectJobPreference = $deliverySpecComponent->copyTerritoriesToJobPreferences($projectJob, $project->delivery_spec_id);\n // Set max_box_lines = 3 for CC jobs\n if($projectJobPreference instanceof ProjectJobPreference && $isCC) {\n $projectJobPreference->max_box_lines = 3;\n $projectJobPreference->save(false);\n }\n\n ProjectBreakdownReport::create(ProjectBreakdownReportActions::TASK_ADDED)\n ->forProjectJob($projectJob)\n ->save();\n\n if ($project->user_id){\n PUserJob::model()->assignJob($project->user_id, $projectJob->id);\n }\n\n ProjectJobParent::link($parentJob ? $parentJob->id : 0, $projectJob->id);\n\n if ($jobOptions->getOutputSupportedFile() instanceof ProjectSupportedFile) {\n $deliverableFile = new ProjectJobDeliverableFiles();\n $deliverableFile->project_job_id = $projectJob->id;\n $deliverableFile->project_supported_file_id = $jobOptions->getOutputSupportedFile()->id;\n $deliverableFile->file_name = $jobOptions->getOutputFileName();\n\n if ($jobOptions->getOutputPositioningType()){\n $deliverableFile->positioning_profile = \"0;{$jobOptions->getOutputPositioningType()};{$jobOptions->getOutputAspect()};{$jobOptions->getOutputAspectRatio()}\";\n }\n\n $deliverableFile->save(false);\n }\n\n // Return job\n return $projectJob;\n }\n\n return false;\n }", "public function createJobObject($payload)\n {\n $job = new Job;\n\n $map = $this->getJobSetterMap();\n\n array_walk($map, function ($path, $setter) use ($payload, &$job) {\n try {\n $value = static::getValue(explode('.', $path), $payload);\n $job->$setter($value);\n } catch (\\OutOfRangeException $e) {\n // do nothing\n }\n });\n\n return $job;\n }", "public function create(JobRequest $jobRequest)\n {\n $job = new Job();\n\n $job->business_person = $jobRequest->business_person;\n $job->principal_phone = $jobRequest->principal_phone;\n $job->optional_phone = $jobRequest->optional_phone;\n $job->init_date = $jobRequest->init_date;\n $job->finish_date = $jobRequest->finish_date;\n $job->city = $jobRequest->city;\n\n $job->save();\n\n return compact('job');\n }", "public function createNewJob($jobBody, $queue)\n {\n $job = new Job($jobBody, $queue);\n\n if ($this->jobHasBeenAddedFromOutside($job)) {\n $this->addMissingJobTimeData($job);\n }\n\n return $job;\n }", "protected function createJobFromPayload($payload = [])\n {\n return new Job([\n 'title' => $payload['jobTitle'],\n 'name' => $payload['jobTitle'],\n 'description' => $payload['descriptionFragment'],\n 'url' => $payload['jobViewUrl'],\n 'sourceId' => $payload['jobListingId'],\n 'location' => $payload['location'],\n 'industry' => $payload['jobCategory']\n ]);\n }", "public function created(Job $job)\n {\n //\n }", "protected function generateJob()\n\t{\n\t\t$name = $this->inflector->getJob();\n\n\t\t$this->call('make:job', compact('name'));\n\t}", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "static public function factory($job, $conn, $handle, $initParams=array())\n {\n if (empty($initParams['path'])) {\n $paths = explode(',', NET_GEARMAN_JOB_PATH);\n $file = null;\n\n foreach ($paths as $path) {\n $tmpFile = $path . '/' . $job . '.php';\n\n if (file_exists(realpath($tmpFile))) {\n $file = $tmpFile;\n break;\n }\n }\n }\n else {\n $file = $initParams['path'];\n }\n\n if ( ! file_exists($file) ) {\n throw new Net_Gearman_Job_Exception('Invalid Job class file: ' . (empty($file) ? '<empty>' : $file));\n }\n\n include_once $file;\n\n if (empty($initParams['class_name'])) {\n $class = NET_GEARMAN_JOB_CLASS_PREFIX . $job;\n }\n else {\n $class = $initParams['class_name'];\n }\n\n if (!class_exists($class)) {\n throw new Net_Gearman_Job_Exception('Invalid Job class: ' . (empty($class) ? '<empty>' : $class) . ' in ' . (empty($file) ? '<empty>' : $file) );\n }\n\n $instance = new $class($conn, $handle, $initParams);\n if (!$instance instanceof Net_Gearman_Job_Common) {\n throw new Net_Gearman_Job_Exception('Job is of invalid type: ' . get_class($instance));\n }\n\n return $instance;\n }", "public function creating(Job $job)\n {\n $job->setTokenValue();\n $job->setExpiresAtValue();\n $job->is_activated = 1;\n }", "private function createJob (string $cronTab) : CronJobInterface\n {\n return new class ($cronTab) implements CronJobInterface\n {\n /** @var string */\n private $cronTab;\n\n\n /**\n */\n public function __construct (string $cronTab)\n {\n $this->cronTab = $cronTab;\n }\n\n\n /**\n */\n public function getCronTab () : string\n {\n return $this->cronTab;\n }\n\n\n /**\n */\n public function getName () : string\n {\n return \"My Job\";\n }\n\n\n /**\n */\n public function execute (BufferedSymfonyStyle $io) : CronStatus\n {\n return new CronStatus(true);\n }\n };\n }", "private function createJob(array $data = [])\n {\n $workflow = fake(WorkflowModel::class);\n $stage = fake(StageModel::class, [\n 'action_id' => 'info',\n 'workflow_id' => $workflow->id,\n 'required' => 1,\n ]);\n fake(StageModel::class, [\n 'action_id' => 'button',\n 'workflow_id' => $workflow->id,\n 'required' => 0,\n ]);\n\n $data = array_merge([\n 'workflow_id' => $workflow->id,\n 'stage_id' => $stage->id,\n ], $data);\n\n return fake(JobModel::class, $data);\n }", "public function getNewJob() {\n # we can grab a locked job if we own the lock\n $rs = $this->runQuery(\"\n SELECT id\n FROM \" . self::$jobsTable . \"\n WHERE queue = ?\n AND (run_at IS NULL OR NOW() >= run_at)\n AND (locked_at IS NULL OR locked_by = ?)\n AND failed_at IS NULL\n AND attempts < ?\n ORDER BY created_at DESC\n LIMIT 10\n \", array($this->queue, $this->name, $this->max_attempts));\n\n // randomly order the 10 to prevent lock contention among workers\n shuffle($rs);\n\n foreach ($rs as $r) {\n $job = new DJJob($this->name, $r[\"id\"], array(\n \"max_attempts\" => $this->max_attempts,\n \"fail_on_output\" => $this->fail_on_output\n ));\n if ($job->acquireLock()) return $job;\n }\n\n return false;\n }", "public function store(Request $request): JobResource\n {\n $jobTypes = Factory::listTypes();\n $validValues = $this->validate(\n $request,\n [\n 'sample_code' => ['filled', 'string', 'alpha_dash'],\n 'name' => ['required', 'string'],\n 'type' => ['required', 'string', Rule::in($jobTypes->pluck('id'))],\n 'parameters' => ['filled', 'array'],\n ]\n );\n $parametersValidation = $this->_prepareNestedValidation(\n Factory::validationSpec($validValues['type'], $request)\n );\n $validParameters = $this->validate($request, $parametersValidation);\n $type = $validValues['type'];\n $validParameters = $validParameters['parameters'] ?? [];\n $job = Job::create(\n [\n 'sample_code' => $validValues['sample_code'] ?? null,\n 'name' => $validValues['name'],\n 'job_type' => $type,\n 'status' => Job::READY,\n 'job_parameters' => [],\n 'job_output' => [],\n 'log' => '',\n 'user_id' => \\Auth::guard('api')->id(),\n ]\n );\n $job->setParameters(Arr::dot($validParameters));\n $job->save();\n $job->getJobDirectory();\n\n return new JobResource($job);\n }", "public function __construct(JobPoster $job)\n {\n $this->job = $job;\n }", "public function create()\n {\n // Display form to create a new job\n return view('jobs.create');\n }", "public function __construct(Job $job)\n {\n parent::__construct();\n\n $this->job = $job;\n }", "protected function getJobInstance(): JobInstance\n {\n if (!isset($this->jobInstance)) {\n $id = $this->argument('instanceId');\n /** @noinspection PhpIncompatibleReturnTypeInspection */\n $this->jobInstance = JobInstance::findOrFail(intval($id));\n }\n\n return $this->jobInstance;\n }", "static function createJobDescriptorFromInput()\n {\n $obj = b2input()->json();\n $job = new \\scheduler\\JobDescriptor();\n\n $job->group = trim($obj->group) ?: b2config()->scheduler['defaultGroupName'];\n $job->name = $obj->name;\n $job->type = $obj->type;\n $job->description = $obj->description;\n\n if ($obj->data) {\n $job->data = parse_ini_string($obj->data);\n }\n if (empty($job->data)) {\n $job->data = null;\n }\n\n// var_dump($job);\n\n return $job;\n }", "public function getInstance()\n {\n if (!is_null($this->instance)) {\n return $this->instance;\n }\n\n if (!class_exists($this->class)) {\n throw new \\RuntimeException('Could not find job class \"'.$this->class.'\"');\n }\n\n if (!method_exists($this->class, $this->method) or !is_callable(array($this->class, $this->method))) {\n throw new \\RuntimeException('Job class \"'.$this->class.'\" does not contain a public \"'.$this->method.'\" method');\n }\n\n $class = new \\ReflectionClass($this->class);\n\n if ($class->isAbstract()) {\n throw new \\RuntimeException('Job class \"'.$this->class.'\" cannot be an abstract class');\n }\n\n $instance = $class->newInstance();\n\n return $this->instance = $instance;\n }", "public function create() {}", "public function __construct()\n {\n $this->jobService = new JobService();\n }", "public function create()\n {\n $job=new Job;\n return view('jobs.create',[\n 'job'=>$job,]);\n //\n }", "public function store(CreateJobFormRequest $request)\n {\n $job = Job::create($request->input());\n\n return response()->json($job, 201);\n\n }", "public function create()\n {\n return view('admin.job.create');\n }", "public function createAction(Request $request)\n {\n $entity = new Job();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('job_show', array('id' => $entity->getId())));\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function create(){}", "public function create(Request $request) {\n $jobPost = new Job();\n $jobPost->user_id = Auth::user()->id;\n\n // Substract one credit from user's subscription\n $userPlans = Auth::user()->plans;\n\n foreach ($userPlans as $plan) {\n if ($plan->credits > 0) {\n $plan->credits = $plan->credits - 1;\n $plan->save();\n }\n }\n\n $jobPostData = $request::input('jobPost');\n foreach ($jobPostData as $key => $value) {\n $jobPost[$key] = $value;\n }\n\n $jobPost->save();\n\n return $jobPost;\n }", "public function __construct($job)\n {\n $payload = [];\n $this->job = $job;\n $payload['data'] = json_encode($this->job);\n\n $payload['classname'] = $this->job->getNameOfClass();\n $this->payload = $payload;\n\n }", "public function create()\n {\n return view('profile.job.create');\n }", "public function create()\n {\n return view('job.add_job');\n }", "public function store(CreateRequest $request, Job $job)\n {\n $newTask = $request->validated();\n $newTask['job_id'] = $job->id;\n $task = Task::create($newTask);\n\n flash(__('task.created'), 'success');\n\n return redirect()->route('jobs.show', $job);\n }", "public function create()\n {}", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function createTask()\n {\n return factory($this->model)->create();\n }", "public function newAction()\n {\n $entity = new Job();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function createJob(array $settings, $metaData = [], $priority = 0)\n {\n return $this->client->createJob([\n 'Role' => config('media-converter.iam_arn'),\n 'Settings' => $settings,\n 'Queue' => config('media-converter.queue_arn'),\n 'UserMetadata' => $metaData,\n 'StatusUpdateInterval' => $this->getStatusUpdateInterval(),\n 'Priority' => $priority,\n ]);\n }", "public function addNewJobOpo()\n {\n }", "public function insert($projectId, Google_Job $postBody, $optParams = array()) {\n $params = array('projectId' => $projectId, 'postBody' => $postBody);\n $params = array_merge($params, $optParams);\n $data = $this->__call('insert', array($params));\n if ($this->useObjects()) {\n return new Google_Job($data);\n } else {\n return $data;\n }\n }", "public function run()\n {\n Job::create([\n \"name\" => \"Wirausaha\"\n ]);\n\n Job::create([\n \"name\" => \"Wiraswasta\"\n ]);\n\n Job::create([\n \"name\" => \"Freelance\"\n ]);\n\n Job::create([\n \"name\" => \"Pelajar\"\n ]);\n }", "public function create() {\n \n }", "public function create() {\n \n }", "public static function createJob($mysqli,$name, $jobdesc, $cust_email, $trade, $area, $jobcost, $jobdate, $estdate){\n $insert = \"INSERT INTO job (job_name,job_desc,cust_email,trade_name,area,preferred_cost,date_needed,offer_end_date) VALUES (?,?,?,?,?,?,?,?)\";\n $stmt = $mysqli->prepare($insert);\n $stmt->bind_param('sssssiss', $name, $jobdesc, $cust_email, $trade, $area, $jobcost, $jobdate, $estdate); \n $stmt->execute();\n $stmt->close();\n $job = new Job(['JobName'],['JobDesc'],['Email'],['Trade'],['Area'],['JobCost'],['JobDate'],['EstDate']);\n return $job;\n }", "public function store(Request $request)\n {\n $job = new Job();\n $job->title = $request->title;\n $job->description = $request->description;\n $job->company_name = $request->company_name;\n $this->repo->save($job);\n return new JobsResources($job);\n }", "public function create()\n {\n $fields = Field::all();\n $jobTypes = config('user.job_type');\n\n return view('job.create', [\n 'fields' => $fields,\n 'jobTypes' => $jobTypes,\n ]);\n }", "public static function create($queue, $class, array $data = null, $run_at = 0)\n {\n $id = static::createId($queue, $class, $data, $run_at);\n\n $job = new static($queue, $id, $class, $data);\n\n if ($run_at > 0) {\n if (!$job->delay($run_at)) {\n return false;\n }\n } elseif (!$job->queue()) {\n return false;\n }\n\n Stats::incr('total', 1);\n Stats::incr('total', 1, Queue::redisKey($queue, 'stats'));\n\n return $job;\n }", "public function create()\n {\n return $this->objectManager->create($this->className);\n }", "public function create() {\r\n }", "public function submit(Job $job): JobResource\n {\n if (!$job->canBeModified()) {\n abort(400, 'Unable to submit a job that is already submitted.');\n }\n $job->setStatus(Job::QUEUED);\n JobRequest::dispatch($job);\n\n return new JobResource($job);\n }", "public function create()\n {\n //TODO\n }", "public function __construct(int $status, Job $job)\n {\n $this->status = $status;\n $this->job = $job;\n\n $this->updateTask($this->status, $this->job);\n }", "public function create()\n {\n return new $this->class;\n }", "public function create() {\n }", "public function create() {\n }", "public function create() {\n\t \n }", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create()\n {\n return view('admin.jobs.create');\n }", "public function fake(Generator &$faker): Job\n {\n return new Job([\n 'name' => $faker->catchPhrase,\n 'summary' => $faker->sentence,\n 'workflow_id' => random_int(1, Fabricator::getCount('workflows') ?: 4),\n 'stage_id' => random_int(1, Fabricator::getCount('stages') ?: 99),\n ]);\n }", "public function run()\n {\n Job::factory()->count(100)->create();\n \n }", "public function create()\n {\n return view('admin.jobs.create');\n\n }", "public function create() {\n\t\t\t//\n\t\t}", "public function create() {\n\n\t\t\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "protected function _createJob($type, $job)\n\t{\n\t\treturn strtoupper($type) . ' ' . json_encode($job);\n\t}", "public function createJobWithSalesPrices(array $inputData): Job;", "public function create(Job $job)\n {\n $states = $job->prepareStates();\n $countries = $job->prepareCountries();\n $hours = $job->prepareHours();\n $minutes = $job->prepareMinutes();\n $ampm = $job->prepareAmpm();\n $open = $job->prepareOpen();\n return view('companies.create', compact(['states','countries','hours','minutes','ampm','open']));\n }", "public function create()\n {\n return view('jobs.create');\n }", "public function create()\n {\n return view('jobs.create');\n }", "public function create()\n {\n return view('jobs.create');\n }" ]
[ "0.6920934", "0.6904838", "0.6904838", "0.6868104", "0.6808779", "0.65273094", "0.6518345", "0.64923275", "0.6489805", "0.6467702", "0.6427481", "0.64067507", "0.63930124", "0.6390954", "0.6374191", "0.63040626", "0.6256694", "0.624258", "0.6201882", "0.6178255", "0.60741466", "0.606964", "0.6048255", "0.6046371", "0.6028964", "0.6027325", "0.6020612", "0.60201806", "0.59219176", "0.58790815", "0.5874581", "0.58577603", "0.5809763", "0.58056796", "0.57996", "0.578759", "0.5785099", "0.57772964", "0.57756215", "0.5756182", "0.5702974", "0.56821346", "0.5681687", "0.5681687", "0.5681687", "0.5679407", "0.56782347", "0.56589705", "0.5653082", "0.5649362", "0.56333834", "0.56317276", "0.56317276", "0.56284106", "0.5625946", "0.5622152", "0.56137025", "0.5604381", "0.5603747", "0.5601985", "0.5600219", "0.55999386", "0.55947715", "0.5592249", "0.5592249", "0.5592207", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.55763525", "0.5536131", "0.5534613", "0.5530061", "0.5522159", "0.55214804", "0.5516792", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.5516144", "0.551591", "0.54990643", "0.5498096", "0.54875535", "0.54875535", "0.54875535" ]
0.0
-1